The elements of the XML are:
Element | Description |
---|---|
Controller | Optional. If not passed in the request, the value is set to dedicated , meaning that Performance Center assigns a controller at the beginning of the test execution. |
Groups/Group [1..n] | Required. |
Groups/Group/Name | Any group name valid in LoadRunner. |
Groups/Group/RTS | An XML segment containing the data used to define Run Time Settings. See Run-time Settings XML |
Groups/Group/Scheduler | Required if schedule is by group. The sub-elements of the group scheduler are the same as for a global scheduler. See below, Scheduler/* . |
Groups/Group/Script/ID | Script ID. |
Groups/Group/Vusers |
If the test is scheduled by scenario and the vusers distribution is by number, value is a positive integer. If the vusers distribution is by percentage, value is 0-100. |
LGDistribution/Amount | Required if LGDistribution/Type is all to each group . Non-negative integer. |
LGDistribution/Type |
Required. One of:
|
Scheduler | Global scheduler. The same element can appear under Groups/Group/Scheduler. |
Scheduler/Actions/Action [1..n] Scheduler actions are affected by the |
An action contains exactly one element. The contained element is one of:
See descriptions of these elements in the following rows. |
Scheduler/Actions/Action/Duration |
The Duration
If the workload type is |
Scheduler/Actions/Action/Duration /TimeInterval/Hours /TimeInterval/Minutes /TimeInterval/Seconds |
The time interval. Non-negative integers. |
Scheduler/Actions/Action/Initialize | Required once for every scheduler. Must be the first action in a global scheduler or the second action in a group scheduler. The Initialize
|
Scheduler/Actions/Action/Initialize |
The time interval. Non-negative integers. |
Scheduler/Actions/Action/Initialize |
The time to wait after initialization. Non-negative integers. |
Scheduler/Actions/Action/StartGroup |
Valid only if the test scheduler is set to by group. Each scheduler has only one definition for the StartGroup action. Cyclic start actions are invalid. For example, if group A starts after group B and group C starts after group B, group A cannot start after group C. The StartGroup
|
Scheduler/Actions/Action/StartGroup |
The time interval. Non-negative integers. |
Scheduler/Actions/Action/StartGroup/Name | Any group name valid in LoadRunner. |
Scheduler/Actions/Action/StartVusers |
The StartVusers
Populate this element according to Workload type and the StartVusers type. |
Scheduler/Actions/Action/StopVusers |
The StopVusers
Populate this element according to the Workload type and StopVusers type. |
WorkloadType/SubType |
Required. One of:
|
WorkloadType/Type |
Required. One of:
The workload type affects the If the workload type is If the workload type is |
WorkloadType/VusersDistributionMode |
Required if WorkloadType/SubType is
|
<Test xmlns="http://www.hp.com/PC/REST/API">
<Name>java_client_test_4</Name>
<TestFolderPath>Subject\Tests</TestFolderPath>
<Content>
<WorkloadType>
<Type>real-world</Type>
<SubType>by test</SubType>
<VusersDistributionMode>by percentage</VusersDistributionMode>
</WorkloadType>
<LGDistribution>
<Type>all to each group</Type>
<Amount>5</Amount>
</LGDistribution>
<Groups>
<Group>
<Name>login_logout</Name>
<Vusers>10</Vusers>
<Script>
<ID>1</ID>
</Script>
<RTS>
<Pacing>
<NumberOfIterations>1</NumberOfIterations>
<StartNewIteration Type="immediately"/>
</Pacing>
<ThinkTime Type="replay"/>
<Log Type="standard">
<LogOptions Type="on error">
<CacheSize>1</CacheSize>
</LogOptions>
</Log>
</RTS>
</Group>
</Groups>
<Scheduler>
<Actions>
<Action>
<Initialize Type="just before vuser runs">
<Vusers>0.0</Vusers>
</Initialize>
</Action>
<Action>
<StartVusers Type="gradually">
<Vusers>100</Vusers>
<Ramp>
<TimeInterval>
<Days>0</Days>
<Hours>0</Hours>
<Minutes>0</Minutes>
<Seconds>10</Seconds>
</TimeInterval>
<Vusers>2</Vusers>
</Ramp>
</StartVusers>
</Action>
<Action>
<Duration Type="run for">
<TimeInterval>
<Days>1</Days>
<Hours>2</Hours>
<Minutes>3</Minutes>
<Seconds>4</Seconds>
</TimeInterval>
</Duration>
</Action>
<Action>
<StopVusers Type="gradually">
<Vusers>0</Vusers>
<Ramp>
<TimeInterval>
<Days>0</Days>
<Hours>0</Hours>
<Minutes>0</Minutes>
<Seconds>20</Seconds>
</TimeInterval>
<Vusers>2</Vusers>
</Ramp>
</StopVusers>
</Action>
</Actions>
</Scheduler>
</Content>
</Test>
|