A multi-platform multi-concurrency automated walkthrough test system

By designing a multi-platform multi-concurrency automated walk-through test system, the problem that traditional test systems cannot support mobile and cross-system automated testing is solved, efficient testing in a multi-platform environment is achieved, and testing efficiency and quality are improved.

CN117421234BActive Publication Date: 2024-09-03TIANXUN RUIDA COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311456052.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-03
Publication Date
2024-09-03
Estimated Expiration
2043-11-03

AI Technical Summary

Technical Problem

Traditional automated test management systems cannot effectively support the automated testing requirements of mobile applications and cannot implement cross-system automated testing, which limits the iteration speed and quality of mobile applications and increases the workload and risks of the testing team.

Method used

A multi-platform multi-concurrency automated walk-through test system is designed, including a script management module, a use case management module, a task management module and an execution machine scheduling module. Through these modules, the management and execution of test scripts, use cases and tasks are realized, and cross-system support is supported. Automate testing and execute test plans in a multi-platform environment.

Benefits of technology

It realizes multi-platform and multi-concurrency automated walk-through testing, improves testing efficiency and quality, supports concurrent and non-concurrent task execution, flexibly manages test resources, and adapts to a variety of system environments to meet diverse testing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117421234B
    Figure CN117421234B
Patent Text Reader

Abstract

The present invention discloses a multi-platform multi-concurrency automated walk-through test system, which relates to the field of automated testing technology. The system includes a script management module, a use case management module, a task management module, an execution machine scheduling module and a walk-through database; the task management module includes a task configuration module and a task scanning module; the walk-through database is used to process test data into walk-through test parameters; the execution machine scheduling module includes a use case execution module and a keyword extraction module; the use case execution module controls a number of execution machines to execute test cases according to the test plan and the walk-through test parameters, and generates a test data file; the keyword extraction module is used to identify keywords in the test data file, and extract the test data corresponding to the keyword and transmit it to the walk-through database. The present application realizes the sharing of walk-through test data among various test action scripts through the execution machine scheduling module and the walk-through database, thereby realizing multi-concurrency automated walk-through testing and improving test efficiency and test quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, in particular to a multi-platform multi-concurrency automated walkthrough testing system. Background Art

[0002] With the development of mobile Internet technology, more and more systems need to be migrated to mobile terminals. However, traditional automated test management systems often only test PC applications and cannot meet the needs of automated test management for mobile apps. This results in mobile applications being unable to enjoy the benefits of automated testing during the testing process, increasing the workload of the testing team.

[0003] At the same time, in actual testing, we often encounter some functions that need to be implemented across systems, involving the integration of different systems. For example, a system contains four subsystems, and the test system needs to test the four subsystems to complete the complete test. However, in traditional automated testing systems, cross-system automated testing cannot be achieved, and the test team can only complete this process through manual operation scheduling.

[0004] Therefore, the existing technology has defects in mobile terminal automated test management and cross-system automated testing. Traditional automated test management systems cannot effectively support the automated testing requirements of mobile applications, and cannot implement cross-system automated testing. This limits the iteration speed and quality of mobile applications, and increases the workload and risk of the test team. Summary of the invention

[0005] In order to solve the special problems of the prior art, the present invention adopts the following technical solutions:

[0006] A multi-platform multi-concurrency automated walkthrough test system, comprising a script management module, a use case management module, a task management module, an execution machine scheduling module and a walkthrough database which are sequentially connected in communication;

[0007] The script management module is used to store test action scripts and script parameters, and manage the mapping relationship between script parameters and test action scripts;

[0008] The test case management module is used to configure test cases and manage the mapping relationship between test action scripts and test cases;

[0009] The task management module includes a task configuration module and a task scanning module; the task configuration module is used to set the test case number, case priority, operating environment, execution machine specified information and execution mode of the test task; the task scanning module is used to regularly scan the test tasks and generate a test plan according to the test tasks;

[0010] The walk-through database is used to process the test data into walk-through test parameters;

[0011] The execution machine scheduling module includes a use case execution module and a keyword extraction module; the use case execution module controls several execution machines to execute test cases according to the test plan and the test parameters, and generates a test data file; the keyword extraction module is used to identify keywords in the test data file, and extract the test data corresponding to the keyword and transmit it to the test database.

