You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a suite of protractor specs where the majority test spec are 'regular' (non-perf). Only one spec uses protractor-perf. Nevertheless I use the protractor-perf runner for the entire suite because I don't want to switch between two different runners and I don't want to maintain two separate jasmine/protractor config files.
The Performance spec runs successfully on its own and runs successfully when it's the first spec that runs. However, when it's the last spec it fails with the following error: Message: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. Stack: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at [object Object]._onTimeout (c:\kindl\test\node_modules\protractor-perf\node_modules\protractor\node_modules\jasmine\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:1812:23)
The browser just sits and hangs. At the moment I'm working around the issue by simple putting the Perf spec as the first spec in the suite. But I would like to have a proper solution.
Thanks for your help,
Stoil
The text was updated successfully, but these errors were encountered:
As you can see I've wrapped protractor-perf in my own PerformanceMonitor class which I also use in my 'real' test suite.
The sample fails with an out of memory exception which I've also experienced with the real suite. However, it runs successfully if you make Performance the first spec in the Config.js file. It runs against Angular2 which might be part of the issue.
I'm working on a suite of protractor specs where the majority test spec are 'regular' (non-perf). Only one spec uses protractor-perf. Nevertheless I use the protractor-perf runner for the entire suite because I don't want to switch between two different runners and I don't want to maintain two separate jasmine/protractor config files.
The Performance spec runs successfully on its own and runs successfully when it's the first spec that runs. However, when it's the last spec it fails with the following error:
Message: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. Stack: Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at [object Object]._onTimeout (c:\kindl\test\node_modules\protractor-perf\node_modules\protractor\node_modules\jasmine\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:1812:23)
The browser just sits and hangs. At the moment I'm working around the issue by simple putting the Perf spec as the first spec in the suite. But I would like to have a proper solution.
Thanks for your help,
Stoil
The text was updated successfully, but these errors were encountered: