Skip to content

Issue to run script karma in ex6 #18

@MPMela

Description

@MPMela

Hi,

in ex6, when running "npm run karma" one get the following error message and the OPA test fails:
2024-06-26 19:52:58.544000 Unable to load the component with the name: com.myorg.myapp
Opa timeout after 15 seconds
This is what Opa logged:
Executing OPA check function on controls null - sap.ui.test.Opa5
Check function is:
function() {
if (!mPromiseState.started) {
mPromiseState.started = true;
oPromise.then(function () {
mPromiseState.done = true;
}, function (error) {
mPromiseState.errorMessage = "Error while waiting for promise scheduled on flow" +
(error ? ", details: " + getErrorMessage(error) : "");
});
}
if (mPromiseState.errorMessage) {
throw new Error(mPromiseState.errorMessage);
} else {
return !!mPromiseState.done;
}
} - sap.ui.test.Opa5
Result of check function is: false - sap.ui.test.Opa5
Callstack:
at MainPage._schedulePromiseOnFlow (http://localhost:9876/base/webapp/resources/sap/ui/test/Opa.js:682:16)
at oStartComponentOptions.success (http://localhost:9876/base/webapp/resources/sap/ui/test/Opa5.js:201:42)
at oOptionsPassedToOpa.success (http://localhost:9876/base/webapp/resources/sap/ui/test/Opa5.js:852:24)
at MainPage. (http://localhost:9876/base/webapp/resources/sap/ui/test/Opa.js:612:24)
at opaCheck (http://localhost:9876/base/webapp/resources/sap/ui/test/Opa.js:54:18)
at internalWait (http://localhost:9876/base/webapp/resources/sap/ui/test/Opa.js:48:3)
at http://localhost:9876/base/webapp/resources/sap/ui/test/Opa.js:103:4
Callstack:
at MainPage.iStartMyUIComponent (http://localhost:9876/base/webapp/resources/sap/ui/test/Opa5.js:205:9)
at Object. (http://localhost:9876/base/webapp/test/integration/HelloJourney.js:12:19)
at Object. (http://localhost:9876/base/webapp/resources/sap/ui/test/opaQunit.js:239:21)
at runTest (http://localhost:9876/base/webapp/resources/sap/ui/thirdparty/qunit-2.js:1457:30)
at Test.run (http://localhost:9876/base/webapp/resources/sap/ui/thirdparty/qunit-2.js:1443:6)
at http://localhost:9876/base/webapp/resources/sap/ui/thirdparty/qunit-2.js:1635:12
at Object.advance (http://localhost:9876/base/webapp/resources/sap/ui/thirdparty/qunit-2.js:1120:26) - Opa sap.ui.test.Opa

Please let me know in case you are able to solve tjis.
Thanks and regards,
Marie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions