QA/Execution/Web Testing/SUMO/Selenium: Difference between revisions
< QA | Execution | Web Testing | SUMO
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (34 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
Overview: This aims to help facilitate both QA and Development in running and writing Selenium-based testcases to help better-test SUMO. | |||
Testcase location | Testcase location | ||
[http://viewvc.svn.mozilla.org/vc/projects/sumo/tests/frontend/ http://viewvc.svn.mozilla.org/vc/projects/sumo/tests/frontend/]<p> | |||
How to run these tests '''*individually*''' using the Selenium IDE: | How to run these tests '''*individually*''' using the Selenium IDE<br> | ||
1. Download the Selenium IDE from [https://addons.mozilla.org/en-US/firefox/addon/2079 https://addons.mozilla.org/en-US/firefox/addon/2079]<br> | |||
2. Install it<br> | |||
3. Launch Selenium (Tools->Selenium IDE), and choose File | Open<br> | |||
4. Give it the individual test location and choose OK/Open><br> | |||
5. Ensure the base URL is appropriate (staging vs. production) -- the testcases should all be written as relative, so they'll work in both<br> | |||
6. Click Play! | |||
= 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== | |||
[https://wiki.mozilla.org/QA/Execution/Web_Testing/SUMO/Selenium/htaccess htacess script] | |||
==Selenese-based tests== | |||
===Anonymous user related functionality=== | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/ask-a-question.html?revision=24088 Ask a question] | |||
** Page title | |||
** Static text | |||
** Links | |||
** Navigation block | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/how-to-contribute.html?revision=24088 How to Contribute] | |||
** Page title | |||
** Static text | |||
** Links | |||
** Navigation block | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/kb-static.html?revision=24088 Knowledge Base] | |||
** Page title | |||
** Static text | |||
** Links | |||
** Navigation block | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/other-firefox-support.html?revision=24088 Other Firefox Support] | |||
** Page title | |||
** Static text | |||
** Links | |||
** Navigation block | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/tiki-searchresults.html?revision=24088 tiki-searchresults.html] | |||
** Page title | |||
** Static text | |||
** Links | |||
** Navigation block | |||
** Tests that "firefox" as a search term persists in the sidebar search | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_CSAT_NTF_no.html?revision=24133 Answer "no" in CSAT poll for 'New to Firefox' article] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_CSAT_NTF_yes.html?revision=24133 Answer "yes" in CSAT poll for 'New to Firefox' article] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_CSAT_popular_article_yes.html?revision=24133 Answer "yes" in CSAT poll for 'Popular Support Article' article] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_csat_populararticle-no.html?revision=24133 Answer "no" in CSAT poll for 'Popular Support Article' article] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_clicking%20on%20pagination_chevron.html?revision=24140 Ensure that clicking on pagination chevron loads the appropriate page] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_search%20in%20forum.html?revision=24133 Verify search functionality in Forum] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_search_on_homepage.html?revision=24133 Verify search functionality on Homepage] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/anon_submitting%20a%20new%20question.html?revision=24133 Verify submitting a new question] | |||
**Note that this test case will fail as recaptcha is required | |||
==Functionality related to logged in users== | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/signup_with_timestamp.html?revision=24133 Register as a new user] | |||
**Note that this test case will fail as recaptcha is required | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/login.html?revision=24133 Login as an existing user] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/loggedin_ask%20a%20new%20question.html?revision=24133 Ask a new question as a logged in user] | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/loggedin_add_new_article.html?revision=24133 Add a new article as a logged-in user] | |||
**This test case is blocked(fails) due to the timeout issue | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/loggedin_edit_article.html?revision=24133 Edit an article as a logged-in user] | |||
**This test case is blocked(fails) due to the timeout issue | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/loggedin_translate_existing%20article.html?revision=24133 Translate an article as a logged-in user] | |||
**This test case is blocked(fails) due to the timeout issue | |||
*[http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/tests/frontend/loggedin_search_on_homepage.html?revision=24133 Verify search functionality on homepage as a logged-in user] | |||
Latest revision as of 17:47, 5 January 2010
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!
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