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

Test control system, method and equipment Download PDF

Info

Publication number
CN112416744A
CN112416744A CN202010070903.2A CN202010070903A CN112416744A CN 112416744 A CN112416744 A CN 112416744A CN 202010070903 A CN202010070903 A CN 202010070903A CN 112416744 A CN112416744 A CN 112416744A
Authority
CN
China
Prior art keywords
test
application
client
execution
case
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
CN202010070903.2A
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 CN202010070903.2A priority Critical patent/CN112416744A/en
Publication of CN112416744A publication Critical patent/CN112416744A/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

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 aiming at each test object of the application; the test control server acquires test data of each test object of the application stored in the test control platform, and generates and stores test cases of each test object of the application based on the test data of each test object of the application; the test execution client acquires the test cases of the test objects of the application stored by the test control server, and executes the test cases of the test objects of the application to test the application. Therefore, through mutual cooperation of the test control platform, the test control server and the test execution client, unified management and automatic test of various application 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 are generated, wherein application tests are closely related to user experience, and the application tests are gradually an important stage of application development and maintenance.
In practical application, application tests mainly include various types of tests such as user interface tests and service interface tests, and currently, different test frameworks are generally used for different types of tests, so that the cost of the application tests is high, and the efficiency is low.
Disclosure of Invention
The embodiment of the application provides a test control system, a test control method and test control equipment, which are used for solving the problems of low efficiency and high cost of an application 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 which are respectively input aiming at each test object of the application and storing the test data of each test object of the application into a test database of the test control server, wherein each test object of the application is a test object contained in various application tests of the application;
the test control server is used for acquiring the test data of each test object of the application from the test database, generating a test case of each test object of the application based on the test data of each test object of the application, determining a test execution client of each test object of the application based on the interface test to which each test object of the application belongs, and storing the test case of each test object of the application and the client identification of the corresponding test execution client in the test database in an associated manner;
each test execution client is used for acquiring the test cases of each test object stored in association with the client identifier from the test cases of each test object of the application stored in the test database, and executing the test cases of each test object stored in association with the client identifier so as to perform corresponding application test on the application.
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 aiming at each test object of the application, wherein each test object of the application is a test object contained in various application tests of the application;
storing the test data of each applied test object in a test database of a test control server, so that the test control server generates a test case of each applied test object based on the test data of each applied test object stored in the test database, storing the test case of each applied test object and a client identifier of a corresponding test execution client in a correlation manner in the test database, triggering the test execution client to acquire the test case of each test object stored in the correlation manner with the client identifier from the test database and execute the test case, and performing corresponding application test on the application.
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 application from a test database, wherein each test object of the application is a test object contained in various application tests of the application;
generating a test case of each test object of the application based on the test data of each test object of the application;
determining a test execution client of each test object of the application based on the interface test to which each test object of the application belongs, storing the test case of each test object of the application and the client identifier of the corresponding test execution client in a test database in an associated manner, triggering the test execution client to acquire the test case of each test object stored in the associated manner with the client identifier from the test database and executing the test case so as to perform corresponding application test on the application.
On the other hand, an embodiment of the present application provides a test control method applied to a test execution client, including:
acquiring test cases of all test objects stored in association with client identifications from the test cases of all test objects of the application stored in a test database, wherein all the test objects of the application are test objects contained in various application tests of the application;
and executing the test case of each test object stored in association with the client identifier so as to perform corresponding application test on the application.
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 application, wherein each test object of the application is a test object contained in each application test of the application;
the data storage unit is used for storing the test data of each test object of the application to a test database of the test control server, so that the test control server generates a test case of each test object of the application based on the test data of each test object of the application stored in the test database, associates and stores the test case of each test object of the application and a client identifier of a corresponding test execution client to the test database, and triggers the test execution client to acquire and execute the test case of each test object stored in association with the client identifier from the test database so as to perform corresponding application test on the application.
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 applied test object from the test database, wherein each applied test object is a test object contained in each type of application test of the application;
the case generating unit is used for generating the test cases of the test objects of the application based on the test data of the test objects of the application;
the case storage unit is used for determining the test execution client of each applied test object based on the interface test to which each applied test object belongs, storing the test case of each applied test object and the client identifier of the corresponding test execution client in a test database in an associated manner, triggering the test execution client to acquire the test case of each test object stored in the associated manner with the client identifier from the test database and execute the test case so as to perform corresponding application test on the application.
On the other hand, an embodiment of the present application provides a test control apparatus applied to a test execution client, including:
the client side identification storage unit is used for storing the application test objects of the application, and the case acquisition unit is used for acquiring the test cases of the application test objects stored in association with the client side identification from the test cases of the application test objects stored in the test database, wherein the application test objects are the test objects contained in various application tests of the application;
and the case execution unit is used for executing the test cases of the test objects stored in association with the client identifier so as to perform corresponding application tests on the application.
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 various application 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 sets, test tasks, test result logs, test execution clients and the like.
2. The test control server generates test cases of all the applied test objects according to the test data of all the applied test objects, creates test sets and test tasks for the application according to the test cases of all the applied test objects, and provides background running equipment of database service for the test control platform and the test execution client.
3. The test execution client is a background running device for executing the test case, and includes but is not limited to: android devices, IOS devices, virtual machines, and the like. In the present application, different types of application tests correspond to different test execution clients, for example: the test execution client corresponding to the application test of the user interface test of the Android application is Android equipment, the test execution client corresponding to the application test of the user interface test of the IOS application is IOS equipment, and the test execution client corresponding to the application test of the service interface test of the application server is a virtual machine and the like.
4. Test items, which are various test aspects involved in testing applications, such as: the application test is a service interface test, and the test items may include, but are not limited to: compression test, function test, regression test, and the like; for another example: the application test is a user interface test of an android application, then the test items may include, but are not limited to: graphic testing, navigation testing, content testing, overall interface testing, form testing, and the like.
5. And the test data is data used in the application test process. In the present application, the test data may be divided into functional test data and attribute test data, wherein:
functional test data, which are respective functional data of a test object, for example: if the test object is a service interface, the functional test data includes but is not limited to: input data, prediction result data, and the like;
attribute test data, which are each attribute data of a test object, for example: if the test object is a service interface, the functional test data 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.
6. 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.
7. The test database is used for storing relevant test data such as test data, test cases, test sets, test tasks and the like, and relevant user data such as user names, passwords and the like.
8. 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.
In practical application, application tests mainly include a plurality of test types such as user interface tests and service interface tests, and at present, different test frames are usually used for testing aiming at different test types, and obviously, the application test method is high in cost and low in 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 application, and stores the test data of each test object of the application; the test control server acquires the test data of each test object of the application, which is stored by the test control platform, generates a test case of each test object of the application based on the test data of each test object of the application, and stores the test case of each test object of the application; the test execution client acquires the test cases of the test objects of the application stored by the test control server, and executes the test cases of the test objects of the application to test the application. Therefore, through mutual cooperation of the test control platform, the test control server and the test execution client, unified management and automatic test of various application 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 application, and store the test data of each test object of the application in a test database of the test control server 120, where each test object of the application is a test object included in various application tests of the application;
the test control server 120 is configured to obtain test data of each test object of the application from the test database, generate a test case of each test object of the application based on the test data of each test object of the application, determine a test execution client of each test object of the application based on an interface test to which each test object of the application belongs, and store the test case of each test object of the application and a client identifier of a corresponding test execution client in the test database in an associated manner;
each test execution client 130 is configured to obtain, from the test cases of each test object of the service interface stored in the test database, the test case of each test object stored in association with the client identifier, and execute the test case of each test object stored in association with the client identifier, so as to perform a corresponding application test on the application.
In a possible embodiment, when obtaining the test data input for each test object of the application, the test control platform 110 is specifically configured to perform the following operations for each test object of the application:
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.
In a possible embodiment, when generating a test case of each test object of an application based on test data of each test object of the application, the test control server 120 is specifically configured to:
and carrying out format conversion on the test data of the test object according to a set format aiming at each test object of the application to obtain a test case of the test object.
In one possible embodiment, after storing the test case of each test object of the application and the client identifier of the test execution client in association with each other 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 application to be executed.
In a possible embodiment, after generating the test case of each test object of the application based on the test data of each test object of the application, the test control server 120 is further configured to:
dividing the test cases of the applied test objects based on the test items to which the applied test objects belong to obtain the test cases contained in the applied test items;
respectively creating test sets for the application based on test cases contained in each test item of the application, and storing each test set of the application to a test database;
and aiming at each test set of the application, determining the execution states of all test cases contained in the test set to be executed, and configuring the execution states of the test sets to be executed.
In a possible embodiment, after generating the test case of each test object of the application based on the test data of each test object of the application, the test control server 120 is further configured to:
dividing the test cases of the applied test objects based on the application tests to which the applied test objects belong to obtain the test cases contained in the applied application tests;
respectively creating test tasks for the applications based on test cases contained in the application tests, and storing the test tasks of the applications to a test database;
and aiming at each test task of the application, determining the execution states of all test cases contained in the test task to be executed, and configuring the execution states of the test tasks to be executed.
In a possible embodiment, when the test case of each test object stored in association with the client identifier is obtained from the test cases of each test object of the service interface stored in the test database, the test execution client 130 is specifically configured to:
and obtaining the test cases of the test objects which are stored in association with the client identification and correspond to the execution states to be executed from the test cases of the application stored in the test database.
In a possible embodiment, when the test case of each test object stored in association with the client identifier is obtained from the test cases of each test object of the service interface stored in the test database, the test execution client 130 is further configured to:
and respectively configuring the execution states of the test cases of the test objects stored in association with the client identifications from the to-be-executed state to the executing state.
In one possible embodiment, the test control server 120 is further configured to:
for each test set of the application, monitoring that the execution state of any test case contained in the test set is switched from to be executed to being executed, and configuring the execution state of the test set from to be executed to being executed;
and for each test task of the application, monitoring that the execution state of any test case contained in the test task is switched from to be executed to being executed, and configuring the execution state of the test task from to be executed to being executed.
In a possible embodiment, when executing the test case of each test object stored in association with the client identifier, the test execution client 130 is specifically configured to:
and aiming at each test object stored in association with the client identification, determining a test execution module corresponding to the test case of the test object based on the test item to which the test object belongs, and distributing the test case of the test object to the test execution module for execution.
In one possible embodiment, after executing the test case of each test object stored in association with the client identifier, the test execution client 130 is further configured to:
and storing the execution result of the test case of each test object stored in association with the client identifier into a test database, and configuring the execution state of each test case stored in association with the client identifier 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 set of the application, when monitoring that the execution state of each test case contained in the test set is switched from being executed to being completed, acquiring the execution result of each test case contained in the test set, determining that an abnormal test case exists in each test case contained in the test set based on the execution result of each test case contained in the test set, configuring the execution state of the test set from being executed to be verified, and configuring the execution state of the test set from being executed to being completed when determining that the abnormal test case does not exist in each test case contained in the test set;
and for each test task of the application, 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 one possible embodiment, the test control platform 110 is further configured to: receiving a test detail viewing request initiated for the application, and forwarding the test detail viewing request to the test control server 120; receiving and displaying task detail information of each test task and test set detail information of each test set, which are 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 corresponding application and test set detail information of each test set based on an application identifier carried by the test detail checking request, and returning the task detail information and the test set 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: task identification of the test task, environment and version number of the application, case identification of each test case contained in the test task, description information, client identification of the test execution client and the like; the test set detail information may include, but is not limited to: the test set comprises a test set identifier of the test set, the environment and the version number of the application to which the test set belongs, a case identifier of each test case contained in the test set, description information, a client identifier of a 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 application, and forwarding the test state query request to the test control server 120; receiving and displaying task state information of each test task and test set state information of each test set, which are 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 application and test set state information of each test set based on the application identifier carried in the test state query request, and returning the task state information and the test set 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: task identification, execution state, total number of test cases, number of test cases which pass execution, number of test cases which fail execution, number of test cases to be verified, number of test cases which are suspended and the like of the test task; test set status information may include, but is not limited to: the test set 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 set.
In one possible embodiment, the test control platform 110 is further configured to: receiving a test result query request initiated for the application, 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, obtaining a test result log of each test task of the corresponding application based on the application 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 the test task for the application, 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 application, where each test object of the application is a test object included in each type of application test of the application.
Step 202: the test control platform 110 stores the test data of each test object of the application to the test database of the test control server 120.
Step 203: the test control server 120 obtains test data of each test object of the application from the test database.
Step 204: the test control server 120 generates a test case for each test object of the application based on the test data of each test object of the application.
Step 205: the test control server 120 determines the test execution client of each test object of the application based on the interface test to which each test object of the application belongs.
Step 206: the test control server 120 stores the test cases of the respective test objects of the application in association with the client identifiers of the corresponding test execution clients 130 in the test database.
Step 207: the test execution client 130 obtains the test cases of the respective test objects stored in association with the client identifier from the test cases of the respective test objects of the application stored in the test database.
Step 208: the test execution client 130 executes the obtained test case of each test object stored in association with the client identifier to perform corresponding application test on the application.
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 application, where each test object of the application is a test object included in each type of application test of the application.
In practical applications, when the test control platform 110 obtains the test data input for each test object of the application, the following operations may be performed for each test object of the application:
first, the test control platform 110 receives a test configuration request initiated for the test object.
Then, the test control platform 110 displays the 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 test object.
Step 302: the test control platform 110 stores the test data of each test object of the application 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 application in 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 application in the test database of the test control server 120, the test control server 120 may generate and store a test case of each test object of the application based on the test data of each test object of the application stored by the test control platform 110, specifically, referring to fig. 4, an outline flow of the test control method applied to the test control server provided in the embodiment of the present application is as follows:
step 401: the test control server 120 obtains test data of each test object of the application from the test database.
In a specific implementation, the test control server 120 may obtain test data of each test object of the application 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.
In the third case: the test control server 120 receives the application test instruction forwarded by the test control platform 110 for the application.
Step 402: the test control server 120 generates a test case for each test object of the application based on the test data of each test object of the application.
In 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 application 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 application, the test data of the test object into a JSON format, so as to obtain a test case of the test object.
Further, after the test control server 120 generates the test cases of the test objects of the application based on the test data of the test objects of the application, in an embodiment, the test control server 120 may further divide the test cases of the test objects of the application based on the test items to which the test objects of the application belong to obtain the test cases included in the test items of the application, respectively create test sets for the application based on the test cases included in the test items of the application, and store the test sets of the application to the test database. In another embodiment, the test control server 120 may further divide the test cases of the respective test objects of the application based on the application tests to which the respective test objects of the application belong, obtain the test cases included in the respective application tests of the application, respectively create test tasks for the application based on the test cases included in the respective application tests of the application, and store the respective test tasks of the application in the test database.
Thus, when a user needs to check the test detail information of the application, a test check request can be initiated on the test control platform 110 for the application, when the test control platform 110 receives the test check request initiated for the application, 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 by the test check request, the task detail information of each test task of the corresponding application and the test set detail information of each test set can be obtained based on the application identifier carried by 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 and the test set detail information of each test set returned by the test control server 120 based on the test check request, the task detail information of each test task and the test set detail information of each test set of the application can be displayed for a user, so that various application tests of the application can be displayed to the user more visually through the test tasks and the test sets, and convenience is provided for the user to check.
Step 403: the test control server 120 determines the test execution client of each test object of the application based on the interface test to which each test object of the application belongs, and stores the test case of each test object of the application and the client identifier of the corresponding test execution client 130 in a test database in an associated manner.
In specific implementation, in this embodiment of the application, after the test control server 120 stores the test case of each test object of the application and the client identifier of the corresponding test execution client 130 in association with each other in the test database, the execution states of the test cases of each test object of the application may also be configured to be executed respectively.
Further, in an embodiment, the test control server 120 may further configure, for each test set of the application, the execution state of all test cases included in the test set to be executed. In another embodiment, the test control server 120 may further configure, for each test task of the application, the execution state of all test cases included in the test task to be executed when determining that the execution state of all test cases is to be executed.
Further, in this embodiment of the application, after the test control server 120 stores the test case of each test object of the application and the client identifier of the corresponding test execution client 130 in the test database in an associated manner, and configures the execution state of the test case of each test object of the application to be executed, respectively, the test execution client 130 may perform various types of application tests on the application based on the test case of each test object of the application stored in the test database, specifically, as shown in fig. 5, an outline flow of the test control method applied to the test execution client provided in this embodiment of the application is as follows:
step 501: the test execution client 130 obtains the test cases of the respective test objects stored in association with the client identifier from the test cases of the respective test objects of the application stored in the test database.
In specific implementation, when executing 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 the test cases of the test objects of the application stored in the test database, the test cases of the test objects that are stored in association with the client identifier and whose corresponding execution states are to be executed.
Further, after the test execution client 130 obtains the test case of each test object stored in association with the client identifier, the obtained execution state of the test case of each test object stored in association with the client identifier may be configured from the to-be-executed configuration to the executing configuration.
It should be noted that, in this embodiment of the present application, the test control server 120 may monitor, in real time, an execution state of a test case of each test object of the application, and in one embodiment, for each test set of the application, the test control server 120 may configure, when it is monitored that the execution state of any test case included in the test set is changed from to be executed to being executed, the execution state of the test set from to be executed to being executed.
In another embodiment, for each test task of the application, the test control server 120 may configure 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 from to be executed to being executed.
Step 502: the test execution client 130 executes the obtained test case of each test object stored in association with the client identifier to perform corresponding application test on the application.
In specific implementation, when the test execution client 130 executes the obtained test case of each test object stored in association with the client identifier, the following manners may be adopted, but are not limited to:
for each obtained test object stored in association with the client identifier, the test execution client 130 may determine, based on the test item to which the test object belongs, a test execution module corresponding to the test case of the test object, and allocate the test case of the test object to the test execution module for execution.
Further, after the test execution client 130 executes the obtained test case of each test object stored in association with the client identifier, a data interface (for example, a Post interface) provided by the test control server 120 may be called, and the execution result of the test case of each test object stored in association with the client identifier may be stored in the test database of the test control server 120.
Thus, when a user needs to check the test result of the application, a test result query request may be initiated on the test control platform 110 for the application, and when the test control platform 110 receives the test result query request initiated for the application, 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 application based on the application identifier carried in the test result query request and return the test result log to the test control platform 110; when receiving the test result log of each test task returned by the test control server 120 based on the test result query request, the test control platform 110 may display the test result log of each test task of the application to the user.
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 application in the test database of the test control server 120, the execution state of the test case of each test object of the application may be configured from being executed to being completed.
Further, in an embodiment, the test control server 120 may further monitor, for each test set of the application, that the execution state of each test case included in the test set is switched from being executed to being completed, obtain an execution result of each test case included in the test set, determine, based on the execution result of each test case included in the test set, that a test case with an exception occurs in each test case included in the test set, configure the execution state of the test set from being executed to being verified, and determine that a test case with an exception does not exist in each test case included in the test set, configure the execution state of the test set from being executed to being completed. In another embodiment, the test control server 120 may further monitor, for each test task of the application, 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 the 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 application, a suspend test instruction may be initiated on the test control platform 110 for any test task of the application, and when the test control platform 110 receives the suspend test instruction initiated for any test task of the application, 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 application, a test state query request may be initiated on the test control platform 110 for the application, and when the test control platform 110 receives the test state query request initiated for the application, 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 application identifier carried by the test state query request, task state information of each test task and test set state information of each test set of the corresponding application are obtained and returned to the test control platform 110; when the test control platform 110 receives the task state information of each test task and the test set state information of each test set returned by the test control server 120 based on the test state query request, the task state information of each test task and the test set state information of each test set of the application may be displayed to the user, so that the user may view the test state of the application.
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 application, where each test object of the application is a test object included in each type of application test of the application.
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 application to 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 application 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 application, and obtains a test case of the test object.
Step 605: the test control server 120 determines, for each test object of the application, a test execution client 130 of the test object based on the application test to which the test object belongs, and stores the test case of the test object and the client identifier of the test execution client 130 of the test object in association with each other in the test database.
Step 606: the test control server 120 configures the execution states of the test cases of the respective test objects of the application to be executed, respectively.
Step 607: the test control server 120 divides the test cases of the respective test objects of the application based on the test items to which the respective test objects of the application belong to obtain the test cases included in the respective test items of the application, and creates test sets for the application based on the test cases included in the respective test items of the application.
Step 608: the test control server 120 stores each test set of the application in the test database, and configures the execution state of each test set to be executed when determining that the execution state of all test cases included in the test set is to be executed for each test set of the application.
Step 609: the test control server 120 divides the test cases of the respective test objects of the application based on the application tests to which the respective test objects of the application belong to obtain the test cases included in the respective application tests of the application, and creates test tasks for the application based on the test cases included in the respective application tests of the application.
Step 610: the test control server 120 stores each test task of the application 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 application.
Step 611: the test execution client 130 calls a Get interface provided by the test control server 120, obtains the test cases of the test objects whose execution states are to be executed from the test cases of the application stored in the test database, and configures the execution states of the obtained test cases of the test objects from the to-be-executed configuration to the executing state, and continues to execute step 613.
Step 612: the test control server 120 monitors that the execution state of any test case contained in each test set of the application is changed from waiting to be executed to being executed, and configures the execution state of the test set from waiting to be executed to being executed; and for each test task of the application, monitoring that the execution state of any test case contained in the test task is from waiting to be executed to being executed, and configuring the execution state of the test task from waiting to be executed to being executed.
Step 613: the test execution client 130 determines, for each test object, a test execution module corresponding to the test case of the test object based on the test item to which the test object belongs, and allocates the test case of the test object to the test execution module for execution.
Step 614: 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 in the test database of the test control server 120, and configures the execution state of the test case of each test object from the executing state to the completed state.
Step 615: the test control server 120, for each test set of the application, acquires an execution result of each test case included in the test set when monitoring that the execution state of each test case included in the test set is switched from being executed to being completed.
Step 616: the test control server 120 configures the execution state of the test set from the executing state to be verified when determining that the abnormal test case exists in the test cases contained in the test set based on the execution result of each test case contained in the test set, and configures the execution state of the test set from the executing state to be completed when determining that the abnormal test case does not exist in the test cases contained in the test set.
Step 617: the test control server 120, for each test task of the application, 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 618: 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 an application, where each test object of the application is a test object included in each application test of the application;
the data storage unit 702 is configured to store the test data of each test object of the application 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 application based on the test data of each test object of the application stored in the test database, associates and stores the test case of each test object of the application and a client identifier of a corresponding test execution client in the test database, and triggers the test execution client to obtain the test case of each test object stored in association with the client identifier from the test database and execute the test case, so as to perform a corresponding application test on the application.
In a possible implementation manner, when acquiring test data input for each test object of an application, the data acquisition unit 701 is specifically configured to perform the following operations for each test object of the application:
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 applied test object, where each applied test object is a test object included in each type of application test of the application;
a use case generating unit 802, configured to generate a test use case of each test object of the application based on the test data of each test object of the application;
the case storage unit 803 is configured to determine the test execution client 130 of each test object of the application based on the interface test to which each test object of the application belongs, store the test case of each test object of the application and the client identifier of the corresponding test execution client 130 in association with each other in the test database, trigger the test execution client 130 to obtain the test case of each test object stored in association with the client identifier from the test database, and execute the test case, so as to perform a corresponding application test on the application.
In a possible implementation manner, when generating a test case of each test object of an application based on test data of each test object of the application, the use case generating unit 802 is specifically configured to:
and carrying out format conversion on the test data of the test object according to a set format aiming at each test object of the application to obtain a test case of the test object.
In a possible implementation manner, after storing the test cases of the respective test objects of the application and the client identifiers of the corresponding test execution clients in association to 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 application 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 test set creating unit 804 is configured to divide the test cases of the respective test objects of the application based on the test items to which the respective test objects of the application belong in the case generating unit 802 to obtain the test cases included in the respective test items of the application, create the test sets for the application based on the test cases included in the respective test items of the application, store the respective test sets of the application to the test database, and configure the execution states of the test sets to be executed when the execution states of all the test cases included in the test sets are determined to be executed for the respective test sets of the application.
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 805 is configured to, after the use case generating unit 802 generates the test cases of the respective test objects of the application based on the test data of the respective test objects of the application, divide the test cases of the respective test objects of the application based on the application tests to which the respective test objects of the application belong to obtain the test cases included in the respective application tests of the application, create the test tasks for the application based on the test cases included in the respective application tests of the application, store the respective test tasks of the application to the test database, and configure the execution states of the test tasks to be executed when the execution states of all the test cases included in the test tasks are determined to be executed for the respective test tasks of the application.
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 state monitoring unit 806, configured to monitor, for each test set of the application, that an execution state of any test case included in the test set is switched from to be executed to being executed, and configure the execution state of the test set from to be executed to being executed; and for each test task of the application, monitoring that the execution state of any test case contained in the test task is switched from to be executed to being executed, and configuring the execution state of the test task from to be executed to being executed.
In a possible implementation, the status monitoring unit 806 is further configured to:
aiming at each test set of the application, when monitoring that the execution state of each test case contained in the test set is switched from being executed to being completed, acquiring the execution result of each test case contained in the test set, determining that an abnormal test case exists in each test case contained in the test set based on the execution result of each test case contained in the test set, configuring the execution state of the test set from being executed to be verified, and configuring the execution state of the test set from being executed to being completed when determining that the abnormal test case does not exist in each test case contained in the test set;
and for each test task of the application, 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 807 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 the client identifier of the test execution client 130.
In a possible implementation, the client monitoring unit 807 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 808, configured to receive a 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 a test execution client, and referring to fig. 9, the test control apparatus 900 applied to the test execution client provided by the embodiment of the present application at least includes:
a case obtaining unit 901, configured to obtain, from the test cases of the respective test objects of the application stored in the test database, the test case of each test object stored in association with the client identifier, where each test object of the application is a test object included in various types of application tests of the application;
the use case executing unit 902 is configured to execute the test use case of each test object stored in association with the client identifier, so as to perform corresponding application test on the application.
In a possible implementation manner, when obtaining a test case of each test object stored in association with a client identifier from test cases of each test object of an application stored in a test database, the use case obtaining unit 901 is specifically configured to:
and acquiring each test case which is stored in association with the client identifier and has a corresponding execution state to be executed from each test case of the application stored in the test database.
In a possible implementation manner, when obtaining, from the test cases of the respective test objects of the application stored in the test database, the test case of the respective test object stored in association with the client identifier, the use case obtaining unit 901 is further configured to:
and respectively configuring the obtained execution states of the test cases of the test objects stored in association with the client identifications from the to-be-executed state to the executing state.
In a possible implementation manner, when executing a test case of each test object stored in association with the client identifier, the use case executing unit 902 is specifically configured to:
and aiming at each test object stored in association with the client identification, determining a test execution module corresponding to the test case of the test object based on the test item to which the test object belongs, and distributing the test case of the test object to the test execution module for execution.
In a possible implementation manner, the test control apparatus 900 applied to the test execution client according to the embodiment of the present application further includes:
a result storage unit 903, configured to, after the use case execution unit 902 executes the test use case of each test object stored in association with the client identifier, invoke a data interface provided by the test control server 120, store the execution result of the test use case of each test object stored in association with the client identifier to a test database of the test control server 120, and configure the execution state of the test use case of each test object stored in association with the client identifier 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 input aiming at each test object of the application and storing the test data of each test object of the application into a test database of the test control server, wherein each test object of the application is a test object contained in various application tests of the application;
the test control server is used for acquiring the test data of each test object of the application from the test database, generating a test case of each test object of the application based on the test data of each test object of the application, determining a test execution client of each test object of the application based on the interface test to which each test object of the application belongs, and storing the test case of each test object of the application and the client identification of the corresponding test execution client in the test database in an associated manner;
each test execution client is used for acquiring the test cases of each test object stored in association with the client identifier from the test cases of each test object of the application stored in the test database, and executing the test cases of each test object stored in association with the client identifier so as to perform corresponding application test on the application.
2. The test control system of claim 1, wherein after storing the test case of each test object of the application in association with the client identifier of the test execution client 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 application to be executed.
3. The test control system according to claim 2, wherein when the test case of each test object stored in association with the client identifier is obtained from the test cases of each test object of the service interface stored in 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 identifier and correspond to the execution states to be executed from the test cases of the test objects of the application stored in the test database.
4. The test control system according to claim 3, wherein when the test case of each test object stored in association with the client identifier is obtained from the test cases of each test object of the service interface stored in the test database, the test execution client is further configured to:
and respectively configuring the execution states of the test cases of the test objects stored in association with the client identifications from the to-be-executed state to the executing state.
5. The test control system according to claim 1, wherein when executing the test case of each test object stored in association with the client identifier, the test execution client is specifically configured to:
and aiming at each test object stored in association with the client identification, determining a test execution module corresponding to the test case of the test object based on the test item to which the test object belongs, and distributing the test case of the test object to the test execution module for execution.
6. The test control system of claim 5, wherein after executing the test cases for each test object stored in association with the client identification, the test execution client is further configured to:
and storing the execution result of the test case of each test object stored in association with the client identifier into the test database, and configuring the execution state of each test case stored in association with the client identifier 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 an application, wherein each test object of the application is a test object contained in each application test of the application;
storing the test data of each test object of the application to a test database of the test control server, so that the test control server generates a test case of each test object of the application based on the test data of each test object of the application stored in the test database, associates and stores the test case of each test object of the application and a client identifier of a corresponding test execution client to the test database, and triggers the test execution client to acquire and execute the test case of each test object stored in association with the client identifier from the test database, so as to perform corresponding application test on the application.
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 an application from a test database, wherein each test object of the application is a test object contained in each application test of the application;
generating a test case of each test object of the application based on the test data of each test object of the application;
determining a test execution client of each test object of the application based on the interface test to which each test object of the application belongs;
and storing the test cases of the test objects of the application and the client identifications of the corresponding test execution clients in a relevant manner to the test database, and triggering the test execution clients to acquire the test cases of the test objects stored in the relevant manner with the client identifications from the test database and execute the test cases so as to perform corresponding application tests on the application.
9. A test control method is applied to a test execution client, and comprises the following steps:
acquiring a test case of each test object stored in association with a client identifier from the test cases of each test object of the application stored in a test database, wherein each test object of the application is a test object contained in various application tests of the application;
and executing the test case of each test object stored in association with the client identifier so as to perform corresponding application test on the application.
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.
CN202010070903.2A 2020-01-21 2020-01-21 Test control system, method and equipment Pending CN112416744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010070903.2A CN112416744A (en) 2020-01-21 2020-01-21 Test control system, method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010070903.2A CN112416744A (en) 2020-01-21 2020-01-21 Test control system, method and equipment

