Changes between Version 18 and Version 19 of DeveloperGuidelines/Testing/Selenium
- Timestamp:
- 05/31/12 13:28:36 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Testing/Selenium
v18 v19 9 9 Test-Driven Development is a programming style which says that you 1st write your test cases (from the [BluePrint specs]) & then proceed to make them pass. 10 10 11 == Introduction == 11 12 Selenium provides the ability to test Sahana Eden as users see it - namely through a web browser. This therefore does end-to-end Functional Testing, however it can also be used as Unit Testing 12 13 … … 14 15 * http://seleniumhq.org/docs/appendix_migrating_from_rc_to_webdriver.html#why-migrate-to-webdriver 15 16 16 TestCases - List of things to test 17 == How does it work? == 18 The system relies on Selenium web driver and IDE to execute and/or create automated test scripts. 19 Selenium provides the ability to test Sahana Eden as users see it - namely through a web browser. This therefore does end-to-end Functional Testing, however it can also be sued as Unit Testing. 20 21 These tests are stored in {{{eden/modules/tests}}} 17 The tests are stored in {{{eden/modules/tests}}} 22 18 23 19 == Installation of the testing environment in your machine == 20 In order to execute the automated Selenium powered test scripts, you must install the Selenium Web Drivers into Python. 24 21 25 In order to execute the automated Selenium powered test scripts, you must install the Selenium Web Drivers into Python26 22 Download latest Selenium package: 27 23 1. http://pypi.python.org/packages/source/s/selenium/selenium-2.20.0.tar.gz … … 62 58 We aim to make it as easy as possible to write additional tests, which can easily be plugged into the testing suite or/and executed separately. 63 59 64 Use the Selenium IDE to generate python code.65 66 60 An example has been created: {{{eden/modules/tests/hrm/hrm001.py}}} 67 61 … … 88 82 89 83 == See Also == 90 * TestCases - User Testing -List of things to test84 * TestCases - List of things to test 91 85 * http://code.google.com/p/selenium/wiki/PageObjects - Style suggestion 92 86