A test control system, method and device
Through the cooperation of the test control platform, server and client, the problems of low efficiency and high cost of interface testing are solved, unified management and automation of interface testing are realized, testing efficiency is improved and costs are saved.
Patent Information
- Application Number
- CN202010071699.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-21
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-01-21
AI Technical Summary
Existing interface testing methods are inefficient and costly, and cannot achieve unified management and automation of different types of interface testing.
Through the cooperation between the test control platform, test control server and test execution client, interface test data is obtained and stored, test cases are generated, and assigned to the corresponding execution modules for testing, realizing unified management and automation of interface testing.
It saves testing costs, improves testing efficiency, and realizes unified management and automation of different types of interface tests.
Smart Images

Figure CN112416745B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a test control system, method and device. Background Art
[0002] In recent years, with the continuous development of network technology and multimedia technology, various functional applications have emerged. Among them, interface testing is the key to ensure the normal use of various functions such as data transmission between applications and servers, database access, etc.
[0003] However, currently, different test frameworks are usually used for different types of interface tests, which results in high test costs and low test efficiency. Summary of the invention
[0004] The embodiments of the present application provide a test control system, method, apparatus, device and medium to solve the problems of low efficiency and high cost in the interface testing method in the prior art.
[0005] The technical solutions provided by the embodiments of this application are as follows:
[0006] On the one hand, an embodiment of the present application provides a test control system, including:
[0007] The test control platform is used to obtain the test data respectively input for each test object of the service interface, and store the test data of each test object of the service interface in the test database of the test control server, wherein each test object of the service interface is the test object included in each type of interface test of the service interface;
[0008] The test control server is used to obtain the test data of each test object of the service interface stored in the test control platform from the test database, generate the test case of each test object of the service interface based on the test data of each test object of the service interface, and store the test case of each test object of the service interface in the test database;
[0009] Each test execution client is used to obtain the test cases of each test object of the service interface stored in the test control server from the test database, and determine the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs, and assign the test cases of each test object of the service interface to the corresponding test execution modules for execution, so as to perform various interface tests on the service interface.
[0010] On the other hand, an embodiment of the present application provides a test control method applied to a test control platform, including:
[0011] Acquire test data respectively input for each test object of the service interface, wherein each test object of the service interface is a test object included in each type of interface test of the service interface;
[0012] The test data of each test object of the service interface are stored in the test database of the test control server, so that the test control server generates test cases for each test object of the service interface based on the test data of each test object of the service interface stored in the test database, and stores the test cases for each test object of the service interface in the test database, triggering the test execution client to execute the test cases for each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
[0013] On the other hand, an embodiment of the present application provides a test control method applied to a test control server, including:
[0014] Acquire test data of each test object of the service interface stored in the test control platform from the test database, wherein each test object of the service interface is a test object included in each type of interface test of the service interface;
[0015] Generate test cases for each test object of the service interface based on the test data of each test object of the service interface;
[0016] The test cases of each test object of the service interface are stored in the test database, and the test execution client is triggered to execute the test cases of each test object of the service interface stored in the test database to perform various interface tests on the service interface.
[0017] On the other hand, an embodiment of the present application provides a test control method applied to a test execution client, including:
[0018] Obtaining, from a test database of the test control server, test cases of various test objects of the service interface stored in the test control server, wherein the various test objects of the service interface are test objects included in various interface tests of the service interface;
[0019] Determine the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs;
[0020] The test cases of each test object of the service interface are respectively assigned to the corresponding test execution modules for execution, so as to perform various interface tests on the service interface.
[0021] On the other hand, an embodiment of the present application provides a test control device applied to a test control platform, including:
[0022] A data acquisition unit, used to acquire test data respectively input for each test object of the service interface, wherein each test object of the service interface is a test object included in each type of interface test of the service interface;
[0023] A data storage unit is used to store the test data of each test object of the service interface into the test database of the test control server, so that the test control server generates test cases for each test object of the service interface based on the test data of each test object of the service interface stored in the test database, and stores the test cases for each test object of the service interface into the test database, triggering the test execution client to execute the test cases for each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
[0024] On the other hand, an embodiment of the present application provides a test control device applied to a test control server, including:
[0025] A data acquisition unit is used to acquire test data of each test object of the service interface stored in the test control platform from the test database, wherein each test object of the service interface is a test object included in various interface tests of the service interface;
[0026] A use case generation unit, used to generate test cases for each test object of the service interface based on the test data of each test object of the service interface;
[0027] The use case storage unit is used to store the test cases of each test object of the service interface into the test database, trigger the test execution client to execute the test cases of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
[0028] On the other hand, an embodiment of the present application provides a test control device applied to a test execution client, including:
[0029] A use case acquisition unit is used to acquire test cases of various test objects of the service interface stored in the test control server from a test database of the test control server, wherein the various test objects of the service interface are test objects included in various interface tests of the service interface;
[0030] The use case execution unit is used to determine the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs, and assign the test cases of each test object of the service interface to the corresponding test execution module for execution, so as to perform various interface tests on the service interface.
[0031] On the other hand, an embodiment of the present application provides a test control device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the test control method applied to the test control platform provided in the embodiment of the present application is implemented; or, the test control method applied to the test control server provided in the embodiment of the present application is implemented; or, the test control method applied to the test execution client provided in the embodiment of the present application is implemented.
[0032] On the other hand, an embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by a processor, the test control method applied to the test control platform provided in the embodiment of the present application is implemented; or, the test control method applied to the test control server provided in the embodiment of the present application is implemented; or, the test control method applied to the test execution client provided in the embodiment of the present application is implemented.
[0033] The beneficial effects of the embodiments of the present application are as follows:
[0034] In the embodiment of the present application, through the mutual cooperation between the test control platform, the test control server and the test execution client, unified management and automated testing of different types of interface tests can be achieved, thereby saving testing costs and improving testing efficiency.
[0035] Other features and advantages of the present application will be described in the subsequent description, and in part, will become apparent from the description, or will be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0037] Figure 1 This is a schematic diagram of the system framework of the test control system in the embodiment of the present application;
[0038] Figure 2 This is a schematic diagram of the general flow of the test control method in the embodiment of the present application;
[0039] Figure 3 It is a schematic diagram of an overview of the test control method applied to the test control platform in the embodiment of the present application;
[0040] Figure 4 A schematic diagram of an overview flow of a test control method applied to a test control server in an embodiment of the present application;
[0041] Figure 5 A schematic diagram of an overview flow of a test control method applied to a test execution client in an embodiment of the present application;
[0042] Figure 6 This is a schematic diagram of a specific flow chart of the test control method in an embodiment of the present application;
[0043] Figure 7 This is a functional structure diagram of a test control device applied to a test control platform in an embodiment of the present application;
[0044] Figure 8 This is a functional structure diagram of a test control device applied to a test control server in an embodiment of the present application;
[0045] Fig. 9 This is a functional structure diagram of a test control device applied to a test execution client in an embodiment of the present application;
[0046] Fig.10 Schematic diagram of the hardware structure of the test control device in the embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and beneficial effects of this application clearer, the technical solution in the embodiment of this application will be clearly and completely described below in conjunction with the drawings in the embodiment of this application. Obviously, the described embodiment is only a part of the embodiment of this application, not all the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] In order to facilitate those skilled in the art to better understand the present application, the technical terms involved in the present application are briefly introduced below.
[0049] 1. Test control platform, which is a front-end user platform for managing and viewing user permissions, test data, test cases, test tasks, test result logs, test execution clients, etc.
[0050] 2. Test control server, which generates test cases for each test object of the service interface according to the test data of each test object of the service interface, creates test tasks for the service interface, and is a background running device that provides database services for the test control platform and test execution client.
[0051] 3. The test execution client is a background running device for executing the test cases of each test object of the service interface, which can be but not limited to: a virtual machine, a K8S container, etc. In this application, the test execution client is configured with corresponding test execution modules for different types of interface tests, for example: a test execution module for executing functional tests, a test execution module for executing stress tests, a test execution module for executing regression tests, etc.
[0052] 4. Test data is the data used in the interface test process. In this application, test data can be divided into: functional test data and attribute test data, among which:
[0053] Functional test data refers to the functional data of the test object, including but not limited to: input data of the service interface, prediction result data, etc.;
[0054] Attribute test data refers to the attribute data of the test object, including but not limited to: the development department of the application to which the service interface belongs, the version of the application to which the service interface belongs, the environment of the application to which the service interface belongs (including the online environment and the test environment), the functional area of the service interface service, the test account and account login data of the application to which the service interface belongs, etc.
[0055] 5. Test case: a text in a set format generated based on test data. In this application, the test case is a JSON text.
[0056] 6. Test database, which is a database for storing test data, test cases, test tasks and other related test data as well as related user data such as user names and passwords.
[0057] 7. Data interface: The interface provided by the test control server for the test control platform and the test execution client to access the test database, including but not limited to: Get interface, Post interface, etc.
[0058] After introducing the technical terms involved in this application, the application scenarios and design concepts of the embodiments of this application are briefly introduced.
[0059] At present, different test frameworks are usually used for different types of interface tests. Obviously, this interface testing method has high cost and low efficiency. To this end, in an embodiment of the present application, the test control platform obtains the test data input by the user for each test object of the service interface, and stores the test data of each test object of the service interface in the test database of the test control server; the test control server obtains the test data of each test object of the service interface stored by the test control platform from the test database, and generates test cases of each test object of the service interface based on the test data of each test object of the service interface, and stores the test cases of each test object of the service interface in the test database; the test execution client obtains the test cases of each test object of the service interface stored by the test control server from the test database, and determines the test execution modules of each test object of the service interface based on the interface test to which each test object of the service interface belongs, and assigns the test cases of each test object of the service interface to the corresponding test execution modules for execution, so as to perform various interface tests on the service interface. In this way, through the cooperation between the test control platform, the test control server and the test execution client, unified management and automated testing of different types of interface tests can be achieved, thereby saving test costs and improving test efficiency.
[0060] After introducing the application scenarios and design concepts of the embodiments of the present application, the technical solutions provided by the embodiments of the present application are described below.
[0061] The present application embodiment provides a test control system, referring to Figure 1 As shown, the test control system provided by the embodiment of the present application at least includes:
[0062] The test control platform 110 is used to obtain the test data respectively input for each test object of the service interface, and store the test data of each test object of the service interface in the test database of the test control server 120, wherein each test object of the service interface is a test object included in various interface tests of the service interface;
[0063] The test control server 120 is used to obtain the test data of each test object of the service interface stored in the test control platform 110 from the test database, generate the test case of each test object of the service interface based on the test data of each test object of the service interface, and store the test case of each test object of the service interface in the test database;
[0064] Each test execution client 130 is used to obtain the test cases of each test object of the service interface stored in the test control server 120 from the test database, and determine the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs, and assign the test cases of each test object of the service interface to the corresponding test execution modules for execution, so as to perform various interface tests on the service interface.
[0065] In a possible implementation, when acquiring the test data respectively inputted for each test object of the service interface, the test control platform 110 is specifically configured to respectively perform the following operations for each test object of the service interface:
[0066] Receive a test configuration request initiated for a test object;
[0067] Displaying a test configuration interface of the test object, wherein the test configuration interface at least displays various property selection boxes and various test data fields;
[0068] Acquire the attribute test data selected in each attribute selection box and the function test data entered in each test data field;
[0069] The obtained respective property test data and respective function test data are determined as the test data of the test object.
[0070] In a possible implementation, when generating test cases for each test object of the service interface based on the test data of each test object of the service interface, the test control server 120 is specifically configured to:
[0071] For each test object of the service interface, the test data of the test object is formatted according to a set format to obtain a test case of the test object.
[0072] In a possible implementation, when storing the test cases of each test object of the service interface into the test database, the test control server 120 is specifically used to:
[0073] Based on the load balancing strategy, determine the test execution client 130 for performing interface testing on the service interface from various test execution clients;
[0074] The test cases of each test object of the service interface are associated with the client identifier of the test execution client 130 and stored in the test database.
[0075] In a possible implementation, after storing the test cases of each test object of the service interface in the test database, the test control server 120 is further configured to:
[0076] The execution status of the test cases of each test object of the service interface is configured as pending execution.
[0077] In a possible implementation, after generating test cases for each test object of the service interface based on the test data of each test object of the service interface, the test control server 120 is further configured to:
[0078] Based on the interface tests to which each test object of the service interface belongs, the test cases of each test object of the service interface are divided to obtain the test cases included in each interface test of the service interface;
[0079] Based on the test cases included in each interface test of the service interface, create test tasks for each service interface, and store each test task of the service interface in the test database;
[0080] For each test task of the service interface, when it is determined that the execution status of all test cases included in the test task is to be executed, the execution status of the test task is configured as to be executed.
[0081] In a possible implementation, when obtaining the test cases of each test object of the service interface stored in the test control server 120 from the test database, the test execution client 130 is specifically used to:
[0082] The test cases of the various test objects stored in association with the client identifier and whose corresponding execution status is to be executed are obtained from the test database as the test cases of the various test objects of the service interface stored in the test control server 120 .
[0083] In a possible implementation, when acquiring the test cases of each test object of the service interface stored in the test control server 120 from the test database, the test execution client 130 is further used to:
[0084] The execution status of the test cases of each test object of the service interface stored in the test control server 120 is configured from pending to being executed.
[0085] In a possible implementation manner, the test control server 120 is further configured to:
[0086] For each test task of the service interface, when it is detected that the execution status of any test case included in the test task switches from pending execution to being executed, the execution status of the test task is configured from pending execution to being executed.
[0087] In a possible implementation, after the test cases of each test object of the service interface are respectively assigned to corresponding test execution modules for execution, the test execution client 130 is further used to:
[0088] The execution results of the test cases of each test object of the service interface are stored in the test database, and the execution status of the test cases of each test object of the service interface is configured from being executed to completed.
[0089] In a possible implementation manner, the test control server 120 is further configured to:
[0090] For each test task of the service interface, when it is monitored that the execution status of each test case included in the test task switches from being executed to completed, the execution results of each test case included in the test task are obtained, and based on the execution results of each test case included in the test task, when it is determined that there are abnormal test cases among the test cases included in the test task, the execution status of the test task is configured from being executed to being verified, and when it is determined that there are no abnormal test cases among the test cases included in the test task, the execution status of the test task is configured from being executed to completed.
[0091] In a possible implementation, the test control platform 110 is further used to: receive a test detail viewing request initiated for a service interface, and forward the test detail viewing request to the test control server 120; receive and display task detail information of each test task returned by the test control server 120 based on the test detail viewing request;
[0092] The test control server 120 is also used to: receive a test details viewing request forwarded by the test control platform 110, and based on the user identifier carried in the test details viewing request, determine that the user corresponding to the user identifier has viewing authority, and based on the interface identifier carried in the test details viewing request, obtain the task details information of each test task of the corresponding service interface and return it to the test control platform 110.
[0093] In an embodiment of the present application, task detail information may include but is not limited to: the task identifier of the test task, the interface identifier of the service interface to which it belongs, the test environment and version number, the use case identifier of each test case included in the test task, description information, the client identifier of the test execution client, etc.
[0094] In a possible implementation, the test control platform 110 is further used to: receive a test status query request initiated for the service interface, and forward the test status query request to the test control server 120; receive and display the task status information of each test task returned by the test control server 120 based on the test status query request;
[0095] The test control server 120 is also used to: receive a test status query request forwarded by the test control platform 110, and based on the user identifier carried in the test status query request, determine that the user corresponding to the user identifier has viewing authority, and based on the interface identifier carried in the test status query request, obtain the task status information of each test task of the corresponding service interface and return it to the test control platform 110.
[0096] In an embodiment of the present application, the task status information may include but is not limited to: the task identification of the test task, the execution status, the total number of test cases, the number of test cases that passed the execution, the number of test cases that failed the execution, the number of test cases to be verified, the number of paused test cases, etc.
[0097] In a possible implementation, the test control platform 110 is further used to: receive a test result query request initiated for the service interface, and forward the test result query request to the test control server 120; receive and display the test result log of each test task returned by the test control server 120 based on the test result query request;
[0098] The test control server 120 is also used to: receive the test result query request forwarded by the test control platform 110, and based on the user identifier carried in the test result query request, determine that the user corresponding to the user identifier has viewing authority, and based on the interface identifier carried in the test result query request, obtain the test result log of each test task of the corresponding service interface and return it to the test control platform 110.
[0099] In the embodiment of the present application, the test result log may include but is not limited to: the execution results of the test case, the execution log, the error details, the screenshot when the error is reported, etc.
[0100] In a possible implementation, the test control platform 110 is further configured to: receive a test pause instruction initiated by a test task for a service interface, and forward the test pause instruction to the test control server 120;
[0101] The test control server 120 is also used to: receive the pause test instruction forwarded by the test control platform 110, and based on the user identifier carried in the pause test instruction, determine that the user corresponding to the user identifier has processing authority, determine the test task to be suspended based on the task identifier carried in the pause test instruction, and control the test execution client 130 corresponding to the test task to suspend the execution of each test case of the test task, and configure the execution status of the test task and each test case of the test task from being executed to being paused.
[0102] In one possible implementation, the test control server 120 is also used to: for each test execution client 130, generate client status information of the test execution client 130 according to the execution results of each test case executed by the test execution client 130 within a set time range, and store the client status information of the test execution client 130 based on the client identifier of the test client.
[0103] In the embodiment of the present application, the client status information may include but is not limited to: the total number of test cases executed by the test execution client 130 within a set time range, the number of test cases that passed the execution, the number of test cases that failed the execution, the pass rate of the test case execution, etc.
[0104] In a possible implementation, the test control platform 110 is further configured to: receive a client status viewing request and forward the client status viewing request to the test control server 120; receive and display the client status information of the test client returned by the test control server 120 based on the client status viewing request;
[0105] The test control server 120 is also used to: receive a client status viewing request forwarded by the test control platform 110, and based on the user identifier carried in the client status viewing request, determine that the user corresponding to the user identifier has viewing authority, and based on the client identifier carried in the client status viewing request, obtain the client status information of the corresponding test client and return it to the test control platform 110.
[0106] In a possible implementation, the test control platform 110 is further configured to: receive a client deactivation instruction initiated for a test client, and forward the client deactivation instruction to the test control server 120; receive a client activation instruction initiated for a test client, and forward the client activation instruction to the test control server 120;
[0107] The test control server 120 is also used to: receive a client deactivation instruction forwarded by the test control platform 110, and based on the user identifier carried in the client deactivation instruction, when it is determined that the user corresponding to the user identifier has processing authority, control the test execution client 130 indicated by the client deactivation instruction to be deactivated; receive a client activation instruction forwarded by the test control platform 110, and based on the user identifier carried in the client activation instruction, when it is determined that the user corresponding to the user identifier has processing authority, control the test execution client 130 indicated by the client activation instruction to be reactivated.
[0108] The following introduces the test control method provided in the embodiment of the present application in combination with the test control system provided in the embodiment of the present application.
[0109] See also Figure 2As shown, the general process of the test control method provided in the embodiment of the present application is as follows:
[0110] Step 201: the test control platform 110 obtains test data respectively input for each test object of the service interface, wherein each test object of the service interface is a test object included in each type of interface test of the service interface.
[0111] Step 202 : the test control platform 110 stores the test data of each test object of the service interface into the test database of the test control server 120 .
[0112] Step 203: The test control server 120 obtains the test data of each test object of the service interface stored in the test control platform 110 from the test database.
[0113] Step 204: The test control server 120 generates a test case for each test object of the service interface based on the test data of each test object of the service interface.
[0114] Step 205: The test control server 120 stores the test cases of each test object of the service interface into the test database.
[0115] Step 206 : the test execution client 130 obtains the test cases of each test object of the service interface stored in the test control server 120 from the test database.
[0116] Step 207: the test execution client 130 determines the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs.
[0117] Step 208: The test execution client 130 assigns the test cases of each test object of the service interface to corresponding test execution modules for execution, so as to perform various interface tests on the service interface.
[0118] The following is a detailed description of the test control method applied to the test control platform 110 provided in the embodiment of the present application. Figure 3 As shown, the general flow of the test control method applied to the test control platform 110 provided in the embodiment of the present application is as follows:
[0119] Step 301: the test control platform 110 obtains test data respectively input for each test object of the service interface, wherein each test object of the service interface is a test object included in each type of interface test of the service interface.
[0120] In actual applications, when the test control platform 110 obtains the test data respectively input by each test object of the service interface, it can perform the following operations respectively for each test object of the service interface:
[0121] First, the test control platform 110 receives a test configuration request initiated for the test object.
[0122] Then, the test control platform 110 displays the test configuration interface of the test object, wherein the test configuration interface at least displays various property selection boxes and various test data fields.
[0123] Secondly, the test control platform 110 obtains the attribute test data selected in each attribute selection box and the function test data input in each test data field.
[0124] Finally, the test control platform 110 determines the obtained various attribute test data and various functional test data as the test data of the service interface.
[0125] Step 302 : the test control platform 110 stores the test data of each test object of the service interface into the test database of the test control server 120 .
[0126] In actual applications, the test control platform 110 may call a data interface (eg, a Post interface) provided by the test control server 120 to store the test data of each test object of the service interface into a test database of the test control server 120 .
[0127] Further, after the test control platform 110 stores the test data of each test object of the service interface in the test database of the test control server 120, the test control server 120 can generate test cases for each test object of the service interface based on the test data of each test object of the service interface stored in the test database of the test control server 120. For details, see Figure 4 As shown, the general flow of the test control method applied to the test control server 120 provided in the embodiment of the present application is as follows:
[0128] Step 401: the test control server 120 obtains test data of each test object of the service interface stored in the test control platform 110 from the test database, wherein each test object of the service interface is a test object included in each type of interface test of the service interface.
[0129] In a specific implementation, the test control server 120 may obtain the test data of each test object of the service interface in any of the following situations:
[0130] The first case: the test control server 120 determines that the test period has arrived.
[0131] The second situation: the test control server 120 determines that the version of the application served by the service interface is updated.
[0132] The third situation: the test control server 120 receives the interface test instruction forwarded by the test control platform 110 for the service interface.
[0133] Step 402: The test control server 120 generates a test case for each test object of the service interface based on the test data of each test object of the service interface.
[0134] In specific implementation, when executing step 402 , the test control server 120 may convert the format of the test data of each test object of the service interface according to a set format to obtain a test case of the test object.
[0135] Specifically, in the embodiment of the present application, the test control server 120 can convert the test data of each test object of the service interface into a JSON format, thereby obtaining a test case of the test object.
[0136] Furthermore, after the test control server 120 generates test cases for each test object of the service interface based on the test data of each test object of the service interface, it can also divide the test cases for each test object of the service interface based on the interface tests to which each test object of the service interface belongs, obtain the test cases included in each interface test of the service interface, and based on the test cases included in each interface test of the service interface, create test tasks for the service interface respectively, and store each test task of the service interface in the test database.
[0137] In this way, when the user needs to view the test details information of the service interface, a test viewing request can be initiated for the service interface on the test control platform 110. When the test control platform 110 receives the test viewing request initiated for the service interface, the test viewing request is forwarded to the test control server 120. When the test control server 120 receives the test viewing request forwarded by the test control platform 110, if it is determined based on the user identifier carried in the test viewing request that the user corresponding to the user identifier has viewing authority, then the task details information of each test task of the corresponding service interface can be obtained based on the interface identifier carried in the test viewing request and returned to the test control platform 110. When the test control platform 110 receives the task details information of each test task returned by the test control server 120 based on the test viewing request, the task details information of each test task of the service interface can be displayed to the user, so that the various interface tests of the service interface can be more intuitively presented to the user through the test tasks, thereby providing convenience for the user to view.
[0138] Step 403: The test control server 120 stores the test cases of each test object of the service interface into the test database.
[0139] In specific implementation, the test control server 120 may use, but is not limited to, the following methods when executing step 403:
[0140] First, the test control server 120 determines, from among the various test execution clients 130 , a test execution client 130 for performing an interface test on the service interface based on a load balancing strategy.
[0141] Then, the test control server 120 associates the test cases of each test object of the service interface with the client identifier of the test execution client 130 of the service interface and stores them in the test database.
[0142] Furthermore, in the embodiment of the present application, after the test control server 120 stores the test cases of each test object of the service interface in the test database, it can also configure the execution status of the test cases of each test object of the service interface as pending execution.
[0143] Furthermore, the test control server 120 may also configure the execution status of each test task of the service interface as pending when determining that the execution status of all test cases included in the test task is pending.
[0144] Further, in the embodiment of the present application, after the test control server 120 stores the test cases of each test object of the service interface in the test database, the test execution client 130 can perform various interface tests on the service interface based on the test cases of each test object of the service interface stored in the test database. Figure 5 As shown, the general process of the test control method applied to the test execution client 130 provided in the embodiment of the present application is as follows:
[0145] Step 501: the test execution client 130 obtains test cases of various test objects of the service interface stored in the test control server 120 from the test database of the test control server 120, wherein the various test objects of the service interface are test objects included in various interface tests of the service interface.
[0146] In the specific implementation, when executing step 501, the test execution client 130 can call the data interface (for example, the Get interface) provided by the test control server 120, and obtain the test cases of each test object stored in association with the client identifier and whose corresponding execution status is to be executed from the test database of the test control server 120, as the test cases of each test object of the service interface.
[0147] Furthermore, after the test execution client 130 obtains the test cases of each test object of the service interface, it can also configure the execution status of the test cases of each test object of the service interface from pending to being executed.
[0148] It is worth mentioning that in an embodiment of the present application, the test control server 120 can monitor the execution status of the test cases of each test object of the service interface in real time. For each test task of the service interface, when it is monitored that the execution status of any test case included in the test task changes from pending execution to executing, the execution status of the test task can be configured from pending execution to executing.
[0149] Step 502: The test execution client 130 determines the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs, and assigns the test cases of each test object of the service interface to the corresponding test execution module for execution, so as to perform various interface tests on the service interface.
[0150] Furthermore, in an embodiment of the present application, after the test execution client 130 assigns the test cases of each test object of the service interface to the corresponding test execution modules for execution, it can also call the data interface (for example, the Post interface) provided by the test control server 120 to store the execution results of the test cases of each test object of the service interface in the test database of the test control server 120.
[0151] In this way, when the user needs to view the test results of the service interface, a test result query request can be initiated for the service interface on the test control platform 110. When the test control platform 110 receives the test result query request initiated for the service interface, the test result query request can be forwarded to the test control server 120; when the test control server 120 receives the test result query request forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has viewing authority based on the user identifier carried in the test result query request, the test result log of each test task of the corresponding service interface can be obtained based on the interface identifier carried in the test result query request and returned to the test control platform 110; when the test control platform 110 receives the test result log of each test task returned by the test control server 120 based on the test result query request, the test result log of each test task of the service interface can be displayed to the user so that the user can view the test results of the service interface.
[0152] It is worth mentioning that in an embodiment of the present application, when the test execution client 130 calls the data interface (for example, the Post interface) provided by the test control server 120 and stores the execution results of the test cases of each test object of the service interface to the test database of the test control server 120, it can also configure the execution status of the test cases of each test object of the service interface from being executed to completed.
[0153] Furthermore, the test control server 120 can also monitor, for each test task of the service interface, when the execution status of each test case included in the test task switches from being executed to completed, obtain the execution results of each test case included in the test task, and based on the execution results of each test case included in the test task, when it is determined that there are abnormal test cases among the test cases included in the test task, configure the execution status of the test task from being executed to being verified; when it is determined that there are no abnormal test cases among the test cases included in the test task, configure the execution status of the test task from being executed to completed.
[0154] It is worth mentioning that in an embodiment of the present application, when a user needs to suspend the test of any test task of the service interface, a pause test instruction can be initiated on the test control platform 110 for any test task of the service interface. When the test control platform 110 receives the pause test instruction initiated for any test task of the service interface, the pause test instruction is forwarded to the test control server 120; when the test control server 120 receives the pause test instruction forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has processing authority based on the user identifier carried by the pause test instruction, then the test task to be suspended is determined based on the task identifier carried by the pause test instruction, and the test execution client 130 corresponding to the test task is controlled to suspend the execution of each test case of the test task, and the execution status of the test task and each test case of the test task is configured from being executed to being paused.
[0155] In addition, in an embodiment of the present application, when a user needs to view the test status of the service interface, a test status query request can be initiated for the service interface on the test control platform 110. When the test control platform 110 receives the test status query request initiated for the service interface, the test status query request is forwarded to the test control server 120; when the test control server 120 receives the test status query request forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has viewing authority based on the user identifier carried in the test status query request, then based on the interface identifier carried in the test status query request, the task status information of each test task of the corresponding service interface is obtained and returned to the test control platform 110; when the test control platform 110 receives the task status information of each test task returned by the test control server 120 based on the test status query request, the task status information of each test task of the service interface can be displayed to the user so that the user can view the test status of the service interface.
[0156] Furthermore, in an embodiment of the present application, the test control server 120 can also generate client status information of the test execution client 130 for each test execution client 130 according to the execution results of each test case executed by the test execution client 130 within a set time range, and store the client status information of the test execution client 130 based on the client identifier of the test client 130.
[0157] In this way, when a user needs to view the client status of any test execution client 130, a client status viewing request can be initiated on the test control platform 110 for any test execution client 130. When the test control platform 110 receives the client status viewing request initiated for any test execution client 130, the client status viewing request is forwarded to the test control server 120; when the test control server 120 receives the client status viewing request forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has viewing authority based on the user identifier carried in the client status viewing request, the client status information of the corresponding test client can be obtained based on the client identifier carried in the client status viewing request and returned to the test control platform 110; when the test control platform 110 receives the client status information of the test client returned by the test control server 120 in response to the client status viewing request, the client status information of the test client can be displayed to the user.
[0158] It is worth mentioning that in the embodiment of the present application, if the user determines that the test client has an abnormality based on the client status information of the test client displayed on the test control platform 110, the user can initiate a client deactivation instruction on the test control platform 110 for the test execution client 130. When the test control platform 110 receives the client deactivation instruction initiated for the test execution client 130, the client deactivation instruction is forwarded to the test control server 120; when the test control server 120 receives the client deactivation instruction forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has processing authority based on the user identifier carried by the client deactivation instruction, the test execution client indicated by the client deactivation instruction can be controlled to be deactivated.
[0159] Furthermore, when the user determines that the test client has returned to normal, a client enablement instruction can be initiated on the test control platform 110 for the test execution client 130. When the test control platform 110 receives the client enablement instruction initiated for the test execution client 130, the client enablement instruction is forwarded to the test control server 120. When the test control server 120 receives the client enablement instruction forwarded by the test control platform, if it is determined that the user corresponding to the user identifier has processing authority based on the user identifier carried by the client enablement instruction, the test execution client indicated by the client enablement instruction can be controlled to be re-enabled.
[0160] The test control method provided in the embodiment of the present application is further described in detail below through specific application scenarios. Figure 6 As shown, the specific process of the test control method provided in the embodiment of the present application is as follows:
[0161] Step 601: the test control platform 110 obtains test data respectively input for each test object of the service interface, wherein each test object of the service interface is a test object included in each type of service interface test of the service interface.
[0162] Step 602 : the test control platform 110 calls the Post interface provided by the test control server 120 to store the test data of each test object of the service interface into the test database of the test control server 120 .
[0163] Step 603: When the test control server 120 determines that the test cycle has arrived, it obtains the test data of each test object of the service interface stored in the test control platform 110 from the test database.
[0164] Step 604: the test control server 120 converts the test data of each test object of the service interface into a JSON format to obtain a test case of the test object.
[0165] Step 605: Based on the load balancing strategy, the test control server 120 determines the test execution client 130 used to perform interface testing on the service interface from various test execution clients 130, and associates the test cases of various test objects of the service interface with the client identifier of the test execution client 130 of the service interface and stores them in the test database.
[0166] Step 606: The test control server 120 configures the execution status of the test cases of each test object of the service interface to be executed.
[0167] Step 607: The test control server 120 divides the test cases of each test object of the service interface based on the interface tests to which each test object of the service interface belongs, obtains the test cases included in each interface test of the service interface, and creates test tasks for the service interface based on the test cases included in each interface test of the service interface.
[0168] Step 608: the test control server 120 stores each test task of the service interface into the test database, and for each test task of the service interface, when determining that the execution status of all test cases included in the test task is to be executed, configures the execution status of the test task to be executed.
[0169] Step 609: The test execution client 130 calls the Get interface provided by the test control server 120, and obtains from the test database the test cases of each test object that is stored in association with the client identifier and whose corresponding execution status is to be executed, as the test cases of each test object of the service interface, and configures the execution status of the test cases of each test object of the service interface from to be executed to being executed, and continues to execute step 611.
[0170] Step 610: for each test task of the service interface, when the test control server 120 monitors that the execution status of any test case included in the test task changes from pending to being executed, the test control server 120 configures the execution status of the test task from pending to being executed.
[0171] Step 611: the test execution client 130 determines the test execution module of each test object of the service interface based on the interface test to which the test object belongs, and assigns the test case of the test object to the test execution module for execution.
[0172] Step 612: The test execution client 130 calls the Post interface provided by the test control server 120, stores the execution results of the test cases of each test object of the service interface into the test database of the test control server 120, and configures the execution status of the test cases of each test object of the service interface from being executed to completed.
[0173] Step 613: for each test task of the service interface, when the test control server 120 monitors that the execution status of each test case included in the test task switches from being executed to completed, the test control server 120 obtains the execution result of each test case included in the test task.
[0174] Step 614: When the test control server 120 determines, based on the execution results of the test cases included in the test task, that there is an abnormal test case among the test cases included in the test task, it configures the execution status of the test task from being executed to being verified; when it determines that there is no abnormal test case among the test cases included in the test task, it configures the execution status of the test task from being executed to completed.
[0175] Based on the above embodiments, the present application embodiment provides a test control device applied to the test control platform 110. Figure 7 As shown, the test control device 700 applied to the test control platform 110 provided in the embodiment of the present application at least includes:
[0176] The data acquisition unit 701 is used to acquire test data respectively input for each test object of the service interface, wherein each test object of the service interface is a test object included in each type of interface test of the service interface;
[0177] The data storage unit 702 is used to store the test data of each test object of the service interface to the test database of the test control server 120, so that the test control server 120 generates test cases for each test object of the service interface based on the test data of each test object of the service interface stored in the test database, and stores the test cases for each test object of the service interface to the test database, triggering the test execution client 130 to execute the test cases for each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
[0178] In a possible implementation, when acquiring the test data respectively inputted for each test object of the service interface, the data acquisition unit 701 is specifically configured to respectively perform the following operations for each test object of the service interface:
[0179] Receive a test configuration request initiated for a test object;
[0180] Displaying a test configuration interface of the test object, wherein the test configuration interface at least displays various property selection boxes and various test data fields;
[0181] Acquire the attribute test data selected in each attribute selection box and the dynamic test data entered in each test data field;
[0182] The obtained respective attribute test data and respective dynamic test data are determined as the test data of the test object.
[0183] Based on the above embodiments, the present application embodiment provides a test control device applied to the test control server 120, see Figure 8 As shown, the test control device 800 applied to the test control server 120 provided in the embodiment of the present application at least includes:
[0184] The data acquisition unit 801 is used to acquire the test data of each test object of the service interface stored in the test control platform 110 from the test database, wherein each test object of the service interface is a test object included in each type of interface test of the service interface;
[0185] A use case generating unit 802, configured to generate a test case for each test object of the service interface based on the test data of each test object of the service interface;
[0186] The use case storage unit 803 is used to store the test cases of each test object of the service interface into the test database, trigger the test execution client 130 to execute the test cases of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
[0187] In a possible implementation, when generating test cases for each test object of the service interface based on the test data of each test object of the service interface, the case generation unit 802 is specifically used to:
[0188] For each test object of the service interface, the test data of the test object is formatted according to a set format to obtain a test case of the test object.
[0189] In a possible implementation, when the test cases of each test object of the service interface are stored in the test database, the case storage unit 803 is specifically used to:
[0190] Based on the load balancing strategy, determine the test execution client 130 for performing interface testing on the service interface from various test execution clients;
[0191] The test cases of each test object of the service interface are associated with the client identifier of the test execution client 130 and stored in the test database.
[0192] In a possible implementation manner, after storing the test cases of each test object of the service interface in the test database, the case storage unit 803 is further used to:
[0193] The execution status of the test cases of each test object of the service interface is configured as pending execution.
[0194] In a possible implementation manner, the test control device 800 provided in the embodiment of the present application and applied to the test control server 120 further includes:
[0195] The task creation unit 804 is used to divide the test cases of each test object of the service interface based on the interface tests to which each test object of the service interface belongs, after the use case generation unit 802 generates test cases for each test object of the service interface based on the test data of each test object of the service interface, so as to obtain the test cases included in each interface test of the service interface, create test tasks for each service interface based on the test cases included in each interface test of the service interface, store each test task of the service interface in a test database, and for each test task of the service interface, when it is determined that the execution status of all test cases included in the test task is to be executed, configure the execution status of the test task as to be executed.
[0196] In a possible implementation manner, the test control device 800 applied to the test control server provided in the embodiment of the present application further includes:
[0197] The status monitoring unit 805 is used for, for each test task of the service interface, when it is monitored that the execution status of any test case included in the test task switches from to be executed to being executed, configuring the execution status of the test task from to be executed to being executed; and, when it is monitored that the execution status of each test case included in the test task switches from being executed to being completed, obtaining the execution results of each test case included in the test task, and based on the execution results of each test case included in the test task, when it is determined that there are abnormal test cases among the test cases included in the test task, configuring the execution status of the test task from being executed to being verified, and when it is determined that there are no abnormal test cases among the test cases included in the test task, configuring the execution status of the test task from being executed to being completed.
[0198] In a possible implementation manner, the test control device 800 provided in the embodiment of the present application and applied to the test control server 120 further includes:
[0199] The client monitoring unit 806 is used to generate client status information of the test execution client 130 for each test execution client 130 according to the execution results of each test case executed by the test execution client 130 within a set time range, and store the client status information of the test execution client 130 based on the client identifier of the test execution client 130.
[0200] In a possible implementation, the client monitoring unit 806 is further configured to:
[0201] Receive a client status viewing request forwarded by the test control platform 110;
[0202] Based on the user identifier carried in the client status viewing request, when it is determined that the user corresponding to the user identifier has viewing authority, the client status information of the corresponding test client is obtained based on the client identifier carried in the client status viewing request and returned to the test control platform 110 for display.
[0203] In a possible implementation manner, the test control device 800 provided in the embodiment of the present application and applied to the test control server 120 further includes:
[0204] The client management unit 807 is used to receive a client deactivation instruction forwarded by the test control platform 110; based on the user identifier carried in the client deactivation instruction, when it is determined that the user corresponding to the user identifier has the processing authority, control the test execution client 130 indicated by the client deactivation instruction to be deactivated; and, receive a client activation instruction forwarded by the test control platform 110; based on the user identifier carried in the client activation instruction, when it is determined that the user corresponding to the user identifier has the processing authority, control the test execution client 130 indicated by the client activation instruction to be reactivated.
[0205] Based on the above embodiments, the present application also provides a test control device applied to the test execution client 130, see Fig. 9 As shown, the test control device 900 applied to the test execution client 130 provided in the embodiment of the present application at least includes:
[0206] The use case acquisition unit 901 is used to acquire the test cases of each test object of the service interface stored in the test control server 120 from the test database of the test control server 120, wherein each test object of the service interface is a test object included in each type of interface test of the service interface;
[0207] The use case execution unit 902 is used to determine the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs, and assign the test cases of each test object of the service interface to the corresponding test execution module for execution, so as to perform various interface tests on the service interface.
[0208] In a possible implementation manner, when acquiring test cases of various test objects of the service interface stored in the test control server 120 from the test database of the test control server 120, the case acquisition unit 901 is specifically used to:
[0209] The test cases of the various test objects stored in association with the client identifier and whose corresponding execution status is to be executed are obtained from the test database as the test cases of the various test objects of the service interface stored in the test control server 120 .
[0210] In a possible implementation manner, when acquiring the test cases of each test object of the service interface stored in the test control server 120 from the test database, the case acquisition unit 901 is further configured to:
[0211] The execution status of the test cases of each test object of the service interface stored in the test control server 120 is configured from pending to being executed.
[0212] In a possible implementation manner, the test control device 900 applied to the test execution client 130 provided in the embodiment of the present application further includes:
[0213] The result storage unit 903 is used to store the execution results of the test cases of each test object of the service interface in the test database after the use case execution unit 902 assigns the test cases of each test object of the service interface to the corresponding test execution modules for execution, and configures the execution status of the test cases of each test object of the service interface from being executed to completed.
[0214] It should be noted that the principles of solving technical problems by the three test control devices provided in the embodiments of the present application are similar to the test control methods provided in the embodiments of the present application. Therefore, the implementation of the three test control devices provided in the embodiments of the present application can refer to the implementation of the test control methods provided in the embodiments of the present application, and the repeated parts will not be repeated.
[0215] After introducing the test control system, method and apparatus provided in the embodiments of the present application, the test control device provided in the embodiments of the present application is briefly introduced next.
[0216] See also Fig.10 As shown, the test control device 100 provided in the embodiment of the present application includes at least: a processor 101, a memory 102, and a computer program stored in the memory 102 and executable on the processor 101. When the processor 101 executes the computer program, the test control method applied to the test control platform 110 provided in the embodiment of the present application is implemented; or, the test control method applied to the test control server 120 provided in the embodiment of the present application is implemented; or, the test control method applied to the test execution client 130 provided in the embodiment of the present application is implemented.
[0217] It should be noted that Fig.10 The test control device 100 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0218] The test control device 100 provided in the embodiment of the present application may also include a bus 103 connecting different components (including the processor 101 and the memory 102). The bus 103 represents one or more of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and the like.
[0219] The memory 102 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1021 and / or a cache memory 1022 , and may further include a read-only memory (ROM) 1023 .
[0220] The memory 102 may also include a program tool 1025 having a set (at least one) of program modules 1024, wherein the program modules 1024 include but are not limited to: operating sub-methods, one or more applications, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0221] The test control device 100 may also communicate with one or more external devices 104 (e.g., keyboards, remote controls, etc.), may also communicate with one or more devices that enable a user to interact with the test control device 100 (e.g., mobile phones, computers, etc.), and / or, may communicate with any device that enables the test control device 100 to communicate with one or more other test control devices 100 (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 105. Furthermore, the test control device 100 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 106. Fig.10 As shown, the network adapter 106 communicates with other modules of the test control device 100 via the bus 103. It should be understood that although Fig.10 Not shown, other hardware and / or software modules may be used in conjunction with the test control device 100, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, disk arrays (Redundant Arrays of Independent Disks, RAID) sub-methods, tape drives, and data backup storage sub-methods.
[0222] The computer-readable storage medium provided in the embodiment of the present application is introduced below. The embodiment of the present application provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed by the processor, the test control method applied to the test control platform 110 provided in the embodiment of the present application is implemented; or, the test control method applied to the test control server 120 provided in the embodiment of the present application is implemented; or, the test control method applied to the test execution client 130 provided in the embodiment of the present application is implemented. Specifically, the executable program can be built into the test control device 100, so that the test control device 100 can implement the test control method applied to the test control platform 110 provided in the embodiment of the present application by executing the built-in executable program; or, implement the test control method applied to the test control server 120 provided in the embodiment of the present application; or, implement the test control method applied to the test execution client 130 provided in the embodiment of the present application.
[0223] In addition, the test control method provided in the embodiment of the present application can also be implemented as a program product, which includes a program code. When the program product can be run on the test control device 100, the program code is used to enable the test control device 100 to execute the test control method provided in the embodiment of the present application.
[0224] The program product provided in the embodiments of the present application may adopt any combination of one or more readable media, wherein the readable medium may be a readable signal medium or a readable storage medium, and the readable storage medium may be but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor method, apparatus or device, or any combination of the above. Specifically, more specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, RAM, ROM, Erasable Programmable Read Only Memory (EPROM), optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0225] The program product provided in the embodiment of the present application may adopt a CD-ROM and include program code, and may also be run on a computing device. However, the program product provided in the embodiment of the present application is not limited thereto. In the embodiment of the present application, the readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution method, apparatus, or device.
[0226] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0227] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0228] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0229] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A test control system, characterized in that: include: A test control platform, used to obtain test data respectively input for each test object of the service interface, and store the test data of each test object of the service interface into a test database of a test control server, wherein each test object of the service interface is a test object included in each type of interface test of the service interface; A test control server, configured to obtain, from the test database, the test data of each test object of the service interface stored in the test control platform, and generate test cases of each test object of the service interface based on the test data of each test object of the service interface, and store the test cases of each test object of the service interface in the test database; Each test execution client is used to obtain the test cases of each test object of the service interface stored in the test control server from the test database, and determine the test execution module of each test object of the service interface based on the interface test to which each test object of the service interface belongs, and respectively assign the test cases of each test object of the service interface to the corresponding test execution module for execution, so as to perform various types of interface tests on the service interface; the test execution client is respectively configured with corresponding test execution modules for different types of interface tests; When storing the test cases of each test object of the service interface into the test database, the test control server is specifically used to: Based on the load balancing strategy, determining a test execution client for performing interface testing on the service interface from among the test execution clients; The test cases of each test object of the service interface are associated with the client identifier of the test execution client and stored in the test database.
2. The test control system according to claim 1, characterized in that: When storing the test cases of each test object of the service interface into the test database, the test control server is further used to: The execution status of the test cases of each test object of the service interface is respectively configured as pending execution.
3. The test control system according to claim 2, characterized in that: When acquiring the test cases of each test object of the service interface stored in the test control server from the test database, the test execution client is specifically used to: The test cases of the various test objects stored in association with the client identifier and corresponding to the execution status of being to be executed are obtained from the test database as the test cases of the various test objects of the service interface stored by the test control server.
4. The test control system according to claim 2 or 3, characterized in that: When acquiring the test cases of each test object of the service interface stored in the test control server from the test database, the test execution client is further used to: The execution status of the test cases of each test object of the service interface stored in the test control server is configured from being executed to being executed.
5. The test control system according to claim 4, characterized in that: When the test cases of each test object of the service interface are respectively assigned to corresponding test execution modules for execution, the test execution client is further used to: The execution results of the test cases of each test object of the service interface are stored in the test database, and the execution status of the test cases of each test object of the service interface is configured from being executed to completed.
6. A test control method, characterized in that: Applied to a test control platform, the test control method includes: Acquire test data respectively input for each test object of the service interface, wherein each test object of the service interface is a test object included in each type of interface test of the service interface; Storing the test data of each test object of the service interface into a test database of a test control server, so that the test control server generates test cases for each test object of the service interface based on the test data of each test object of the service interface stored in the test database, and stores the test cases for each test object of the service interface into the test database, triggering a test execution client to execute the test cases for each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface; When storing the test cases of each test object of the service interface into the test database, the test control server is specifically used to: Based on the load balancing strategy, a test execution client for performing interface testing on the service interface is determined from various test execution clients; the test execution client is respectively configured with corresponding test execution modules for different types of interface tests; The test cases of each test object of the service interface are associated with the client identifier of the test execution client and stored in the test database.
7. A test control method, characterized in that: Applied to a test control server, the test control method includes: Acquire test data of each test object of the service interface stored in the test control platform from the test database, wherein each test object of the service interface is a test object included in each type of interface test of the service interface; Generate test cases for each test object of the service interface based on the test data of each test object of the service interface; Storing the test cases of each test object of the service interface in the test database, triggering the test execution client to execute the test cases of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface; When storing the test cases of each test object of the service interface into the test database, the test control server is specifically used to: Based on the load balancing strategy, a test execution client for performing interface testing on the service interface is determined from various test execution clients; the test execution client is respectively configured with corresponding test execution modules for different types of interface tests; The test cases of each test object of the service interface are associated with the client identifier of the test execution client and stored in the test database.
8. A test control method, characterized in that: Applied to a test execution client, the test control method includes: Acquire, from a test database of a test control server, test cases of various test objects of a service interface stored in the test control server, wherein the various test objects of the service interface are test objects included in various interface tests of the service interface; Determine a test execution module for each test object of the service interface based on the interface test to which each test object of the service interface belongs; Assign the test cases of each test object of the service interface to the corresponding test execution module for execution, so as to perform various interface tests on the service interface; When storing the test cases of each test object of the service interface into the test database, the test control server is specifically used to: Based on the load balancing strategy, a test execution client for performing interface testing on the service interface is determined from various test execution clients; the test execution client is respectively configured with corresponding test execution modules for different types of interface tests; The test cases of each test object of the service interface are associated with the client identifier of the test execution client and stored in the test database.
9. A test control device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the test control method as claimed in claim 6 is implemented; or, the test control method as claimed in claim 7 is implemented; or, the test control method as claimed in claim 8 is implemented.
10. A computer program product, characterized in that The program product includes a program code, and when the program product is run on a test control device, the program code is used to make the test control device execute the test control method of claim 6, 7 or 8.
