Changes between Version 21 and Version 22 of DeveloperGuidelines/Testing/EdenTest


Ignore:
Timestamp:
01/19/18 14:24:08 (7 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Testing/EdenTest

    v21 v22  
    126126=== Running !EdenTest ===
    127127
    128 !EdenTest testcases are run from the command line. They are run from inside web2py. The command used to run the tests is `python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A <name of the testsuite>`. All the command line arguments to !EdenTest are given after '''-A''' argument.  Give it '''--help''' to know about more command line options.
     128!EdenTest testcases are run from the command line. They are run from inside web2py. The command used to run the tests is `python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py -A <name of the testsuite>`. All the command line arguments to !EdenTest are given after '''-A''' argument.  Give it '''--help''' to know about more command line options.
    129129
    130130The end result is, by default, an [http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#output-file output file] in XML format and an HTML [http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#report-file report] and a [http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#log-file log]. These three files are created in the current working directory by default.
     
    142142* Run all the testsuites
    143143{{{
    144 python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py #no argument
    145 python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A testsuites #testsuites folder as argument
     144python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py #no argument
     145python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py -A testsuites #testsuites folder as argument
    146146}}}
    147147   This will run all the testsuites found under the testsuites folder.
     
    149149* Run a specific testsuite file. Just give the name of the file present inside the testsuites folder as an argument. eg: hrm
    150150{{{
    151 python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm
     151python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py -A hrm
    152152}}}
    153153* Change the execution speed of selenium
    154154{{{
    155 python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm --variable DELAY:10
     155python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py -A hrm --variable DELAY:10
    156156}}}
    157157
     
    159159* Run a specific testcase
    160160{{{
    161 python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A org -t Create_Organisation
     161python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py -A org -t Create_Organisation
    162162}}}
    163163   `-t` flag is used to select the testcase.
     
    165165* Run a specific testsuite
    166166{{{
    167 python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm
     167python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py -A hrm
    168168}}}
    169169  `-s` flag is disabled in !EdenTest
     
    171171* Change the output directory
    172172{{{
    173 python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm -d [path to the directory]
     173python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest.py -A hrm -d [path to the directory]
    174174}}}
    175175