Skip to content

Latest commit

 

History

History
53 lines (22 loc) · 2.89 KB

testing-7cdee40.md

File metadata and controls

53 lines (22 loc) · 2.89 KB

Testing

SAPUI5 provides several testing options, like to unit and integration tests and the OData V2 mock server.

Before you start implementing your first test, you should think about how to test the different aspects of your application. The image below shows some examples of testing tools along the agile testing pyramid.

Testing Pyramid

You can use a local test runner, such as Selenium or Karma, that automatically executes all tests whenever a file in the app project has been changed.

OPA5

We recommend OPA5 for integration tests. OPA5 is part of SAPUI5. It is built on top of QUnit and provides good integration with SAPUI5.

wdi5

WebdriverIO (WDIO) is a hugely popular end-to-end testing framework. It can work with any web app but lacks the awareness of the web framework that the application uses. wdi5, which is a WDIO plugin, bridges this gap and provides two key benefits, namely control locators and synchronization with the web framework. wdi5 uses a real browser and interacts with your app the same way a real user would.

Related Information

Tutorial: Testing

Continuous Integration: Ensure Code Quality

Integration Testing with One Page Acceptance Tests (OPA5)

Tutorial: Mock Server

wdi5 Home Page

Selenium Home Page

Karma Home Page

Mock Server