Method for realizing multi-machine cross-platform automated testing by using automated testing virtual machine technology

Through automated testing virtual machine technology, integrated development environment and keyword automated test scripts, the problem that the existing technology cannot achieve cross-machine and cross-platform test scripts is solved, and interactive function verification of complex software applications on different machines and platforms is realized.

CN114691513BActive Publication Date: 2025-07-25HEFEI LIDONG SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210353649.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2025-07-25
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

Existing automated testing products cannot achieve multi-machine cross-platform support at the test script line level, and cannot meet the interactive function verification requirements of complex software applications on different machines and platforms.

Method used

It adopts automated testing virtual machine technology, integrates the development environment, keyword automation test scripts, and automated testing virtual machine, including compiler, result collector, executor and communication modules, to realize cross-machine and cross-platform execution at the test script line level.

Benefits of technology

It realizes cross-machine cross-platform execution at the test script line level, solves the interactive function verification requirements of complex software applications on different machines and platforms, and provides script line level multi-machine cross-platform support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691513B_ABST
    Figure CN114691513B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of software application testing, and discloses a method for realizing multi-machine cross-platform automated testing by means of an automated testing virtual machine technology. The method includes an integrated development environment, keyword automated testing scripts, and an automated testing virtual machine. The integrated development environment includes test machine configuration and test script editing. The automated testing virtual machine includes a compiler, a result collector, an executor, and a communication module. The method for realizing multi-machine cross-platform automated testing by means of the automated testing virtual machine technology solves the requirements for cross-machine and cross-platform automated testing, provides multi-machine cross-platform support at the script line level for the execution of automated testing scripts, and based on the automated testing virtual machine technology, proposes a multi-machine cross-platform automated testing method to realize cross-machine and cross-platform execution at the test script line level, and completely solves the requirements for interactive function verification using a single test case on different machines and different platforms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of software application testing, and specifically to a method for realizing multi-machine cross-platform automated testing by means of an automated testing virtual machine technology. Background Art

[0002] When testing complex software applications, it is necessary to cover a variety of platforms and use a large number of test machines, and automated testing must be relied on to solve the problem. At present, existing automated testing products can only achieve multi-machine cross-platform support at the test script file level and cannot achieve fine-grained support. For example, a complex software application supports different platforms, and certain interactive function verifications need to be completed on different machines and different platforms. Currently, a single test script cannot meet the requirements. Therefore, a method for realizing multi-machine cross-platform automated testing by means of an automated testing virtual machine technology is proposed. Summary of the Invention

[0003] (1) Technical Problems to be Solved

[0004] Aiming at the deficiencies of the prior art, the present invention provides a method for realizing multi-machine cross-platform automated testing by means of an automated testing virtual machine technology, which has the advantages of realizing cross-machine and cross-platform execution at the test script line level and completely solving the requirement of using a single test case for interactive function verification on different machines and different platforms, and solves the problem that a single test script cannot meet the requirements for a complex software application that supports different platforms and needs to complete certain interactive function verifications on different machines and different platforms.

[0005] (2) Technical Solutions

[0006] To achieve the above object, the present invention provides the following technical solution: A method for realizing multi-machine cross-platform automated testing by means of an automated testing virtual machine technology, including an integrated development environment, keyword automated testing scripts, and an automated testing virtual machine. The integrated development environment includes test machine configuration and test script editing, and the automated testing virtual machine includes a compiler, a result collector, an executor, and a communication module.

[0007] Preferably, the integrated development environment is unidirectionally connected to the keyword automated testing scripts.

[0008] Preferably, the keyword automated testing scripts are unidirectionally connected to the compiler, and the compiler is unidirectionally connected to a symbol table and three-address code.

[0009] Preferably, the executor is unidirectionally connected to the symbol table and three-address code, and the executor is unidirectionally connected to both the result collector and the communication module.

[0010] Preferably, when creating an automated test project using the integrated development environment, nodes such as test machines and test cases will be automatically created.

[0011] Preferably, the test machine configuration supports test machine configurations for different test environments, and can set attributes such as the name, address, and operating system name of the test machine, and can also check the operating environment of the test machine.

[0012] Preferably, the test script editing supports editing test scripts in table or text mode, performing machine settings and function settings on the test scripts, binding a test machine to a single-line script, or batch-binding test machines to multiple-line scripts.

[0013] Preferably, the automated test virtual machine supports different operating platforms, such as operating systems like Kylin, Windows, and Mac, and can be deployed to different test machines.

[0014] Preferably, the compiler can compile and interpret the test script, identify the machine settings and function settings of the test script, generate three-address instructions and symbol tables for automated testing. The executor reads the three-address instructions and symbol tables, and according to the machine settings of the test script, sends execution instructions to different test machines through the communication module. At the same time, it can receive execution instructions sent by a remote automated test virtual machine. After receiving the execution instructions, the executor reads the information in the symbol table, calls the appropriate application under test driver to complete the automated testing of the object under test. At the same time, it feeds back the test results to the remote automated test virtual machine. The result collector collects the execution results, and corresponds the test results to the keyword test script line numbers according to the symbol table to persist the data in a unified format.

[0015] Compared with the prior art, the present invention provides a method for realizing multi-machine cross-platform automated testing by an automated test virtual machine technology, which has the following beneficial effects:

[0016] 1. The method for realizing multi-machine cross-platform automated testing by the automated test virtual machine technology solves the requirements of cross-machine and cross-platform automated testing, provides multi-machine cross-platform support at the script line level for the execution of automated test scripts, sets up test machines, manages test machines, can set attributes such as the test machine name, IP address, and operating system name, and can bind test machines to different lines of the test script, so that each line of the test script has test machine attributes.