[0012] As a preferred solution of the present application, the execution machine scheduling module also includes a keyword management module; the keyword management module is used to set a keyword data set and construct a mapping relationship between the keyword data set and the test task; the keyword extraction module is communicatively connected to the keyword management module, the keyword extraction module obtains the mapped keyword data set according to the test task, and the keyword extraction module identifies keywords in the test data file according to the keyword data set.

[0013] As a preferred solution of the present application, the execution machine scheduling module is used to execute the walk-through test strategy; the walk-through test strategy includes:

[0014] S1. Use the use case execution module to obtain the test task according to the test plan, and obtain the test case number with the highest priority in the test task;

[0015] S2. Use the test case execution module to execute the test case corresponding to the test case number according to the test parameters, and generate a test data file according to the test action script corresponding to the test case;

[0016] S3, obtaining the keyword data set stored in the keyword management module through the keyword extraction module, identifying the keywords in the test data file according to the keyword data set, extracting the test data corresponding to the keywords and transmitting them to the travel database;

[0017] S4, processing the test data into through-test data by traversing the database; the through-test data includes the test data generated in each round of step S3;

[0018] S5. Select the next test case number according to the test case priority, and repeat steps S2 to S4 until all test cases corresponding to the test task are executed.

[0019] As a preferred solution of the present application, the execution machine scheduling module also includes a test report module; the test report module is communicated with the use case execution module and is used to generate a test report based on the test data; the test report is used to visually display keywords and the test data corresponding to the keywords.

[0020] As a preferred solution of the present application, the test task is scanned periodically and a test plan is generated based on the test task, specifically: the execution mode of the scan test task includes manual execution and timed automatic execution; if the execution mode is timed automatic execution, a test plan is generated based on the test task when the automatic execution conditions are met.

[0021] As a preferred solution of the present application, generating a test plan according to the test task specifically includes:

[0022] Set the concurrency configuration parameters of all execution machines;

[0023] Test whether the task has been assigned to a specific executor according to the executor assignment information;

[0024] If a specific execution machine has been specified, the test task is assigned to the specific execution machine;

[0025] If no specific executor is specified, an executor is selected based on the concurrency configuration parameters and the idle situation, and a test plan is generated using the selected executor and the test task.

[0026] As a preferred solution of the present application, the execution machine scheduling module includes an environment adaptation module; the environment adaptation module is used to match the test task and the running environment of the execution machine; the running environment of the execution machine and the running environment of the test task both include Windows environment, Mac environment and Android environment.

[0027] As a preferred solution of the present application, the Windows environment, Mac environment and Android environment all include RobotFramework.

[0028] As a preferred solution of this application, the Android environment also includes Appium Server GUI, AppiumInspector and Appium server; the Mac environment also includes XCode and WebDriverAgentRunner.

[0029] As a preferred solution of the present application, the use case management module is also used to split test cases.

[0030] Compared with the prior art, the present invention has the following beneficial effects:

[0031] The present application implements the management and configuration of scripts, use cases and tasks respectively through a script management module, a use case management module and a task management module; the execution machine scheduling module includes a use case execution module and a keyword extraction module, which identifies keywords in the test data file and extracts the test data corresponding to the keywords and transmits them to a walk-through database, so that the walk-through test data is shared among various test action scripts, so that the use case execution module can execute a complete test plan in a multi-platform environment according to the walk-through test parameters, thereby realizing multi-platform and multi-concurrency automated walk-through testing and improving test efficiency and test quality.

[0032] This application supports both concurrent and non-concurrent task execution modes. Through concurrent configuration parameters and execution machine-specified information, execution machines are allocated according to different test scenarios to flexibly control the concurrency of test tasks, effectively allocate and manage test resources, and improve test efficiency.

[0033] This application matches the test task and the operating environment of the execution machine through the environment adaptation module to ensure that the test task supports running in a variety of system environments to meet diverse testing needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A schematic diagram of the structure of a multi-platform, multi-concurrency automated walk-through testing system provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0036] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. It should be noted that relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0037] See also Figure 1The present invention provides a multi-platform multi-concurrency automated walkthrough test system, including a script management module, a use case management module, a task management module, an execution machine scheduling module and a walkthrough database that are sequentially communicated and connected.

[0038] The script management module is used to store test action scripts and script parameters, and manage the mapping relationship between script parameters and test action scripts.

[0039] The use case management module is used to configure test cases, and the test cases are used to manage a number of test action scripts and script priorities.

[0040] The task management module includes a task configuration module and a task scanning module. The task configuration module is used to set the test case number, case priority, operating environment, execution machine specified information and execution mode of the test task. The task scanning module is used to regularly scan the test tasks and generate a test plan based on the test tasks.

[0041] The walk-through database is used to process the test data into walk-through test parameters.

[0042] The execution machine scheduling module includes a test case execution module and a keyword extraction module. The test case execution module controls a number of execution machines to execute test cases according to the test plan; the execution of test cases includes executing a number of test action scripts in the test cases and generating test data files according to the test parameters; the keyword extraction module is used to identify keywords in the test data file, and extract the test data corresponding to the keywords and transmit them to the walk database.

[0043] The controlling of a plurality of execution machines to execute test cases according to the test plan specifically includes: obtaining test tasks according to the test plan, and executing the test cases in sequence according to the priorities of the test cases in the test tasks.

[0044] The present application implements the management and configuration of scripts, use cases and tasks respectively through a script management module, a use case management module and a task management module; the execution machine scheduling module includes a use case execution module and a keyword extraction module, which identifies keywords in a test data file, extracts test data corresponding to the keywords and transmits them to a walk-through database, so that the test data corresponding to the keywords are shared among various test action scripts, so that the use case execution module can execute a complete test plan in a multi-platform environment according to the walk-through test parameters, thereby realizing multi-platform and multi-concurrency automated walk-through testing and improving test efficiency and test quality.

[0045] As a preferred embodiment, the execution machine scheduling module also includes a keyword management module. The keyword management module is used to set a keyword data set and construct a mapping relationship between the keyword data set and the test task. The keyword extraction module is connected to the keyword management module in communication, and the keyword extraction module obtains the mapped keyword data set according to the test task, and the identification of keywords in the test data file is specifically to identify keywords in the test data file according to the keyword data set.

[0046] The embodiment of the present application constructs a mapping relationship between a keyword data set and the test task through a keyword management module, thereby ensuring that a keyword extraction module can accurately extract keywords from the test data, thereby improving the efficiency and accuracy of the walkthrough test.

[0047] Furthermore, the execution machine scheduling module is used to execute the walk-through test strategy; the walk-through test strategy includes the steps of:

[0048] S11, obtaining the test action script with the highest script priority in the test case, and generating a test data file according to the walk-through test parameters. It should be noted that when step S11 is executed for the first time, the walk-through test parameters may be empty.

[0049] S12. Using the keyword extraction module, obtain the keyword data set stored in the keyword management module, identify the keywords in the test data file according to the keyword data set, extract the test data corresponding to the keyword, and transmit it to the travel database.

[0050] S13, the walk-through database processes the test data into walk-through test data; the walk-through test data includes the test data corresponding to the keywords in each round of step S12.

[0051] S14. Select the next test action script according to the script priority, and repeat steps S11 to S13 until all the test action scripts corresponding to the test case are executed.

[0052] In one embodiment, the automated walkthrough test system is applied to MBOSS testing. MBOSS testing refers to testing the MBOSS platform provided by China Telecom. Taking the ordinary telephone ordering business scenario in MBOSS testing as an example, the MBOSS platform includes two subsystems, the CRM system and the cloud orchestration system. The working process of executing the test case is as follows:

[0053] The common telephone ordering action script of the CRM system is executed by the use case execution module to generate a CRM order. The CRM order includes the order number and order status. The keyword extraction module identifies the order number keyword in the CRM order, obtains the order number of the CRM order in the test data file through the order number keyword, and saves it to the travel database.

[0054] The use case execution module executes the service activation action script of the cloud orchestration system according to the order number.

[0055] The use case execution module executes the order status query action script of the CRM system to determine whether the order status is changed to the completed status.

[0056] Based on the above content, the execution machine scheduling module executed three steps, namely, executing the ordinary telephone ordering action script in the CRM system, executing the service activation action script in the cloud orchestration system after the execution is completed, and then returning to the CRM system to execute the order status query action script, spanning two systems. During the execution process, the execution machine scheduling module sends pybot commands and corresponding data files to the execution machine to control the execution machine.

[0057] As a preferred embodiment, the execution machine scheduling module also includes a test report module. The test report module is connected to the use case execution module for generating a test report based on the test data. The test report is used to visually display keywords and test data corresponding to the keywords. In one embodiment, the test report includes HTML format and XML format.

[0058] Based on the previous embodiments, this embodiment provides a test report module to visually display the test results, including keywords and their corresponding test data, and supports HTML and XML format reports, which improves the readability and comprehensibility of the test results, facilitates users to discover and solve problems, thereby improving the stability and reliability of the system.

[0059] As a preferred embodiment, the periodic scanning of test tasks and generating test plans according to the test tasks specifically include: scanning the execution mode of the test tasks, the execution mode includes manual execution and timed automatic execution. If the execution mode is timed automatic execution, when the automatic execution condition is met, a test plan is generated according to the test tasks.

[0060] Furthermore, generating a test plan according to the test task specifically includes:

[0061] Set the concurrency configuration parameters of all execution machines. The concurrency configuration parameters are Boolean values. If the concurrency configuration parameter is YES, the execution machine participates in concurrent tasks; if the concurrency configuration parameter is NO, the execution machine does not participate in concurrent tasks.

[0062] Test whether the task has been assigned to a specific executor according to the executor assignment information;

[0063] If a specific execution machine has been designated, the test task is assigned to the specific execution machine, and the specific execution machine executes all test cases corresponding to the test task.

[0064] If no specific execution machine is specified, an execution machine is selected according to the concurrency configuration parameter and the idle state, specifically, an execution machine whose concurrency configuration parameter is YES and is in an idle state is selected, and then a test plan is generated through the selected execution machine and the test task. The test plan is used to specify the execution machine assigned to each test case.

[0065] This embodiment supports both concurrent and non-concurrent task execution modes. Through concurrent configuration parameters and execution machine specification information, execution machines are allocated according to different test scenarios to flexibly control the concurrency of test tasks, effectively allocate and manage test resources, and improve test efficiency.

[0066] As a preferred embodiment, the execution machine scheduling module includes an environment adaptation module. The environment adaptation module is used to match the test task and the execution machine's operating environment. The execution machine's operating environment and the test task's operating environment both include a Windows environment, a Mac environment, and an Android environment.

[0067] Furthermore, the operating environment of the execution machine is built through vmware. The Windows environment, Mac environment and Android environment include operating environments such as JRE, python and / or Robot Framework required for executing automated tests. Among them, the Windows environment, Mac environment and Android environment all include Robot Framework. Robot Framework is an open source test automation framework based on Python. Robot Framework provides a highly readable, easily extensible and reusable test action script syntax for test automation, which can support various application automation tests such as front-end, interface, mobile terminal, etc.

[0068] The Android environment also includes Appium Server GUI, Appium Inspector and Appium server. Among them, Appium Inspector is a visual tool used to help testers locate and identify elements on the mobile application interface during automated testing. Appium Server is an open source test automation server that can test all types of mobile applications, including native, hybrid and mobile web applications. Appium Server GUI is a configuration tool with a graphical interface for configuring and managing Appium Server. Through the Appium Server GUI, you can easily start and stop the Appium Server, monitor the status of the service, and view the log output.

[0069] The Mac environment also includes XCode and WebDriverAgentRunner. WebDriverAgentRunner is an iOS application based on the XCTest framework, which is used to support XCUITest automated testing and implement the interface of the Webdriver protocol through the Appium framework. WebDriverAgent is an open source project developed and maintained by Facebook's open source organization. It has become the standard solution for XCUITest automated testing. In the MAC environment, WebDriverAgentRunner can be used to quickly develop and run XCUITest automated test cases, and can be adapted to different versions of iOS applications, thereby establishing communication connections with Apple mobile phones and iPad devices.

[0070] This embodiment matches the test task and the running environment of the execution machine through the environment adaptation module, ensuring that the test task supports running in a variety of system environments to meet diverse test requirements.

[0071] Furthermore, the test case includes a walk-through test case and a non-walk-through test case. The walk-through test case includes multiple test action scripts, and the non-walk-through test case includes one test action script. In the present application, although the walk-through test case will test multiple systems at the same time, it is only one test case in the automated testing system. There are just multiple actions in the test case, so it is still assigned to an execution machine as a case in the test plan for execution, and the entire walk-through test case is executed after all actions are completed. Since the walk-through test is implemented by the same test case, and each test case is automated by a single execution machine, the test case is the smallest unit in the test plan, so the walk-through test case can only be executed on the same execution machine, and cannot be executed on multiple different execution machines.

