The Virtual User test plays back a recorded WinTask script. This test web site enables you to obtain continuous availability and response time data for real user transactions.
Before you create Virtual User tests, you must do the following:
Consider the following items when you run Virtual User tests:
Options and Arguments
Virtual User tests require the following specific options and arguments:
Note: IPv6 addresses can be used, but they must be embedded in brackets, for example [0aff::230:6eff:fe4b:51db]:8080. Here 0aff::230:6eff:fe4b:51db represents the IPv6 address and 8080 represents the port number.
Note: The user must be a local user (no domain login) and must have the ability to log on as a service. Set the capability in Windows as follows: Control Panel > Administrative Tools > Local security policy > Local Policies > User Rights assignment > Log on as a service.
Note: If you specify values for hostname and port, SRM attempts to connect to the system and port through TCP Connect. If the connections are successful, it attempts to execute the script on the specified system and port. If you do not specify hostname and port, SRM does not provide the DNS name resolution or connect times.
Specify these options and arguments when you create or modify tests.
Example
Use this example to create a test that monitors the amount of time required to run a script (C:\myScripts\playback_script.rob) on the port 8080 of mySystem every 120 seconds. This script must run as the user myVUser with a password of VUser123. The test waits up to 10 seconds for a successful response and calculates response time and availability statistics over the last 3600 seconds (1 hour).
To create a new test in a policy
The New test pane appears.
When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:
{ index=21 type=vuser desc="vuser_test" dest="C:\WinTask\bin\taskexec.exe C:\WinTask\Scripts\notepad.rob" args="" interval=60 samples=1 timeout=15 window=300 tos=0 limit=0 status=active name="VUserTest" class="" context="" flags="1" loglevel=1 }
Errors and Availability Measurements
SRM records information about Virtual User test errors in two fields: Results Field and Error Code to help you differentiate between SRM errors and errors that the WinTask application is encountering.
The following table explains how the error codes affect availability measurements. The Results Field provides the value that WinTask returns, and the Error Code field provides the Service Availability error code.
Note: When the Error Code column is 2, the Results Field column displays the error code that was returned by the taskexec.exe application.
Results Field |
Error Code |
Effect on Availability |
Description of Error |
---|---|---|---|
0 |
0 |
No effect |
No errors. |
Any number in the range of 300 to 400 |
2 |
Negative |
SRM could not log in as the user-specified in the Run as User field. |
Any number between 600,000 and 700,000 |
61 |
No effect |
Possible error with the WinTask script that is running. |
-1 |
2 |
Negative |
System error. |
Any other number |
2 |
Negative |
Possible error with the WinTask script that is running. |
For information about errors you may encounter when running Virtual User tests, see Virtual User Test Error Codes.
Copyright © 2013 CA. All rights reserved. |
|