Another Selenium Presentation, With a Little Hudson Thrown In, at the SF Java User Group.
I’ll be doing another presentation (downloadable here) on how to test browser-based web applications using Selenium under Continuous Integration, this time at the San Francisco Java User Group. It happens today (as I write this.) The main prop for this version of the talk will be simple Spring based demo app, rather than the Grails demo that I used when I gave this talk to the Sac Groovy Users Group.
I’ll also be doing a quick introduction to Hudson, but the presentation you don’t want to miss is the one in February, led by Kohsuke Kawaguchi. Kohsuke is the extremely talented developer of Hudson.
For those going to the talk today, the lab notes are included below. Hopefully you will be able to download the pre-req software before the talk, because I hear bandwidth at the venue is a bit limited.
Lab Notes
- Make sure Java version 1.5 or greater is installed and in your path
- Check by typing java -version
- Make sure your JAVA_HOME is set correctl
Type: $JAVA_HOME/bin/java -version
This should give you the same output as simply typing ‘java -version’
- Install maven:
http://www.apache.org/dyn/closer.cgi/maven/binaries/apache-maven-2.2.1-bin.zip
- Follow the nice tutorials here:
- Download the sample project that demo’s testing with Selenium from http://buildlackey.com/web_content/sf.java.users.group.pres/selenium.demo.zip
- Unzip the above file to [DEMO-DIR]
- cd [DEMO-DIR]
- Type mvn install
- If you’ve never run maven before it will take a couple of minutes just to download the dependencies. After that you should quickly see a browser launch and the test steps will flash by as they are being executed (this happens quickly!, then the browser windows usually goes away.)
- At the tail end of the process you should see the following output in the console window that you used to launch the build.
[INFO] -----------------------------------
[INFO] Reactor Summary:
[INFO] -----------------------------------
[INFO] Top level driver ... SUCCESS [1.668s]
[INFO] Build Simple Web App ... SUCCESS [1.600s]
[INFO] Run Functional Tests ... SUCCESS [39.240s]
Troubleshooting:
You may need to ensure that firefox is installed and available in your path. I’ve tested the Lab on Windows and Linux, but I always use firefox as my browser.
Acknowledgements
Thanks to Sasa at Marakana for arranging the venue, and for the nice write up of what we do at the Labs.
























on January 19th, 2010
I download the demo file then run the mvn install but it hangs at the log4j, and don’t know how to continue, could you please help me. Thanks before hand.
on January 31st, 2010
hi.. sorry i didn’t see your comment earlier.
do you want to send me your log file
run mvn like this:
mvn -X install
pls give me the complete console output.. i might be able to help you diagnose what’s up..
on March 29th, 2010
Hi,
I would like to say “Thank you” I have already tried your scripts using maven and selenium and it works, I’ve made some changes in order to create my own demo without using Cargo , I’m currently working using Selenium, maven and QuickTestPro, I am using both tools (QTP and Selenium) and i’m searching which tool it is more agile in our organization to create regression tests..
Thanks and good job