Stressless Load Testing

All About Performance Testing & Tools for Web, Mobile and API

Script Quick Reference

A list of XML collections, elements, attributes and corresponding UI properties is provided below.

 

Collection <TestCases>

Element TestCase

XML Attribute

UI Property

Description or Values

When Used

Name

Name

The Test Case name.

MixWeight

Mix Weight

The relative frequency of the Test Case replays in the mix. Every VU is assigned to a specific Test Case selected in a round-robin order, while skipping some of them to achieve the VU distribution corresponding to the mix weights.

Description

Description

The Test Case description.

ThinkTimeMode

Think Times between pages

0 - Zero; 1- Recorded; 2 - Constant; 3 - Random

ConstantThinkTime

Think Time (s)

A constant think time between pages.

ThinkTimeMode = 2 (Constant)

MinRandomThinkTime

Min Think Time (s)

ThinkTimeMode = 3 (Random)

MaxRandomThinkTime

Man Think Time (s)

ThinkTimeMode = 3 (Random)

IterationDelayMode

Delay between iterations

0 - Zero; 1 - Constant; 2 - Pacing

ConstantDelayTime

Iteration Delay (s)

A constant delay between iterations

IterationDelayMode = 1 (Constant)

MinIterationDuration

Minimum iteration duration (s)

the minimum iteration duration. If the iteration completes faster, the appropriate delay will be added.

IterationDelayMode = 2 (Pacing)

CacheControlMode

Cache Control

0 - Disabled; 1-Enabled

NewVuPercent

New VU %

Percentage of the New vs. Returning VUs.

CacheControlMode - 1 (enabled)

RestarBßrowserPercent

VU restarting browsers %

Percentage of VUs restarting browsers before starting new iteration.

CacheControlMode - 1 (enabled)


Collection <Transactions>

Element Transaction

XML Attribute

UI Property

Description or Values

Name

Name

The Transaction name

Description

Description

The Transaction description.

GoalTime

Goal (s)

The transaction's completion time limit

TestCase

Test Case Name

StartSession

Zero-based first session number

EndSession

Zero-based last session number

 

Element Authentication

XML Attribute

UI Property

Description or Values

CredentialFile

A name of the CSV file with 3 columns (domain, username, and password) and no header

 

Element DataSources

XML Attribute

UI Property

Description or Values

&lt;dataset name 1&gt;

A Dataset CSV file with a header

<dataset name n> A Dataset CSV file with a header


Collection <DataGenerators>

Element DataGenerator

XML Attribute

UI Property

Description or Values

When Used

Name

Name

The Data Generator name

DataGeneratorType

0 - Integer, 1 - Double, 3- DateTime, 4 - Guid, 5 - Text

MinValue

MinValue

The minimum generated value

DataGeneratorType="0" (Text), "1" (Double), "3" (DateTime,)

MaxValue

MaxValue

The maximum generated value

FormatString

FormatString

A string specifying a format of presenting a value. For details about different data type Formats, check "Formatting Types" in .NET

Description

Description

The Data Generator description

MinLength

MinLength

The minimum number of characters in the generated word

DataGeneratorType="4" (Text)

MaxLength

MaxLength

The maximum number of characters in the generated word

DataGeneratorType="4" (Text)

 

Collection <Functions>

Element Function

XML Attribute

UI Property

Description or Values

Name Name The Instance name
FunctionType 0 - AgentName, 1 - AgentVUNumber, 2 - TestCaseName, 3 - AgentIterationNumber, 4 - URLNumber, 5 - AgentRequestNumber; 6 - CurrentDateTime.
FormatString FormatString A string specifying a format of presenting a value. For details about different data type
Formats, check "Formatting Types" in .NET
Description Description The Function Instance description

 

Collection <Extractors>

Element Extractor

XML Attribute

UI Property

Description or Values

When Used

Name

Name

The Extractor and its variable name.

ExtractorType

0 - Text Delimited, 1 - Regular Expression, 2 - Header, 3-FormField, 4-XPath

TextBefore

Text Before

A text delimiter that occurs immediately before the value to be extracted.

ExtractionRuleType = 0 (Text Delimited)

TextAfter

Text After

A text delimiter that occurs immediately after the value to be extracted.

ExtractionRuleType = 0 (Text Delimited)

RegEx

Regular Expression

The regular expression with a single value <val> which will be extracted.

ExtractionRuleType = 1 (Regular Expression)

Header

Header

The response header name, selected from the drop-down

ExtractionRuleType = 2 (Header)

FormField

Form Field

The form field name, selected from the drop-down

ExtractionRuleType = 3 (FormField)

Xpath

XPath query

Enter XPath query to extracts a value from a web service XML response

ExtractionRuleType = 4 (Xpath)

Occurrence

Occurrence

The occurrence of the matching text to be extracted. The default is 1.

IsHtmlDecode

Use HTML Decoding

0 - No, 1 - yes

TestCase

Test Case Name

Session

Zero-based session number

Description

Description

The Extractor description

 

Collection <Parameters>

Element Parameter

XML Attribute

UI Property

Description or Values

When Used

ParameterNumber

zero-based parameter number in the request

RequestPart

1- QueryString, 2 - Form, 4 - Header

TestCase

