Create Test Cases With The UI5 Test Recorder

Hands up if you are familiar with it: The subject of testing an application. Testing always takes up a lot of time, right? But of course you can’t miss it, because it’s incredibly important. 

The main challenge in writing integration tests is to build a selector. A selector should be easy to read and understand. It is also important that it works reliably and survives UI5 upgrades of minor versions.

That’s why I want to introduce a really cool tool to you today, the… UI5 Test Recorder!

The UI5 Test Recorder is a chrome extension that allows you to efficiently automate testing of SAP UI5 and OpenUI5 applications. Furthermore, the Test Recorder for UI5 provides export functions to uiveri5, testcafe and OPA5.

During recording, the tool provides you with a combination of unique attributes to enable stable test execution.

You can download the UI5 Test Recorder for free here: 

The Creation of a Test Case

I have familiarized myself with this tool and now I like to show you the creation of a short test case. For this test case, I add a new to-do in my app ToDoList.

By the way: If you have a Freemium instance, you definitely got the app too. 🙂
If you don’t have one, get it here for free.

After you have installed the add-on from the Google Chrome Web Store, you can open it directly.

My Tip: It’s easier if you have two screens and open the app on one screen and the tool on the other.

Watch the following video to see how I create a test case that adds a to-do in a to-do-list.

As you have seen, creating test cases with the UI5 Test Recorder in combination with Simplifier Apps is very easy and efficient. You can also run the test case on another instance with the same app if you change the test page accordingly. 

Outlook

The UI5 Test Recorder will be available beginning with version UI5 1.74 and will help us to create OPA5 tests that we need for automated testing. This version including the UI5 Test Recorder will of course be integrated into Simplifier in the next Simplifier Release 5.5, which will be published on July 30, 2020.

Get more details of the UI5 Test Recorder in version UI5 1.74 here.

Leave A Comment