Defining requirements in schedules
You can define performance requirements to specify the acceptable thresholds for the performance parameters in a schedule. The performance requirements that you define can also be used to validate the service-level agreements.
About this task
You can define both the performance and functional requirements in the schedules. The verdict of the schedule is computed based on the requirements defined in the schedule. You can view the verdict in the Requirements report. You can add the requirement for counters, which you can generate, by using the custom code in a schedule. After the test run is initiated, you can view the information about the counters graphically when the test run starts the custom code.
Procedure
-
Find the schedule you want and double-click it.
The schedule is displayed.
-
Perform the following steps in the VU Schedule Details pane:
- Select Requirements from the Category field.
- Select Enable Requirements check box.
-
Enter a name for a requirement in the Name field.
Alternatively, you can click Use Defaults to use the default name for a requirement.
-
Perform the following steps, to set an
Operator and Value for the requirements you
defined:
-
Perform the following steps to add the counter information
generated by using the custom code to a requirement:
-
To remove the selected requirement, select the
requirement, and then click Clear.
Note: The requirement is disabled and can be redefined.
Example
You can define the performance requirements in a schedule or in a test if your protocol supports it. When you define a requirement in a test, the requirement is defined individually for each test element even if you select multiple test elements. When you define a requirement in a schedule, the requirement is applied to the aggregate of test elements.
For example, assume that you select every page in a test and define the following as a requirement: Page Response Time(Average) must be less than 5 seconds.
This means that if one page in the test has a response time of 6 seconds, the requirement on that page fails. If the other pages have a response time of less than 5 seconds, the requirement is pass.
For example, in a schedule you can define the following requirement: Response Time For All Pages (Average) as less than 5 seconds. This measures the average response time for all the pages. If one page has a response time of 30 seconds and if there are 7 pages that have a lower response time such that the average response time is less than 5 seconds, then the page with a response time of 30 seconds also passes the requirement.
What to do next
After you defined the requirements in a VU Schedule, you can run the requirement against the application under test, and then analyze the results that are reported.