Skip to content
Testsigma DOCS

Test Cases

Image Injection


Testsigma enables you to enhance your testing process by inserting images into your test steps through Image Injection. This feature is handy for scenarios that require interactions with images, QR codes, or visual elements within your application. This documentation will guide you through both methods of injecting images into your test case: manual image upload and camera image injection while recording.


Prerequisites

Before you begin, ensure that you have referred to:


You can manually add image injection to test steps using NLPs. Use the NLP to have the placeholders for test data and replace test data with the ˄ Upload to add QR code images stored in your uploads.

  1. Use the NLP - Scan image from test data from the dropdown list of suggestions that appears in the test step by searching. NLP

  2. Click the test data placeholder to replace it by selecting the ˄ Upload from the Test Data Types dropdown menu. Test Data

  3. Select the file you want to add to the test step from the ˄ Uploads section on the right side of the screen. Uploads

  4. Remember to enable the Camera Image Injection toggle in the Ad-hoc runs page. camera image injection


Simplify the image injection process during the test step recording using the camera image injection feature to insert QR code images directly.

  1. Click the Record button at the screen’s top right corner to bring up the Record Test Steps overlay. Recorder

  2. Choose the Test Lab, Test Machine, and App Source. Version, Device

  3. Enable the toggle button for Camera Image Injection while recording test steps. Camera Image

  4. Start recording the test step by clicking the Record button again. Record

  5. Click the Scan Image (Camera) icon in the right sidebar of the Recording page to upload the QR code image. Select the file you want to add to the test step from the ˄ Uploads overlay. Scan Image