What makes a good test:

Explain How to Install Selenium IDE

How to write a test case in Selenium IDE

Tips and Tricks

Explain How to Export at Test Suite

Explain How to Run the Test Suite on Other PCs

Here is how

On the Mac:

java -jar selenium-server-standalone-2.9.0.jar -htmlSuite "*firefox /Applications/Firefox7/Firefox.app/Contents/MacOS/firefox-bin" "http://web.mit.edu/sapweb/SF2" "/Applications/Selenium/Tests/SeanTestSuite.html" "/Applications/Selenium/Results/SeanResults.html" -firefoxProfileTemplate "/Users/mberger/Library/Application Support/Firefox/Profiles/1fgwk3mc.Selenium"

Selenium creates its own profile when launching Firefox. At MIT, we need to load a MIT Cert, a User Cert, and a security override because we use MIT certs into that profile before the test will run properly. To do so, you need to run the profile manager:

Firefox.app/Contents/MacOS/firefox -profilemanager

then create a new profile, then note the name of the profile, and the location where Firefox wants to store that file (something very close to "/Users/username/Library/Application Support/Firefox/Profiles/"), then get an MIT Certificate and a User certificate. Then go to the application you will be testing. If it says that the MIT cert is not trusted, click the add Exception button and then the second Add Exception button.

Once you do all that, you can tell Selenium to use that profile when it runs your test by setting the -firefoxProfileTemplate to the full path of the profile, as seen in the example above.

  • No labels