Jack Marchetti
Jack Marchetti

Reputation: 15754

Selenium to do automated smoke testing on an interval

I've actually looked through Selenium questions on here and didn't find quite what I was looking for.

Basically I have about 10 "use cases" for smoke testing my site. Basic things such as, can a user log in, can they register etc..

I want to set this up on an interval such as every 10 minutes run these tests.

Is this possible with Selenium Remote Control? Does anyone have a link/tutorial they could point me towards. I'm fairly confident this is possible but I'm just not 100% sure how to get it all set up and running.

Thanks in advance.

Upvotes: 2

Views: 1881

Answers (3)

aehlke
aehlke

Reputation: 15831

Take a look at New Relic's Synthetics product, which wraps Selenium and provides periodic runs with alerting.

Upvotes: 0

krosenvold
krosenvold

Reputation: 77171

Dending on what kind of environment you're working with you could use something like JUnit and an automated build system like hudson. This gives you all sorts of notification infrastructure when something goes wrong.

I have known people to run a script like this against both test and production systems (with a fixed user). In test environments you can discover programming mistakes, in production you can assess the up-ness of your system at a far more interesting level than pings or process watching.

Upvotes: 1

AutomatedTester
AutomatedTester

Reputation: 22418

Yes this can be done with Selenium RC. I have some Selenium Tutorials on my site. I have set up a basic user experience monitor before using Selenium RC, C#/Nunit and Windows Scheduled tasks to start the job to check the speed of our web app through the day.

Since I recommend using Selenium RC you can use any language you want to write the test.

Upvotes: 3

Related Questions