waptquickstart

12
Screen 1 To perform a test, you should create a test scenario that defines test volume: the number of virtual users participating in test run and test duration. Click the "New" button on the toolbar to create a new Scenario. This will launch a New Test Scenario Wizard. Since we are making a simple performance test, choose "Capacity/Overall Performance" on Page 1 of the Wizard. Click Next to continue to Page 2 and 3. On Page 3 of the Wizard choose the "Ramp-up" option and set the final number of users. It means that the quantity of users will gradually increase until it reaches the specified maximum. Define the test duration. Click Next to proceed to Page 4.

Upload: beghinbose

Post on 29-May-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 1/12

Screen 1

To perform a test, you should create a test scenario that defines test volume: the number of virtual usersparticipating in test run and test duration.

Click the "New" button on the toolbar to create a new Scenario.This will launch a New Test Scenario Wizard.

Since we are making a simple performance test, choose "Capacity/Overall Performance" on Page 1 ofthe Wizard. Click Next to continue to Page 2 and 3.

On Page 3 of the Wizard choose the "Ramp-up" option and set the final number of users. It means thatthe quantity of users will gradually increase until it reaches the specified maximum.

Define the test duration.

Click Next to proceed to Page 4.

Page 2: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 2/12

Screen 2

On Page 4 define the advanced options such as user think time, connection speed etc, and proceed toPage 5.

Create a new virtual user profile by clicking on the "New" button. The user profile will describe thebehavior of users and their preferred route through the tested site. Rename the profile for more

convenience.

Click Next to proceed to Page 6, overview the chosen parameters and click Finish to close the Wizard.

Page 3: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 3/12

Screen 3

Now we need to define the parameters of the user profile. User profile consists of web pages which will berequested by virtual users of that profile. To add pages to the profile, you can record the real activity inspecial WAPT Recorder browser.

Click the "Rec" button to start WAPT Recorder and select desired profile from the combo-box. Use theprofile created in New Test Scenario Wizard.

Page 4: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 4/12

Screen 4

Type the first URL to be recorded to the program Address bar and press Enter. As you navigate througha web site, WAPT records the steps of your activity in browser. These steps are the basis of your test.

During test run, WAPT virtual users will navigate to tested site and perform each step as originally recordedin the sequence of page requests.

When the desired sequence of page requests is formed, you should stop the recording process. Click

the "Stop Rec" button on the toolbar.

Just like in reality, WAPT virtual user's session is divided into 3 parts: Initial actions (for example, loginor registration), Main actions (iterative actions like surfing some catalog or forum) and Final actions (for

example, finalizing a purchase or logout). WAPT puts all recorded pages to the Main folder. You candrag&drop pages between Initial, Main and Final folders in the left pane to form the desired sequence.

Page 5: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 5/12

Screen 5

WAPT can automatically search for dynamic data during recording. If you know that some dynamic value isalways surrounded by the certain strings on the left and on the right, you can specify those strings to organizethe search.

Click the "Settings" button on the toolbar and switch to the "Parameterization" tab.

Check the option "Search for dynamic data located between the certain delimiters", click "Add" to add anew parameter and specify the left and right boundaries.

If you know that dynamic data on your site is kept mainly in the hidden fields of HTML code, you shouldcheck the option "Search for dynamic data contained in the hidden fields of HTML forms". Then click

"Add" to add a new parameter and specify the boundaries.If WAPT finds a dynamic value, it creates a variable and assigns the found value to that variable. Usingvariables, the program will define the URI of current page and subsequent requests dynamically depending onpage content.

Page 6: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 6/12

Screen 6

After creating a route for your virtual users, click the "Properties" tab in the Recorder window. Now youcan view and modify profile properties.

