CN112416745A - Test control system, method and equipment - Google Patents

Test control system, method and equipment Download PDF

Info

Publication number
CN112416745A
CN112416745A CN202010071699.6A CN202010071699A CN112416745A CN 112416745 A CN112416745 A CN 112416745A CN 202010071699 A CN202010071699 A CN 202010071699A CN 112416745 A CN112416745 A CN 112416745A
Authority
CN
China
Prior art keywords
test
service interface
execution
interface
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010071699.6A
Other languages
Chinese (zh)
Inventor
周静
王萌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202010071699.6A priority Critical patent/CN112416745A/en
Publication of CN112416745A publication Critical patent/CN112416745A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a test control system, a test control method and test control equipment, which are applied to the technical field of computers and used for solving the problems of high test cost and low test efficiency. The method specifically comprises the following steps: the test control platform acquires and stores test data respectively input by each test object aiming at the service interface; the test control server acquires test data of each test object of the service interface stored by the test control platform, and generates and stores test cases of each test object of the service interface based on the test data of each test object of the service interface; the test execution client acquires and executes the test cases of all test objects of the service interface stored by the test control server so as to test various interfaces of the service interface. Therefore, through mutual cooperation of the test control platform, the test control server and the test execution client, unified management and automatic test on different types of interface tests can be realized, so that the test cost is saved, and the test efficiency is improved.

Description

