Testing assistance system, testing assistance method, and program

The test support system addresses the challenge of specifying screen elements without structured HTML data by using a learning model to analyze images and automate test program creation and execution, ensuring effective application testing despite design changes.

WO2024176362A1PCT designated stage expired Publication Date: 2024-08-29AUTIFY INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/006303
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-29

AI Technical Summary

Technical Problem

Existing technologies cannot specify screen elements without structured screen data such as HTML, limiting the ability to effectively support application testing.

Method used

A test support system that includes an image acquisition unit and an element identifying unit, which uses a learning model created by machine learning to specify elements on an application execution screen by analyzing images, allowing for the creation and execution of automated test programs.

Benefits of technology

Enables the specification and automation of testing for screen elements, even in cases where design changes occur, by identifying elements through image analysis and creating flexible test programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023006303_29082024_PF_FP_ABST
    Figure JP2023006303_29082024_PF_FP_ABST
Patent Text Reader

Abstract

[Problem] To make it possible to identify a screen element. [Solution] Provided is a system for assisting with the testing of an application, the system being characterized by comprising: an image acquisition unit that acquires an image representing an application execution screen; and an element identification unit that identifies elements included in the image.
Need to check novelty before this filing date? Find Prior Art

Description

Test support system, test support method and program

[0001] The present invention relates to a test support system, a test support method, and a program.

[0002] Locators are used to identify screen elements in web applications and the like (see Patent Document 1).

[0003] JP 2019-101538 A

[0004] In the technology described in Patent Document 1, it is not possible to identify screen elements without structured screen data such as HTML.

[0005] The present invention has been made in view of the above background, and has an object to provide a technique that can identify elements on a screen.

[0006] The main invention of the present invention for solving the above problem is a system for supporting application testing, characterized in that it comprises an image acquisition unit that acquires an image representing an execution screen of the application, and an element identification unit that identifies elements contained in the image.

[0007] Other problems and solutions disclosed in this application will be made clear in the section on preferred embodiments of the invention and the drawings.

[0008] According to the present invention, elements on a screen can be identified.

[0009] It is a diagram showing an example of a hardware configuration of the test support device 2 of the present embodiment. It is a diagram showing an example of a software configuration of the test support device 2. It is a diagram explaining the flow of a test program creation process. It is a diagram explaining the flow of a test program execution process.

[0010] A test support device 2 according to one embodiment of the present invention will be described below. When creating a program (hereinafter referred to as a test program) for automatically executing a test of a software program (hereinafter referred to as an app) to be tested, the test support device 2 of this embodiment identifies elements to be operated on an execution screen of the app from an image of the execution screen. Therefore, for example, the elements to be operated can be identified using a screenshot of a web page or an output image of a mobile application emulator.

[0011] FIG. 1 is a diagram illustrating an example of the hardware configuration of a test support device 2 according to this embodiment. Note that the illustrated configuration is merely an example, and other configurations may be used. The test support device 2 may be a general-purpose computer such as a workstation or personal computer, or may be logically implemented using cloud computing. The test support device 2 includes a CPU 201, a memory 202, a storage device 203, a communication interface 204, an input device 205, and an output device 206. The storage device 203 stores various data and programs, such as a hard disk drive, a solid-state drive, or a flash memory. The communication interface 204 is an interface for connecting to a communication network 3, such as an adapter for connecting to an Ethernet (registered trademark), a modem for connecting to a public telephone network, a wireless communication device for wireless communication, or a USB (Universal Serial Bus) connector or an RS232C connector for serial communication. The input device 205 is used to input data, such as a keyboard, a mouse, a touch panel, buttons, or a microphone. The output device 206 is used to output data, such as a display, a printer, or a speaker. Each functional unit of the test support device 2 described below is realized by the CPU 201 reading a program stored in the storage device 203 into the memory 202 and executing it, and each storage unit of the test support device 2 is realized as part of the storage area provided by the memory 202 and the storage device 203.

[0012] 2 is a diagram illustrating an example of the software configuration of the test support device 2. The test support device 2 includes an operation history storage unit 231, a test program storage unit 232, a learning model storage unit 233, an image acquisition unit 212, an operation acquisition unit 213, an element identification unit 214, a test program creation unit 215, and a test program execution unit 216.

[0013] The operation history storage unit stores an operation history including user operations on the execution screen of the app. The operations can be expressed as event information including the type and position of, for example, touching or swiping the screen, inputting a string of characters, inputting voice, pressing a button on the mobile device (a virtual button during testing), and data such as input text and voice. The operation history can include the date and time (timestamp) when the operation occurred and event information, associated with a test ID for identifying the test and an app ID for identifying the app.

[0014] The test program storage unit 232 stores test programs. The test program storage unit 232 can store test programs in association with a test ID that identifies a test and an app ID that identifies an app. The test program can be a script that defines steps such as tapping a specific location on the execution screen of the app, swiping a specific location on the execution screen of the app, and typing specific text on the execution screen of the app. The script can be one or more combinations of steps that include, for example, an operation (tap, swipe, type, etc.), a target of the operation (which does not need to be specified), and a value (for example, in the case of typing, this can be text, and in the case of tapping or swiping, this can be a position on the screen).

[0015] The learning model storage unit 233 stores a learning model for extracting objects that constitute an application from an image. The learning model can be created by machine learning using an image as input data and objects (elements on the execution screen) placed on the application's execution screen as training data. The elements can be specified by the user as areas on the image, for example.

[0016] The application execution unit 211 executes applications. For example, the application execution unit 211 can receive application input from a user (for example, by obtaining a file from a file server) and execute the received application. Alternatively, an application storage unit (which may be a file system) for storing applications may be provided, and the application execution unit 211 may read, deploy, and execute the application stored in the application storage unit.

[0017] The image acquisition unit 212 acquires an image representing an execution screen of the application. The image acquisition unit 212 may capture the execution screen of the application executed by the application execution unit 211, or may receive an image input from the user.

[0018] The operation acquisition unit 213 acquires operations performed on the execution screen by the test executor. The operation acquisition unit 213 can receive event information from the user terminal 1. The operation acquisition unit 213 can create an operation history including the received event information, the test ID, the application ID, and the current date and time, and register the operation history in the operation history storage unit 231.

[0019] The element identification unit 214 identifies elements included in the image representing the execution screen of the application. Elements are operation targets such as a text input destination, an upload image selection button, and a touch / click object, such as a text area, image input, button, or check box.

[0020] The element identification unit 214 can identify elements by performing image analysis on the image of the execution screen. In this embodiment, the element identification unit 214 identifies elements to be arranged on the execution screen using a learning model stored in the learning model storage unit 233. The element identification unit 214 can infer elements, for example, by providing the image of the execution screen to the learning model. The element identification unit 214 may identify each of the elements arranged on the image and, from among the identified elements, identify the element to be operated according to position information included in the event information.

[0021] The operation acquisition unit 213 can set the element identified by the element identification unit 214 as an operation target in the event information.

[0022] After the image acquisition unit 212 acquires the first image, the image acquisition unit 212 may acquire the second image, and the element identification unit 214 may identify a correspondence between a first element identified from the first image and a second element identified from the second image. In this case, the element identification unit 214 may identify the correspondence between the first and second elements based on the degree of similarity between a first characteristic of the first element and a second characteristic of the second element. Here, the characteristic may be, for example, the width, height, position on the execution screen (or on the image), color, text included in the element, etc.

[0023] The test program creation unit 215 creates a test program based on the operation history. The test program creation unit 215 can create a test program by, for example, converting event information included in the operation history into a script format. The test program includes one or more steps that execute operations on operation targets together with values ​​in the order of the operation history.

[0024] The test program execution unit 216 executes a test program. By executing the test program, it is possible to automatically execute a test of the application. The test program execution unit 216 can execute the test program in response to an instruction from the user terminal 1.

[0025] As described above, first, the operations performed by the test executor on the application execution screen are recorded, and a test program is created from the operation history. After that, the test program creation unit 215 executes the test program without any operations by the test executor, thereby automating the test.

[0026] When the test program execution unit 216 executes each step of the test program, if it is unable to find the element to be operated on from the execution screen, it can search for an element similar to the element to be operated on recorded in the test program and generate an operation event for the searched element.

[0027] <Operation> FIG. 3 is a diagram illustrating the flow of the test program creation process.

[0028] The test support device 2 executes the application to be tested (S301), and repeats the following process until an end instruction is received from the tester.

[0029] The test support device 2 acquires an image of the execution screen of the app (S302), and detects elements displayed in the image by providing the image to a learning model stored in the learning model storage unit 233 (S303). The test support device 2 acquires operations performed by the test executor on the execution screen (S304), identifies an element that is the target of the acquired operation from among the elements detected from the image of the execution screen (S305), and registers an operation history related to the acquired operation, including information identifying the identified element, in the operation history storage unit 231 (S306).

[0030] After repeating the above process, the test support device 2 can create a test program based on the operation history (S307).

[0031] FIG. 4 is a diagram illustrating the flow of the execution process of the test program.

[0032] The test support device 2 executes the application to be tested (S401) and also executes the test program (S402). The test support device 2 executes the following process for each step of the test program.

[0033] The test support device 2 acquires an image of the application's execution screen (S403), detects elements included in the execution screen by providing the image to the learning model in the learning model storage unit 233 (S404), and identifies the element to be operated that is defined in the test program (S405). If the element to be operated is identified (S406: YES), the test support device 2 notifies this element of an event (S407). On the other hand, if the element to be operated cannot be identified because, for example, the position of the element to be operated has shifted due to a design change, its size has changed, or the displayed text has changed (S406: NO), the test support device 2 identifies an element similar to the element to be operated (similar element) from among the elements detected from the execution screen image (S408), and notifies the identified similar element of an event (S409).

[0034] The test support device 2 verifies the result after the event notification (S410). For example, the test support device 2 can verify that clicking a button element on the execution screen switches the execution screen to a predetermined screen, or that entering text in a predetermined text box element on the execution screen and clicking the button element displays a predetermined text message on the execution screen. Even during result verification (S410), the test support device 2 may analyze the image of the execution screen to detect the element that outputs the result.

[0035] In this way, the test can be automated by executing the test program. Also, by detecting the element to be operated from the image, the test program can be created flexibly.

[0036] Although the present embodiment has been described above, the above embodiment is intended to facilitate understanding of the present invention and is not intended to limit the present invention. The present invention may be modified or improved without departing from the spirit thereof, and equivalents thereof are also included in the present invention.

[0037] <Disclosures> The present disclosure also includes the following configurations. [Item 1] A system for supporting the testing of an application, comprising: an image acquisition unit that acquires an image representing an execution screen of the application; and an element identification unit that identifies an element included in the image. [Item 2] The test support system according to item 1, wherein the element identification unit identifies the element by providing the image to a learning model created by machine learning using the image as input data and the element as training data. [Item 3] The test support system according to item 1, wherein the image acquisition unit acquires a second image after acquiring a first image, and the element identification unit identifies a correspondence between the first element identified from the first image and the second element identified from the second image. [Item 4] The test support system according to Item 3, wherein the element identification unit identifies the correspondence between the first and second elements according to a degree of similarity between a first characteristic of the first element and a second characteristic of the second element.

[0038] 2 Test support equipment

Claims

1. A system for supporting application testing, comprising: an image acquisition unit that acquires an image representing an execution screen of the application; and an element identification unit that identifies elements contained in the image.

2. A test support system as described in claim 1, wherein the element identification unit identifies the element by providing the image to a learning model created by machine learning using the image as input data and the element as teacher data.

3. A test support system as described in claim 1, characterized in that the image acquisition unit acquires a second image after acquiring a first image, and the element identification unit identifies a correspondence between a first element identified from the first image and a second element identified from the second image.

4. A test support system as described in claim 3, characterized in that the element identification unit identifies the correspondence between the first and second elements according to the degree of similarity between a first characteristic of the first element and a second characteristic of the second element.

Citation Information

Patent Citations

  • Screen shot image analyzer, screen shot image analysis method, and program

    JP2018128955A

  • Test script correction device and program

    JP2019101538A

  • Perturbation program, perturbation method, and information processing device

    JP2021128402A

  • Information processing system, information processing method, and program

    WO2022070353A1