[0072] Based on the above, the use case management module is also used to split test cases. When performing walk-through tests in multiple platform environments, the original walk-through test cases can be split into multiple test cases through the use case management module, and priorities can be set to execute in different platform operating environments. Therefore, when migrating from a single platform environment to a multi-platform environment, this embodiment does not need to regenerate new walk-through test cases, thereby improving test efficiency.

[0073] In the several embodiments provided in the present application, it should be understood that the disclosed units can be implemented in other ways. For example, the unit embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another unit, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of modules, which can be electrical, mechanical or other forms.

[0074] The units described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0075] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0076] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A multi-platform multi-concurrency automated walkthrough test system, Features: It includes a script management module, a use case management module, a task management module, an execution machine scheduling module and a travel database which are sequentially connected in communication; The script management module is used to store test action scripts and script parameters, and manage the mapping relationship between script parameters and test action scripts; The test case management module is used to configure test cases, and the test cases are used to manage a number of test action scripts and script priorities; The task management module includes a task configuration module and a task scanning module; the task configuration module is used to set the test case number, case priority, operating environment, execution machine specified information and execution mode of the test task; the task scanning module is used to regularly scan the test tasks and generate a test plan according to the test tasks; The walk-through database is used to process the test data into walk-through test parameters; The execution machine scheduling module includes a use case execution module and a keyword extraction module; The test case execution module controls a plurality of execution machines to execute the test cases according to the test plan; The executing test case includes executing several test action scripts in the test case and generating a test data file according to the test parameters; the keyword extraction module is used to identify keywords in the test data file, and extract the test data corresponding to the keyword and transmit it to the walk-through database; The execution machine scheduling module also includes a keyword management module; the keyword management module is used to set a keyword data set and construct a mapping relationship between the keyword data set and the test task; the keyword extraction module is connected to the keyword management module in communication, the keyword extraction module obtains the mapped keyword data set according to the test task, and the keyword extraction module identifies the keywords in the test data file according to the keyword data set; The execution machine scheduling module is used to execute the walk-through test strategy; The walk-through test strategy comprises the steps of: S11, obtaining the test action script with the highest script priority in the test case, and generating a test data file according to the test parameters; S12, using the keyword extraction module to obtain the keyword data set stored in the keyword management module, identifying the keywords in the test data file according to the keyword data set, and extracting the test data corresponding to the keywords and transmitting them to the travel database; S13, the walking database processes the test data into walking test data; the walking test data includes the test data corresponding to the keywords in each round of step S12; S14, selecting the next test action script according to the script priority, and repeating steps S11 to S13 until all the test action scripts corresponding to the test case are executed; The execution machine scheduling module also includes a test report module; the test report module is in communication with the use case execution module and is used to generate a test report based on the test data; the test report is used to visually display keywords and test data corresponding to the keywords; The periodic scanning of test tasks and generating test plans according to the test tasks specifically include: scanning the execution mode of the test tasks, the execution mode including manual execution and scheduled automatic execution; if the execution mode is scheduled automatic execution, generating a test plan according to the test tasks when the automatic execution conditions are met; The generating of the test plan according to the test task specifically includes: Set the concurrency configuration parameters of all execution machines; Test whether the task has been assigned to a specific executor according to the executor assignment information; If a specific execution machine has been specified, the test task is assigned to the specific execution machine; If no specific executor is specified, an executor is selected according to the concurrency configuration parameters and the idle situation, and a test plan is generated through the selected executor and the test task; The execution machine scheduling module includes an environment adaptation module; the environment adaptation module is used to match the test task and the running environment of the execution machine; the running environment of the execution machine and the running environment of the test task both include the Windows environment, the Mac environment and the Android environment.

2. The multi-platform multi-concurrency automated walkthrough test system according to claim 1, Features: The Windows environment, Mac environment and Android environment all include Robot Framework.

3. The multi-platform multi-concurrency automated walkthrough test system according to claim 1, Features: The Android environment also includes Appium Server GUI, Appium Inspector and Appium server; the Mac environment also includes XCode and WebDriverAgentRunner.

4. The multi-platform multi-concurrency automated walkthrough test system according to claim 1, Features: The use case management module is also used to split test cases.