Publications (1)

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

Family

ID=74844013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010070903.2A Pending CN112416744A (en) 2020-01-21 2020-01-21 Test control system, method and equipment

Country Status (1)

Country Link
CN (1) CN112416744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204545A (en) * 2021-05-17 2021-08-03 武汉中科通达高新技术股份有限公司 Traffic management data testing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414935A (en) * 2008-07-09 2009-04-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
CN104699616A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, device and system for testing application
CN106021102A (en) * 2016-05-16 2016-10-12 北京奇虎科技有限公司 Automated test file generation method and apparatus
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
CN108984388A (en) * 2018-06-01 2018-12-11 平安壹钱包电子商务有限公司 A kind of method and terminal device generating automatic test cases
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 (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414935A (en) * 2008-07-09 2009-04-22 北京星网锐捷网络技术有限公司 Method and system for generating test case
CN104699616A (en) * 2015-03-31 2015-06-10 北京奇虎科技有限公司 Method, device and system for testing application
CN106021102A (en) * 2016-05-16 2016-10-12 北京奇虎科技有限公司 Automated test file generation method and apparatus
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
CN108984388A (en) * 2018-06-01 2018-12-11 平安壹钱包电子商务有限公司 A kind of method and terminal device generating automatic test cases
CN110162466A (en) * 2019-04-19 2019-08-23 平安国际智慧城市科技股份有限公司 Automatic test approach, device, computer 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的软件自动化测试系统的研究和实现", 计算机应用, no. 03, pages 699 - 701 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113204545A (en) * 2021-05-17 2021-08-03 武汉中科通达高新技术股份有限公司 Traffic management data testing method and device

Similar Documents

Publication Publication Date Title
CN109634728B (en) Job scheduling method and device, terminal equipment and readable storage medium
CN107092522B (en) Real-time data calculation method and device
US9218231B2 (en) Diagnosing a problem of a software product running in a cloud environment
CN112104723A (en) Multi-cluster data processing system and method
CN109684038B (en) Docker service container log processing method and device and electronic equipment
US9929969B1 (en) Tenant-based management system and method for distributed computing environments
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
US9760441B2 (en) Restoration of consistent regions within a streaming environment
CN107168844B (en) Performance monitoring method and device
KR20210042276A (en) Method and apparatus for verifying operation state of application
CN112187933A (en) Method and system for monitoring services in multi-architecture cloud platform
CN111885145A (en) Switching method, device, equipment and computer storage medium
CN105955838A (en) System halt reason check method and device
CN114338684A (en) Energy management system and method
CN112416744A (en) Test control system, method and equipment
CN112416747A (en) Test case execution method, device, equipment and medium
CN112416743A (en) Test control system, method and equipment
CN114610597A (en) Pressure testing method, device, equipment and storage medium
US9729464B1 (en) Method and apparatus for provisioning of resources to support applications and their varying demands
CN116302561A (en) State control method, device, equipment and storage medium for application instance
US20120311117A1 (en) Object Pipeline-Based Virtual Infrastructure Management
CN112416745A (en) Test control system, method and equipment
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
US20180203787A1 (en) Detection of software errors
CN110990237B (en) Information collection system, method and storage medium

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