Changes between Version 13 and Version 14 of DeveloperGuidelines/Testing/EdenTest


Ignore:
Timestamp:
08/10/14 12:24:01 (7 years ago)
Author:
Arnav Sharma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Testing/EdenTest

    v13 v14  
    126126=== Running !EdenTest ===
    127127
    128 Robot Framework test cases are executed from the command line. The command used to run the tests is [http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.4#all-command-line-options pybot]. The link redirects to the wiki where the command line arguments are documented. You can also use `pybot --help` for the same.
     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.
    129129
    130130The end result is, by default, an [http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.4#output-file output file] in XML format and an HTML [http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.4#report-file report] and a [http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.8.4#log-file log]. These three files are created in the current working directory by default.
     
    138138__'''Some common usages'''__
    139139
    140 [Assuming the current working directory is /tests]
     140[Assuming the current working directory is the location of web2py]
    141141
    142142* Run all the testsuites
    143143{{{
    144 pybot implementation/testsuites
     144python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py #no argument
     145ython web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A testsuites #testsuites folder as argument
    145146}}}
    146147   This will run all the testsuites found under the testsuites folder.
    147148
    148 * Run a specific testsuite file
     149* Run a specific testsuite file. Just give the name of the file present inside the testsuites folder as an argument. eg: hrm
    149150{{{
    150 pybot implementation/testsuites/hrm/human_resource.txt
     151python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm
    151152}}}
    152153* Change the execution speed of selenium
    153154{{{
    154 pybot --variable DELAY:10 implementation/testsuites
     155python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm --variable DELAY:10
    155156}}}
    156157
     
    158159* Run a specific testcase
    159160{{{
    160 pybot -t Create_Organisation implementation/testsuites
     161python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A org -t Create_Organisation
    161162}}}
    162163   `-t` flag is used to select the testcase.
     
    164165* Run a specific testsuite
    165166{{{
    166 pybot -s project_project implementation/testsuites
     167python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm
    167168}}}
    168   `-s` flag is used to select the testsuite.
     169  `-s` flag is disabled in !EdenTest
    169170
    170171* Change the output directory
    171172{{{
    172 pybot -d [path to the directory] implementation/testsuites
     173python web2py.py --no-banner -M -S eden  -R applications/eden/tests/edentest_runner.py -A hrm -d [path to the directory]
    173174}}}
    174175