Test control system, method and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a test control system, method, and device.
Background
In recent years, with the continuous development of network technology and multimedia technology, applications with various functions have come into play, wherein interface testing is the key to ensure the normal use of various functions such as data transmission, database access and the like between applications and servers.
However, at present, different test frames are generally used for different types of interface tests, and the test cost is high and the test efficiency is low.
Disclosure of Invention
The embodiment of the application provides a test control system, a test control method, a test control device, test control equipment and a test control medium, and aims to solve the problems of low efficiency and high cost of an interface test method in the prior art.
The technical scheme provided by the embodiment of the application is as follows:
in one aspect, an embodiment of the present application provides a test control system, including:
the test control platform is used for acquiring test data respectively input by each test object of the service interface and storing the test data of each test object of the service interface into a test database of the test control server, wherein each test object of the service interface is a test object contained in various interface tests of the service interface;
the test control server is used for acquiring the test data of each test object of the service interface stored by the test control platform from the test database, generating 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 storing the test case of each test object of the service interface to the test database;
each test execution client is used for acquiring the test cases of each test object of the service interface stored by the test control server from the test database, determining 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 allocating the test cases of each test object of the service interface to the corresponding test execution module for execution so as to carry out various interface tests on the service interface.
On the other hand, an embodiment of the present application provides a test control method applied to a test control platform, including:
acquiring test data respectively input by each test object of a service interface, wherein each test object of the service interface is a test object included in various interface tests of the service interface;
the test data of each test object of the service interface is stored in a test database of the test control server, so that the test control server generates a test case of 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, stores the test case of each test object of the service interface in the test database, and triggers the test execution client to execute the test case of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
On the other hand, an embodiment of the present application provides a test control method applied to a test control server, including:
acquiring test data of each test object of the service interface stored by the test control platform from a test database, wherein each test object of the service interface is a test object included in various interface tests of the service interface;
generating a test case of each test object of the service interface based on the test data of each test object of the service interface;
and storing the test cases of all the test objects of the service interface into a test database, and triggering the test execution client to execute the test cases of all the test objects of the service interface stored in the test database so as to test various interfaces of the service interface.
On the other hand, an embodiment of the present application provides a test control method applied to a test execution client, including:
obtaining a test case of each test object of a service interface stored by a test control server from a test database of the test control server, wherein each test object of the service interface is a test object contained in the test of each interface of the service interface;
determining a 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 distributing the test cases of the test objects of the service interface to the corresponding test execution modules for execution so as to carry out various interface tests on the service interface.
On the other hand, an embodiment of the present application provides a test control apparatus applied to a test control platform, including:
the data acquisition unit is used for acquiring test data which are respectively input aiming at each test object of the service interface, wherein each test object of the service interface is a test object contained in various interface tests of the service interface;
the data storage unit is used for storing the test data of each test object of the service interface into a test database of the test control server, so that the test control server generates a test case of 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, stores the test case of each test object of the service interface into the test database, and triggers the test execution client to execute the test case of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
On the other hand, an embodiment of the present application provides a test control apparatus applied to a test control server, including:
the data acquisition unit is used for acquiring the test data of each test object of the service interface stored by the test control platform from the test database, wherein each test object of the service interface is a test object contained in the test of various interfaces of the service interface;
the case generating unit is used for generating a test case of each test object of the service interface based on the test data of each test object of the service interface;
and the case storage unit is used for storing the test cases of all the test objects of the service interface into the test database, and triggering the test execution client to execute the test cases of all the test objects of the service interface stored in the test database so as to test various interfaces of the service interface.
On the other hand, an embodiment of the present application provides a test control apparatus applied to a test execution client, including:
the test control server is used for storing test data of various service interfaces, and the test data comprises a test data base of the service interface;
and the case execution unit is used for determining 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 distributing the test cases of each test object of the service interface to the corresponding test execution module for execution so as to carry out various interface tests on the service interface.
On the other hand, an embodiment of the present application provides a test control apparatus, including: the test control method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the test control method applied to the test control platform provided by the embodiment of the application; or, implementing the test control method applied to the test control server provided by the embodiment of the present application; or, the test control method applied to the test execution client provided by the embodiment of the present application is implemented.
On the other hand, an embodiment of the present application further provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed by a processor, the computer instructions implement the test control method applied to the test control platform provided in the embodiment of the present application; or, implementing the test control method applied to the test control server provided by the embodiment of the present application; or, the test control method applied to the test execution client provided by the embodiment of the present application is implemented.
The beneficial effects of the embodiment of the application are as follows:
in the embodiment of the application, through mutual cooperation among the test control platform, the test control server and the test execution client, unified management and automatic test on different types of interface tests can be realized, so that the test cost is saved, and the test efficiency is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a system block diagram of a test control system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating an overview of a test control method according to an embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating an overview of a test control method applied to a test control platform according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating an overview of a test control method applied to a test control server according to an embodiment of the present application;
FIG. 5 is a schematic flowchart illustrating an overview of a test control method applied to a test execution client according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating a test control method according to an embodiment of the present application;
FIG. 7 is a functional block diagram of a test control apparatus applied to a test control platform according to an embodiment of the present disclosure;
fig. 8 is a functional structure diagram of a test control apparatus applied to a test control server in the embodiment of the present application;
FIG. 9 is a functional block diagram of a test control apparatus applied to a test execution client in an embodiment of the present application;
fig. 10 is a schematic hardware configuration diagram of the test control apparatus in the embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and advantages of the present application more clearly and clearly understood, the technical solution in the embodiments of the present application will be described below in detail and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
To facilitate a better understanding of the present application by those skilled in the art, a brief description of the technical terms involved in the present application will be given below.
1. The test control platform is a front-end user platform for managing and checking user permission, test data, test cases, test tasks, test result logs, test execution clients and the like.
2. The test control server generates test cases of all test objects of the service interface according to the test data of all test objects of the service interface, creates test tasks for the service interface and provides background running equipment of database service for the test control platform and the test execution client.
3. The test execution client, which is a background running device for executing the test case of each test object of the service interface, may be, but is not limited to: virtual machines, K8S containers, and the like. In this application, the test execution client is configured with corresponding test execution modules for different types of interface tests, for example: the device comprises a test execution module for executing a functional test, a test execution module for executing a compression resistance test, a test execution module for executing a regression test and the like.
4. And the test data is data used in the interface test process. In the present application, the test data can be divided into: functional test data and attribute test data, wherein:
functional test data, which are various functional data of the test object, include but are not limited to: input data, prediction result data, etc. of the service interface;
the attribute test data is the data of each attribute of the test object, and includes but is 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 (including an online environment and a test environment) of the application to which the service interface belongs, the functional area of the service interface service, the test account number and the account number login data of the application to which the service interface belongs, and the like.
5. The test case is a text with a set format generated according to the test data, and in the application, the test case is a JSON text.
6. The test database is used for storing relevant test data such as test data, test cases, test tasks and the like, and relevant user data such as user names, passwords and the like.
7. The data interface is an interface which is provided by the test control server for the test control platform and the test execution client and used for accessing the test database, and includes but is not limited to: a Get interface, a Post interface, etc.
After introducing the technical terms related to the present application, the following briefly introduces the application scenarios and design ideas of the embodiments of the present application.
At present, different test frames are generally used for different types of interface tests, and obviously, the interface test method has higher cost and lower efficiency. Therefore, in the embodiment of the application, the test control platform acquires the test data respectively input by the user aiming at each test object of the service interface, and stores the test data of each test object of the service interface into the test database of the test control server; the test control server acquires the test data of each test object of the service interface, which is stored by the test control platform, from the test database, generates a test case 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 case of each test object of the service interface into the test database; the test execution client acquires the test cases of the test objects of the service interface, which are stored by the test control server, from the test database, determines the test execution modules of the test objects of the service interface based on the interface test to which the test objects of the service interface belong, and allocates the test cases of the test objects of the service interface to the corresponding test execution modules to execute respectively so as to perform various interface tests on the service interface. Therefore, through mutual cooperation among the test control platform, the test control server and the test execution client, unified management and automatic test on different types of interface tests can be realized, so that the test cost is saved, and the test efficiency is improved.
After introducing the application scenario and the design concept of the embodiment of the present application, the following describes a technical solution provided by the embodiment of the present application.
An embodiment of the present application provides a test control system, and referring to fig. 1, the test control system provided in the embodiment of the present application at least includes:
the test control platform 110 is configured to obtain test data input for each test object of the service interface, and store the test data of each test object of the service interface in a test database of the test control server 120, where each test object of the service interface is a test object included in various types of interface tests of the service interface;
the test control server 120 is configured to obtain, from the test database, test data of each test object of the service interface stored in the test control platform 110, generate a 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;
each test execution client 130 is configured to obtain, from the test database, a test case of each test object of the service interface stored by the test control server 120, determine a test execution module of each test object of the service interface based on an interface test to which each test object of the service interface belongs, and allocate the test case of each test object of the service interface to a corresponding test execution module for execution, so as to perform various interface tests on the service interface.
In a possible embodiment, when obtaining test data input for each test object of the service interface, the test control platform 110 is specifically configured to perform the following operations for each test object of the service interface:
receiving a test configuration request initiated for a test object;
displaying a test configuration interface of a test object, wherein the test configuration interface at least displays each attribute selection frame and each test data field;
acquiring attribute test data respectively selected in each attribute selection frame and functional test data respectively input in each test data field;
and determining the obtained attribute test data and the function test data as the test data of the test object.
In a possible embodiment, when generating a test case of 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:
and aiming at each test object of the service interface, carrying out format conversion on the test data of the test object according to a set format to obtain a test case of the test object.
In a possible embodiment, when the test case of each test object of the service interface is stored in the test database, the test control server 120 is specifically configured to:
determining a test execution client 130 for performing an interface test on the service interface from the test execution clients based on the load balancing policy;
and storing the test cases of the test objects of the service interface and the client identifications of the test execution client 130 in a test database in an associated manner.
In a possible embodiment, after storing the test cases of the test objects of the service interface in the test database, the test control server 120 is further configured to:
and respectively configuring the execution states of the test cases of the test objects of the service interface to be executed.
In a possible embodiment, after generating a test case of 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:
dividing test cases of all test objects of the service interface based on the interface test to which all test objects of the service interface belong to obtain the test cases contained in all interface tests of the service interface;
respectively creating test tasks for the service interfaces based on test cases contained in the test of each interface of the service interfaces, and storing each test task of the service interfaces to a test database;
and aiming at each test task of the service interface, determining the execution states of all test cases contained in the test tasks as to-be-executed, and configuring the execution states of the test tasks as to-be-executed.
In a possible embodiment, when the test case of each test object of the service interface stored in the test control server 120 is obtained from the test database, the test execution client 130 is specifically configured to:
the test cases of the test objects whose execution states are to be executed and stored in association with the client id are obtained from the test database, and the obtained test cases are used as the test cases of the test objects of the service interface stored in the test control server 120.
In a possible embodiment, when the test case of each test object of the service interface stored in the test control server 120 is obtained from the test database, the test execution client 130 is further configured to:
the execution states of the test cases of the respective test objects of the service interface stored by the test control server 120 are configured from to-be-executed to being executed, respectively.
In one possible embodiment, the test control server 120 is further configured to:
and aiming at each test task of the service interface, monitoring that the execution state of any test case contained in the test task is switched from to be executed, and configuring the execution state of the test task from to be executed.
In a possible embodiment, after the test cases of the test objects of the service interface are respectively allocated to the corresponding test execution modules for execution, the test execution client 130 is further configured to:
and storing the execution result of the test case of each test object of the service interface into a test database, and configuring the execution state of the test case of each test object of the service interface from the executing state to the finished state.
In one possible embodiment, the test control server 120 is further configured to:
aiming at each test task of the service interface, when the execution state of each test case contained in the test task is monitored to be switched from being executed to being completed, the execution result of each test case contained in the test task is obtained, and based on the execution result of each test case contained in the test task, when the test case with abnormity is determined to exist in each test case contained in the test task, the execution state of the test task is configured to be verified from being executed, and when the test case with abnormity is determined not to exist in each test case contained in the test task, the execution state of the test task is configured to be completed from being executed.
In one possible embodiment, the test control platform 110 is further configured to: receiving a test detail viewing request initiated for the service interface, and forwarding the test detail viewing request to the test control server 120; receiving and displaying task detail information of each test task returned by the test control server 120 based on the test detail checking request;
the test control server 120 is further configured to: receiving a test detail checking request forwarded by the test control platform 110, determining that a user corresponding to a user identifier has checking right based on the user identifier carried by the test detail checking request, acquiring task detail information of each test task of a corresponding service interface based on an interface identifier carried by the test detail checking request, and returning the task detail information to the test control platform 110.
In the embodiment of the present application, the task detail information may include, but is not limited to: the task identification of the test task, the interface identification of the service interface, the test environment and the version number, the case identification of each test case contained in the test task, the description information, the client identification of the test execution client and the like.
In one possible embodiment, the test control platform 110 is further configured to: receiving a test state query request initiated for the service interface, and forwarding the test state query request to the test control server 120; receiving and displaying task state information of each test task returned by the test control server 120 based on the test state query request;
the test control server 120 is further configured to: receiving a test state query request forwarded by the test control platform 110, and when determining that a user corresponding to the user identifier has a viewing right based on the user identifier carried in the test state query request, obtaining task state information of each test task of the corresponding service interface based on the interface identifier carried in the test state query request, and returning the task state information to the test control platform 110.
In the embodiment of the present application, the task state information may include, but is not limited to: the task identification, the execution state, the total number of the test cases, the number of the test cases which pass the execution, the number of the test cases which do not pass the execution, the number of the test cases to be verified, the number of the test cases which are suspended and the like of the test task.
In one possible embodiment, the test control platform 110 is further configured to: receiving a test result query request initiated for the service interface, and forwarding the test result query request to the test control server 120; receiving and displaying a test result log of each test task returned by the test control server 120 based on the test result query request;
the test control server 120 is further configured to: and receiving a test result query request forwarded by the test control platform 110, and based on the user identifier carried in the test result query request, when determining that the user corresponding to the user identifier has the viewing right, acquiring a test result log of each test task of the corresponding service interface based on the interface identifier carried in the test result query request, and returning the test result log to the test control platform 110.
In the embodiment of the present application, the test result log may include, but is not limited to: the execution result, the execution log, the error report details, the screen shot when the error is reported and the like of the test case.
In one possible embodiment, the test control platform 110 is further configured to: receiving a pause test instruction initiated by a test task for the service interface, and forwarding the pause test instruction to the test control server 120;
the test control server 120 is further configured to: receiving a pause test instruction forwarded by the test control platform 110, determining a test task to be paused based on a task identifier carried by the pause test instruction when a user corresponding to the user identifier has a processing right, controlling the test execution client 130 corresponding to the test task to pause and execute each test case of the test task, and configuring the execution state of the test task and each test case of the test task from being executed to being paused.
In one possible embodiment, the test control server 120 is further configured to: for each test execution client 130, the client state information of the test execution client 130 is generated according to the execution result of each test case executed by the test execution client 130 within the set time range, and the client state information of the test execution client 130 is stored based on the client identifier of the test client.
In this embodiment of the present application, the client state information may include, but is not limited to: the test execution client 130 executes the total number of test cases, the number of test case executions passing, the number of test case executions failing, the test case execution passing rate, and the like within a set time range.
In one possible embodiment, the test control platform 110 is further configured to: receiving a client state viewing request, and forwarding the client state viewing request to the test control server 120; receiving and displaying client state information of the test client returned by the test control server 120 based on the client state viewing request;
the test control server 120 is further configured to: receiving a client state viewing request forwarded by the test control platform 110, determining that a user corresponding to the user identifier has viewing right based on the user identifier carried by the client state viewing request, acquiring client state information of a corresponding test client based on the client identifier carried by the client state viewing request, and returning the client state information to the test control platform 110.
In one possible embodiment, the test control platform 110 is further configured to: receiving a client deactivation instruction initiated for the test client and forwarding the client deactivation instruction to the test control server 120; receiving a client enabling instruction initiated for the test client, and forwarding the client enabling instruction to the test control server 120;
the test control server 120 is further configured to: receiving a client deactivation instruction forwarded by the test control platform 110, and controlling the test execution client 130 indicated by the client deactivation instruction to deactivate when determining that a user corresponding to the user identifier has a processing right based on a user identifier carried by the client deactivation instruction; and receiving a client enabling instruction forwarded by the test control platform 110, and controlling the test execution client 130 indicated by the client enabling instruction to be re-enabled when determining that the user corresponding to the user identifier has the processing right based on the user identifier carried by the client enabling instruction.
The following describes a test control method provided in the embodiment of the present application with reference to a test control system provided in the embodiment of the present application.
Referring to fig. 2, an outline flow of the test control method provided by the embodiment of the present application is as follows:
step 201: the test control platform 110 obtains test data respectively input for each test object of the service interface, where each test object of the service interface is a test object included in various types of interface tests of the service interface.
Step 202: the test control platform 110 stores the test data of each test object of the service interface to the test database of the test control server 120.
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.
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.
Step 205: the test control server 120 stores the test cases of the respective test objects of the service interface to the test database.
Step 206: the test execution client 130 obtains the test cases of the test objects of the service interface stored in the test control server 120 from the test database.
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.
Step 208: the test execution client 130 allocates the test cases of the test objects of the service interface to the corresponding test execution modules respectively for execution, so as to perform various interface tests on the service interface.
Referring to fig. 3, an outline flow of the test control method applied to the test control platform 110 provided by the embodiment of the present application is as follows:
step 301: the test control platform 110 obtains test data respectively input for each test object of the service interface, where each test object of the service interface is a test object included in various types of interface tests of the service interface.
In practical applications, when the test control platform 110 obtains the test data input for each test object of the service interface, the following operations may be performed for each test object of the service interface:
first, the test control platform 110 receives a test configuration request initiated for the test object.
Then, the test control platform 110 displays a test configuration interface of the test object, wherein the test configuration interface at least displays each attribute selection box and each test data field.
Next, the test control platform 110 obtains the attribute test data respectively selected in each attribute selection box and the functional test data respectively input in each test data field.
Finally, the test control platform 110 determines the obtained attribute test data and function test data as the test data of the service interface.
Step 302: the test control platform 110 stores the test data of each test object of the service interface to the test database of the test control server 120.
In practical applications, the test control platform 110 may call a data interface (e.g., Post interface) provided by the test control server 120, and store the test data of each test object of the service interface into the test database of the test control server 120.
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 may generate a test case of 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, specifically, as shown in fig. 4, an outline flow of the test control method applied to the test control server 120 provided in the embodiment of the present application is as follows:
step 401: the test control server 120 obtains the test data of each test object of the service interface stored by the test control platform 110 from the test database, where each test object of the service interface is a test object included in the various types of interface tests of the service interface.
In a specific implementation, the test control server 120 may obtain test data of each test object of the service interface under any one of the following conditions:
in the first case: the test control server 120 determines that a test period is reached.
In the second case: the test control server 120 determines a version update of the application of the service interface service.
In the third case: the test control server 120 receives the interface test instruction forwarded by the test control platform 110 for the service interface.
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.
In a specific implementation, when the test control server 120 executes step 402, format conversion may be performed on 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.
Specifically, in this embodiment, the test control server 120 may convert, for each test object of the service interface, the test data of the test object into a JSON format, so as to obtain a test case of the test object.
Further, after generating the test cases of the test objects of the service interface based on the test data of the test objects of the service interface, the test control server 120 may further divide the test cases of the test objects of the service interface based on the interface test to which the test objects of the service interface belong to obtain the test cases included in the test of the interfaces of the service interface, create test tasks for the service interface based on the test cases included in the test of the interfaces of the service interface, and store the test tasks of the service interface in the test database.
Thus, when a user needs to check the test detail information of the service interface, a test check request may be initiated on the test control platform 110 for the service interface, when the test control platform 110 receives the test check request initiated for the service interface, the test check request is forwarded to the test control server 120, when the test control server 120 receives the test check request forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has a check right based on the user identifier carried in the test check request, the task detail information of each test task of the corresponding service interface may be obtained based on the interface identifier carried in the test check request and returned to the test control platform 110, when the test control platform 110 receives the task detail information of each test task returned by the test control server 120 based on the test check request, the task detail information of each test task of the service interface can be displayed for the user, so that each interface test of the service interface can be displayed to the user more intuitively through the test task, and convenience is provided for the user to check.
Step 403: the test control server 120 stores the test cases of the test objects of the service interface in the test database.
In a specific implementation, the test control server 120 may perform step 403 in the following manners:
first, the test control server 120 determines, from the test execution clients 130, a test execution client 130 for performing an interface test on the service interface based on the load balancing policy.
Then, the test control server 120 stores the test cases of the test objects of the service interface in association with the client identifiers of the test execution clients 130 of the service interface in the test database.
Further, in this embodiment of the application, after the test control server 120 stores the test case of each test object of the service interface in the test database, the execution state of the test case of each test object of the service interface may be configured to be executed respectively.
Further, the test control server 120 may also determine, for each test task of the service interface, that the execution states of all test cases included in the test task are to be executed, and configure the execution state of the test task as to be executed.
Further, in this embodiment of the application, after the test control server 120 stores the test cases of the test objects of the service interface in the test database, the test execution client 130 may perform various interface tests on the service interface based on the test cases of the test objects of the service interface stored in the test database, specifically, referring to fig. 5, an outline flow of the test control method applied to the test execution client 130 provided in this embodiment of the application is as follows:
step 501: the test execution client 130 obtains the test cases of the test objects of the service interface stored by the test control server 120 from the test database of the test control server 120, where each test object of the service interface is a test object included in the various types of interface tests of the service interface.
In specific implementation, when the test execution client 130 executes step 501, the test execution client 130 may call a data interface (e.g., a Get interface) provided by the test control server 120, and obtain, from a test database of the test control server 120, a test case of each test object that is stored in association with the client identifier and whose corresponding execution state is to be executed, as a test case of each test object of the service interface.
Further, after the test execution client 130 obtains the test cases of the test objects of the service interface, the execution states of the test cases of the test objects of the service interface may be configured from the to-be-executed state to the executing state.
It should be noted that, in the embodiment of the present application, the test control server 120 may monitor, in real time, the execution state of the test case of each test object of the service interface, and may configure, for each test task of the service interface, the execution state of any test case included in the test task from to be executed to being executed when it is monitored that the execution state of the test case is changed from being executed to being executed.
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 allocates the test cases of each test object of the service interface to the corresponding test execution module to execute, so as to perform various interface tests on the service interface.
Further, in this embodiment of the application, after the test execution client 130 allocates the test cases of the test objects of the service interface to the corresponding test execution modules for execution, a data interface (for example, a Post interface) provided by the test control server 120 may also be called, and the execution results of the test cases of the test objects of the service interface are stored in the test database of the test control server 120.
Thus, when a user needs to check a test result of the service interface, a test result query request may be initiated on the test control platform 110 for the service interface, and when the test control platform 110 receives the test result query request initiated for the service interface, the test result query request may 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 the viewing right based on the user identifier carried in the test result query request, the test control server 120 may obtain a test result log of each test task of the corresponding service interface based on the interface identifier carried in the test result query request and return the test result log 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 may be displayed to the user, so that the user may view the test result of the service interface.
It should be noted that, in the embodiment of the present application, when the test execution client 130 calls the data interface (for example, Post interface) provided by the test control server 120 and stores the execution result of the test case of each test object of the service interface into the test database of the test control server 120, the execution state of the test case of each test object of the service interface may be configured from being executed to being completed.
Further, the test control server 120 may further monitor, for each test task of the service interface, that the execution state of each test case included in the test task is switched from being executed to being completed, obtain an execution result of each test case included in the test task, determine, based on the execution result of each test case included in the test task, that an abnormal test case exists in each test case included in the test task, configure the execution state of the test task from being executed to being verified, and determine that an abnormal test case does not exist in each test case included in the test task, configure the execution state of the test task from being executed to being completed.
It is worth mentioning that, in the embodiment of the present application, when a user needs to suspend testing of any test task of the service interface, a suspend test instruction may be initiated on the test control platform 110 for any test task of the service interface, and when the test control platform 110 receives the suspend test instruction initiated for any test task of the service interface, the suspend 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 the processing right based on the user identifier carried by the pause test instruction, the test control server determines the test task to be paused based on the task identifier carried by the pause test instruction, controls the test execution client 130 corresponding to the test task to pause and execute each test case of the test task, and configures the execution states of the test task and each test case of the test task from being executed to being paused.
In addition, in this embodiment of the application, when the user needs to check the test state of the service interface, a test state query request may be initiated on the test control platform 110 for the service interface, and when the test control platform 110 receives the test state query request initiated for the service interface, the test state query request is forwarded to the test control server 120; when the test control server 120 receives the test state query request forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has the viewing right based on the user identifier carried by the test state query request, based on the interface identifier carried by the test state query request, acquiring task state information of each test task of the corresponding service interface and returning the task state information to the test control platform 110; when the test control platform 110 receives the task state information of each test task returned by the test control server 120 based on the test state query request, the task state information of each test task of the service interface may be displayed to the user, so that the user may view the test state of the service interface.
Further, in this embodiment of the application, the test control server 120 may further generate, for each test execution client 130, client state information of the test execution client 130 according to an execution result of each test case executed by the test execution client 130 within a set time range, and store the client state information of the test execution client 130 based on the client identifier of the test execution client 130.
In this way, when a user needs to check the client state of any test execution client 130, a client state check request may be initiated on the test control platform 110 for the any test execution client 130, and when the test control platform 110 receives the client state check request initiated for any test execution client 130, the client state check request is forwarded to the test control server 120; when the test control server 120 receives the client state viewing request forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has the viewing right based on the user identifier carried by the client state viewing request, the client state information of the corresponding test client may be obtained based on the client identifier carried by the client state viewing request and returned to the test control platform 110; when receiving the client state information of the test client returned by the test control server 120 for the client state viewing request, the test control platform 110 may display the client state information of the test client to the user.
It is worth mentioning that, in the embodiment of the present application, if a user determines that the test client is abnormal according to the client state information of the test client displayed by the test control platform 110, the user may initiate a client disabling instruction on the test control platform 110 for the test execution client 130, and when the test control platform 110 receives the client disabling instruction initiated for the test execution client 130, the user forwards the client disabling instruction 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 the processing right based on the user identifier carried in the client deactivation instruction, the test execution client indicated by the client deactivation instruction may be controlled to deactivate.
Further, when the user determines that the test client is recovered to normal, the user may initiate a client enabling instruction on the test control platform 110 for the test execution client 130, and when the test control platform 110 receives the client enabling instruction initiated for the test execution client 130, the user forwards the client enabling instruction to the test control server 120; when the test control server 120 receives the client-side enabling instruction forwarded by the test control platform, if it is determined that the user corresponding to the user identifier has the processing right based on the user identifier carried by the client-side enabling instruction, the test execution client side indicated by the client-side enabling instruction can be controlled to be enabled again.
The following describes the test control method provided in the embodiment of the present application in further detail through a specific application scenario, and referring to fig. 6, a specific process of the test control method provided in the embodiment of the present application is as follows:
step 601: the test control platform 110 obtains test data respectively input for each test object of the service interface, where each test object of the service interface is a test object included in the various service interface tests of the service interface.
Step 602: the test control platform 110 calls the Post interface provided by the test control server 120, and stores the test data of each test object of the service interface into the test database of the test control server 120.
Step 603: when the test control server 120 determines that the test period is reached, the test control server obtains the test data of each test object of the service interface stored in the test control platform 110 from the test database.
Step 604: the test control server 120 converts the test data of the test object into JSON format for each test object of the service interface, and obtains a test case of the test object.
Step 605: the test control server 120 determines, from the test execution clients 130, a test execution client 130 for performing an interface test on the service interface based on the load balancing policy, and stores, in the test database, a test case of each test object of the service interface in association with the client identifier of the test execution client 130 of the service interface.
Step 606: the test control server 120 configures the execution states of the test cases of the test objects of the service interface to be executed, respectively.
Step 607: the test control server 120 divides the test cases of the test objects of the service interface based on the interface test to which the test objects of the service interface belong to obtain the test cases included in the test of each interface of the service interface, and creates test tasks for the service interface based on the test cases included in the test of each interface of the service interface.
Step 608: the test control server 120 stores each test task of the service interface in the test database, and configures the execution state of the test task to be executed when determining that the execution state of all test cases included in the test task is to be executed for each test task of the service interface.
Step 609: the test execution client 130 calls the Get interface provided by the test control server 120, obtains the test case of each test object, which is stored in association with the client identifier and whose corresponding execution state is to be executed, from the test database as the test case of each test object of the service interface, configures the execution state of the test case of each test object of the service interface from the to-be-executed configuration to the executing configuration, and continues to execute step 611.
Step 610: the test control server 120 monitors, for each test task of the service interface, that the execution state of any test case included in the test task is changed from to be executed to being executed, and configures the execution state of the test task from to be executed to being executed.
Step 611: the test execution client 130 determines, for each test object of the service interface, a test execution module of the test object based on the interface test to which the test object belongs, and allocates the test case of the test object to the test execution module for execution.
Step 612: the test execution client 130 calls the Post interface provided by the test control server 120, stores the execution result of the test case of each test object of the service interface to the test database of the test control server 120, and configures the execution state of the test case of each test object of the service interface from being executed to being completed.
Step 613: the test control server 120, aiming at each test task of the service interface, acquires an execution result of each test case included in the test task when monitoring that the execution state of each test case included in the test task is switched from being executed to being completed.
Step 614: the test control server 120 configures the execution state of the test task from being executed to being verified when determining that an abnormal test case exists in the test cases included in the test task based on the execution result of each test case included in the test task, and configures the execution state of the test task from being executed to being completed when determining that an abnormal test case does not exist in the test cases included in the test task.
Based on the above embodiments, the present application provides a test control apparatus applied to the test control platform 110, and referring to fig. 7, the test control apparatus 700 applied to the test control platform 110 provided by the present application embodiment at least includes:
a data obtaining unit 701, configured to obtain test data input for each test object of the service interface, where each test object of the service interface is a test object included in various interface tests of the service interface;
the data storage unit 702 is configured to store the test data of each test object of the service interface into the test database of the test control server 120, so that the test control server 120 generates a test case of 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, stores the test case of each test object of the service interface into the test database, and triggers the test execution client 130 to execute the test case of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
In a possible implementation manner, when acquiring test data input for each test object of the service interface, the data acquisition unit 701 is specifically configured to perform the following operations for each test object of the service interface:
receiving a test configuration request initiated for a test object;
displaying a test configuration interface of a test object, wherein the test configuration interface at least displays each attribute selection frame and each test data field;
acquiring attribute test data respectively selected in each attribute selection frame and dynamic test data respectively input in each test data field;
and determining the obtained attribute test data and the dynamic test data as the test data of the test object.
Based on the foregoing embodiments, an embodiment of the present application provides a test control apparatus applied to a test control server 120, and referring to fig. 8, a test control apparatus 800 applied to a test control server 120 according to an embodiment of the present application at least includes:
a data obtaining unit 801, configured to obtain, from a test database, test data of each test object of a service interface stored in the test control platform 110, where each test object of the service interface is a test object included in various types of interface tests of the service interface;
a use case generating unit 802, configured to generate a test use case of each test object of the service interface based on the test data of each test object of the service interface;
the case storage unit 803 is configured to store the test case of each test object of the service interface into the test database, and trigger the test execution client 130 to execute the test case of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
In a possible implementation manner, when generating a test case of each test object of the service interface based on the test data of each test object of the service interface, the case generating unit 802 is specifically configured to:
and aiming at each test object of the service interface, carrying out format conversion on the test data of the test object according to a set format to obtain a test case of the test object.
In a possible embodiment, when the test case of each test object of the service interface is stored in the test database, the case storage unit 803 is specifically configured to:
determining a test execution client 130 for performing an interface test on the service interface from the test execution clients based on the load balancing policy;
and storing the test cases of the test objects of the service interface and the client identifications of the test execution client 130 in a test database in an associated manner.
In a possible implementation manner, after storing the test cases of the test objects of the service interface in the test database, the case storage unit 803 is further configured to:
and respectively configuring the execution states of the test cases of the test objects of the service interface to be executed.
In a possible implementation manner, the test control apparatus 800 applied to the test control server 120 provided in this embodiment of the present application further includes:
the task creating unit 804 is configured to, after the use case generating unit 802 generates the test use cases of the test objects of the service interface based on the test data of the test objects of the service interface, divide the test use cases of the test objects of the service interface based on the interface test to which the test objects of the service interface belong to obtain the test use cases included in the test of the interfaces of the service interface, create the test tasks for the service interface based on the test use cases included in the test of the interfaces of the service interface, store the test tasks of the service interface into the test database, and configure the execution states of the test tasks to be executed when determining the execution states of all the test use cases included in the test tasks to be executed for the test tasks of the service interface.
In a possible implementation manner, the test control apparatus 800 applied to the test control server according to the embodiment of the present application further includes:
a state monitoring unit 805, configured to monitor, for each test task of the service interface, that an execution state of any test case included in the test task is switched from to be executed to being executed, and configure the execution state of the test task from to be executed to being executed; and when the execution state of each test case contained in the test task is monitored to be switched from being executed to being completed, acquiring the execution result of each test case contained in the test task, and based on the execution result of each test case contained in the test task, when the test case with the abnormality is determined to exist in each test case contained in the test task, configuring the execution state of the test task from being executed to be verified, and when the test case with the abnormality is determined not to exist in each test case contained in the test task, configuring the execution state of the test task from being executed to being completed.
In a possible implementation manner, the test control apparatus 800 applied to the test control server 120 provided in this embodiment of the present application further includes:
the client monitoring unit 806 is configured to generate, for each test execution client 130, client state information of the test execution client 130 according to an execution result of each test case executed by the test execution client 130 within a set time range, and store the client state information of the test execution client 130 based on a client identifier of the test execution client 130.
In a possible implementation, the client monitoring unit 806 is further configured to:
receiving a client state viewing request forwarded by the test control platform 110;
and when determining that the user corresponding to the user identifier has the viewing right based on the user identifier carried by the client state viewing request, acquiring the client state information of the corresponding test client based on the client identifier carried by the client state viewing request, and returning the client state information to the test control platform 110 for displaying.
In a possible implementation manner, the test control apparatus 800 applied to the test control server 120 provided in this embodiment of the present application further includes:
a client management unit 807, configured to receive the client deactivation instruction forwarded by the test control platform 110; controlling the test execution client 130 indicated by the client deactivation instruction to deactivate when determining that the user corresponding to the user identifier has the processing right based on the user identifier carried by the client deactivation instruction; receiving a client enabling instruction forwarded by the test control platform 110; and controlling the test execution client 130 indicated by the client enabling instruction to be enabled again when determining that the user corresponding to the user identifier has the processing right based on the user identifier carried by the client enabling instruction.
Based on the foregoing embodiments, an embodiment of the present application further provides a test control apparatus applied to the test execution client 130, and referring to fig. 9, the test control apparatus 900 applied to the test execution client 130 according to the embodiment of the present application at least includes:
a case obtaining unit 901, configured to obtain, from a test database of the test control server 120, a test case of each test object of the service interface stored in the test control server 120, where each test object of the service interface is a test object included in various types of interface tests of the service interface;
the case execution unit 902 is configured to determine a 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 allocate the test cases of each test object of the service interface to the corresponding test execution modules to execute, so as to perform various interface tests on the service interface.
In a possible implementation manner, when obtaining a test case of each test object of a service interface stored in the test control server 120 from a test database of the test control server 120, the case obtaining unit 901 is specifically configured to:
the test cases of the test objects whose execution states are to be executed and stored in association with the client id are obtained from the test database, and the obtained test cases are used as the test cases of the test objects of the service interface stored in the test control server 120.
In a possible implementation manner, when obtaining, from the test database, a test case of each test object of the service interface stored by the test control server 120, the use case obtaining unit 901 is further configured to:
the execution states of the test cases of the respective test objects of the service interface stored by the test control server 120 are configured from to-be-executed to being executed, respectively.
In a possible implementation manner, the test control apparatus 900 applied to the test execution client 130 according to the embodiment of the present application further includes:
the result storage unit 903 is configured to, after the use case execution unit 902 allocates the test use cases of the test objects of the service interface to the corresponding test execution modules respectively for execution, store the execution results of the test use cases of the test objects of the service interface to the test database, and configure the execution states of the test use cases of the test objects of the service interface from being executed to being completed.
It should be noted that the principle of solving the technical problem of the three test control devices provided in the embodiment of the present application is similar to that of the test control method provided in the embodiment of the present application, and therefore, reference may be made to the implementation of the test control method provided in the embodiment of the present application for the implementation of the three test control devices provided in the embodiment of the present application, and repeated details are not repeated.
After the test control system, the method and the device provided by the embodiment of the present application are introduced, a brief description is provided next for the test control apparatus provided by the embodiment of the present application.
Referring to fig. 10, the test control apparatus 100 according to the embodiment of the present application includes at least: the test control system comprises a processor 101, a memory 102 and a computer program which is stored on the memory 102 and can run on the processor 101, wherein the processor 101 executes the computer program to realize the test control method applied to the test control platform 110 provided by the embodiment of the application; alternatively, 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.
It should be noted that the test control apparatus 100 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present application.
The test control device 100 provided by the embodiment of the present application may further include a bus 103 connecting different components (including the processor 101 and the memory 102). Bus 103 represents one or more of any of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and so forth.
The Memory 102 may include readable media in the form of volatile Memory, such as Random Access Memory (RAM) 1021 and/or cache Memory 1022, and may further include Read Only Memory (ROM) 1023.
Memory 102 may also include program means 1025 having a set (at least one) of program modules 1024, program modules 1024 including, but not limited to: a method of operation, one or more applications, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The test control device 100 may also communicate with one or more external devices 104 (e.g., a keyboard, a remote control, etc.), with one or more devices that enable a user to interact with the test control device 100 (e.g., a cell phone, a computer, etc.), and/or with any device that enables the test control device 100 to communicate with one or more other test control devices 100 (e.g., a router, a modem, etc.). This communication may be through an Input/Output (I/O) interface 105. Also, the test control device 100 may 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) via the Network adapter 106. As shown in fig. 10, the network adapter 106 communicates with the other modules of the test control apparatus 100 through the bus 103. It should be understood that although not shown in FIG. 10, 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, RAID (Redundant Arrays of Independent Disks) sub-methods, tape drives, and data backup storage sub-methods, etc.
The following describes a computer-readable storage medium provided by embodiments of the present application. The embodiment of the present application provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed by a processor, the computer instructions implement the test control method applied to the test control platform 110 provided in the embodiment of the present application; alternatively, 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 may be built in the test control device 100, so that the test control device 100 may 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; alternatively, 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.
Furthermore, the test control method provided by the embodiment of the present application may also be implemented as a program product including program code for causing the test control apparatus 100 to execute the test control method provided by the embodiment of the present application when the program product is executable on the test control apparatus 100.
The program product provided by the embodiments of the present application may be any combination of one or more readable media, wherein the readable media may be readable signal medium or readable storage medium, and the readable storage medium may be but is not limited to electric, magnetic, optical, electromagnetic, infrared, or semiconductor method, apparatus, or device, or any combination thereof, and in particular, more specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a RAM, a ROM, an Erasable Programmable Read-Only Memory (EPROM), an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product provided by the embodiment of the application can adopt a CD-ROM and comprises program codes, and can run on a computing device. However, the program product provided by the embodiments of the present application is not limited thereto, and in the embodiments of the present application, the readable storage medium may be any tangible medium containing or storing the program, which may be used by or in combination with an instruction execution method, apparatus, or device.
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such 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 encompass such modifications and variations.

Claims (10)

1. A test control system, comprising:
the test control platform is used for acquiring test data respectively input by each test object of the service interface and storing the test data of each test object of the service interface into a test database of the test control server, wherein each test object of the service interface is a test object contained in various interface tests of the service interface;
the test control server is used for acquiring the test data of each test object of the service interface, which is stored by the test control platform, from the test database, generating a test case of each test object of the service interface based on the test data of each test object of the service interface, and storing the test case of each test object of the service interface to the test database;
each test execution client is used for acquiring the test cases of each test object of the service interface stored by the test control server from the test database, determining 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 distributing the test cases of each test object of the service interface to the corresponding test execution module for execution so as to carry out various interface tests on the service interface.
2. The test control system according to claim 1, wherein when storing the test case of each test object of the service interface to the test database, the test control server is specifically configured to:
determining a test execution client for performing interface test on the service interface from the test execution clients based on a load balancing strategy;
and storing the test cases of the test objects of the service interface and the client identifications of the test execution client in the test database in an associated manner.
3. The test control system of claim 2, wherein when storing the test cases of the test objects of the service interface to the test database, the test control server is further configured to:
and respectively configuring the execution states of the test cases of the test objects of the service interface to be executed.
4. The test control system according to claim 3, wherein when the test case of each test object of the service interface stored in the test control server is obtained from the test database, the test execution client is specifically configured to:
and acquiring the test cases of the test objects which are stored in association with the client identifications and correspond to the execution states to be executed from the test database, and taking the test cases as the test cases of the test objects of the service interface stored by the test control server.
5. The test control system according to claim 3 or 4, wherein when the test case of each test object of the service interface stored in the test control server is obtained from the test database, the test execution client is further configured to:
and configuring the execution states of the test cases of the test objects of the service interface, which are stored by the test control server, from the to-be-executed state to the executing state respectively.
6. The test control system according to claim 5, wherein when the test cases of the test objects of the service interface are respectively allocated to the corresponding test execution modules to be executed, the test execution client is further configured to:
and storing the execution result of the test case of each test object of the service interface into the test database, and configuring the execution state of the test case of each test object of the service interface from the executing state to the finished state.
7. A test control method is applied to a test control platform and comprises the following steps:
acquiring test data respectively input aiming at each test object of a service interface, wherein each test object of the service interface is a test object contained in various interface tests of the service interface;
storing the test data of each test object of the service interface to a test database of a test control server, so that the test control server generates a test case of 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, stores the test case of each test object of the service interface to the test database, and triggers a test execution client to execute the test case of each test object of the service interface stored in the test database, so as to perform various interface tests on the service interface.
8. A test control method is applied to a test control server, and comprises the following steps:
acquiring test data of each test object of a service interface stored by a test control platform from a test database, wherein each test object of the service interface is a test object included in various interface tests of the service interface;
generating a test case of each test object of the service interface based on the test data of each test object of the service interface;
and storing the test cases of the test objects of the service interface into the test database, and triggering a test execution client to execute the test cases of the test objects of the service interface stored in the test database so as to test various interfaces of the service interface.
9. A test control method is applied to a test execution client, and comprises the following steps:
obtaining a test case of each test object of a service interface stored by a test control server from a test database of the test control server, wherein each test object of the service interface is a test object included in various interface tests of the service interface;
determining a 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 distributing the test cases of the test objects of the service interface to corresponding test execution modules for execution so as to carry out various interface tests on the service interface.
10. A test control apparatus, characterized by comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the test control method of claim 7 when executing the computer program; or, implementing the data processing method of claim 8; alternatively, the test control method according to claim 9 is implemented.
CN202010071699.6A 2020-01-21 2020-01-21 Test control system, method and equipment Pending CN112416745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010071699.6A CN112416745A (en) 2020-01-21 2020-01-21 Test control system, method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010071699.6A CN112416745A (en) 2020-01-21 2020-01-21 Test control system, method and equipment