[0017] 2. The automated test virtual machine sends the instructions to be executed to different test machines according to the machine setting attributes of each line in the test script. The automated test virtual machine can receive execution instructions sent by a remote automated test virtual machine, call the correct driver, and complete the automated testing of the software application under test.

[0018] 3. Based on the automated test virtual machine technology, a multi-machine cross-platform automated test method is proposed to achieve cross-machine and cross-platform execution at the test script line level, completely solving the requirement of using a single test case for interactive function verification on different machines and different platforms. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a schematic diagram of the operation of the keyword automated test script of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0020] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0021] Please refer to Figure 1 , a method for realizing multi-machine cross-platform automated test by automated test virtual machine technology, including an integrated development environment, a keyword automated test script, and an automated test virtual machine. The integrated development environment includes test machine configuration and test script editing, and the automated test virtual machine includes a compiler, a result collector, an executor, and a communication module.

[0022] Preferably, the integrated development environment is unidirectionally connected to the keyword automated test script.

[0023] Preferably, the keyword automated test script is unidirectionally connected to the compiler, and the compiler is unidirectionally connected to a symbol table and three-address code.

[0024] Preferably, the executor is unidirectionally connected to the symbol table and three-address code, and the executor is unidirectionally connected to both the result collector and the communication module.

[0025] Preferably, when creating an automated test project using the integrated development environment, nodes such as test machines and test cases will be automatically created.

[0026] Preferably, the test machine configuration supports the configuration of test machines for different test environments, and can set attributes such as the name, address, and operating system name of the test machine, and can also check the operating environment of the test machine.

[0027] Preferably, the test script editing supports editing test scripts in table or text mode, and can perform machine settings and function settings on the test scripts. It can bind a test machine to a single-line script or batch-bind test machines to multiple-line scripts.

[0028] Preferably, the automated test virtual machine supports different operating platforms, such as Kirin, Windows, Mac and other operating systems, and can be deployed to different test machines.

[0029] Preferably, the compiler can compile and interpret the test script, identify the machine settings and function settings of the test script, generate three-address instructions and symbol tables for automated testing. The executor reads the three-address instructions and symbol tables, and according to the machine settings of the test script, sends the execution instructions to different test machines through the communication module. At the same time, it can receive the execution instructions sent by the remote automated test virtual machine. After receiving the execution instructions, the executor reads the information in the symbol table, calls the appropriate application under test driver to complete the automated testing of the object under test. At the same time, the test results are fed back to the remote automated test virtual machine. The result collector collects the execution results, and corresponds the test results with the keyword test script line numbers according to the symbol table to persist the data in a unified format.

[0030] Working principle: When the method for realizing multi-machine cross-platform automated testing by the automated test virtual machine technology is used, it solves the need for cross-machine cross-platform automated testing and provides multi-machine cross-platform support at the script line level for the execution of automated test scripts. In the integrated development environment, attributes such as name, IP address, and operating system name can be set for different test machines, and then the test machines are bound to different lines of the test script, so that a single-line test script has test machine attributes. The compiler of the automated test virtual machine converts the test script into three-address code containing test machine attributes according to the test machine attributes of the test script, and then the executor of the automated test virtual machine sends the execution instructions in the three-address code to different test machines through the communication module according to the IP addresses of the test machines. After receiving the execution instructions, the remote automated test virtual machine calls the correct driver to complete the automated testing of the software application under test.

[0031] Although the embodiments of the present invention have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principle and spirit of the present invention. The scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for realizing multi-machine cross-platform automated testing by an automated testing virtual machine technology, characterized in that: It includes an integrated development environment, keyword automation test scripts, and an automation test virtual machine. The integrated development environment includes test machine configuration and test script editing. The automation test virtual machine contains a compiler, a result collector, an executor, and a communication module; The keyword automation test scripts are unidirectionally connected to the compiler, and the compiler is unidirectionally connected to a symbol table and three-address code; The executor is unidirectionally connected to the symbol table and three-address code, and the executor is unidirectionally connected to both the result collector and the communication module; The automation test virtual machine supports different operating platforms and can be deployed to different test machines; The compiler compiles and interprets the keyword automation test scripts, identifies the machine settings and function settings of the keyword automation test scripts, generates three-address instructions and a symbol table for the automation test. The executor reads the three-address instructions and the symbol table, and according to the machine settings of the keyword automation test scripts, sends execution instructions to different test machines through the communication module. At the same time, it can receive execution instructions sent by a remote automation test virtual machine. After receiving the execution instructions, the executor reads the information in the symbol table, calls the appropriate application under test driver to complete the automation test of the object under test. At the same time, it feeds back the test results to the remote automation test virtual machine. The result collector collects the execution results and associates the test results with the line numbers of the keyword automation test scripts according to the symbol table to persist the data in a unified format; The test script editing supports editing the keyword automation test scripts in table or text mode, performs machine settings and function settings on the keyword automation test scripts, binds a test machine to a single-line script, and binds test machines to multiple-line scripts in batches; The integrated development environment is unidirectionally connected to the keyword automation test scripts.

2. The method for realizing multi-machine cross-platform automated testing by using the automated testing virtual machine technology according to claim 1, wherein: When creating an automation test project using the integrated development environment, test machines and test case nodes will be automatically created.

3. A method for implementing multi-machine cross-platform automated testing using the automated testing virtual machine technology according to claim 1, characterized in that: The test machine configuration supports configuring test machines for different test environments, and can set the name, address, and operating system name of the test machine, and check the running environment of the test machine.

Citation Information

Patent Citations

  • Method for accessing host program by script program, and system and apparatus thereof

    CN101458633A

  • Control infrastructure

    CN107210931A