- UxU Home
- How to write testcases for UxU?
- Available assertions in UxU
- Testing Greasemonkey scripts by UxU
- Helper methods for testcases
- How to write testcases with mocks?
- How to control UxU from remote?
Starting UxU's server interface
UxU's server interface starts if you start Firefox (or Thunderbird) with -uxu-start-server option. -uxu-listen-port option is also available to specify listening port, like:
$> firefox -uxu-start-server -uxu-listen-port 12345
Run testcases from command line interface
UxU's Test Runner starts if you specify a testcase file or testcase folder by -uxu-testcase option. Runner runs specified test automatically.
$> firefox -uxu-testcase "./tests"
Results of tests are displayed in the Test Runner. To output results to a text file, use -uxu-log option and specify the path of the new result. If you specify file path of the result, Test Runner will quit Firefox automatically. You'll choose the format of the log file from one of supported types: plain text (.txt), CSV (.csv), TSV (.tsv), or JSON (.json). The format is automatically detected from the extension of the specified log file.
You can specify priorities of whole the testcase by the option -uxu-priority. For example, this line will run any testcases in the folder, and quit Firefox itself after the result is completely exported:
$> firefox -uxu-testcase "./tests" -uxu-log ./result.csv -uxu-priority must
This will help your continuous integration tests.
If you like, results are displayed to the shell, by the fire-test-runner.