Publications (1)

Publication Number Publication Date
CN112416745A true CN112416745A (en) 2021-02-26

Family

ID=74844020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010071699.6A Pending CN112416745A (en) 2020-01-21 2020-01-21 Test control system, method and equipment

Country Status (1)

Country Link
CN (1) CN112416745A (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020116507A1 (en) * 2001-02-20 2002-08-22 Manjure Samir B. Distributed testing of an implementation of a remote access protocol
CN101493793A (en) * 2009-02-19 2009-07-29 深圳市紫金支点技术股份有限公司 ATM test method and device
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
EP2913757A1 (en) * 2014-02-26 2015-09-02 FMC Feindt Management Consulting GmbH Method, system, and computer software product for test automation
CN106095673A (en) * 2016-06-07 2016-11-09 深圳市泰久信息系统股份有限公司 Automated testing method based on WEB interface and system
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 Distributed dispatching automation test platform and method
CN107748717A (en) * 2017-09-26 2018-03-02 深圳市牛鼎丰科技有限公司 Automatic interface testing method, device, storage medium and computer equipment
CN108268379A (en) * 2018-02-02 2018-07-10 方欣科技有限公司 A kind of distributed automatization test method and device
US20180322035A1 (en) * 2017-05-04 2018-11-08 Hcl Technologies Limited Automation testing platform for facilitating automatic testing of an information technology (it) enabled application
CN109144857A (en) * 2018-08-01 2019-01-04 武汉普利商用机器有限公司 Cross-platform test of heuristics method and system
CN109933522A (en) * 2019-01-25 2019-06-25 畅捷通信息技术股份有限公司 A kind of test method, test macro and storage medium automating use-case
CN110083544A (en) * 2019-05-07 2019-08-02 江苏满运软件科技有限公司 Distributed automatization test system, method, electronic equipment and storage medium
CN110162466A (en) * 2019-04-19 2019-08-23 平安国际智慧城市科技股份有限公司 Automatic test approach, device, computer equipment and storage medium
CN110347085A (en) * 2019-07-16 2019-10-18 广州小鹏汽车科技有限公司 Automatization test system, method, vehicle and computer-readable medium
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机系统有限公司 A kind of distributed experiment & measurement system test method, device and storage medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020116507A1 (en) * 2001-02-20 2002-08-22 Manjure Samir B. Distributed testing of an implementation of a remote access protocol
CN101493793A (en) * 2009-02-19 2009-07-29 深圳市紫金支点技术股份有限公司 ATM test method and device
CN102141962A (en) * 2011-04-07 2011-08-03 北京航空航天大学 Safety distributed test framework system and test method thereof
CN103970614A (en) * 2013-01-24 2014-08-06 腾讯科技(深圳)有限公司 Service testing method and device
EP2913757A1 (en) * 2014-02-26 2015-09-02 FMC Feindt Management Consulting GmbH Method, system, and computer software product for test automation
CN106095673A (en) * 2016-06-07 2016-11-09 深圳市泰久信息系统股份有限公司 Automated testing method based on WEB interface and system
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 Distributed dispatching automation test platform and method
US20180322035A1 (en) * 2017-05-04 2018-11-08 Hcl Technologies Limited Automation testing platform for facilitating automatic testing of an information technology (it) enabled application
CN107748717A (en) * 2017-09-26 2018-03-02 深圳市牛鼎丰科技有限公司 Automatic interface testing method, device, storage medium and computer equipment
CN108268379A (en) * 2018-02-02 2018-07-10 方欣科技有限公司 A kind of distributed automatization test method and device
CN109144857A (en) * 2018-08-01 2019-01-04 武汉普利商用机器有限公司 Cross-platform test of heuristics method and system
CN109933522A (en) * 2019-01-25 2019-06-25 畅捷通信息技术股份有限公司 A kind of test method, test macro and storage medium automating use-case
CN110162466A (en) * 2019-04-19 2019-08-23 平安国际智慧城市科技股份有限公司 Automatic test approach, device, computer equipment and storage medium
CN110083544A (en) * 2019-05-07 2019-08-02 江苏满运软件科技有限公司 Distributed automatization test system, method, electronic equipment and storage medium
CN110389900A (en) * 2019-07-10 2019-10-29 深圳市腾讯计算机系统有限公司 A kind of distributed experiment & measurement system test method, device and storage medium
CN110347085A (en) * 2019-07-16 2019-10-18 广州小鹏汽车科技有限公司 Automatization test system, method, vehicle and computer-readable medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李夏安,陈志泊: "基于STAF的软件自动化测试系统的研究和实现", 计算机应用, pages 699 - 701 *

Similar Documents

Publication Publication Date Title
US11416373B2 (en) Providing debug information on production containers using debug containers
KR102552419B1 (en) Method, device, electronic equipment and readable storage medium for sharing gpu
CN100578455C (en) Resource functionality verification before use by a grid job submitted to a grid environment
US8112527B2 (en) Virtual machine management apparatus, and virtual machine management method and program
US9218231B2 (en) Diagnosing a problem of a software product running in a cloud environment
US10439957B1 (en) Tenant-based management system and method for distributed computing environments
US10346263B2 (en) Host swap hypervisor that provides high availability for a host of virtual machines
US20150106813A1 (en) Method and apparatus for provisioning of resources to support applications and their varying demands
CN112104723A (en) Multi-cluster data processing system and method
US9785507B2 (en) Restoration of consistent regions within a streaming environment
CN109684038B (en) Docker service container log processing method and device and electronic equipment
US9052963B2 (en) Cloud computing data center machine monitor and control
CN113760180A (en) Storage resource management method, device, equipment and computer readable storage medium
US10469400B2 (en) Method and apparatus for provisioning of resources to support applications and their varying demands
US11644876B2 (en) Data analytics for mitigation of data center thermal issues
CN112136306A (en) Central control system of multimedia exhibition hall and control method and device thereof
CN115812298A (en) Block chain management of supply failure
CN114338684A (en) Energy management system and method
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN112416744B (en) Test control system, method and equipment
CN112068953B (en) Cloud resource fine management traceability system and method
CN112416747A (en) Test case execution method, device, equipment and medium
CN112416743B (en) Test control system, method and equipment
CN114610597A (en) Pressure testing method, device, equipment and storage medium
CN112416745A (en) Test control system, method and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination