A highly reusable interface automation testing platform

By providing a highly reusable interface automation test platform, the existing interface testing tools need to be downloaded and configured and have poor collaboration, and efficient interface scripting and use case management are achieved, and work efficiency and collaboration capabilities are improved.

CN113609006BActive Publication Date: 2025-05-02ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110813227.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-19
Publication Date
2025-05-02
Estimated Expiration
2041-07-19

AI Technical Summary

Technical Problem

Existing interface testing tools need to be downloaded locally, the configuration environment is high, the labor and time are costly, and the collaboration is poor, which makes the tool unusable due to hardware or environmental problems, and the manual parameters are inefficient, and it is easy to miss or fill incorrectly.

Method used

It provides a highly reusable interface automation test platform, including business units, interface management units and use case management units. It is used through web platform mode, supports customized project data synchronization, centralized classification management interface scripts and use cases, and improves collaboration efficiency.

Benefits of technology

It reduces work errors in manually adding parameters, saves time and labor costs, improves work efficiency and collaboration capabilities, and solves the problem of insufficient availability and collaboration of interface testing tools in the prior art.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113609006B_ABST
    Figure CN113609006B_ABST
Patent Text Reader

Abstract

The present invention relates to a highly reusable interface automation test platform, comprising a business unit, the business unit is connected to and manages an interface management unit and a use case management unit; the interface management unit comprises an interface storage module, an interface processing module and an interface debugging module, the interface processing module is used to add and / or delete and / or modify and / or query interfaces; the use case management unit is used to store and execute use cases, the use case management unit is configured to configure interfaces associated with the use cases through the business unit; the interface processing module is configured to complete parameter addition by synchronizing general parameters and / or business parameters in an internal interface platform when adding a new interface. By quickly synchronizing parameters from the internal interface platform to the interface to complete the use case test, work efficiency is improved; the problem of low efficiency in manually adding parameters in the prior art, and the possibility of missing or incorrectly filling parameters, which affects the test results, is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interface testing, and in particular to a highly reusable interface automation testing platform. Background Art

[0002] At present, the complexity of software systems is constantly increasing. It is difficult to guarantee the quality and progress of projects by simply relying on one-sided functional testing. Therefore, the status of interface testing in the testing industry has become increasingly important. There are many interface testing tools on the market, such as the commonly used jmeter, postman and soapUI, which can perform interface testing locally. Most of these tools install apps locally, configure the environment, and then manually fill in the interface parameter information to be tested to perform the test. When working in a team, the interface script information can be shared by generating interface scripts and transferring files.

[0003] However, the interface testing tools such as jmeter, postman and soapUI in the existing technology mainly have the following technical problems:

[0004] 1) All the tools need to be downloaded locally and the local environment needs to be configured, which consumes a lot of manpower and time. In addition, if the machine has hardware problems, environmental problems, or tool files are damaged, the entire test tool may become unusable.

[0005] 2) Since they are all used in the local environment, the collaboration is very poor. One user can only edit the script and send it to another user for debugging and use in his local environment. The whole process is cumbersome. In many cases, the different environments and tool versions of the two users and the damage of the script during transmission will affect the whole collaboration process and reduce work efficiency.

[0006] 3) After downloading, the test tools are in the initialized state, so when a new project is started, the interface information needs to be added again. Manually adding parameters one by one takes a long time, and with the increase in parameters, it is very likely that parameters will be missed or filled in incorrectly, which will also take a certain amount of energy and time to troubleshoot.

[0007] Therefore, it is necessary to provide an interface automation testing platform that does not require configuration of the local environment and has strong collaboration capabilities and improves work efficiency to solve the above technical problems. Summary of the invention

[0008] In order to solve the above technical problems, the present invention provides a highly reusable interface automation test platform, which solves the problems in the prior art that manual parameter addition is inefficient and may result in missing or incorrect parameter filling, thus affecting the test results.

[0009] The technical effects of the present invention are achieved as follows:

[0010] A highly reusable interface automation testing platform, comprising a business unit, wherein the business unit connects and manages an interface management unit and a use case management unit;

[0011] The interface management unit includes an interface storage module, an interface processing module and an interface debugging module, wherein the interface storage module is used to store interface information, the interface processing module is used to add and / or delete and / or modify and / or query interfaces, and the interface debugging module is used to debug newly added interfaces;

[0012] The use case management unit is used to store and execute use cases, and the use case management unit is configured to configure the interface associated with the use case through the business unit. Each interface script and interface use case are grouped according to the dimension of the business line through the interface automation testing platform, so as to achieve centralized classification management and make the interface script management of the entire organization more systematic. By integrating tools through the interface automation testing platform, user needs are customized to meet the needs of users to solve multiple problems at the same time, which solves the problem of reducing work efficiency by downloading multiple tools in the prior art to meet the various work needs of users.

[0013] Furthermore, the interface processing module is configured to complete the addition of parameters by synchronizing the general parameters and / or business parameters in the internal interface platform when a new interface is added. By customizing the project data synchronization method, the internal interface platform can quickly synchronize general parameters and business parameters to avoid manual addition of general parameters, thereby reducing work errors caused by adding parameters one by one, saving time and labor costs, and improving work efficiency.

[0014] Furthermore, the use case management unit is provided with a use case operation page, which is used to add test steps, the test steps correspond to the interface one by one, and the use case operation page is configured to synchronize to the test steps through the interface to complete the use case test.

[0015] Furthermore, it also includes a test report generation unit, which is connected to the use case operation page, and is used to generate an execution report, and the test report is used to store the running results corresponding to the test steps. By storing the running results corresponding to the test steps in a unified manner, the test steps are recorded clearly, and problems can be reproduced at any time, making it more convenient to troubleshoot problems.

[0016] Furthermore, it also includes a data monitoring unit, which is connected to the interface management unit, the use case management unit and the test report generation unit respectively.

[0017] Furthermore, it also includes a Web multi-terminal collaboration page, the Web multi-terminal collaboration page is connected to the use case management unit, and the interface automation test platform is set to be entered through the Web multi-terminal collaboration page. Using the interface testing tool in a web platform manner solves the problem in the prior art that the interface testing tool needs to be downloaded locally and the local environment configured, which consumes a lot of manpower and time costs, and once the machine has hardware problems, environmental problems or tool file damage, the entire test tool may be unusable.

[0018] Furthermore, the Web multi-terminal collaboration page also includes a user login module, which is used to log in to the Web multi-terminal collaboration page through an account to perform data testing. Instead of collaborating with each other by generating physical script files, all users can log in through a web-based platform, so that all users can directly perform testing work on the platform and can directly use scripts that have been edited by other users without adding duplicate information again, thereby improving work collaboration efficiency.

[0019] Furthermore, it also includes a public parameter pool, which is connected to the interface management unit and is used to store common parameters configured for the interface management unit.

[0020] Furthermore, the interface debugging module is configured to complete debugging of the newly added interface by identifying request information of the newly added interface.

[0021] Furthermore, the request information at least includes a request header, request parameters, request assertions, and return result parameter extraction.

[0022] As described above, the present invention has the following beneficial effects:

[0023] 1) Through customized project data synchronization, the internal interface platform can quickly synchronize general parameters and business parameters to avoid manual addition of general parameters, thereby reducing work errors caused by adding parameters one by one, saving time and labor costs, and improving work efficiency.

[0024] 2) Through the interface automation testing platform, each interface script and interface use case are grouped according to the business line dimension, so as to achieve centralized classification management and make the interface script management of the entire organization more systematic.

[0025] 3) By integrating tools through the interface automation test platform, user needs can be customized to meet the needs of users to solve multiple problems at the same time, solving the problem of reducing work efficiency by downloading multiple tools in the existing technology to meet users' various work needs.

[0026] 4) Instead of collaborating with each other by generating physical script files, all users can log in through a web-based platform so that all users can perform testing work directly on the platform and can directly use scripts that have been edited by other users without adding duplicate information, thereby improving work collaboration efficiency.

[0027] 5) Using the interface testing tool in a web platform manner solves the problem in the prior art that the interface testing tool needs to be downloaded locally and the local environment needs to be configured, which consumes a lot of manpower and time. In addition, once the machine has hardware problems, environmental problems or tool files are damaged, the entire testing tool may become unusable.

[0028] 6) By storing the running results corresponding to the test steps in a unified manner, the test steps are clearly recorded and the problems can be reproduced at any time, making it more convenient to troubleshoot the problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0030] Figure 1 This is a structural block diagram of a highly reusable interface automation testing platform according to an embodiment of the present application.

[0031] Among them, the reference numerals in the figure correspond to:

[0032] Business unit 1, interface management unit 2, interface storage module 21, interface processing unit 22, interface debugging module 23, use case management unit 3, use case operation page 31, test report generation unit 4, data monitoring unit 5, Web multi-terminal collaboration page 6, user login module 61, public parameter pool 7, environment pool 8, internal interface platform 9. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of 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.

[0034] Embodiment 1:

[0035] like Figure 1As shown, the embodiment of this specification provides a highly reusable interface automation testing platform, the platform comprising:

[0036] It includes a business unit 1, which is connected to and manages an interface management unit 2 and a use case management unit 3; the interface management unit 2 includes an interface storage module 21, an interface processing module 22 and an interface debugging module 23, the interface storage module 21 is used to store interface information, the interface information includes interface name, interface description, interface grouping, request protocol and interface basic path, etc. The interface processing module 22 is used to add and / or delete and / or modify and / or query interfaces, and the interface debugging module 23 is used to debug newly added interfaces; the use case management unit 3 is used to store and execute use cases, and the use case management unit 3 is configured to configure interfaces associated with use cases through the business unit 1.

[0037] Specifically, the interface management unit 2 and the use case management unit 3 are respectively connected through the business unit 1, so that the business unit 1 can group and configure the business lines of the interfaces and use cases.

[0038] In this embodiment, the interface processing module 22 is configured to complete the addition of parameters by synchronizing the general parameters and / or business parameters in the internal interface platform 9 when a new interface is added.

[0039] Specifically, the interface processing module 22 uses a one-click synchronization method to synchronize the general parameters and / or business parameters in the internal interface platform 9 to the newly added interface to achieve the addition of parameters. The internal interface platform 9 is a platform set up by each enterprise for calling interface information. The internal interface platform 9 of each enterprise must be associated with a database, which is used to store interface information and retrieve the encapsulation method of these interface information codes. The one-click synchronization of interface information can be achieved through the internal interface platform 9. In this embodiment, the interface debugging module 23 is set to complete the debugging of the newly added interface by identifying the request information of the newly added interface. The request information includes a request header, request parameters, request assertions, and return result parameter extraction.

[0040] Specifically, the interface debugging module 23 calls the http request method with the request information, and obtains the return result to realize interface debugging and assertion. The interface management unit 2 is provided with a display page, and the interface debugging module 23 directly displays the result after debugging the interface, completing the test of the newly added interface.

[0041] In this embodiment, the use case management unit 3 is provided with a use case operation page 31, which is used to add test steps. The test steps and interfaces correspond one to one. The use case operation page 31 is configured to synchronize to the test steps through the interface to complete the use case test.

[0042] Specifically, the use case management unit 3 is used to store use case information. The use case operation page 31 is implemented by adding one or more test steps, and one test step is bound to an interface. The interface binding method can be synchronized with one key from the interface management unit 2. The test step can directly realize context association by extracting the return result parameter. The interface type can be an http interface or a dubbo interface.

[0043] In this embodiment, a test report generating unit 4 is also included. The test report generating unit 4 is connected to the use case operation page 31. The test report generating unit 4 is used to store the operation results corresponding to the test steps.

[0044] Specifically, the test report generation unit 4 generates and stores a test report after executing the case test, and the test report stores the running result of each step (ie, interface). The test report generation unit 4 can also generate log details corresponding to the date for user query.

[0045] In this embodiment, a data monitoring unit 5 is also included. The data monitoring unit 5 is connected to the interface management unit 2, the use case management unit 3 and the test report generation unit 4 respectively.

[0046] Specifically, the data monitoring unit 5 is connected to the interface management unit 2, the use case management unit 3 and the test report generation unit 4 to count the data of the interface, use case and execution report. For example, the interface management module 2 counts the number of newly added interfaces per day / week / month and the number of newly added interfaces per user / business line group, the use case management unit 3 counts the number of newly added use cases per day / week / month and the number of newly added interfaces per user / business line group, and the test report generation unit 4 counts the success rate of the execution of the use case test. The data monitoring unit 5 can also count the number of scheduled tasks in the interface management unit 2, the use case management unit 3 and the test report generation unit 4.

[0047] In this embodiment, a Web multi-terminal collaboration page 6 is also included, which is connected to the use case management unit 3, and the interface automation test platform is set to be entered through the Web multi-terminal collaboration page 6. The entire platform is presented to users in the form of a web page. Users do not need to download test tools. As long as they are connected to the Internet, they can directly perform testing work on the platform, and can directly use scripts that have been edited by other users without adding repeated information again, thereby improving work collaboration efficiency.

[0048] Specifically, the use case operation page 31 completes the creation of the test steps through the Web multi-terminal collaboration page 6. The Web multi-terminal collaboration page 6 needs to select the environment address before creating the test steps. The interface automation testing platform also includes an environment pool 8. The environment pool 8 is used to store the environment address. The environment address includes the test environment and the pre-release environment. The environment address can be configured in the public parameter pool. When running the interface and use case, the corresponding environment address is selected, and the corresponding parameters are passed through the front end. The back end matches different environment address requests according to the situation, so that the interface and use case can be bound to a specific environment.

[0049] In this embodiment, the Web multi-terminal collaboration page 6 also includes a user login module 61, and the user login module 61 is used to log in to the Web multi-terminal collaboration page 6 through an account to perform data testing.

[0050] In this embodiment, a public parameter pool 7 is also included. The public parameter pool 7 is connected to the interface management unit 2 . The public parameter pool 7 is used to store common parameters and configure them for the interface management unit 2 .

[0051] Specifically, the public parameter pool 7 is used to store some common parameters, which is equivalent to the common item configuration of the interface automation test platform. The business unit 1 adds business line groups (group A, group B) through the public parameter pool 7. After adding, group A and group B can be applied in the process of interface management and use case management, so that the interface, use case and the newly added group A and group B can be associated.

[0052] In this embodiment, the interface debugging module 23 is configured to complete the debugging of the newly added interface by identifying the request information of the newly added interface.

[0053] The working process of the interface automation testing platform:

[0054] 1) Adding new interface: Adding new interface through interface processing module 22, synchronizing general parameters from internal interface platform 9 with one key, inputting test data and saving;

[0055] 2) Interface debugging: After the interface is saved, the interface is debugged through the interface debugging module 23. After the debugging is completed, the result is directly displayed on the display page of the interface management unit 2 to complete the test of the newly added interface;

[0056] 3) Add a new use case: add a new use case through the use case management unit 3, add a test step through the use case operation page 31, and synchronize to the test step through the interface corresponding to the test step;

[0057] 4) Use case execution: Execute tests on a single use case or multiple use cases simultaneously through the use case management unit 3;

[0058] 5) Test report: The test report page of the test report generation unit 4 can display the test results after the use case is executed, and the test report generation unit 4 stores all execution data and log records;

[0059] 6) Data monitoring: The data monitoring unit 5 automatically and regularly counts the number of interfaces, the number of use cases and the success rate of use case execution.

[0060] User usage process of the interface automation testing platform:

[0061] 1) Enter the page: No need to download physical software such as tool installation packages, just open the browser, enter the platform address, and log in to your account to enter the platform;

[0062] 2) Collaborative use: All organizational users can see all script information on the platform and can directly connect to the Internet for online collaboration;

[0063] 3) Add new interface: Enter the interface management page, add a new interface, synchronize common parameters from the internal interface platform with one click, enter test data and save;

[0064] 4) Interface debugging: After saving the interface, perform interface debugging. After debugging is completed, the result is directly displayed on the page, and the test of the newly added interface is completed;

[0065] 5) Group management: Each interface is bound to the parameters of each business line, and the interface management page can search for interfaces based on business line keywords;

[0066] 6) Add a new use case: Enter the use case management page, add a new use case, add one or more test steps, each test step can directly synchronize the interface from the existing interface list, add the test data and save;

[0067] 7) Use case execution: For a single use case, you can directly execute the use case in the operation bar of the use case. For multiple use cases, you can select multiple use cases in batches and execute them simultaneously.

[0068] 8) Test report: The test results after the use case execution can be found on the corresponding test report page, and all execution data and log records will be stored in the database;

[0069] 9) Data monitoring: The platform automatically and regularly counts new interfaces, new use cases, and the success and failure rates of use case executions. It also automatically counts the number of scripts designed for each business line and displays them visually through charts.

[0070] As described above, the present invention has the following beneficial effects:

[0071] 1) Through customized project data synchronization, the internal interface platform can quickly synchronize general parameters and business parameters to avoid manual addition of general parameters, thereby reducing work errors caused by adding parameters one by one, saving time and labor costs, and improving work efficiency.

[0072] 2) Through the interface automation testing platform, each interface script and interface use case are grouped according to the business line dimension, so as to achieve centralized classification management and make the interface script management of the entire organization more systematic.

[0073] 3) By integrating tools through the interface automation test platform, user needs can be customized to meet the needs of users to solve multiple problems at the same time, solving the problem of reducing work efficiency by downloading multiple tools in the existing technology to meet users' various work needs.

[0074] 4) Instead of collaborating with each other by generating physical script files, all users can log in through a web-based platform so that all users can perform testing work directly on the platform and can directly use scripts that have been edited by other users without adding duplicate information, thereby improving work collaboration efficiency.

[0075] 5) Using the interface testing tool in a web platform manner solves the problem in the prior art that the interface testing tool needs to be downloaded locally and the local environment needs to be configured, which consumes a lot of manpower and time. In addition, once the machine has hardware problems, environmental problems or tool files are damaged, the entire testing tool may become unusable.

[0076] 6) By storing the running results corresponding to the test steps in a unified manner, the test steps are clearly recorded and the problems can be reproduced at any time, making it more convenient to troubleshoot the problems.

[0077] In this document, the directional words such as front, back, top, and bottom are defined by the positions of the components in the drawings and the positions of the components relative to each other, and are only for the sake of clarity and convenience in expressing the technical solution. It should be understood that the use of the directional words should not limit the scope of protection claimed in this application.

[0078] In the absence of conflict, the above embodiments and features in the embodiments can be combined with each other.

[0079] The above disclosure is only a preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A highly reusable interface automation testing platform, characterized in that: The invention comprises a business unit (1), wherein the business unit (1) is respectively connected to and manages an interface management unit (2) and a use case management unit (3), wherein the business unit (1) is used to group interfaces in the interface management unit (2) and use cases in the use case management unit (3) according to business lines; and specifically comprises a public parameter pool (7) and an internal interface platform (9), wherein the public parameter pool (7) is respectively connected to the interface management unit (2) and the business unit (1), wherein the public parameter pool (7) is used to store common parameters and configure them to the interface management unit (2), wherein the business unit (1) adds a business line group through the public parameter pool (7), wherein the business line group after addition is completed can be used to associate interfaces, use cases and the newly added business line group in the process of interface management and use case management; and the internal interface platform (9) is connected to the interface management unit (2); The interface management unit (2) comprises an interface storage module (21), an interface processing module (22) and an interface debugging module (23), wherein the interface storage module (21) is used to store interface information; the interface processing module (22) is used to add and / or delete and / or modify and / or query interfaces, and the interface processing module (22) is configured to complete parameter addition by synchronizing common parameters and / or business parameters in the internal interface platform (9) when a new interface is added, so that each interface is bound to corresponding business line parameters; the interface debugging module (23) is configured to complete debugging of the new interface by identifying request information of the new interface and calling an http request method according to the request information, and directly display the result after debugging the interface is completed; The use case management unit (3) is used to store and execute use cases, and the use case management unit (3) is configured to configure an interface associated with the use case through the business unit (1); The use case management unit (3) is provided with a use case operation page (31), the use case operation page (31) is used to add test steps, the test steps correspond to the interface one by one, and the use case operation page (31) is configured to synchronize to the test steps through the interface to complete the use case test.

2. The highly reusable interface automation testing platform according to claim 1, characterized in that: It also includes a test report generation unit (4), which is connected to the use case operation page (31), and is used to generate an execution report, and the test report is used to store the operation results corresponding to the test steps.

3. The highly reusable interface automation testing platform according to claim 2, characterized in that: The system also comprises a data monitoring unit (5), wherein the data monitoring unit (5) is respectively connected to the interface management unit (2), the use case management unit (3) and the test report generation unit (4), and the data monitoring unit (5) is used to collect statistics on the data of the interface, use case and test report.

4. The highly reusable interface automation testing platform according to claim 1, characterized in that: It also includes a Web multi-terminal collaboration page (6), the Web multi-terminal collaboration page (6) is connected to the use case management unit (3), and the interface automation test platform is configured to be entered through the Web multi-terminal collaboration page (6).

5. The highly reusable interface automation testing platform according to claim 4, characterized in that: The Web multi-terminal collaboration page also includes a user login module (61), and the user login module (61) is used to log in to the Web multi-terminal collaboration page through an account to perform data testing.

6. The highly reusable interface automation testing platform according to claim 1, characterized in that: The request information at least includes a request header, request parameters, request assertion, and return result parameter extraction.

Citation Information

Patent Citations

  • Automatic test system

    CN104601403A

  • Collaborative office method and a collaborative office platform for software automation testing

    CN109344069A

  • Method for automatically generating performance test script based on interface test tool

    CN110427331A

  • Interface testing method and system, and computer readable storage medium

    CN112579421A