OPA5 is an API for SAPUI5 controls. It hides asynchronicity and eases access to SAPUI5 elements. This makes OPA especially helpful for testing user interactions, integration with SAPUI5, navigation, and data binding.
Using the same runtime enables debugging
Good SAPUI5 integration
Feedback within seconds makes it possible to execute tests directly after a change
Asynchronicity is handled with polling instead of timeouts, which makes it faster
Enables test-driven development (TDD)
Developers write OPA tests during app development. The test-driven development (TDD) results in less fragile tests, because the app is better isolated and supports less fragile APIs for testing:
It follows the arrange act assert pattern (corresponds to given when then), which improves readability and understanding of the test cases.
It is easy to run on mobile devices as no plugins/apps are needed; you can as easily just run it in the browser.
Saves time for the developer as regressions decrease
In short: Writing acceptance tests with OPA5 is very easy – Give it a try!
Note the following limitations of OPA: