Modularisation of the script is like below
User want to test a scenario , in that user only want to login one time and do multiple actions on the application and then at the end user want to log out.
In ZebraTester normally for every loop all the pages will execute , so the above scenario is not possible by using the outer loop for a Virtual user . There is a possibility in ZT user can have inner loops around the pages , which will execute as many inner loops that user set . But still there is no way that ZT can control the execution of last page (for example log out) only at the last loop for a Virtual user. So here we are explaining how we can achieve this scenario in ZT with the help of inner loops and a plugin called "SupportModularScripts". The plugin will be available as a part of ZT installation.
Suppose we have total 5 pages in a script , where first page and last page should only execute one time for a Virtual user. First page should execute on the first loop and last page should execute on the last loop for a Virtual user. The attaching video describes how to achieve this , the video have the replay of the script as well as a load test with multiple users.
Please sign in to leave a comment.