Test assistance system, test assistance method, and program

The test support system addresses the challenge of unclear test purposes by associating scenario information with test programs, enabling easy understanding and execution of test operations, thus improving test clarity and effectiveness.

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

Patent Information

Application Number
PCT/JP2023/006304
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

It is difficult to understand the purpose and content of tests due to lack of clear scenario information and operation documentation.

Method used

A test support system that includes a scenario information acquisition unit, operation acquisition unit, test program creation unit, and scenario information storage unit to associate scenario information with test programs, allowing for easy understanding and reproduction of test operations.

Benefits of technology

Enables clear understanding and reproduction of test operations, facilitating effective test execution and result review.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023006304_29082024_PF_FP_ABST
    Figure JP2023006304_29082024_PF_FP_ABST
Patent Text Reader

Abstract

[Problem] To make it possible to easily understand the content of a test. [Solution] A test assistance system characterized by comprising: a scenario information acquisition unit that acquires scenario information including a description of a test; an operation acquisition unit that acquires operations performed by a test executor while displaying the scenario information; a test program creation unit that creates a test program for reproducing each of the acquired operations; and a scenario information storage unit that associates and stores the scenario information and the test program.
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] Patent Document 1 discloses managing source code and test results.

[0003] Patent No. 4745728

[0004] It's hard to understand what the test is for.

[0005] The present invention has been made in view of the above background, and aims to provide a technique that allows the content of a test to be easily understood.

[0006] The main invention of the present invention for solving the above problem is a test support system characterized by comprising a scenario information acquisition unit that acquires scenario information including a test description, an operation acquisition unit that acquires operations by a test executor while displaying the scenario information, a test program creation unit that creates a test program to reproduce each of the acquired operations, and a scenario information storage unit that stores the scenario information and the test program in association with each other.

[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, the content of the test can be easily understood.

[0009] FIG. 1 is a diagram showing an example of the overall configuration of a test support system according to an embodiment of the present invention. FIG. 2 is a diagram showing an example of the hardware configuration of a management server 2. FIG. 3 is a diagram showing an example of the software configuration of a management server 2. FIG. 4 is a diagram explaining the flow of a test program creation process. FIG. 5 is a diagram explaining the flow of a test execution process. FIG. 6 is a diagram showing an example of the software configuration of a management server 2 according to a second embodiment. FIG. 7 is a diagram showing an example of the software configuration of a management server 2 according to a third embodiment. FIG. 8 is a diagram showing an example of the software configuration of a management server 2 according to a fourth embodiment.

[0010] <Summary of the Invention> The details of embodiments of the present invention will be listed below. The present invention, for example, has the following configuration: [Item 1] A test support system comprising: a scenario information acquisition unit that acquires scenario information including a test description; an operation acquisition unit that acquires operations by a test executor while displaying the scenario information; a test program creation unit that creates a test program for reproducing each of the acquired operations; and a scenario information storage unit that stores the scenario information and the test program in association with each other. [Item 2] The test support system according to Item 1, wherein the scenario information includes the description of each step or combination of steps of the test; the operation acquisition unit acquires the operation related to each step by the test executor while displaying the description corresponding to the step or combination, for each step or combination included in the scenario information; the test program creation unit creates the test program for reproducing the operation related to each step, for each step or combination; and the scenario information storage unit stores the description and the test program in association with each other for each step or combination. [Item 3] The test support system according to Item 2, comprising: a learning model storage unit that stores a learning model created by machine learning using the operations related to the steps and the corresponding explanations as training data, and an explanation generation unit that generates the explanations by providing the operations by the test executor to the learning model. [Item 4] The test support system according to Item 2, further comprising: a learning model storage unit that stores a learning model created by machine learning using the explanations of the steps and the corresponding operations as training data, and the test program creation unit provides the scenario information to the learning model to generate the operations, and generates the test program for reproducing the generated operations.[Item 5] The test support system according to Item 1, comprising: a test execution unit that executes the test program; and a review acceptance unit that displays the scenario information and execution results of the test program and accepts input of the success or failure of the test. [Item 6] A test support method, characterized in that a computer executes the following steps: acquiring scenario information including a test description, acquiring operations by a test executor while displaying the scenario information, creating a test program for reproducing each of the acquired operations, and storing the scenario information and the test program in association with each other. [Item 7] A program that causes a computer to execute the following steps: acquiring scenario information including a test description, acquiring operations by a test executor while displaying the scenario information, creating a test program for reproducing each of the acquired operations, and storing the scenario information and the test program in association with each other.

[0011] <System Configuration> Fig. 1 is a diagram showing an example of the overall configuration of a test support system according to one embodiment of the present invention. The test support system of this embodiment is configured to include a management server 2. The management server 2 is communicably connected to a user terminal 1 via a communication network. The communication network is, for example, the Internet, and is constructed using a public telephone network, a mobile phone network, a wireless communication path, Ethernet (registered trademark), or the like.

[0012] The user terminal 1 is a computer, such as a smartphone, tablet computer, or personal computer, operated by a user who intends to perform a test. It is assumed that the user terminal 1 is operated by a test executor, developer, or the like.

[0013] The management server 2 may be a general-purpose computer such as a workstation or a personal computer, or may be logically realized by cloud computing.

[0014] <Management Server> FIG. 2 is a diagram illustrating an example of the hardware configuration of the management server 2. Note that the illustrated configuration is an example, and other configurations may also be used. The management server 2 includes a CPU 201, memory 202, storage device 203, communication interface 204, input device 205, and output device 206. The storage device 203 stores various data and programs, and is, for example, a hard disk drive, solid state drive, or flash memory. The communication interface 204 is an interface for connecting to the communication network 3, and is, for example, an adapter for connecting to Ethernet (registered trademark), a modem for connecting to a public telephone network, a wireless communication device for wireless communication, a USB (Universal Serial Bus) connector, or an RS232C connector for serial communication. The input device 205 is, for example, a keyboard, mouse, touch panel, button, microphone, or the like for inputting data. The output device 206 is, for example, a display, printer, speaker, or the like for outputting data. Each functional unit of the management server 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 management server 2 is realized as part of the storage area provided by the memory 202 and the storage device 203.

[0015] 3 is a diagram illustrating an example of the software configuration of the management server 2. The management server 2 includes a scenario information storage unit 231, a learning model storage unit 232, a test result storage unit 233, a scenario information acquisition unit 211, an operation acquisition unit 212, a test program creation unit 213, an explanation generation unit 214, a test execution unit 215, and a review reception unit 216.

[0016] The scenario information storage unit 231 stores information (hereinafter referred to as test scenario information) related to test procedures (test scenarios). The test scenario information includes information (program identification information) that identifies a program to be tested, scenario information, and program information, all of which are associated with a scenario ID that identifies the scenario.

[0017] The scenario information includes a description of the test. In this embodiment, the scenario information is information about each step (or a combination of multiple steps; the same applies below) that constitutes the test procedure, and the scenario information can include a step number indicating the step and a description of the step, associated with the scenario ID. The step description includes, for example, the content of the test. The step description can also include instructions for the test creator, instructions for the test executor, etc.

[0018] The program information is information relating to a test program, and can include, in association with a scenario ID, a step number indicating a step and a test program for executing an operation on the program under test at that step.

[0019] The learning model storage unit 232 can store a learning model (operation learning model) for generating operations to be executed in a test. The learning model storage unit 232 can store a learning model (explanation learning model) for generating explanations for the test.

[0020] The operation learning model can be created for each step of the test by machine learning, using a description of the step as input data and the operations performed in the step as training data. Therefore, by providing the explanation contained in the scenario information to the operation learning model, it is possible to infer the operations to be performed in the step. Note that the operations may be expressed as a program such as a script.

[0021] The explanation learning model can be created for each step of a test by machine learning, using the operations performed in that step as input data and the explanation for that step as training data. Therefore, by providing the test program included in the program information to the operation learning model, the explanation for that step can be inferred.

[0022] In addition, the learning model may be created by creating step descriptions and corresponding operations as training data, and the same learning model may be used for both inferring operations from descriptions and inferring explanations from operations.

[0023] The test result storage unit 233 stores information indicating the test results (hereinafter referred to as result information). The result information includes a scenario ID that identifies the scenario, an executor ID that indicates the user who executed the test program (assumed to be a reviewer in this embodiment), a step number that indicates the step, information related to the execution of the test program related to the step (execution information), the success or failure of the test related to the step, and review information. The execution information can include, for example, screen information that indicates the execution results of the test program, text displayed on the screen, images displayed on the screen, comments from the test executor, etc. The review information can include, for example, the results of a reviewer's review of the results if the test failed.

[0024] <Functional Unit> The scenario information acquisition unit 211 acquires scenario information. The scenario information acquisition unit 211 acquires scenario information along with program identification information. The scenario information acquisition unit 211 can receive the scenario information from the user terminal 1. The scenario information acquisition unit 211 generates a scenario ID, creates test scenario information including the acquired program identification information and scenario information, and registers it in the scenario information storage unit 231. Here, the test scenario information may not include program information or may include empty program information.

[0025] The operation acquisition unit 212 acquires operations from the tester on the test program. The operation acquisition unit 212 acquires operations from the tester using a common technique, and detailed description thereof will be omitted here. The operation acquisition unit 212 can acquire operations by the tester while displaying scenario information. The operation acquisition unit 212 can express operations as event information including, for example, the type and position of an operation, such as touching or swiping on the screen, inputting a string of characters, inputting voice, or pressing a button on a mobile device (a virtual button during testing), as well as data such as the input text and voice. The event information can include the date and time (timestamp) when the operation occurred, the operation target (the element that notifies the event), the command to be performed on the operation target (e.g., a click, keystrokes), and command parameters (e.g., the button to be clicked, the characters to be entered), etc. For example, when the screen is clicked (including touching, etc.), event information can be obtained that includes the clicked position, the element to which the click is transmitted (for example, in the case of a screen written in HTML, this can be DOM information that identifies the foreground element at the clicked position), the operation (command) for the element, the parameters of the command, etc.

[0026] The test program creation unit 213 creates a test program for reproducing each of the acquired operations. For example, the test program creation unit 213 can create a script that, for example, clicks on a specific position or selects a specific element and inputs a character string based on the event information acquired by the operation acquisition unit 212. An event information storage unit that records the history of event information acquired by the operation acquisition unit 212 may be provided, and the test program creation unit 213 may create a test program from the event information history. Furthermore, the test program creation unit 213 can set a success / failure condition for the execution result (the result of providing event information) as logic in the test program. The success / failure condition can specify, for example, that a specific value be set in a specific element.

[0027] In this embodiment, for each step of the test, the operation acquisition unit 212 acquires operations (event information) by the test executor while displaying an explanation of the scenario information corresponding to the step, and the test program creation unit 213 creates a test program to reproduce the acquired operations, creates program information in which the test program is set in association with the scenario ID and the step number indicating the step (or combination of multiple steps), and adds the created program information to the test scenario information corresponding to the scenario ID.

[0028] In addition, the test program creation unit 213 may generate operations by providing an explanation of the scenario information to a learning model (operation learning model) without accepting execution from a test executor, and then generate a test program to reproduce the generated operations.

[0029] The explanation generation unit 214 can also generate an explanation for the test. The explanation generation unit 214 can generate an explanation by providing the operation (event information) by the test executor to the learning model (explanation learning model). In this case, even if the test scenario information does not include scenario information, an explanation can be generated by accepting the operation by the test executor, and scenario information including this explanation can be created and added to the test scenario information corresponding to the scenario ID.

[0030] The test execution unit 215 executes the test program. For example, the test execution unit 215 receives an execution request for a test program for which a scenario ID is set from the reviewer's user terminal 1, and in response to the execution request, reads out the program information of the test scenario information corresponding to the set scenario ID from the scenario information storage unit 231, and executes the test program included in the program information in the order of the step numbers.

[0031] The review receiving unit 216 receives input of the success or failure of the test. The review receiving unit 216 can display the scenario information and the execution result of the test program and receive input of the success or failure of the test from the reviewer.

[0032] In this embodiment, the test execution unit 215 sets the success or failure of the test in the result information, and the review receiving unit 216 receives reviews from reviewers for steps that failed the test. For example, even if the execution result does not match the execution result set in the test program, if the wording changed due to the modification of the program to be tested is displayed and the execution result is successful, the reviewer can evaluate whether the result of the step was successful or not. The review receiving unit 216 searches for test failures among the result information corresponding to a specified scenario ID registered in the test result storage unit 233, displays execution information for the searched result information, and receives review information such as success or failure inputs and comments from reviewers. The review receiving unit 216 can update the result information corresponding to the scenario ID using the received success or failure and review information.

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

[0034] The management server 2 receives the scenario information from the user terminal 1 (S301), and registers the test scenario information including the received scenario information in the scenario information storage unit 231.

[0035] The management server 2 executes the program to be tested in response to instructions from the user terminal 1 of the test executor (S302), acquires the test executor's operations on the program to be tested while displaying an explanation of the scenario information (S303), and creates a test program based on the acquired operations (S304). The management server 2 associates the explanation with the created test program and registers it (S305).

[0036] In this way, a test program can be created in accordance with the description of a scenario, and the test program is recorded in association with the description, so that the user can easily understand the contents of the test program.

[0037] FIG. 5 is a diagram illustrating the flow of the test execution process.

[0038] The management server 2 accepts a scenario specification from a reviewer or other user (S401), executes the program to be tested and the test program, and registers the execution results in the test result storage unit 233 (S402). The management server 2 reads out the result information stored in the test result storage unit 233 that indicates a success or failure (S403), and performs the following processing for each piece of read result information.

[0039] The management server 2 displays the execution information of the result information, accepts input of the success / failure result and review information (S404), and updates the result information with the accepted success / failure result and review information (S405).

[0040] In this manner, the test results can be reviewed.

[0041] Second Embodiment ==Link Crawler for Detecting Problems== A test support system according to a second embodiment will be described. In the second embodiment, a crawler automatically acquires web pages and extracts issues to be corrected from the acquired web pages.

[0042] 6 is a diagram illustrating an example of the software configuration of a management server 2 according to the second embodiment. In the second embodiment, the management server 2 includes a crawler 217 and a crawl information storage unit 234 in addition to the configuration example illustrated in FIG.

[0043] The crawler 217 realizes a function of crawling and acquiring web pages (also called crawling). The crawler 217 can repeatedly acquire a given web page, extract links included in the acquired web page, acquire the web page indicated by the extracted link, and further extract links included in the acquired web page to acquire the linked web page.

[0044] The crawler 217 detects obvious or possible problems in the acquired web pages. The crawler 217 receives input of the URL of the web page (and authentication information, if necessary) from the user and acquires the web page. Therefore, if the program to be tested is a web application, the crawler 217 can acquire information about all pages of the application to be tested.

[0045] The crawler 217 can detect JavaScript errors in the acquired web page, the validity of the CSS or HTML style (for example, by setting rules to be followed in advance and determining whether the rules are met), and typos (by using well-known document proofreading techniques to detect typos and inappropriate expressions). The crawler 217 can also detect response delays (including network delays, processing delays, etc.). Furthermore, the crawler 217 may record a screenshot of the screen displaying the web page, and compare the screenshot of the screen displaying the acquired web page with the recorded screenshot as an image, detecting an abnormality if a significant difference is found. The image comparison may be performed by comparing pixels, or by comparing features that can be extracted by image processing.

[0046] The crawler 217 can register information (crawl information) including the above-mentioned JavaScript errors, network logs, performance logs, etc. in the crawl information storage unit 234. The crawl information can also include source data (HTML data) of web pages, screenshots, etc. The crawl information storage unit 234 stores information identifying the program (web application) to be tested, the date and time when crawling was performed, and the crawl information in association with each other.

[0047] The crawler 217 can output as issues any web page that has a JavaScript error, a web page that is determined to lack validity in CSS or HTML style, a web page that has a typo, or a web page that is determined to have poor network or performance.

[0048] The crawler 217 can perform crawling periodically or in response to a user request. The crawler 217 can compare crawl information from the previous crawling with crawl information from the current crawling, detect web pages where the above-mentioned issues have not changed or have worsened, and output the issues.

[0049] The crawler 217 can also create a graph in which web pages are nodes and the trajectory of links on the web pages traced by crawling is edges, and output the web pages in graph form. By highlighting web pages on which the above-mentioned problems have occurred, it becomes easier to understand where the problem occurs on the website (web application). For example, if a user issues an instruction on this graph saying, "I want a button to be displayed on this page," the crawler 217 can display the route to access the web page to be corrected.

[0050] <Third Embodiment> ==Semantic Assertion== A test support system according to a third embodiment will be described. As described above, in a test program executed by the test execution unit 215, the success or failure of a test is determined (assertion) in the test program. From a programming perspective, for example, all text is treated equally. However, from a testing perspective, for example, dates, names, prices, etc. are treated differently depending on the context. Therefore, in the third embodiment, the test program creation unit 213 proposes how text should be handled.

[0051] Specifically, when recording the tester's operations in the form of a test program, the user selects an element to be asserted. The test program creation unit 213 can classify the content of the element and display assertion options according to the classification. For example, if an element is set to "2022-03-01," the test program creation unit 213 can determine that the element belongs to the "date" category. Here, the test program creation unit 213 can display options corresponding to the "date" category. The test program creation unit 213 may determine the category of the element according to, for example, a predetermined rule. Alternatively, the test program creation unit 213 may register a learning model (category learning model) created by machine learning using the content (text) of the element and its category as training data in the learning model storage unit 232, and estimate the category of the element by providing the content of the element to the category learning model.

[0052] 7 is a diagram illustrating an example of the software configuration of a management server 2 according to the third embodiment. In the second embodiment, the management server 2 includes an assertion storage unit 235 and can store category learning models in the learning model storage unit 232, in addition to the configuration example of FIG.

[0053] The assertion storage unit 232 may include an assertion storage unit that stores, in association with each other, categories of elements displayed on a screen output by a program under test, options for assertions proposed in the category, and the logic of the assertion processing (scripts to be written in the test program). For example, options registered in the assertion storage unit for the "date" category may include: "The date must be '2022-03-01'," "The date must be one day after the execution date," "The date must be a Monday," "The date must include the year," and "The date must be in date format." The test program creation unit 213 presents these options to a test executor, accepts the test executor's selection, and creates a test program by including logic corresponding to the selected option in the test program.

[0054] The category is not limited to "date" and can be any category such as "price," "name," "email address," or "address."

[0055] In this way, the test program creation unit 213 can set more specific conditions for assertions according to the category of the element, making it possible to create a highly accurate test program.

[0056] Fourth Embodiment ==More Reliable Method for Identifying Elements== A test support system according to a fourth embodiment will be described. In the fourth embodiment, when a change is made to a displayed element due to a change in the program to be tested, a mechanism for more reliably identifying the changed element is provided.

[0057] If a second element that matches a first element to be operated on and set in the test program is not included in the screen output from the program to be tested, the test execution unit 215 can present the user with a third element that is similar to the first element.

[0058] 8 is a diagram showing an example of the software configuration of a management server 2 according to a fourth embodiment. In the second embodiment, the management server 2 includes a similarity rule storage unit 236 in addition to the configuration example shown in FIG.

[0059] The similarity rule storage unit 236 stores rules that can be used to determine similarity, in association with element types (for example, HTML tags).

[0060] The rules may be, for example, that the button is near a header called "XXX," that the class name is set to "btn," that the button is the third button on the screen, and so on.

[0061] If the screen does not contain a second element that matches the first element, the test execution unit 215 can identify a third element from among the elements contained on the screen that satisfies one of the rules corresponding to the type of the first element, and allow the user to select an element to be operated from among the identified third elements.

[0062] 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.

[0063] 1 User terminal 2 Management server

Claims

1. A test support system comprising: a scenario information acquisition unit that acquires scenario information including an explanation of a test; an operation acquisition unit that acquires operations by a test executor while displaying the scenario information; a test program creation unit that creates a test program to reproduce each of the acquired operations; and a scenario information storage unit that stores the scenario information and the test program in association with each other.

2. A test support system as described in claim 1, wherein the scenario information includes an explanation for each step or combination of steps of the test, the operation acquisition unit acquires the operations related to the steps performed by the test executor while displaying the explanation corresponding to each step or combination included in the scenario information, the test program creation unit creates the test program for reproducing the operations related to each step or combination, and the scenario information storage unit stores the explanation and the test program for each step or combination in association with each other.

3. A test support system as described in claim 2, comprising: a learning model memory unit that stores a learning model created by machine learning using the operations related to the steps and the corresponding explanations as training data; and an explanation generation unit that applies the operations by the test executor to the learning model to generate the explanation.

4. A test support system as described in claim 2, further comprising a learning model memory unit that stores a learning model created by machine learning using the explanation of the step and the corresponding operation as training data, and the test program creation unit provides the scenario information to the learning model to generate the operation, and generates the test program for reproducing the generated operation.

5. A test support system as described in claim 1, comprising: a test execution unit that executes the test program; and a review reception unit that displays the scenario information and the execution results of the test program and receives input regarding the success or failure of the test.

6. A test support method characterized in that a computer executes the steps of: acquiring scenario information including an explanation of a test; acquiring operations by a test executor while displaying the scenario information; creating a test program for reproducing each of the acquired operations; and storing the scenario information and the test program in association with each other.

7. A program for causing a computer to execute the steps of: acquiring scenario information including a description of a test; acquiring operations by a test executor while displaying the scenario information; creating a test program for reproducing each of the acquired operations; and storing the scenario information and the test program in association with each other.

Citation Information

Patent Citations

  • Remote testing system for program

    JP2010026706A

  • Program inspection device, program inspection method, and program inspection program

    JP2021039510A

  • Method of generating test scenario, test scenario generating system and test scenario generating program

    WO2012014284A1