on 2022 Apr 07 10:09 AM
Hello SAPUI5 Community, Hi vobu our UI5 Testing Guru :-),
I help the developers in a project that uses CAP in the Backend and a mix of SAPUI5 Freestyle and Fiori Elements. For the automated testing we use OPA5. In the beginning when we had about 20 tests that ran for 5 minutes. It increased to 50 tests that take 12 minutes. Right now we have 80 tests and they need 23 minutes. We're already using the mockserver to avoid delays of backend calls.
My question is now what options do we have to improve the performance? Is there a way to i.e. parallelize the tests (which might be an option in the CI/CD pipeline)? Is there a simple way for the developer to run only a specific test in the first place?
Best Regards
Gregor
Request clarification before answering.
Hi, in terms of parallelization of OPA5: not ootb. Only way to achieve that would be to
- launch karma multiple times on separate ports
- split OPA tests in separate suites
- run 1 split on 1 karma instance
In terms of running selected tests only, there's unfortunately no such thing as opaTest.only() or opaOnly() - but there is opaSkip() and opaTodo() in https://sapui5.hana.ondemand.com/resources/sap/ui/test/opaQunit-dbg.js
My recommendation would be to switch to wdi5 here https://js-soft.github.io/wdi5/#/ :
- test suite parallelization ootb
- selectors/locators OPA5-compatible, so few refactoring effort (https://js-soft.github.io/wdi5/#/locators)
Sure, at test-time with wdi5, you have initial start-up effort as a remote-controlled browser-instance is launched; but the option to run tests in parallel in multiple browsers, on multiple OS, will probably soon outweigh the refactoring effort. And this is not even taking into account the additional testing capabilities wdi5 provides (file uploads, network traffic simulation, ...).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hey christoph.marotzke2 - mentioned in https://blogs.sap.com/2023/02/22/whats-cooking-in-the-wdi5-kitchen/, it's been sitting in the todo for too long already and keeps being pushed back 😞
Bottom line: getting the CAP basic auth to work requires some change for the authentication sequence as CAP's basic auth happens "later" than the UI being displayed in the browser.
Given that wdi5 is a community-driven Open Source project: would you or one of your colleagues dare to take a shot at it? Some of the core wdi5 contributors could certainly walk you through the implementation steps required. What do you think?
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.