Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Supported by ALT also. 'New'

An execution plan in ZebraTester is designed to control VUsers, Test duration, Max loops per user and RampUp via a flat file, which contain instructions written in a simple scripting language, and have the file-name extension *.exepl.

The benefit of having an execution plan is that the VUsers, test duration, ramp up and ramp down can be altered at any point of time during the test which will be helpful in simulating a stepped load test, spike test etc.

...

set(MaxLoopsPerUser,unlimited)

 

//Initialise the first set of users within specific time defined

rampup(+5,within,10) 

//Optional - This is to make sure the ramp up completes and will extend the MaxTestDuration if required until ramp-up is completed

synch(rampup) 

//This will act like stable period (5 minutes here)

wait(5:0)

 

//Second set of users ramping up

rampup(+5,within,10)

 

//Next stable period for all set of users running now

wait(5:0) 

rampup(+5,DelayPerUser,2)

...

rampup(+5,DelayPerUser,2)

wait(5:0) 

//Ramp down specific number of users in the given time. The users count may go beyond the actual no. of running vusers

rampdown(-1000,within,0)

synch(rampdown)

 

//Aborting the test. If there is no eot statement then the test will stop when it reaches the MaxTestDuration

eot

...

Running scenarios using execution plan in ALT:

(Make sure that the patch which supports execution plan is available in the agent used for the test which is ZT 7.0-B or higher)

In order to use execution plan is ALT there are certain steps which needs to be followed and its outlined below:

  1. Create the execution plan exepl file for each script

  2. Now generate a zip which should consists of this exepl file. To do this, go to Project Navigator and select all the necessary files for the script along with exepl and click on ‘Zip selected files’ button

...

Confirmation message: Weather_Extract_APIKey.zip created (4 entries)

3. Once the zip is created, upload the same to ALT portal as usual

4. Use -executionPlan ExecutionPlanName.exepl syntax in the Additional Options field as below so that the execution plan file can be considered during execution

...

4. The test execution has no effect of the 'Users', 'Duration' and 'Ramp-up Time' selected from ALT portal as below and it always picks these values from the exepl file

...

5. Save the scenario and execute test (smile)

***End of article ***

View file
nameSample_ExecutionPlan.exepl

...