Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. public function parallelRun()
  2. {
  3.  
  4. $url = 'D:/Programas/xampp/htdocs/robo2/tests/jesusApp.json'; // path to JSON file
  5. $data = file_get_contents($url); // put contents of the file into a variable
  6. $jesusApp = json_decode($data,true); // decode the JSON
  7.  
  8. $numberOfTrainees = $jesusApp["numberOfTrainees"];
  9.  
  10. $parallel = $this->taskParallelExec();
  11.  
  12. for ($i=1;$i<=$numberOfTrainees;$i++) {
  13.  
  14. string $args= "ola";
  15. $parallel->process(
  16. $this->taskCodecept() // use built-in Codecept task
  17. ->suite('acceptance') // run acceptance tests
  18. ->group("paracept_$i") // for all paracept_* groups
  19. ->arg(string $args)
  20. ->xml("tests/_log/result_$i.xml") // save XML results
  21. );
  22. }
  23.  
  24. return $parallel->run();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement