scan - Scan Barcode

Scan a barcode using USB-attached barcode scanner.

Usage:

- command: scan <format>
  [extractKey: <key>]
  [retry: <retryCount>]

Argument

Description

format

Format of code to scan

key

Key in which to store the barcode value (optional)

retryCount

Number of times to retry the test step (optional)

Supported format values:

format

Description

ANY

Any barcode

%MAC_ADDRESS%

48-bit MAC address (XX:XX:XX:XX:XX:XX)

title: Scan serial number
suite:
- steps:
  - command: scan ANY
    extractKey: MY_BARCODE
  - command: serial set %MY_BARCODE%