Changes between Version 59 and Version 60 of DeveloperGuidelines/Testing/Selenium


Ignore:
Timestamp:
07/02/13 18:28:39 (12 years ago)
Author:
somayjain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Testing/Selenium

    v59 v60  
    2525}}}
    2626== Running / Executing Automated test scripts: ==
    27 Before running the Selenium scripts, you should put your database into a known state:
    28 {{{
    29 clean
    30 }}}
    3127
    3228In your {{{models/000_config.py}}}, uncomment the lines that disable confirmation popups:
     
    3834}}}
    3935
    40 For the whole test suite, uncomment the following line in {{{models/000_config.py}}}:
    41 {{{
    42 settings.base.prepopulate = ["IFRC_Train"]
    43 }}}
    44 
    4536Make sure that following settings are enabled in 000_config.py file.
    4637{{{
     
    5748# To re-populate
    5849cd ../../
     50
     51# Change the template to IFRC in models/000_config.py
     52sed -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 -
     55settings.base.template = "IFRC"
     56
    5957python web2py.py -S eden -M -R applications/eden/static/scripts/tools/noop.py
    60 }}}
     58}}}
     59
     60Currently, the tests can run on the following templates -
     61* IFRC
     62* default
     63* SandyRelief
     64* DRMP
     65* CRMT
     66
     67After 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.
    6168
    6269Start the Web2py server at 127.0.0.1:8000. (Selenium will start a captive browser,
    6370which it will direct to contact the server at 127.0.0.1:8000.)
    6471
    65 Run the whole test suite for the Eden application:
     72Run the whole test suite for the current template:
    6673{{{
    6774cd web2py