0

I am working on a Selenium application. As per our requirement it must run every 5 minutes. How can I achieve this?

3

There is nothing builtin to Selenium for running a test every five minutes. However, there are many Java scheduling packages available, e.g. Quartz. If you can tell us what research you have done already, we may be able to provide more specific advice.

2

One option in latest Selenium IDE can help you with it as long as you dont need to report any errors or take action when there is an error:

Selenium IDE > Options > Schedule tests to run periodically

enter image description here

enter image description here

you can add test cases or test suit to it

1

Preferably you schedule it with a build-server like Jenkins.

The added value of scheduling with a build-server is that it has reporting/alerting features by e-mail or other means to warn you a test is failing.

0

My suggestions and approach based on the current info provided by you would be:

Please flesh out the question. If you are interested in a more specific/zeroed in solution, give us the environment, selenium version and other aspects you think would help us help you.

Else help yourself on this link, which has some useful piece of info.

0

You don't say which platform you are running on, but if you are running on Linux or Mac OS X, then you could use cron.

The combination of Selenium and crontab has been asked about, and answered, on SE Stack Overflow a number of times already. Check out:

  1. Execute Python (selenium )script in crontab;
  2. Run selenium with crontab (python), and;
  3. Cron job to run Selenium 2 test Suite.

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