D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Website automation

 

Something I should know more about.

I was trying to persuade Firefox on Linux to run a Selenium-IDE test I
made from the command line.

The examples of using TestRunner.html to do this are all for Windows.

No one jumped up in #selenium and said "don't be daft".

So variations on:

iceweasel -chrome
'chrome://selenium-ide/content/selenium/TestRunner.html?test=file:///home/simon/Desktop/login-and-submit&auto=false&baseURL=http://example.com/'
-height 900 -width 900

It mostly starts Firefox/Iceweasel (10), sometimes does compatibility
check for addons, and then sits with no window open spawning the odd
process, and waiting for something interesting to happen.

Has anyone run such a test case from Linux command line (and ideally and
pulled back a result). I note Mr Hudson is clearly interested in this sort
of thing.

I just need to automate a page with javascript in, nothing very clever,
need to login, click a few links, and wait 90 seconds, then check on
screen for a result. But I want eventually the run it under xvfb so it can
be forgotten about till it fails, and Selenium looked like a relatively
well trodden path to try.

I do similar stuff for screenshots all the time, but then I just need to
visit a page and run the javascript and snapshot the result, not interact
with it at all.


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq