Skip to the main content.

2 min read

Test automation for mobile payment system for rail services

Branche

Railway

Hintergrund

Die App soll den Service im Zug durch bargeldloses Bezahlen verbessern und erfordert deshalb Offline-Funktionalität.

Herausforderung

Die Tests waren schwer automatisierbar, da die Applikation unzureichende Daten für das Google UIAutomator2 Interface lieferte. Flexibilität und Stabilität der Tests waren essenziell.

Leistung

Wir entwickelten ein Testframework, bestehend aus Xray, Gherkin/Cucumber, Selenium, Appium, Maven, Jenkins und einem OCR-Tool, das mittels der Google UIAutomator2 API für Android die Applikation ansteuern konnte und setzten vollumfängliche Tests um. Das Reporting erfolgte automatisiert via REST API in Jira Xray.

Benefit

Der entwickelte Testautomat reduzierte den Testaufwand und steigerte die Stabilität der App. Die Lösung ist flexibel erweiterbar. Die Kunden können sich nun auf reibungsloses, bargeldloses Zahlen am Platz verlassen.

show me a moblie checkout device hold by a good dressed employee on a german train checkeing out anouther person from behind no hands

Mobile payment processing in train transportation is complex

Smooth payment processing is essential for gastronomic services in the compartment. The tested Android app makes it possible to process cashless orders at the seat on the train - even without an Internet connection. Peer-to-peer communication between devices ensures that payments and receipts can be processed offline. The migration to a new app supplier required a thorough review of all interfaces and functions. The limited data availability in the UIAutomator2 interface posed a challenge for automation, so an OCR solution had to be integrated into the framework. A flexible testing approach was just as crucial as a specially developed test framework to ensure continuous quality assurance and adaptations to new requirements.

Objectives and implementation

Automation should not only accompany the migration, but also ensure quality in the long term. To achieve this, we developed a powerful test framework that reduces manual testing and covers various roles and usage scenarios. By using OCR, incorrect or incomplete data could be detected automatically. The combination of Selenium, Appium, Google UIAutomator2 API, Maven, Jenkins, Cucumber/Gherkin and Jira Xray enabled reliable and extensible test automation with automated test documentation. All tests were defined in a comprehensible syntax to optimize collaboration between business departments and IT teams.

Structure of the test automaton

The developed test automaton controls the application via an automated framework. Test cases are defined in Gherkin via Jira Xray, which are then started by Jenkins or Maven and executed via the test automaton. This uses Selenium and Appium to interact with the user interface, while OCR is used to capture missing data or data that is difficult to read. The Google UIAutomator2 API enables precise control of the app functions, even under varying conditions. All test results are recorded in a structured manner, documented with screenshots and logs and automatically fed back to Jira to ensure seamless tracking and continuous optimization.

Significant added value through good automation

The automated test solution significantly reduced the manual testing effort and increased the stability of the app. Early error detection in automated regression tests now minimizes potential problems before they could affect operations. The framework developed is easy to maintain, flexible and scalable so that future adaptations can be integrated efficiently. The clear definition of test cases and structured documentation also facilitate collaboration and maintenance.

Reliable test automation - reliable service

This project shows how targeted test automation can solve demanding challenges in mobile payment processing. The combination of widely available technologies and a well thought-out automation strategy ensures long-term stability and efficiency. The mobile checkout solution is now well prepared for future developments and offers passengers a convenient and reliable service.

 

IT quality assurance in the mobility sector is one of our core competencies.
We look forward to an exchange.

Case Studies
Testing a fintech payment platform

Testing a fintech payment platform

In the fintech sector, a company developed a mobile payment platform that enables banking transactions via a contact list - protected by PIN and with...

Mehr lesen
Field test of automotive navi route calculations

Field test of automotive navi route calculations

Effective navigation testing under real conditions To ensure reliable navigation, defined routes are tested and live data such as traffic jams or...

Mehr lesen
Testing an encrypted iOS messaging app

Testing an encrypted iOS messaging app

An application for highly secure communication A software development company developed an encrypted iOS messaging app that was specially designed...

Mehr lesen