Skip to content

Barcodes/QR Codes

Overview

Worksoft SaaS portal allows you to automate the Barcodes/QR Codes which are within your AUT. This way you can automate the barcode/QR Code by storing the value of the respective image and verifying it with the plain text.

Below are the supported formats in the Worksoft SaaS application:
1D Product1D industrial2D
UPC-ACode 39QR Code
UPC-ECode 93Data Matrix
EAN-8Code 128Aztec (beta)
EAN-13CodabarPDF 417 (beta)
ITFMaxiCode
RSS-14
RSS-Expanded
Commands to automate the Barcodes/QR Codes are mentioned below along with their purpose.
Command Purpose
assertQRCodeFromBase64

This command reads the src attribute of the given locator and decodes the barcode/QR code. It asserts the decoded value of the image according to the specified locator

To use this command the locator should have the src attribute with the base64 content of the barcode/QR Code. The value that has to be verified should be a plain text. The execution gets aborted if this command fails.

assertQRCodeFromString

This command reads the src attribute of the given locator and decodes the barcode/QR code. It asserts the decoded value of the image according to the specified locator.

This command gets the image URL of the locator present in the src attribute. The execution gets aborted if this command fails. To use this command, the locator should have the src attribute with the URL of the barcode/QR Code. The value that has to be verified should be a plain text.

storeQRCodeFromBase64 This command reads the src attribute of the given locator and decodes the barcode/QR code. It stores the decoded value of the image in a variable and this variable can be called whenever required.

To use this command the locator should have the src attribute with the base64 content of the barcode/QR Code.

storeQRCodeFromString This command reads the src attribute of the given locator and decodes the barcode/QR code. It verifies the decoded value of the image according to the specified locator.

To use this command the locator should have the src attribute with the base64 content of the barcode/QR Code. The value that has to be verified should be a plain text.

verifyQRCodeFromBase64 This command reads the src attribute of the given locator and decodes the barcode/QR code. It verifies the decoded value of the image according to the specified locator.

To use this command the locator should have the src attribute with the base64 content of the barcode/QR Code. The value that has to be verified should be a plain text.

verifyQRCodeFromString This command reads the src attribute of the given locator and decodes the barcode/QR code. It verifies the decoded value of the image according to the specified locator.

To use this command, the locator should have the src attribute with the URL of the barcode/QR Code. The value that has to be verified should be a plain text.

Feedback and Knowledge Base