QA/Tools/Selenium/AMO Automation: Difference between revisions
< QA
Jump to navigation
Jump to search
No edit summary |
|||
| Line 10: | Line 10: | ||
## Change the |href=| filename to match each of your testcase filenames | ## Change the |href=| filename to match each of your testcase filenames | ||
# From the command line, issue: java -jar selenium-server.jar -htmlSuite "*firefox" "https://preview.addons.mozilla.org" [1 -- just a footnote, don't enter me!] "/Users/stephend/Desktop/selenium-remote-control-1.0-SNAPSHOT/htmlSuite/testSuite.html" "/Users/stephend/Desktop/results.html" (substituting, of course, the folder name of your RC version and path/to/tests and path/to/results.html) | # From the command line, issue: java -jar selenium-server.jar -htmlSuite "*firefox" "https://preview.addons.mozilla.org" [1 -- just a footnote, don't enter me!] "/Users/stephend/Desktop/selenium-remote-control-1.0-SNAPSHOT/htmlSuite/testSuite.html" "/Users/stephend/Desktop/results.html" (substituting, of course, the folder name of your RC version and path/to/tests and path/to/results.html) | ||
[1] This is the base URL, and what your test scripts will key off of | |||
== Sounds great and all, but what does this do for / how does this help AMO? == | == Sounds great and all, but what does this do for / how does this help AMO? == | ||
| Line 15: | Line 17: | ||
# The idea is to not regress critical things like search, other functionality/page views | # The idea is to not regress critical things like search, other functionality/page views | ||
# Limitation: not a unit test | # Limitation: not a unit test | ||
Revision as of 09:11, 3 July 2008
Selenium IDE/RC and AMO, or: How I Learned to Stop Worrying and Love Automation
Questions? Feedback/suggestions? Email stephend@mozilla.com
How to record and play back Selenium IDE scripts
- Record the script(s) with Selenium IDE
- Be sure to record relative, not absolute paths (i.e. /en-US/firefox/some/AMO/url/, rather than https://preview.addons.mozilla.org/en-US/firefox/some/AMO/url
- Download and install Selenium RC -- literally just unzip it into its own folder
- Create an HTML file called testSuite.html, following the markup in http://wiki.openqa.org/display/SIDE/Automating+Selenium+IDE+tests
- Change the |href=| filename to match each of your testcase filenames
- From the command line, issue: java -jar selenium-server.jar -htmlSuite "*firefox" "https://preview.addons.mozilla.org" [1 -- just a footnote, don't enter me!] "/Users/stephend/Desktop/selenium-remote-control-1.0-SNAPSHOT/htmlSuite/testSuite.html" "/Users/stephend/Desktop/results.html" (substituting, of course, the folder name of your RC version and path/to/tests and path/to/results.html)
[1] This is the base URL, and what your test scripts will key off of
Sounds great and all, but what does this do for / how does this help AMO?
- The idea is to not regress critical things like search, other functionality/page views
- Limitation: not a unit test