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
jasmineMessage: Uncaught exception: Error: Request failed with status code 404: {"errorCode":4043,"message":"Test Item '4463a494-839b-45e2-bfe2-00d03a20aa12' not found. Did you use correct Test Item ID?"}[v5]
#82
Closed
mleonard0826 opened this issue
May 4, 2020
· 3 comments
If I comment out the last three lines, or include them in the jasmine.onComplete() method, and execute npm test, I run into a situation where my test run never finishes according to ReportPortal, and only the passed tests appear in the count on the UI.
Conversely, if I include them as indicated in the block above, I get the Uncaught Exception referenced in the title of this bug.
Using Mac OS X, Chrome.
The text was updated successfully, but these errors were encountered:
Hi @mleonard0826
The method agent.getExitPromise has to be called anyway. You just should change the way you call it.
This error occurred as the launch had finished before the test item started. So you need to wrap jasmine.execute and jasmine.onComplete in Promise and inside of the method then() you should call the agent.getExitPromise method.
As an example
const executeJasmine = function() {
return new Promise( (resolve, reject) => {
jasmine.execute();
jasmine.onComplete(function(status) {
resolve(status);
});
});
};
executeJasmine().then((passed) => {
agent.getExitPromise().then(() => {
console.log('finish work');
});
if(passed) {
console.log('All specs have passed');
}
else {
console.log('At least one spec has failed');
}
});
Also, wish to note the necessity of adding the attachPicturesToLogs with value false to the configuration of the agent. Otherwise, you will catch the error.
I'm running a custom jasmine.js file to execute my tests. It goes as follows:
jasmine.js
package.json
If I comment out the last three lines, or include them in the jasmine.onComplete() method, and execute
npm test
, I run into a situation where my test run never finishes according to ReportPortal, and only the passed tests appear in the count on the UI.Conversely, if I include them as indicated in the block above, I get the Uncaught Exception referenced in the title of this bug.
Using Mac OS X, Chrome.
The text was updated successfully, but these errors were encountered: