3

I am new for Protractor and writing a code. when I ran my code my desired actions are performed with an error

Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL

And my test was failed due to this.

I have applied timeout command to handle

import 'jasmine'; 
jasmine.DEFAULT_TIMEOUT_INTERVAL= 50000;

however same message is coming every time and my test is failing.

antzshrek
  • 9,276
  • 5
  • 26
  • 43
vijay kumar
  • 61
  • 2
  • 12
  • [Research here](http://www.protractortest.org/#/timeouts) – Ernst Zwingli Nov 22 '17 at 12:31
  • Hi have Tried putting timeout command in my config file. jasmineNodeOpts: { defaultTimeoutInterval: 9000000 }, and i my script also used browser.driver.sleep(10000) but facing same error. Please suggest me the any solution for his – vijay kumar Nov 24 '17 at 10:53
  • please update your question with the test-spec you're executing, when you get the timeout. It's either a problem of your spec-code or of the page under test. Extending the timeout almost never is the solution. ... more likely it's a code issue. – Ernst Zwingli Nov 24 '17 at 10:57

2 Answers2

0

Try putting your timeout command in your config file like this.

jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 600000 }

Shrinidhi
  • 1
  • 5
0

It's most probably related to the page you're testing.

Update your question with additional information, if you couldn't find your answer in above two links.

Ernst Zwingli
  • 1,402
  • 1
  • 8
  • 24