Anda di halaman 1dari 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.


Screen 2

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

Create a new virtual user profile by clicking on the "New" button. The user profile will describe the
behavior 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.
Screen 3

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

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

Type the first URL to be recorded to the program Address bar and press Enter. As you navigate through
a 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 recorded
in 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, login
or 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 can
drag&drop pages between Initial, Main and Final folders in the left pane to form the desired sequence.
Screen 5

WAPT can automatically search for dynamic data during recording. If you know that some dynamic value is
always surrounded by the certain strings on the left and on the right, you can specify those strings to organize
the 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 a
new 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 should
check 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. Using
variables, the program will define the URI of current page and subsequent requests dynamically depending on
page content.
Screen 6

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

You can modify user think time (the time between user's clicks) and a number of iterations (iteration is a
step-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 Windows
authentication (NTLM). You can provide the list of usernames/passwords: check these options, then click
the "Users and Passwords..." button and enter required usernames/passwords.
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. To
define 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.
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 be
executed 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 that
scheduled 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.
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 requests
executed 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.
Screen 10

You can review the results of test run in the form of text reports and graphs. You can see intermediate
results 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 and
Final) 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 be
able 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 from
web browser.

You can save your new scenario and open it later to continue the testing. Click the "Save" button on the
toolbar and enter a name for your scenario.
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. Additional
toolbar appears when you click on any item of the "Logs" tree view.
Screen 12

You can validate your test scenario before running the test. This is useful to make sure that test scenario
does 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 of
current scenario once by a single virtual user.

During the test, WAPT collects complete test data including server replies to each request and
generates 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.

Anda mungkin juga menyukai