Web test tool comparison - automation software test (1)

zhaozj2021-02-16  52

Web test tool contrast

Testing the XXX (Java Development) software, evaluating WinRunner7.0, Rational Robot, Quick Test, and evaluation mainly includes three aspects of ease of use, scalability, stability.

The XXX login function is to use the most frequent features, in order to let the testers will be freed from manual testing, automated test implementation.

First, the purpose of recording and playback is to test the ease of use of three test tools (large orientation before the function):

Steps to operate: Start IE, enter the address,

Enter your username password,

Login.

WinRunner 7.0

Start WinRunner 7.0

2. Record the operation steps

The script is as follows

Click the taskbar, start IE

# Shell_TrayWndset_window ( "Shell_TrayWnd", 3); toolbar_button_press ( "ToolbarWindow32_0", "T / R¨ Internet Explorer mO ‰ È Vh"); # Button Number 0; address bar, enter the address # Browser Main Window_1set_window ( "Browser Main Window_1", 14); Edit_SET ("Browser_main_Edit_Location", "http://192.168.1.42");

Enter an account password

WIN_TYPE ("HTML_FRAME_2", "Admin JetSpeed ​​"); WIN_MOUSE_CLICK ("HTML_FRAME_2", 566, 33); WIN_CHECK_GUI ("HTML_FRAME_2", "List1.ckl", "GUI1", 1); Recording completion The latter script is as follows above, the test is discovered that the pink font is very affected, so it is necessary to optimize the script, the script after the change is as follows

Start IE and to http://192.168.1.42 address

Web_browser_invoke (IE, "http://192.168.1.42");

win_mouse_click ( "html_frame_2", 402, 36); win_type ( "html_frame_2", "admin jetspeed "); win_mouse_click ( "html_frame_2", 566, 33); win_check_gui ( "html_frame_2", "list1.ckl "," GUI1 ", 1);

Replace the script as a function Web_Browser_invoke (IE, "http://192.168.1.42")

3. Playback test

Replacement reason 1. The top of the pink part script is relatively randomable. If the script is transplanted on other test machines, due to the change in the test environment (if there is no shortcut icon in the taskbar, the pink script will not be put down), resulting in unforgettable. Replace the IE start function, no matter whether IE is installed anywhere, you can start directly.

two. Script optimization, avoid errors, no modified scripts are too lengthy, and the script is reduced, and the function is stable.

Rational Robot:

1. Start the Robot2. Record operation

The script is as follows:

Sub

Main

Dim Result As INTEGER

DIM TEMP AS INTEGER

// Start IE, connect to http://192.168.1.42

StartBrowser "http://192.168.1.42", "windowtag =webbrowser"

/ / Get the focus of the IE window

Window setContext, "WindowTag = Webbrowser", ""

// Open a new page

Browser NewPage, "HTMLTITE = DynaWeb EPS 2003 Enterprise Portal", ""

// Point user name text box

Editbox Click, "Name = UserName", "Coords = 35, 12"

/ / Enter your username password

InputKeys "admin {tab} jetspeed"

// point login

PushButton Click, "Name = Submit"

// Enter the new page

Browser NewPage, "HTMLTITE = DynaWeb EPS 2003 Enterprise Portal", ""

// point exit connection

HTMLIMAGE CLICK, "INDEX = 7", "Coords = 11, 7"

// Close IE

Window Closewin, "", ""

End Sub

3. Playback test

Quick Test 6.5

Start Quick Test

2. Recording the operation script is as follows

// Open the Browser object Object (page is an object) method of Object (WebEdit is also a method) SET method, meaning is set to set the text box UserName, the content is Admin

Browser ("DynaWeb EPS"). Page ("DynaWeb EPS_2"). WebEdit ("UserName"). Set "admin"

// To the other hand, this is called the setSecure method. The role is to encrypt the text in the Password text box. Page ("DynaWeb EPS_2"). WebEdit ("Password"). Setsecure "3FE6931BE

2A

331101AC

0BBBC "

// Call the Click method of the object WebButton object

Browser ("DynaWeb EPS"). Page ("DynaWeb EPS_2"). WebButton ("V {_U") .click

// Call the Click method of the image object, with the purpose of exiting

Browser ("DynaWeb EPS"). Page ("DynaWeb EPS_3"). Image ("T_ S Y R 梑 G H_ {~") .Click'Browser ("DynaWeb EPS"). Page ("DynaWeb EPS_3"). LINK ("2333"). ClickBrowser ("DynaWeb EPS"). Page ("DynaWeb EPS_4"). Image ("Logout"). Click

转载请注明原文地址:https://www.9cbs.com/read-23777.html

New Post(0)