QA/Execution/Web Testing/SUMO/Selenium
From MozillaWiki
< QA | Execution | Web Testing | SUMO
Overview: This aims to help facilitate both QA and Development in running and writing Selenium-based testcases to help better-test SUMO.
Testcase location
http://viewvc.svn.mozilla.org/vc/projects/sumo/tests/frontend/
How to run these tests *individually* using the Selenium IDE
1. Download the Selenium IDE from https://addons.mozilla.org/en-US/firefox/addon/2079
2. Install it
3. Launch Selenium (Tools->Selenium IDE), and choose File | Open
4. Give it the individual test location and choose OK/Open>
5. Ensure the base URL is appropriate (staging vs. production) -- the testcases should all be written as relative, so they'll work in both
6. Click Play!
Contents
Testcases needed
- SHOWFOR functionality
- In conjunction with style_mode=inproduct
- Breadcrumbs
- Turning on/off the Captcha
- So we can better test submitting article feedback/new forum posts while logged out
Current test coverage
PHP-based tests
Selenese-based tests
- Ask a question
- Page title
- Static text
- Links
- Navigation block
- How to Contribute
- Page title
- Static text
- Links
- Navigation block
- Knowledge Base
- Page title
- Static text
- Links
- Navigation block
- Other Firefox Support
- Page title
- Static text
- Links
- Navigation block
- tiki-searchresults.html
- Page title
- Static text
- Links
- Navigation block
- Tests that "firefox" as a search term persists in the sidebar search
- Verify submitting a new question
- Note that this test case will fail as recaptcha is required
- Register as a new user
- Note that this test case will fail as recaptcha is required
- Add a new article as a logged-in user
- This test case is blocked(fails) due to the timeout issue
- Edit an article as a logged-in user
- This test case is blocked(fails) due to the timeout issue
- Translate an article as a logged-in user
- This test case is blocked(fails) due to the timeout issue