Tag Info

Hot answers tagged


Create function AdminLogin Create into each test class method SetUp (doc) Call admin_login by SetUp Looks like: protected function setUp() { AdminLogin(); } This method calls before each test into test class Good luck!


Split your long testcase into two -- one testcase does the stuff before the wait and returns a passing status if it was able to do start the process successfully. The second half of your original testcase runs as a separate testcase that you run at the end of your suite For example, if the test is "click the 'submit order' button and verify an email was ...


public function testItemClick() { $this->url($this->pageUrl); sleep(2); $element = $this->byCssSelector('blabla'); $this->moveto($element); $this->click(PHPUnit_Extensions_Selenium2TestCase_SessionCommand_Click::RIGHT); $this->assertStringStartsWith(... }


Solution is here test: override: - case $CIRCLE_NODE_INDEX in 0) [Your action in first container] ;; 1) [Your action in second container] ;; esac: parallel: true

Only top voted, non community-wiki answers of a minimum length are eligible