Changes between Version 63 and Version 64 of DeveloperGuidelines/Testing/Selenium


Ignore:
Timestamp:
11/20/13 16:43:44 (8 years ago)
Author:
Pat Tressel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Testing/Selenium

    v63 v64  
    2626== Running / Executing Automated test scripts: ==
    2727
    28 In your {{{models/000_config.py}}}, uncomment the lines that disable confirmation popups:
     28In your {{{models/000_config.py}}}, make these changes:
     29
     30Uuncomment the lines that disable confirmation popups:
    2931{{{
    3032# Should user be prompted to save before navigating away?
     
    4042}}}
    4143
    42 Then you will need to re-populate: delete the contents of databases/* , errors/* and sessions/*
    43 
    44 {{{
    45 cd web2py/applications/eden
     44Find the settings.base.template line and change it to:
     45{{{
     46settings.base.template = "IFRC"
     47}}}
     48
     49Then you will need to recreate and populate the database with test data, as follows:
     50
     51Delete the contents of databases/* , errors/* and sessions/* in your eden directory.
     52
     53E.g. for Linux, cd to your eden directory and do:
     54{{{
    4655rm 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
     58On Windows, use Explorer to delete the contents of the eden\databases, eden\errors, and eden\sessions folders.
     59
     60To re-populate the database, for either Linux or Windows (using a command prompt window), cd to the web2py directory, and do:
     61{{{
    5762python web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py
    5863}}}
     
    6166* IFRC
    6267* default
    63 * SandyRelief
     68* !SandyRelief
    6469* DRMP
    6570* CRMT
     
    7681}}}
    7782
    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.
     83Note : 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]]
     84Add {{{ -A --browser=Chrome }}} to the command.
    7985So, it becomes
    8086{{{