cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Authentication for OPA tests of CAP application

T1mey
Active Participant
1,407

Hello @all,

we want to test a SAP CAP application that uses multiple roles with OPA tests.

The roles / authorizaion influcenes the control visibility and buisness logic.

For the CAP application we've created a profile which allows to login via basic authentication with different users (and roles).

How do we configure the OPA tests to authenticate with that users before running the Journeys?

Accepted Solutions (1)

Accepted Solutions (1)

T1mey
Active Participant
0 Kudos

Found a solution for WDI5 which is working for chrome only.

Not ideal but solves the problem to test the application with different roles.

Nikolai
Newcomer
0 Kudos

Hi Tim,

what is your solution to the problem? I am facing the same problem..

Answers (1)

Answers (1)

T1mey
Active Participant
0 Kudos

Hello Nikolai,

I think, I read that in the meantime it's supported directly... I could be wrong.

We adapted the url which is invoked to "username:password@yoururl.com". This was only working in chrome.

crashmydev
Associate
Associate
0 Kudos

Hi Tim,

is this still working for you? When I try it, I get an error from UI5 stating that it cannot fetch the manifest.json file when the URL includes credentials.

If yes, could you please provide a working example?

Kind regards,

Tim