You are on page 1of 6

What is OPA5 ?

OPA5 is an API for SAPUI5 controls.


It is used to write automated tests for SAPUI5 applications.
OPA stands for One Page Acceptance Tests.
It is simply Qunit tests for SAPUI5 controls.
We can summarize it as :

Qunit + SAPUI5 = OPA5

2014 SAP SE or an SAP affiliate company. All rights reserved.

Internal

OPA5

Advantages of OPA5:
Quick and easy access to JavaScript functions
Easy access to SAPUI5 elements.
Easy ramp-up as it can be used with any JavaScript unit test framework,
such as QUnit or Jasmine
Feedback within seconds makes it possible to execute tests directly after
a change
Using the same runtime enables debugging
Asynchronicity is handled with polling instead of timeouts, which makes it
faster

2014 SAP SE or an SAP affiliate company. All rights reserved.

Internal

OPA5 Structure Example

2014 SAP SE or an SAP affiliate company. All rights reserved.

Internal

OPA5 Example

2014 SAP SE or an SAP affiliate company. All rights reserved.

Internal

OPA5

Demo

2014 SAP SE or an SAP affiliate company. All rights reserved.

Internal

OPA5

Limitations of OPA5
Screen capturing
Testing across more than one page
Remote test execution
End-to-end tests are not recommended with OPA due to authentication issues and
fragility of test data

2014 SAP SE or an SAP affiliate company. All rights reserved.

Internal

You might also like