Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function parallelRun()
- {
- $url = 'D:/Programas/xampp/htdocs/robo2/tests/jesusApp.json'; // path to JSON file
- $data = file_get_contents($url); // put contents of the file into a variable
- $jesusApp = json_decode($data,true); // decode the JSON
- $numberOfTrainees = $jesusApp["numberOfTrainees"];
- $parallel = $this->taskParallelExec();
- for ($i=1;$i<=$numberOfTrainees;$i++) {
- string $args= "ola";
- $parallel->process(
- $this->taskCodecept() // use built-in Codecept task
- ->suite('acceptance') // run acceptance tests
- ->group("paracept_$i") // for all paracept_* groups
- ->arg(string $args)
- ->xml("tests/_log/result_$i.xml") // save XML results
- );
- }
- return $parallel->run();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement