QR code scan in Tests
Mobitru provides a feature for emulating QR code scanning, enabling you to test applications that rely on QR code-based workflows, such as login, payment, or verification processes. This functionality supports two flexible ways to enable emulation and fully automates the process via API. You can integrate QR code scanning emulation seamlessly into your Appium tests, helping you create efficient and reliable test automation workflows.
How to get started:
- Get the prepared App installed on a Device
There are two ways to enable the QR code scanning for the App, giving you flexibility based on your setup and needs:- Install an App with Image Injection:
Mobitru automatically performs image injection during the app installation process. This enables QR code scanning without requiring any changes to your app’s code. It’s a simple and effective way to activate the feature with minimal setup on your side. - Add our Framework to the App Code:
Alternatively, you can integrate our QR code scanning framework directly into your app’s code. This approach provides tight integration with your application, offering more granular control over how biometric emulation behaves during test execution.
Also, it’s not necessary to enable Image Injection during the App installation.
- Install an App with Image Injection:
- Control the QR code scan via API
Use our API to automatically control the QR code scan emulation during your test execution.
For additional details, refer to our documentation covering the test execution workflow for different programming languages:
Run Appium tests with QR code scan
Learn More:
For detailed guidance on setting up and using QR code scanning, refer to the following documentation: QR/Barcode scanning