Changes between Version 11 and Version 12 of QA
- Timestamp:
- 09/21/14 10:24:36 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QA
v11 v12 15 15 == Automated Tests == 16 16 17 18 === EdenTest === 19 [wiki:/DeveloperGuidelines/Testing/EdenTest EdenTest] is a Robot Framework based test framework used for automated testing in Sahana Eden. It is located in the eden codebase under directory '''eden/tests'''. 20 21 Before running these tests, see [wiki:/DeveloperGuidelines/Testing/EdenTest#Installationguidelines setup instructions] for installation and setup. Then to run the whole test suite: 22 {{{ 23 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A testsuites 24 }}} 25 26 17 27 === Smoke Tests === 18 Smoke Tests click through on every link within Sahana Eden and can be used to check for errors on pages and broken links. They are a light-weight approach to detecting basic errors, however they do not test form submission or any interaction. 19 To run the Smoke Tests: 28 Smoke Tests click through on every link within Sahana Eden and can be used to check for errors on pages and broken links. They are a light-weight approach to detecting basic errors, however they do not test form submission or any interaction. They are run using EdenTest 29 30 To run the Smoke Tests 20 31 {{{ 21 python web2py.py - S eden -M -R applications/eden/modules/tests/suite.py -A --suite smoke --force-debug --link-depth 16 -V 332 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A smoke_tests -o NONE -l NONE 22 33 }}} 23 ''Add details on the dependancies for these'' 34 Before running smoke tests, check [wiki:DeveloperGuidelines/Testing/EdenTest/WriteTestcase/Advanced#SmokeTests Smoke Tests] for additional options. 24 35 25 === Selenium Tests ===26 Selenium Tests use the [http://seleniumhq.org/docs/03_webdriver.jsp Selenium WebDriver] to simulate user interactions within a browser. They are very thorough as they test interactions in the entire Sahana Eden stack including JS, but can also be fragile (detect false negatives).27 To run all the Selenium Tests:28 {{{29 python web2py.py -S eden -M -R applications/eden/modules/tests/suite.py30 }}}31 See: [wiki:DeveloperGuidelines/Testing/Selenium Automated Tests - Selenium] for more details32 36 33 37 === Unit Tests ===