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 Product | 1D industrial | 2D |
---|---|---|
UPC-A | Code 39 | QR Code |
UPC-E | Code 93 | Data Matrix |
EAN-8 | Code 128 | Aztec (beta) |
EAN-13 | Codabar | PDF 417 (beta) |
ITF | MaxiCode | |
RSS-14 | ||
RSS-Expanded |
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. |