# US 12,216,568 B2 · System and method for generating test scripts

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

- Number: US 12,216,568 B2
- Document ID: US12216568B2
- Status: Granted
- Kind: B2
- Application number: 17/205,174
- Filed: 2021-03-18
- Published: 2021-09-23
- Granted: 2025-02-04
- Earliest claimed: 2020-03-20
- Assignees: HCL Technologies Limited
- Applicants: Hcl Technologies Limited
- Inventors: Hariprasath Janarthanan; Nishar Ahamed; Yuvarajan Shanmugasundaram; SivaSakthivel Sadasivam; Rajesh Babu Suraparaju
- Web page: https://patentgrep.com/patent/US12216568B2

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G01R 31/318307: {computer-aided, e.g. automatic test program generator [ATPG], program translations, test program debugging}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3692: {for test results analysis}
- G06F 11/3696: {Methods or tools to render software testable}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)

## Abstract

Disclosed is a method and system for generating test scripts. The method comprises receiving at least one of a video and/or an audio captured during manual testing of a Device Under Test (DUT) comprising an output unit or a Graphical User Interface (GUI) based application. At least one of the video and/or the audio is processed for generating a test script for the DUT or the GUI based application. Generation of the test script may include allowing a user to pause at least one of the video and/or the audio at a particular time frame. Using a script generator user interface, input events corresponding to the particular time frame are received. A type of validation is selected for the output unit of the DUT or the GUI based application, and inputs are provided for the validation. The validation is device specific and performed using during runtime test execution.

## Claims

### Claim 1

A method for generating test scripts, the method comprising:
receiving at least one of a video and/or an audio captured during manual testing of a Device Under Test (DUT) comprising an output unit or a Graphical User Interface (GUI) based application, wherein the output unit may provide at least one of an audio and/or a video output; and
processing at least one of the video and/or the audio for generating a test script, for the DUT or the GUI based application by:
allowing a user to pause at least one of the video and/or the audio at a particular time frame;
receiving, using a script generator user interface, input events corresponding to the particular time frame; and
selecting a type of validation for the output unit of the DUT or the GUI based application, and providing inputs for the validation, wherein the validation is device specific and performed using one of image comparison, video and audio comparison, character recognition, signal processing, data processing, during a runtime test execution of the DUT or the GUI based application; and
validating outputs obtained by processing the inputs based on real-time scenarios using intrusive testing from devices, allowing verification of run-time dynamic data;
generating test scripts for both intrusive and non-intrusive based device testing.

### Claim 2 (depends on 1)

The method as claimed in claim 1, wherein the test script is generated in a programming language selected by a user.

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein the test script is generated using configured parameters and reference images on a specified frame of the video.

### Claim 4 (depends on 1)

The method as claimed in claim 1, wherein test scripts are generated for all image frames of the video.

### Claim 5 (depends on 1)

The method as claimed in claim 1, wherein the input events are provided using input devices comprising Graphical User Input (GUI) controlling input devices, and wherein the GUI controlling input devices include a Keyboard Mouse (KBM), a robotic arm, and a voice command producing device.

### Claim 6 (depends on 1)

The method as claimed in claim 1, wherein the input events are provided using input devices comprising signal level input devices, and wherein the signal level input devices include a Data Acquisition Card (DAC) and a function generator.

### Claim 7 (depends on 1)

The method as claimed in claim 1, wherein the output unit provides an output in form of Light Emitting Diode (LED) glow, a video signal, an audio signal, and a waveform.

### Claim 8

A system for generating test scripts, the system comprising:
a memory; and
a processor coupled to the memory, wherein the processor is capable of executing instructions to perform steps of:
receiving at least one of a video and/or an audio captured during manual testing of a Device Under Test (DUT) comprising an output unit or a Graphical User Interface (GUI) based application, wherein the output unit may provide at least one of an audio and/or a video output; and
processing at least one of the video and/or the audio for generating a test script for the DUT or the GUI based application by:
allowing a user to pause at least one of the video and/or the audio at a particular time frame;
receiving, using a script generator user interface, input events corresponding to the particular time frame; and
selecting a type of validation for the output unit of the DUT or the GUI based application, and providing inputs for the validation wherein the validation is device specific and performed using one of image comparison, video and audio comparison, character recognition, signal processing, data processing, during a runtime test execution of the DUT or the GUI based application; and
validating outputs obtained by processing the inputs based on real-time scenarios using intrusive testing from devices, allowing verification of run-time dynamic data;
generating test scripts for both intrusive and non-intrusive based device testing.

### Claim 9 (depends on 8)

The system as claimed in claim 8, wherein the test script is generated in a programming language selected by a user.

### Claim 10 (depends on 8)

The system as claimed in claim 8, wherein the test script is generated using configured parameters and reference images on a specified frame of the video.

### Claim 11 (depends on 8)

The system as claimed in claim 8, wherein test scripts are generated for other image frames of the video.

### Claim 12 (depends on 8)

The system as claimed in claim 8, wherein the input events are provided using input devices comprising Graphical User Input (GUI) controlling input devices, and wherein the GUI controlling input devices include a Keyboard Mouse (KBM), a robotic arm, and a voice command producing device.

### Claim 13 (depends on 8)

The system as claimed in claim 8, wherein the input events are provided using input devices comprising signal level input devices, and wherein the signal level input devices include a Data Acquisition Card (DAC) and a function generator.

### Claim 14 (depends on 8)

The system as claimed in claim 8, wherein the output unit provides an output in form of Light Emitting Diode (LED) glow, a video signal, an audio signal, and a waveform.
