Changes between Version 15 and Version 16 of DeveloperGuidelines/Testing/Selenium
- Timestamp:
- 05/31/12 13:25:16 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Testing/Selenium
v15 v16 46 46 deployment_settings.base.prepopulate = ["IFRC_Train"] 47 47 }}} 48 Run the whole test suite for the Eden application:[[BR]]49 48 49 Run the whole test suite for the Eden application: 50 50 {{{ 51 51 cd web2py … … 53 53 }}} 54 54 55 Run a single test script for the Eden application:[[BR]] 56 55 Run a single test script for the Eden application: 57 56 {{{ 58 57 cd web2py 59 58 python web2py.py -S eden -M -R applications/eden/modules/tests/suite.py -A mytestfunction 60 59 }}} 61 [[BR]]62 60 63 61 == Writing / Creating your own test scripts:== 64 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. [[BR]]62 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. 65 63 66 Use the Selenium IDE to generate python code s. [[BR]]64 Use the Selenium IDE to generate python code. 67 65 68 66 An example has been created: {{{eden/modules/tests/hrm/hrm001.py}}} … … 71 69 72 70 The key is to make tests which are as least fragile as possible through: 73 * State (we should ebable to run individual tests easilty, which check their current state as-required)71 * State (we should be able to run individual tests easilty, which check their current state as-required) 74 72 * Deployment_Settings 75 73 * Localisation