Ticket #277 : Selenium testing for the about page
Updated 3 months, 3 weeks ago
| Guillaume Simard | Reviewers | ||
| Basie-Dev | |||
| None | Basie SVN | ||
Test for about page (Ticket # 277 https://basieproject.org/stable/basie/basie/tickets/277/ ) This Selenium test requires you to have at least a project on your basie server. I recommend using the random tool generator.
Ran the tests on various configurations. Running the test should be as simple as running " python test_about.py "
Review request changed
Updated 4 months, 3 weeks ago (March 8th, 2010, 11:30 a.m.)
-
Test for about page (Ticket # 277 https://basieproject.org/stable/basie/basie/tickets/277/ ) This Selenium tests require you to have at least a project on your basie server. I recommend running the random tool generator.
Test for about page (Ticket # 277 https://basieproject.org/stable/basie/basie/tickets/277/ ) This Selenium test requires you to have at least a project on your basie server. I recommend using the random tool generator.
Posted 4 months, 2 weeks ago (March 11th, 2010, 5:23 a.m.)
>This Selenium tests require you to have at least a project on your basie server... Question: is there a way to run selenium against a test database, like django does for all of the non-selenium tests, with a predefined fixture set? Google gave me that http://pypi.python.org/pypi/django-selenium-test-runner/0.1.0 but there might be other solutions out there.
Review request changed
Updated 4 months, 2 weeks ago (March 11th, 2010, 11:21 a.m.)
-
- added Diff r2
Added "id" to various HTML elements to make sure the tests are robust.
Review request changed
Updated 4 months, 2 weeks ago (March 15th, 2010, 1:04 p.m.)
-
- added Diff r3
Changed the tests so they still work now that the "About" link in the navigation bar is gone. Extracted the timeouts to a constant that you need to define within "seleniumtest.py" ( see the review for wiki test )
I'm having problems easily patching this. Can you update this patch to the latest revision?
-
/trunk/apps/about/templates/about/api.html (Diff revision 3) -
can we use quotation marks instead of apostrophes?
-
/trunk/apps/selenium/tests/test_about.py (Diff revision 3) -
why are we testing that these headings exist? why would they not exist? and what if we get rid of them?
Posted 4 months, 1 week ago (March 23rd, 2010, 4:54 a.m.)
That was not supposed to be a "Ship it!" ;)
Review request changed
Updated 3 months, 3 weeks ago (April 6th, 2010, 12:42 p.m.)
-
- added Diff r4
Took into consideration Chris' comments : - Used double quotes instead of single quotes within html pages. - Tested for the presence of h2[@id='basie-api'] for test_about_API instead of testing if several h3 exist.
Posted 3 months, 3 weeks ago (April 6th, 2010, 2:48 p.m.)
-
/trunk/apps/about/templates/about/api.html (Diff revision 4) -
we don't need IDs on these <h3>s anymore
-
/trunk/apps/about/templates/about/basie.html (Diff revision 4) -
we don't need this, since about/basie.html has since been deleted
-
/trunk/apps/selenium/tests/test_about.py (Diff revision 4) -
Comments should be full sentences. Period.
-
/trunk/apps/selenium/tests/test_about.py (Diff revision 4) -
why should we test the URL of the MIT license link? for consistency's sake, can we simply check for the <h2> instead? :)
Review request changed
Updated 3 months, 3 weeks ago (April 6th, 2010, 6:55 p.m.)
-
- added Diff r5
Took into consideration Chris' comments.
