A Jasmine spec timed out. Resetting the WebDriver Control Flow - when redirect to new page

后端 未结 5 1483
轻奢々
轻奢々 2021-02-20 11:23

I\'m beginner in the e2e testing and have a problem. When I do login - I make redirect from login.php to index.php page. But my test is fails with following errors:



        
5条回答
  •  轮回少年
    2021-02-20 11:47

    Jasmine has timeout for each spec i.e. each it in jasmine framework. so if any spec (it) exceeds jasmine spec's default timeout then it fails that spec.

    Solution: To override jasmine spec timeout for one individual spec, pass a third parameter to it: it(description, testFn, timeout_in_millis)

    it('description of test case', function() {
       /*your test 
                   steps
                        here*/
    },120000);//120 seconds timeout for this spec
    

    more information on timeouts is here

提交回复
热议问题