Changes between Version 59 and Version 60 of DeveloperGuidelines/Testing/Selenium
- Timestamp:
- 07/02/13 18:28:39 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Testing/Selenium
v59 v60 25 25 }}} 26 26 == Running / Executing Automated test scripts: == 27 Before running the Selenium scripts, you should put your database into a known state:28 {{{29 clean30 }}}31 27 32 28 In your {{{models/000_config.py}}}, uncomment the lines that disable confirmation popups: … … 38 34 }}} 39 35 40 For the whole test suite, uncomment the following line in {{{models/000_config.py}}}:41 {{{42 settings.base.prepopulate = ["IFRC_Train"]43 }}}44 45 36 Make sure that following settings are enabled in 000_config.py file. 46 37 {{{ … … 57 48 # To re-populate 58 49 cd ../../ 50 51 # Change the template to IFRC in models/000_config.py 52 sed -i "s/settings.base.template = \".*\"/settings.base.template = \"IFRC\" /" applications/eden/models/000_config.py 53 54 # If the above command does not work(on Mac OS X), then open models/000_config.py and change the following - 55 settings.base.template = "IFRC" 56 59 57 python web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py 60 }}} 58 }}} 59 60 Currently, the tests can run on the following templates - 61 * IFRC 62 * default 63 * SandyRelief 64 * DRMP 65 * CRMT 66 67 After the above re-population of the database, change the template to any of the above templates on which you wish to run the Selenium tests. 61 68 62 69 Start the Web2py server at 127.0.0.1:8000. (Selenium will start a captive browser, 63 70 which it will direct to contact the server at 127.0.0.1:8000.) 64 71 65 Run the whole test suite for the Eden application:72 Run the whole test suite for the current template: 66 73 {{{ 67 74 cd web2py