Test Automation Equipment
The test automation device automates the creation and execution of test scripts using a tabular program checklist, addressing manual burdens and improving accuracy and efficiency in test automation systems.
Patent Information
- Application Number
- JP2020075215
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-04-21
- Publication Date
- 2024-08-15
- Estimated Expiration
- 2040-04-21
AI Technical Summary
Existing test automation systems require manual creation of test scripts and manual recording of test results, leading to knowledge acquisition burdens, increased man-hours, and reduced accuracy in reflecting program checklist contents.
A test automation device that includes a test script analysis unit, a screen automatic test tool, an execution result file analysis section, and a test result reflection unit to automatically execute and record test results using a tabular program checklist.
Automates the creation and execution of test scripts, reducing the burden on creators and improving accuracy while minimizing the time required for manual intervention.
Smart Images

Figure 0007534865000004 
Figure 0007534865000009 
Figure 0007534865000010
Abstract
Description
[Technical field]
[0001] The present invention relates to test automation equipment. [Background technology]
[0002] In order to prevent omissions in test scenarios and increase the comprehensiveness of tests, a method is known in which tests are designed in the form of a tabular program checklist and then tested based on this. To automate tests that involve screen operations using a tabular program checklist, steps 1 to 3 below are required.
[0003] In step 1, a test script is created manually while referring to a tabular program checklist. In step 2, the test script is automatically executed by an automatic screen test tool. In step 3, the output results are referred to and entered in the tabular program checklist. At this time, steps 1 and 3 are performed manually. For example, Patent Document 1 describes technology related to automatic test tools. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2001-256077 A Summary of the Invention [Problem to be solved by the invention]
[0005] In the above conventional technology, test scripts are created manually. This causes problems related to the burden of acquiring knowledge of how to write test scripts, the burden of creating test scripts, and the accuracy of accurately reflecting the contents of the program checklist in the test script. Another problem is that it requires man-hours to reflect the output results in a tabular program checklist.
[0006] An object of the present invention is to automatically execute an automatic screen test using a tabular program checklist in a test automation system. [Means for solving the problem]
[0007] A test automation device according to one embodiment of the present invention is characterized in that it comprises a test script analysis unit that analyzes test script character strings written in a test script, a program checklist generation unit that formats the analyzed test script character strings into a tabular program checklist having a test scenario, a screen automation test tool unit that executes a screen automation test tool based on the test script and outputs an execution result file, an execution result file analysis unit that analyzes the execution result file, and a test result reflection unit that reflects the analysis results of the execution result file in the program checklist.
[0008] A test automation device according to one embodiment of the present invention is characterized in having a test script generation unit that generates a test script by extracting test script strings from a tabular program checklist in which a test scenario is described, a screen automation test tool unit that executes a screen automation test tool based on the generated test script and outputs an execution result file, an execution result file analysis unit that analyzes the execution result file, and a test result reflection unit that reflects the analysis results of the execution result file in the program checklist. Effect of the Invention
[0009] According to one aspect of the present invention, in a test automation system, it is possible to automatically execute an automatic screen test using a program checklist in a table format. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 illustrates an overall configuration of a test automation system. [Diagram 2] FIG. 2 is a flow chart showing the operation of the test automation device according to the embodiment. [Diagram 3] FIG. 2 is a conceptual diagram showing the operation of the test automation device according to the embodiment. [Figure 4] FIG. 2 is a flow chart showing the operation of the test automation device according to the embodiment. [Diagram 5] FIG. 2 is a conceptual diagram showing the operation of the test automation device according to the embodiment. [Figure 6] FIG. 13 is a diagram illustrating an example of the contents of a test script. [Figure 7] FIG. 13 is a diagram showing the contents of a program checklist in tabular form. [Figure 8] FIG. 13 is a diagram showing a correspondence table between a tabular program checklist and a test script. [Figure 9] FIG. 11 is a diagram showing the correspondence between a tabular program checklist and a test script. [Figure 10] FIG. 13 is a diagram showing the contents of an execution result file. [Figure 11] FIG. 13 is a diagram showing the contents of a program checklist with results recorded. [Figure 12] FIG. 13 is a diagram showing a correspondence table between an execution result file and a tabular program checklist with results entered therein. [Figure 13] FIG. 11 is a diagram showing the correspondence between the execution result file and a tabular program checklist with results entered therein. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the embodiments will be described with reference to the drawings. EXAMPLES
[0012] Figure 1 shows the overall configuration of a test automation system. The test automation system converts test scripts into tabular program checklists and vice versa.
[0013] The test automation system includes an application execution terminal 100 and a test automation device 200. The application execution terminal 100 and the test automation system device 200 are connected via a network 300. The application execution terminal 100 includes a program 110.
[0014] The test automation device 200 has a storage device 210, a calculation device 220, a memory 230, an input device 240, and a display device 250. The storage device 210 has a screen automatic test tool unit 211, a test script analysis unit 212, a program checklist generation unit 213, an execution result file analysis unit 214, a test result reflection unit 215, and a test script generation unit 216.
[0015] The storage device 210 also stores a test script 260 (see FIG. 6), a tabular program checklist 261 (see FIG. 7), an execution result file 262 (see FIG. 10), a result-described program checklist 263 (see FIG. 11), and browser element data 264.
[0016] The operation of the test automation device of the embodiment will be described with reference to FIG. A test script 260, browser element data 264, an execution result file 262, and a tabular program checklist 261 are input via the input device 240 in FIG. A tabular program checklist 261, an execution result file 262, and a result-described program checklist 263 are output via the display device 250 in FIG.
[0017] Next, the process flow will be described. In process 1, the test script analysis unit 212 reads the test script 260 and the browser element data 264 and analyzes the test script character string (S201). In process 2, the program checklist generation unit 213 formats and generates the character string analyzed by the test script analysis unit 212 into a tabular program checklist 261 (S202). Here, FIG. 9 shows the correspondence between the tabular program checklist 261 in the test script analysis unit 212 and the test script 260. In process 3, the screen automatic test tool unit 211 executes the screen automatic test tool and outputs the execution result file 262 (S203). In process 4, the execution result file analysis unit 214 reads and analyzes the execution result file 262 (S204). In process 5, the test result reflection unit 215 records the analyzed execution results in the tabular program checklist 261 (S205). Fig. 11 shows the contents of the program checklist 263 with results recorded. In the third line of the confirmation contents in Fig. 11, when the scenario name is PCL-003, an x mark is recorded indicating that the result is "failure". Fig. 13 shows the correspondence between the execution result file 262 in the test result reflection unit 215 and the tabular program checklist 263 with results recorded.
[0018] The contents of the program checklist 263 with results written are displayed on the display device 250. The user checks the contents of the program checklist 263 with results written displayed on the display device 250. If an x mark indicating a "failed" result is written, the user changes the program 110 of the application execution terminal 100 in FIG. 1, for example, and performs the test again.
[0019] With reference to FIG. 3, a usage image in which a test script is input will be described. First, the user prepares a test script 260 and browser element data 264 as pre-processing. Next, in processes 1 and 2, a tabular program checklist 261 is generated using the test script 260 and the browser element data 264. Next, in process 3, an execution result file 262 is generated based on the test script 260 using the screen automatic test tool of the screen automatic test tool unit 211. Next, in processes 4 and 5, the tabular program checklist 261 and the execution result file 262 are used to generate a result-described program checklist 263.
[0020] The operation of the test automation device of the embodiment will be described with reference to FIG. A tabular program checklist 261, a test script 260, browser element data 264, an execution result file 262, and the tabular program checklist 261 are input via the input device 240 in FIG. A test script 260, an execution result file 262, and a program checklist with results 263 are output via the display device 250 in FIG.
[0021] Next, the process flow will be described. In process 1, the test script generation unit 216 reads the tabular program checklist 261 and generates a test script character string (S401). In process 2, the screen automatic test tool unit 211 executes the screen automatic test tool and outputs the execution result file 262 (S402). In process 3, the execution result file analysis unit 214 reads the execution result file 262 and analyzes the execution result file 262 (S403). In process 4, the test result reflecting unit 215 writes the analyzed execution results in the program checklist 261 in tabular form (S404).
[0022] Fig. 11 shows the contents of the program checklist with results 263. In the third line of the confirmation contents in Fig. 11, when the scenario name is PCL-003, an X mark is written to indicate that the result is "failure". Fig. 13 shows the correspondence between the execution result file 262 in the test result reflection unit 215 and the tabular program checklist with results 263.
[0023] The contents of the program checklist 263 with results written are displayed on the display device 250. The user checks the contents of the program checklist 263 with results written displayed on the display device 250. If an x mark indicating a "failed" result is written, the user changes the program 110 of the application execution terminal 100 in FIG. 1, for example, and performs the test again.
[0024] With reference to FIG. 5, a usage image in which a tabular program checklist is input will be described.
[0025] First, the user prepares a tabular program checklist 261 and browser element data 264 as pre-processing. Next, in process 1, a test script 260 is generated using the tabular program checklist 261. Next, in process 2, an execution result file 262 is generated based on the test script 260 using the screen automatic test tool of the screen automatic test tool unit 211. Next, in processes 3 and 4, the tabular program checklist 261, the browser element data 264, and the execution result file 262 are used to generate a program checklist 263 with results described therein.
[0026] FIG. 6 is a diagram showing an example of the contents of the test script 260. As shown in FIG. FIG. 6 explains a library search operation as an example.
[0027] As a prerequisite (Background), set the browser size to (1200,800) and open “ / ja / login / ” in the browser.
[0028] In the case of scenario (Scenario: PCL-001), a search is performed for "Books". In this case, press the "Login" button as the "Check Condition", then press "book-search.Book Search". Then, enter "Book" in "book-search.Book Name". Next, press the "Search" button.
[0029] As the "Confirmation content", confirm that the first item in "book-search.Book list" is "History of Libraries, Volume 1." As a “post-condition”, click “book-search.main-menu”.
[0030] In the case of scenario (Scenario: PCL-002), a search is performed for “Author”. In this case, press the "Login" button as the "Check Condition", then press "book-search.Book Search". Then, enter "Author" in "book-search.Book Name". Next, press the "Search" button.
[0031] As the "confirmation content", confirm that the first item in "book-search.Book List" is "Author's History Volume 1." As a “post-condition”, click “book-search.main-menu”.
[0032] In the case of scenario (Scenario: PCL-003), perform a search by “Name”. In this case, press the "Login" button as the "Check Condition", then press "book-search.Book Search". Then, enter your "Name" in "book-search.Book Name". Next, press the "Search" button.
[0033] As the "confirmation content", confirm that the first item in "book-search.Book list" is "History of Names, Volume 1." As a “post-condition”, click “book-search.main-menu”.
[0034] FIG. 7 is a diagram showing the contents of the program checklist 261 in table format. FIG. 7 explains a library search operation as an example.
[0035] The "test scenario description" describes prerequisites, check conditions, confirmation contents, and post-conditions.
[0036] The prerequisite states that the browser size is set to (XXX, △△). In this case, “XXX” is 1200 and “△△” is 800.
[0037] The prerequisite also describes that "XX" should be opened in a browser. In this case, "XX" is " / ja / login / ".
[0038] The check condition is to press the "XX" button. In this case, "XX" is "Login".
[0039] The check condition is described as "press ____". In this case, ____ is "book-search. Book search".
[0040] The check condition is described as "enter △△" into "〇〇". In this case, "〇〇" is "book-search.Book name". "△△" is "Book", "Author", and "Name".
[0041] The check condition is to press the "XX" button. In this case, "XX" is "search."
[0042] The confirmation content states that "XX" is "△△" and ◎◎. In this case, "XX" is "book-search. Book list No. 1." "△△" is "Library History Volume 1," "Author History Volume 1," and "Name History Volume 1." "◎◎" means "there is."
[0043] The post-condition is to press "〇〇". In this case, "〇〇" is "book-search.Main Menu".
[0044] On the right side of the program checklist, a search is described for "Books" in Scenario (PCL-001), a search is described for "Authors" in Scenario (PCL-002), and a search is described for "Names" in Scenario (PCL-003).
[0045] FIG. 8 is a diagram showing a correspondence table between the tabular program checklist 261 and the test script 260 in the test script analysis unit 212 and the test script generation unit 216. As shown in FIG.
[0046] The correspondence table includes numbers, tabular program checklists, test scripts, and description contents.
[0047] Number 1 describes "a set of test cases for one function" as a sheet, feature, and description. Number 2 describes "a set of operations for one test case" as a column, scenario, and description.
[0048] Number 3 contains the prerequisite line, Background, and the description "Prerequisites for the test case." Number 4 contains the check condition line, the step before the Then step, and the description "Input conditions and screen operations for the test case."
[0049] Number 5 contains a confirmation line, a Then step, and the description "Test case verification items." Number 6 contains a post-condition line, a step after the Then step, and the description "Screen operations to be performed before the test case ends."
[0050] FIG. 10 is a diagram showing the contents of the execution result file 262. As shown in FIG. As shown in FIG. 10, the execution result file includes the feature name, the scenario name, the result, the failed line, the execution date and time, and the browser.
[0051] For example, if the feature name is PCL and the scenario name is PCL-001, the result is “Success”, the execution date and time is “2019 / 10 / 01”, and the browser is “Browser A”.
[0052] Also, if the feature name is PCL and the scenario name is PCL-003, the result is “Failed”, the failed line is “7”, the execution date and time is “2019 / 10 / 01”, and the browser is “Browser A”.
[0053] FIG. 12 shows a correspondence table between the execution result file 262 in the test result reflecting unit 215 and the tabular program checklist 263 with results entered. As shown in FIG. 12, the correspondence table includes a number, a result file, and a tabular program checklist with results entered.
[0054] For example, in number 1, the result file is the feature name and the tabular program checklist with results is the sheet. In number 2, the result file is the scenario name and the tabular program checklist with results is the column.
[0055] In number 3, the result file is the result, and the tabular program checklist with the results is whether to change the "O" in each column to "X" or not. In number 4, the result file is the failure row, and the tabular program checklist with the results is the position to change the "O" in each column to "X".
[0056] In number 5, the result file is the execution date and the tabular program checklist with the results is the confirmation date. In number 6, the result file is the browser and the tabular program checklist with the results is the browser.
[0057] In this manner, in the above embodiment, the test scenario described in the tabular program checklist 261 and the test script 260 required for executing the automatic screen test are automatically converted into each other. Also, the automatic screen test is executed from the tabular program checklist 261, and the execution result is entered in the tabular program checklist 261.
[0058] According to the above embodiment, among the procedures for automatic screen testing using the tabular program checklist 261, the procedure of creating a test script 260 while referring to the tabular program checklist 261 and the procedure of entering the results in the tabular program checklist 261 while referring to the output results can be automatically executed.
[0059] This reduces the burden on the screen automatic test creator of acquiring knowledge of the description method of the test script 260 and of creating the test script 260. It also improves the accuracy of reflecting the contents of the tabular program checklist 261 in the test script 260. It also reduces the man-hours required for the test result writer to reflect the output results in the tabular program checklist 261. [Explanation of symbols]
[0060] 100 application execution terminals 110 Programs 200 Test Automation Equipment 300 Network 210 Storage device 211 Screen Automated Test Tool Section 212 Test Script Analysis Unit 213 Program Checklist Generation Unit 214 Execution result file analysis part 215 Test Results Reflection Section 216 Test Script Generation Unit 220 Arithmetic equipment 230 Memory 240 Input Device 250 Display device 260 Test Scripts 261 Tabular Program Checklist 262 Execution result file 263 Program Checklist with Results 264 Browser Element Data
Claims
1. a test script analysis unit that analyzes a test script character string written in a test script; a program checklist generation unit that formats the analyzed test script character string into a tabular program checklist having a test scenario; a test script generation unit that extracts the test script character string from the program checklist in which the test scenario is described and generates the test script; a screen automatic test tool unit that executes a screen automatic test tool based on the test script and outputs an execution result file; an execution result file analysis unit that analyzes the execution result file; a test result reflecting unit that reflects an analysis result of the execution result file in the program checklist; having A test automation device which converts the test script and the program checklist into each other.
2. The program checklist generation unit, 2. The test automation device according to claim 1, wherein the test script character string described in the test script is converted into the test scenario and described in the program checklist.
3. The execution result file includes: For each of the test scenarios, success or failure information is described as an execution result; The test result reflection unit 2. The test automation device according to claim 1, wherein the success information or the failure information is written in the program checklist, thereby reflecting the analysis result of the execution result file in the program checklist.
4. The test script generation unit 2. The test automation device according to claim 1, wherein the test scenario described in the program checklist is converted into the test script character string and described in the test script.
Citation Information
Patent Citations
Method for sorting program test using test scenario management system
JP2001256077A
Command execution result recording system and command execution result recording method
JP2007304660A
Screen operation test item execution device
JP2014186617A