You can modify user think time (the time between user's clicks) and a number of iterations (iteration is astep-by-step pass of the Main test sequence).

"Load images" checkbox is identical to "Show pictures" checkbox in advanced Internet Explorer options.

WAPT supports all security features related to basic authentication and Integrated Windowsauthentication (NTLM). You can provide the list of usernames/passwords: check these options, then click

the "Users and Passwords..." button and enter required usernames/passwords.

Page 7: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 7/12

Screen 7

You can edit options of individual requests, so that they would completely satisfy your testing goals.

Click on any request in the left pane. Its properties will be displayed in the right pane (on the

"Properties" tab).

Check the "Secure" option if you wish to test pages that require SSL connection. URL address of such

pages will start with https://.

You can add more reality to your tests by using parameter values generated dynamically at run-time. Todefine a parameter, you can use WAPT functions that parse actual HTML code of response at run-time.

You can use variables to calculate the actual URIs containing various session IDs, user IDs, product IDs,current date and time and other dynamic data. To define a variable, you can use WAPT functions.

Page 8: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 8/12

Screen 8

You can modify the properties of created test scenario.

Select the "Test Volume" in the left pane under Scenario.

You can either change the test run time, or specify the total number of user sessions that should beexecuted during the test.

Sometimes you may need to start a test at off-hours. Use the scheduled test run option ( "Schedule run at")for this purpose. Select the desired date and time and click the "Run Test" button on the toolbar. Note thatscheduled run is activated only after you click the "Run Test" button.

You can either use fixed, or gradually increasing (ramp-up), or periodically increased/decreased(periodic) number of users in the test.

If you use several profiles, you can choose how many users of each profile to add. You can edit the"Final Users" column in the profiles table.

Page 9: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 9/12

Screen 9

Before running a test you can define options for log files and reports.

Click the "Log and Report Settings" in the left pane under Scenario.

You can set WAPT to create a Full log of test run or just an Error log which contains only requestsexecuted with errors.

WAPT can save all timing information of test run as reports in the "csv" format. To enable this feature,check the "Save results to:" option and specify a folder where to store report files. CSV files can be

easily imported to the Microsoft Excel.

Click the "Run Test" button on the toolbar to start your test.

Page 10: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 10/12

Screen 10

You can review the results of test run in the form of text reports and graphs. You can see intermediateresults at run-time while your test is being executed. Results are available in the form of Summary

Report, Summary Graphs and graphs for all user profiles, test sequences of each profile (Initial, Main andFinal) and all individual requests.

You can save the results of test run as WAPT results file. For this, click the "Save Results" button on

the program toolbar and select "WAPT 5.0 Results Files (*.wpr)" as file type. After saving you will beable to open this file in WAPT and view the results in the form of reports and graphs.You can save the results of test run as HTML report. For this, click the "Save Results" button and select"HTML Files (*.html;*.htm)" as file type. HTML report is a convenient way to view test run results just fromweb browser.

You can save your new scenario and open it later to continue the testing. Click the "Save" button on thetoolbar and enter a name for your scenario.

Page 11: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 11/12

Screen 11

You can view all logs generated during test run just in WAPT. The program has a comprehensive log viewer.Using it, you can find any information easily without the need to search through megabytes of log files.

Expand the "Logs" folder and you will see the tree view with several levels of detail: profile, user,session and iteration. When you click on any item of the "Logs" tree view, you will see the corresponding

part of log in the upper right pane.

You can use additional toolbar to browse virtual users, user sessions and errors one by one. Additionaltoolbar appears when you click on any item of the "Logs" tree view.

Page 12: WAPTquickstart

8/9/2019 WAPTquickstart

http://slidepdf.com/reader/full/waptquickstart 12/12

Screen 12

You can validate your test scenario before running the test. This is useful to make sure that test scenariodoes not contain errors, for example, if your scenario uses dynamic parameter values.

Click the "Verify Test" button on the toolbar to validate your scenario. WAPT will run all pages ofcurrent scenario once by a single virtual user.

During the test, WAPT collects complete test data including server replies to each request andgenerates the Summary Report and the Full log of test run. Using this information, you can see what

requests were executed with errors and what type of error it was.