Changes between Version 21 and Version 22 of DeveloperGuidelines/Testing/EdenTest
- Timestamp:
- 01/19/18 14:24:08 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Testing/EdenTest
v21 v22 126 126 === Running !EdenTest === 127 127 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. 129 129 130 130 The 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. … … 142 142 * Run all the testsuites 143 143 {{{ 144 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest _runner.py #no argument145 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest _runner.py -A testsuites #testsuites folder as argument144 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest.py #no argument 145 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest.py -A testsuites #testsuites folder as argument 146 146 }}} 147 147 This will run all the testsuites found under the testsuites folder. … … 149 149 * Run a specific testsuite file. Just give the name of the file present inside the testsuites folder as an argument. eg: hrm 150 150 {{{ 151 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest _runner.py -A hrm151 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest.py -A hrm 152 152 }}} 153 153 * Change the execution speed of selenium 154 154 {{{ 155 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest _runner.py -A hrm --variable DELAY:10155 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest.py -A hrm --variable DELAY:10 156 156 }}} 157 157 … … 159 159 * Run a specific testcase 160 160 {{{ 161 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest _runner.py -A org -t Create_Organisation161 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest.py -A org -t Create_Organisation 162 162 }}} 163 163 `-t` flag is used to select the testcase. … … 165 165 * Run a specific testsuite 166 166 {{{ 167 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest _runner.py -A hrm167 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest.py -A hrm 168 168 }}} 169 169 `-s` flag is disabled in !EdenTest … … 171 171 * Change the output directory 172 172 {{{ 173 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest _runner.py -A hrm -d [path to the directory]173 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest.py -A hrm -d [path to the directory] 174 174 }}} 175 175