-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
test times out when running on BTP Launchpad #378
Comments
first of all, thanks for the detailed feedback and context 👍 |
Hi @vobu, https://cswdev.launchpad.cfapps.eu10.hana.ondemand.com/site/csw#TestSampleTSapp-display Please give it a try. |
Does my deployment help? Should I try to automate the deployment so that updates to this repository result in a fresh deployment? |
I am going to investigate the https://webdriver.io/docs/api/webdriver/#switchtoframe function in a wdio |
Hi @gregorwolf could please disable the authentication to your test application. I am getting a captcha which cannot be handled by the wdi5 authentication. |
Wasn't aware of that. Will try. |
Not working neither S-User nor P-User. I get always a redirected to Universal ID with captcha. |
Even when I do a login to SAP ID Service (https://accounts.sap.com/) before I access the SAP Work Zone Standard Edition (Launchpad) I'm getting redirected to SAP Universal ID. I've switched the application now to my custom SAP Identity Authentication and did allow the self registration for the moment. Please give it a try. |
Any update on this feature? One thing i forgot to mention was the sap/ui/test/** dependencies get loaded on the parent window, they would need to be on the child also as that is where the selectors need to work |
made some progress thought id share, the following works,
still get errors with other tests but its a start const { wdi5 } = require("wdio-ui5-service")
const { default: _ui5Service } = require("wdio-ui5-service")
const ui5Service = new _ui5Service()
describe("FE basics", () => {
let FioriElementsFacade
before(async () => {
await wdi5.goTo("#travel-process");
await browser.pause(2000) //wait for the iframe to load
let frame = await browser.$('#application-travel-process');
await browser.switchToFrame(frame)
await browser.pause(1000)
await ui5Service.injectUI5()
FioriElementsFacade = await browser.fe.initialize({
onTheMainPage: {
ListReport: {
appId: "sap.fe.cap.travel",
componentId: "TravelList",
entitySet: "Travel"
}
},
onTheDetailPage: {
ObjectPage: {
appId: "sap.fe.cap.travel",
componentId: "TravelObjectPage",
entitySet: "Travel"
}
},
onTheItemPage: {
ObjectPage: {
appId: "sap.fe.cap.travel",
componentId: "BookingObjectPage",
entitySet: "Booking"
}
},
onTheShell: {
Shell: {}
}
})
})
it("should see the List Report page", async () => {
await FioriElementsFacade.execute((Given, When, Then) => {
Then.onTheMainPage.iSeeThisPage();
})
})
it("should see the Object Page loads and returns to list", async () => {
await FioriElementsFacade.execute((Given, When, Then) => {
When.onTheMainPage.onTable().iPressRow({ Travel: "4,133" })
Then.onTheDetailPage.iSeeThisPage()
// When.onTheShell.iNavigateBack()
})
await browser.execute(() => {
// the child communicates with the parents via messages
sap.ushell.Container.getService("CrossApplicationNavigation").historyBack()
})
await FioriElementsFacade.execute((Given, When, Then) => {
Then.onTheMainPage.iSeeThisPage()
})
})
it("should create a travel request", async () => {
await FioriElementsFacade.execute((Given, When, Then) => {
Then.onTheMainPage.iSeeThisPage(); |
got the typescript app on https://cswdev.launchpad.cfapps.eu10.hana.ondemand.com/site/csw#TestSampleTSapp-display working fine, its not a good example as the navigation is in app and not through the shell if you want to stop that biometric page from loading everytime set the following cookie in wdio.conf.js before: function (capabilities, specs, browser) {
browser.setCookies({
name: 'skipPasswordlessAuthnDeviceConfig',
value: 'true',
domain: 'aqywyhweh.accounts.ondemand.com'
})
} |
thanks for all the exploratory work you've been doing! 👍 |
I've created a sflight branch cf-deploy-with-sqlite and deployed to https://cswdev.launchpad.cfapps.eu10.hana.ondemand.com/site/csw#travel-process. Hope that will help @jasper07. |
cheers @gregorwolf I am getting a forbidden error when trying to create a trip I think i need the processor role are you able to assign my user patterjo_at_gmail.com with that role? |
Done. |
cheers https://github.com/jasper07/wdi5btplaunchpad ill keep looking into the memory leak issues, |
thanks @jasper07 and @gregorwolf for all the (prep) work and analysis you put into this so far! |
we've made significant progress thanks to you two's @jasper07 and @gregorwolf work here! |
@vobu completely fine for me. It's running on my BTP Free Tier. So as long as SAP does not change anything here I can provide it. |
Describe the bug
Trying to do end to end tests on BTP Launchpad.
Tests work fine running on a Local fiorilaunchpad.html, but when i point the baseUrl to my BTP Launchpad, it authenticates ok and the goto semantic link works fine, the test however times out on the first test
HTML5 repo apps run in an Iframe, I tried to switch the browser to the iFrame before WDI5FE.initialize and before the selectors didnt work
To Reproduce
Steps to reproduce the behavior:
Expected behavior
expect the tests to behave the same
Logs/Console Output
Seeing the page 'sap.fe.cap.travel::TravelList' - FAILURE Opa timeout after 15 seconds This is what Opa logged: Found 0 blocking out of 948 tracked timeouts - sap.ui.test.autowaiter._timeoutWaiter#hasPending AutoWaiter syncpoint - sap.ui.test.autowaiter._autoWaiter Found no control with the global ID 'sap.fe.cap.travel::TravelList' - sap.ui.test.Opa5 Matchers found no controls so check function will be skipped
The text was updated successfully, but these errors were encountered: