-
Notifications
You must be signed in to change notification settings - Fork 0
Launcher
Julien Gidel edited this page Jun 4, 2021
·
1 revision
You can use the launcher as in functional tests here
To create the launcher, just instantiate it and add the scenarios you want to run :
$launcher = new Launcher($configFile);
$launcher->add('tables')
->add('alert')
->add('frame')
->add('delayed-element')
->add('slow-loading')
->add('form')
->add('general')
->add('real')
->add('set');You can now run the launcher by using the run() function :
$launcher->run();You now have two options : print the report on console or print the report in file.
To print the report on console, just use the printReport() function :
$launcher->printReport();To print the report in a file, use the function printReportInFile(string $file) function :
$reportFile = __DIR__ . '/reports/report_' . (new DateTime())->format('dmY_His') . '.txt';
$launcher->printReportInfile($reportFile);You need to create the directory before using this function. AutoMate will not create it for you nor return a specific Exception.
AutoMate Wiki - v0.8.0 - This wiki can change at any moment