function: startTest - egroise/uxtest GitHub Wiki

###Usage

startTest([reportPath][,options])

Must be called before any other call to initialize the test framework.

If you just provide a name (like "my test") the reports will be pushed into a folder on your desktop having this name. If you provide a full path the report will be pushed into this folder.

If the target folder does not exist, you will be prompt by a popup window to confirm it's creation.

You can use the SHOW_REPORT option to show the report in your web browser when endTest will be called. It's equivalent of calling of showTestReport just after your endTest call.

The BATCHMODE option will skip all popup window asking for end user input, selecting the positive action:

  • the folder confirmation popup window will be not displayed and creation will be confirmed.
  • the question calls will return True without displaying the question popup window. It's a 'silent mode' ensuring that no popup windows will block your test when run in a batch.

###Parameters

  • reportPath - Folder name or full path
  • options - string containing options separated by a space or a comma. Available options are: BATCHMODE, SHOW_REPORT, DEBUG

###Options

  • BATCHMODE : The test runs in silent mode (no popups, no questions). Used for launching test in a batch.
  • SHOW_REPORT : The report will be showed at the test end. Equivalent to showTestReport.
  • DEBUG : Debug information is added to log file and output during test run.

###Examples

startTest("my test")

...will created a "my test" folder on your desktop (if does not exist) that will contain the report.

startTest("c:\\TestReport","BATCHMODE SHOWREPORT")

...will create a "TestReport" folder under c:, the report will be displayed at test end, the batch mode will be enabled.