# US 2022/0066915 A1 · Controlling heterogeneous component-based testing in a portable automation framework with test scripts in both api mode and ui mode

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0066915 A1
- Document ID: US20220066915A1
- Status: Published application
- Kind: A1
- Application number: 17/003,958
- Filed: 2020-08-26
- Published: 2022-03-03
- Earliest claimed: 2020-08-26
- Assignees: Spirent Communications, Inc.
- Applicants: Spirent Communications, Inc.
- Inventors: Andrea HOLT; Saif AHMED; Alireza Akbari MCQUEE
- Web page: https://patentgrep.com/patent/US20220066915A1

## CPC

- G06F 11/3438: {monitoring of user actions (tracking the activity of the user H04L67/535)}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 9/451: Execution arrangements for user interfaces
- G06F 11/3414: {Workload generation, e.g. scripts, playback}
- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3692: {for test results analysis}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Disclosed is a method of efficient testing by selective UI interaction, through test script sections including setup, execution and verification, applied to an AUT that operates in both API mode and UI) mode, including providing a test environment that, when testing the UI mode of the AUT, defaults to ignoring the UI mode during setup and supplying setup values stored in a file directly to an API without rendering or interacting with UI elements in the setup section of the script. The method includes encountering an override directive in the setup section of the test script, which mandates interaction with a specified UI element in the setup section, and responsive to the directive, overriding of the default of ignoring the specified UI element in the setup section, rendering the specified UI element, and applying a bot to interact with and supply setup values from the file to the specified UI element.

## Claims

### Claim 1

A method of efficient testing by selective UI interaction, through test script sections including setup, execution and verification, applied to an application under test (AUT) that operates in both an application programming interface (API) mode and a user interface (UI) mode, including:
providing a test environment that, when testing the UI mode of the AUT, defaults to ignoring the UI mode during setup and to supplying setup values stored in a file directly to an API without rendering or interacting with UI elements in the setup section of the test script;
encountering an override directive in the setup section of the test script, which mandates interaction with a specified UI element in the setup section; and
responsive to the override directive, overriding of the default of ignoring the specified UI element in the setup section, rendering the specified UI element, and applying a bot to interact with and supply setup values from the file to the specified UI element.

### Claim 2 (depends on 1)

The method of claim 1, wherein a test script parser component of the test environment performs the encountering of the override directive and the overriding of the default and rendering of the specified UI element.

### Claim 3 (depends on 1)

The method of claim 1, wherein a single test script used in the test environment for a particular test supports both the API mode and the UI mode for execution, and choice of an operating mode is controlled via configuration.

### Claim 4 (depends on 1)

The method of claim 1, wherein the setup includes programmatically setting up hardware to be used by the test script before the execution.

### Claim 5 (depends on 1)

The method of claim 1, wherein ignoring UI directives during the setup is a best practice for replicability of test parameters used during the test.

### Claim 6 (depends on 1)

The method of claim 1, wherein set-up values are maintained in a data structure accessed during the testing in both the API mode and the UI mode.

### Claim 7

A tangible non-transitory computer readable storage media impressed with computer program instructions that, when executed, causes efficient testing by selective UI interaction, through test script sections including setup, execution and verification, applied to an application under test (AUT) that operates in both an application programming interface (API) mode and a user interface (UI) mode, including:
providing a test environment that, when testing the UI mode of the AUT, defaults to ignoring the UI mode during setup and to supplying setup values stored in a file directly to an API without rendering or interacting with UI elements in the setup section of the test script;
encountering an override directive in the setup section of the test script, which mandates interaction with a specified UI element in the setup section; and
responsive to the override directive, overriding of the default of ignoring the specified UI element in the setup section, rendering the specified UI element, and applying a bot to interact with and supply setup values from the file to the specified UI element.

### Claim 8 (depends on 7)

The tangible non-transitory computer readable storage media of claim 7, wherein a test script parser component of the test environment performs the encountering of the override directive and the overriding of the default and rendering of the specified UI element.

### Claim 9 (depends on 7)

The tangible non-transitory computer readable storage media of claim 7, wherein a single test script used in the test environment for a particular test supports both the API mode and the UI mode for execution, and choice of an operating mode is controlled via configuration.

### Claim 10 (depends on 7)

The tangible non-transitory computer readable storage media of claim 7, the setup includes programmatically setting up hardware to be used by the test script before the execution.

### Claim 11 (depends on 7)

The tangible non-transitory computer readable storage media of claim 7, wherein ignoring UI directives during the setup is a best practice for replicability of test parameters used during the test.

### Claim 12 (depends on 7)

The tangible non-transitory computer readable storage media of claim 7, wherein set-up values are maintained in a data structure accessed during the testing in both the API mode and the UI mode.

### Claim 13 (depends on 7)

A system for efficient testing by selective UI interaction, through test script sections including setup, execution and verification, applied to an application under test (AUT) that operates in both an application programming interface (API) mode and a user interface (UI) mode, including one or more processors coupled to memory, the memory loaded with the computer instructions of claim 7.

### Claim 14 (depends on 13)

The system of claim 13, wherein a test script parser component of the test environment performs the encountering of the override directive and the overriding of the default and rendering of the specified UI element.

### Claim 15 (depends on 13)

The system of claim 13, wherein a single test script used in the test environment for a particular test supports both the API mode and the UI mode for execution, and choice of an operating mode is controlled via configuration.

### Claim 16 (depends on 13)

The system of claim 13, wherein the setup includes programmatically setting up hardware to be used by the test script before the execution.

### Claim 17 (depends on 13)

The system of claim 13, wherein ignoring UI directives during the setup is a best practice for replicability of test parameters used during the test.

### Claim 18 (depends on 13)

The system of claim 13, wherein set-up values are maintained in a data structure accessed during the testing in both the API mode and the UI mode.
