Versions Compared

Key

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

Now 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.

Procedure:

  1. Create an execution plan flat file with extension “.exepl”

  2. Now design the execution plan as per the test scenario

  3. Refer the documentation here Sec 3.10

  4. When an execution plan is selected in ZebraTester before starting a Load test, then these 4 options are disabled from the UI and is controlled via the execution plan “.exepl” file

...

Example:

An example of a stepped load test starting with 5 VUsers having ramp up of 2sec per user with a stable period of 5 minutes and going up to 50 VUsers is provided below:

...

//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 in 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

...

5. Save the scenario and execute test (smile)

6. Active VUsers graph from ALT

...

***End of article ***

View file
nameSample_ExecutionPlan.exepl

...