0

I have an automated blazemeter (load testing software) that takes 20 to 30 minutes to do its work. While my blazemeter script is running I want to stop my Selenium script and after that I want to collect the reports.

How to do this?

Which type of wait should I use for this?

closed as off-topic by c32hedge, Bharat Mane, IAmMilinPatel, alecxe Dec 12 '17 at 17:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers." – c32hedge, IAmMilinPatel, alecxe
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Cant you use a timer ? – ChathuD Dec 11 '17 at 15:46
  • 2
    OP: What are your programming skills? – Peter M. Dec 11 '17 at 16:08
  • Please clarify: You want to stop your Selenium script from running when the BlazeMeter test is running? Is your Selenium script running as part of a CI/Build process? Can you schedule your BlazeMeter scripts to run off hours instead of during the your functional test execution window? – Jeremy Kowalski Dec 11 '17 at 17:47
3

You have someways of doing it:

1 - Running your blazemeter scripts as part of your selenium suite

Discover how to call a shell command in your programming language and run your blazemeter scripts as a selenium test- execution will wait until the command ends, and your can get the result.

2 - Set a system variable

You could set your blazemeter scripts to set a global system variable to False at the beginning of its execution and to True at its end. Your selenium tests should just run when the variable is True.

1

Your Selenium code can use wait only for something which is on the screen/webpage. So does your webpage reflects status of blazemeter: keep waiting vs ok to continue?

If not, you can use your underlying code to check for some condition which blazemeter changes when it is OK to continue (query if could continue, wait some more if not).

Not the answer you're looking for? Browse other questions tagged or ask your own question.