Test Case Name

Session

Zero-based session number

Source

0 - Static, 1 - DataSet, 2 - Extractor, 3 - Data Generator, 4 - Function

DataSet

DataSet


Source = 1 (DataSet)

DataBinding

0 - Sequential, 1 - Random, 2- VU_Bound


Source = 1 (DataSet)

DataField

DataField


Source = 1 (DataSet)

Extractor

Extractor name


Source = 2 (Extractor)

DataGenerator

DataGenerator name

Source = 3 ( Data Generator)

Function

Function name

Source = 4 ( Function)


Collection <Validators>

Element Validator

XML Attribute

UI Property

Description or Values

Text

Text to search

Text/HTML or regular expression to search for in the response.

IsRegex

Is text a regular expression?

0 - No, 1 - Yes

FailIf

Fail If

0 - Found, 1 - Not Found

Scope

Scope

0 - Response, 1 - All Responses

Description

Description

The Validator description

TestCase

Test Case Name

Session

Zero-based session number

 

Collection <Agents>

Element Agent

XML Attribute

UI Property

Description or Values

Name

Agent Name

The Load Agent Name

Host

Host / IP Address

The Load Agent Host

UserName

Username

Username to access Remote Agent

Password

Password

Password to access Remote Agent

MixWeight

Mix Weight

Relative number of VUs emulated on the Load Agent.

StartingThreads

Starting thread count

The number of threads created automatically on the agent when test is launched.

 

Element Test

XML Attribute

UI Property

Description or Values

When Used

TestID
TestDescription Test Description Test Description is included into the Summary report.
NextRunName Test Run Name A one-word Test Run Name is used as a prefix to label the result set of the next test run, displayed in the "Previous Results" section. If the Test Run Name is empty, the test file name and a timestamp is used as the prefix.
LoadPattern Load Pattern 0 - Steady Load, 1 - Step Load
ConstantVU Number of VU The constant number of VUs emulated throughout the test
StartVU Start VU The initial number of VUs in the beginning of the test
StepVUIncrease Step VU Increase The number of VUs added on every step
StepDuration Step Duration (s) The time interval between increasing VU count
MaxVU Max VU Maximum VU count - Note: Test can complete before reaching "Max VU" if the Test Duration is not long enough.
IncreaseOver Over (s) The amount of time taken in the beginning of each step to gradually add VUs. For instant increase, use zero.
TestDurationMode Test Completion Criteria 0 - Number of Iterations, 1-Run Duration, 2 - Reaching max VUs
IterationCountMode How to count iterations 0 - Total , 1-Per VU TestDurationMode = 0 (Number of Iterations)
Iterations Max. iterations After the specified number of iterations is issued, the Test waits until all responses are received and stops. TestDurationMode = 0 (Number of Iterations)
LoadTime Load generation time (hh:mm:ss) The duration of load generation, after which no request will be issued. TestDurationMode = 1 (Run Duration)
AfterTimeElapsedMode

After the time elapsed

0 - Wait for responses, 1 - Stop the test TestDurationMode = 1 (Run Duration)
WarmupTime Warm-up time (s) The warm-up period at the beginning of the test is necessary to prepare server for normal working conditions TestDurationMode = 1 (Run Duration) or TestDurationMode = 2 (Reaching max VUs)
ResultStorageMode How much data to store 0 - All, 1 - Partial, 2 - None
DataStorageMedium Data Storage 0 - Embedded SQL Server CE, 1 - SQL Server ResultStorageMode = 0 or 1
ConnectionString SQL Server connection string ResultStorageMode = 1
PurgeRequestBodyMode Purge request bodies 0 - Non-Errors, 1 - All, 2 - None ResultStorageMode = 0 or 1

PurgeResponseBodyMode

Purge response bodies 0 - Non-Errors, 1 - All, 2 - None ResultStorageMode = 0 or 1
GraphSampleTime Graph sample rate (s) How often the performance counters are read and graph are refreshed. Recommended value is 10s with agents and 5s without the agents. Increase "Sample Rate" for long tests.
AgentPollingTime Agent sample rate (s) Enter how often the remote agents are polled. Cannot exceed Graph sample rate. Recommended value is 10s. Increase it for long tests.
DefaultPageTimeout Default Timeout (s) The maximum amount of time for receiving any of the page requests. A page timeout error is triggered if any of the page sessions' response times exceeds the Timeout.

 

Collection <BrowserCollection>

Element item

XML Attribute

UI Property

Description or Values

When Used

BrowserId Browser Type
MixWeight Mix Weight Relative frequency of using this browser by VUs.
MaxHostConnectons Connection limit per host The maximum number of TCP connections per host.
MaxProxyConnections Connection limit per proxy The maximum number of TCP connections across all hosts.
ReplaceUserAgent Replace User-Agent string True, False
UserAgentString

User Agent

Custom User Agent ReplaceUserAgent = True

 

Collection <NetworkCollection>

Element item

XML Attribute

UI Property

Description or Values

NetworkID

Network Type

MixWeight

Mix Weight

Relative frequency of using this network by Vus

UploadBandwith

Upload Bandwidth (kbps)

DownloadBandwith

Download Bandwidth (kbps)

blog comments powered by Disqus