Changes between Version 13 and Version 14 of DeveloperGuidelines/Testing/EdenTest
- Timestamp:
- 08/10/14 12:24:01 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Testing/EdenTest
v13 v14 126 126 === Running !EdenTest === 127 127 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. 129 129 130 130 The 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. … … 138 138 __'''Some common usages'''__ 139 139 140 [Assuming the current working directory is /tests]140 [Assuming the current working directory is the location of web2py] 141 141 142 142 * Run all the testsuites 143 143 {{{ 144 pybot implementation/testsuites 144 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py #no argument 145 ython web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A testsuites #testsuites folder as argument 145 146 }}} 146 147 This will run all the testsuites found under the testsuites folder. 147 148 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 149 150 {{{ 150 py bot implementation/testsuites/hrm/human_resource.txt151 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A hrm 151 152 }}} 152 153 * Change the execution speed of selenium 153 154 {{{ 154 py bot --variable DELAY:10 implementation/testsuites155 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A hrm --variable DELAY:10 155 156 }}} 156 157 … … 158 159 * Run a specific testcase 159 160 {{{ 160 py bot -t Create_Organisation implementation/testsuites161 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A org -t Create_Organisation 161 162 }}} 162 163 `-t` flag is used to select the testcase. … … 164 165 * Run a specific testsuite 165 166 {{{ 166 py bot -s project_project implementation/testsuites167 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A hrm 167 168 }}} 168 `-s` flag is used to select the testsuite.169 `-s` flag is disabled in !EdenTest 169 170 170 171 * Change the output directory 171 172 {{{ 172 py bot -d [path to the directory] implementation/testsuites173 python web2py.py --no-banner -M -S eden -R applications/eden/tests/edentest_runner.py -A hrm -d [path to the directory] 173 174 }}} 174 175