...
The function instance is evaluated before issuing a request.
The following function types are supported:
Function | Return Value |
---|
Agent Name | The name of the current agent | Agent VU Number | The current VU number within an Agent’s pool of VUs | Test Case Name | The current test case name | Agent Iteration Number | The current iteration number executed by an Agent | URL Number | The current request number within a test case | Agent Request Number | The current request number issued by an Agent from the beginning of the test | Current Date Time | The current date time stamp | Current UTC Date Time | The current date UTC timestamp |
How to Create a Function Instance - Select the Function node on the Test Workflow Tree.
- Click New to bring up the Function dialog.
- Select a Function Type.
- Configure its properties and give it a unique name. It will appear in the Variable Picker when you create parameters. Use the Format String property to format the generator output.
- Click Verify to test the return value.
- Click Save & Close
When the Function instance is used to parameterize a request, it is referred by its name surrounded by brackets, for example {{MyFunction}} When the Variable Picker is used to create a parameter, the properly formatted function instance reference is inserted automatically. The function instance is evaluated just before issuing the requests. For example, if you use the Current Date Time function in 3 requests, it will be called 3 times and will return 3 different instant time values.
| Image Modified
|
Date Time Functions
StresStimulus supports two date and time functions:
...