Protractor ,Jasmine timeout issue

后端 未结 6 2222
灰色年华
灰色年华 2021-02-10 02:44

I\'m doing e2e-testing with Protractor and Jasmine. Our application is in Angular.

I have written given getPageTimeout: 500000, allScriptsTimeout: 600

6条回答
  •  [愿得一人]
    2021-02-10 03:13

    Try adding below code, jasmine default time 5 sec. The below code will wait for all test cases to complete it task & working fine for me. jasmine.getEnv().defaultTimeoutInterval =15000;

    onPrepare: function(){
    jasmine.getEnv().defaultTimeoutInterval =your time to set in milli second;
    }
    

提交回复
热议问题