Changes between Version 63 and Version 64 of DeveloperGuidelines/Testing/Selenium
- Timestamp:
- 11/20/13 16:43:44 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Testing/Selenium
v63 v64 26 26 == Running / Executing Automated test scripts: == 27 27 28 In your {{{models/000_config.py}}}, uncomment the lines that disable confirmation popups: 28 In your {{{models/000_config.py}}}, make these changes: 29 30 Uuncomment the lines that disable confirmation popups: 29 31 {{{ 30 32 # Should user be prompted to save before navigating away? … … 40 42 }}} 41 43 42 Then you will need to re-populate: delete the contents of databases/* , errors/* and sessions/* 43 44 {{{ 45 cd web2py/applications/eden 44 Find the settings.base.template line and change it to: 45 {{{ 46 settings.base.template = "IFRC" 47 }}} 48 49 Then you will need to recreate and populate the database with test data, as follows: 50 51 Delete the contents of databases/* , errors/* and sessions/* in your eden directory. 52 53 E.g. for Linux, cd to your eden directory and do: 54 {{{ 46 55 rm databases/* sessions/* errors/* 47 48 # To re-populate 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 56 }}} 57 58 On Windows, use Explorer to delete the contents of the eden\databases, eden\errors, and eden\sessions folders. 59 60 To re-populate the database, for either Linux or Windows (using a command prompt window), cd to the web2py directory, and do: 61 {{{ 57 62 python web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py 58 63 }}} … … 61 66 * IFRC 62 67 * default 63 * SandyRelief68 * !SandyRelief 64 69 * DRMP 65 70 * CRMT … … 76 81 }}} 77 82 78 Note : These tests don't run on Firefox 17 and above. So, if you have your default browser set as Firefox 17 or above, you will have to run them on Chrome. To do so, add {{{ -A --browser=Chrome }}} to the command. 83 Note : These tests don't run on Firefox 17 and above. So, if you have your default browser set as Firefox 17 or above, you will have to run them on Chrome. To do so, install Chromedriver: http://code.google.com/p/chromedriver/[[br]] 84 Add {{{ -A --browser=Chrome }}} to the command. 79 85 So, it becomes 80 86 {{{