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

Test control system, method and equipment Download PDF

Info

Publication number
CN112416743B
CN112416743B CN202010070646.2A CN202010070646A CN112416743B CN 112416743 B CN112416743 B CN 112416743B CN 202010070646 A CN202010070646 A CN 202010070646A CN 112416743 B CN112416743 B CN 112416743B
Authority
CN
China
Prior art keywords
test
user interface
objects
cases
execution
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.)
Active
Application number
CN202010070646.2A
Other languages
Chinese (zh)
Other versions
CN112416743A (en
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 CN202010070646.2A priority Critical patent/CN112416743B/en
Publication of CN112416743A publication Critical patent/CN112416743A/en
Application granted granted Critical
Publication of CN112416743B publication Critical patent/CN112416743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 are used for solving the problems of high test cost and low test efficiency. The method comprises the following steps: the test control platform acquires and stores test data and test script paths which are respectively input for each test object of the user interface; the test control server acquires the test data and the test script path of each test object of the stored user interface, and generates and stores the test cases of each test object of the user interface based on the test data and the test script path of each test object of the user interface; the test execution client side performs various interface tests on the user interface based on the test cases of all the test objects of the stored user interface. Therefore, through the mutual cooperation of the test control platform, the test control server and the test execution client, unified management and automatic test on different types of interface tests can be realized, 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 apparatus.
Background
In recent years, with the continuous development of network technology and multimedia technology, applications of various functions have been developed, wherein user interface testing is a key to ensure the normal use of applications.
However, at present, for different types of user interface tests, different test frameworks are generally used, so that the test cost is high and the test efficiency is low.
Disclosure of Invention
The embodiment of the application provides a test control system, a test control method and test control equipment, which are used for solving the problems of lower efficiency and higher cost of a user interface test method in the prior art.
The technical scheme provided by the embodiment of the application is as follows:
In one aspect, an embodiment of the present application provides a test control system, including:
the test control platform is used for acquiring test data and test script paths which are respectively input for all test objects of the user interface, and storing the test data and the test script paths of all the test objects of the user interface into a test database of the test control server, wherein all the test objects of the user interface are test objects contained in all types of interface tests of the user interface;
The test control server is used for acquiring test data and test script paths of all the test objects of the user interface stored by the test control platform from the test database, generating test cases of all the test objects of the user interface based on the test data and the test script paths of all the test objects of the user interface, and storing the test cases of all the test objects of the user interface to the test database;
Each test execution client is used for acquiring test cases of each test object of the user interface stored by the test control server from the test database, acquiring test scripts of each test object of the user interface based on test script paths in the test cases of each test object of the user interface, acquiring test data in the test cases of each test object of the user interface based on the test scripts of each test object of the user interface, and performing various interface tests on the user interface by utilizing the test scripts of each test object of the user interface.
In another aspect, an embodiment of the present application provides a test control method applied to a test control platform, including:
Acquiring test data and test script paths which are respectively input for each test object of a user interface, wherein each test object of the user interface is a test object contained in various interface tests of the user interface;
Storing test data and test script paths of all test objects of the user interface into a test database of a test control server, so that the test control server generates test cases of all test objects of the user interface based on the test data and the test script paths of all test objects of the user interface, stores the test cases of all test objects of the user interface into the test database, and triggers a test execution client to perform various interface tests on the user interface based on the test cases of all test objects of the user interface stored in the test database.
On the other hand, the embodiment of the application provides a test control method applied to a test control server, which comprises the following steps:
Obtaining test data and test script paths of all test objects of a user interface stored by a test control platform from a test database, wherein all the test objects of the user interface are test objects contained in various interface tests of the user interface;
Generating test cases of all the test objects of the user interface based on the test data and the test script paths of all the test objects of the user interface;
And storing the test cases of all the test objects of the user interface into a test database, triggering a test execution client to perform various interface tests on the user interface based on the test cases of all the test objects of the user interface stored in the test database.
On the other hand, the embodiment of the application provides a test control method applied to a test execution client, which comprises the following steps:
Obtaining test cases of all test objects of a user interface stored by a test control server from a test database of the test control server, wherein all the test objects of the user interface are test objects contained in all types of interface tests of the user interface;
Acquiring test scripts of each test object of the user interface based on test script paths in test cases of each test object of the user interface;
based on the test data in the test cases of the test objects of the user interface, and by utilizing the test scripts of the test objects of the user interface, various interface tests are carried out on the user interface.
In another aspect, an embodiment of the present application provides a test control device applied to a test control platform, including:
The data acquisition unit is used for acquiring test data and test script paths which are respectively input for all test objects of the user interface, wherein all the test objects of the user interface are test objects contained in all types of interface tests of the user interface;
The data storage unit is used for storing the test data and the test script path of each test object of the user interface into the test database of the test control server so that the test control server generates test cases of each test object of the user interface based on the test data and the test script path of each test object of the user interface, stores the test cases of each test object of the user interface into the test database, and triggers the test execution client to perform various interface tests on the user interface based on the test cases of each test object of the user interface stored in the test database.
In another aspect, an embodiment of the present application provides a test control device applied to a test control server, including:
the data acquisition unit is used for acquiring test data and test script paths of all test objects of the user interface stored by the test control platform from the test database, wherein all the test objects of the user interface are test objects contained in all types of interface tests of the user interface;
The user interface generation unit is used for generating test cases of all the test objects of the user interface based on the test data and the test script paths of all the test objects of the user interface;
The case storage unit is used for storing the test cases of all the test objects of the user interface into the test database, triggering the test execution client to perform various interface tests on the user interface based on the test cases of all the test objects of the user interface stored in the test database.
In another aspect, an embodiment of the present application provides a test control device applied to a test execution client, including:
the system comprises a case acquisition unit, a test control server and a user interface, wherein the case acquisition unit is used for acquiring test cases of all test objects of the user interface stored by the test control server from a test database of the test control server, wherein the test objects of the user interface are test objects contained in various interface tests of the user interface;
The case execution unit is used for acquiring test scripts of all the test objects of the user interface based on the test script paths in the test cases of all the test objects of the user interface and test data in the test cases of all the test objects of the user interface, and performing various interface tests on the user interface by utilizing the test scripts of all the test objects of the user interface.
In another aspect, an embodiment of the present application provides a test control apparatus, including: the test control method applied to the test control platform provided by the embodiment of the application is realized when the processor executes the computer program. Or the test control method applied to the test control server provided by the embodiment of the application is realized; or the test control method applied to the test execution client provided by the embodiment of the application is realized.
On the other hand, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions, and the computer instructions realize the test control method applied to the test control platform provided by the embodiment of the application when being executed by a processor; or the test control method applied to the test control server provided by the embodiment of the application is realized; or the test control method applied to the test execution client provided by the embodiment of the application is realized.
The embodiment of the application has the following beneficial effects:
In the embodiment of the application, the unified management and the automatic test of different types of user interface tests can be realized through the mutual cooperation of the test control platform, the test control server and the test execution client, thereby saving the test cost and improving the test efficiency.
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 practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof 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 specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
FIG. 1 is a schematic diagram of a system frame of a test control system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a test control method according to an embodiment of the application;
FIG. 3 is a schematic flow chart of a test control method applied to a test control platform according to an embodiment of the application;
FIG. 4 is a schematic flow chart of a test control method applied to a test control server according to an embodiment of the application;
FIG. 5 is a schematic flow chart of a test control method applied to a test execution client according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a test control method according to an embodiment of the present application;
FIG. 7 is a schematic functional structure diagram of a test control device applied to a test control platform according to an embodiment of the present application;
FIG. 8 is a schematic functional structure diagram of a test control device applied to a test control server according to an embodiment of the present application;
FIG. 9 is a schematic functional structure diagram of a test control device applied to a test execution client according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of a test control device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantageous effects of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order to facilitate a better understanding of the present application, technical terms related to the present application will be briefly described below.
1. The test control platform is a front-end user platform for managing and checking user rights, test data, test script paths, test cases, test tasks, test result logs, test execution clients and the like.
2. The test control server is used for generating test cases of all the test objects of the user interface according to the test data and the test script paths of all the test objects of the user interface, creating test tasks for the user interface and providing a background operation device for database services for the test control platform and the test execution client.
3. The test execution client, the background running device for executing test cases of each test object of the user interface, may include, but is not limited to: android equipment, IOS equipment and the like, wherein the Android equipment is used for performing interface test on a user interface of the Android application, and the IOS equipment is used for performing interface test on the user interface of the IOS application. In the application, corresponding test execution modules are respectively configured in the test execution client for different types of interface tests, for example: the system comprises a test execution module for executing graphic test, a test execution module for executing navigation test, a test execution module for executing content test, a test execution module for executing overall interface test, a test execution module for executing form test and the like.
4. And the test data is data used in the interface test process. In the present application, test data can be divided into: functional test data and attribute test data, wherein:
Functional test data, which is individual functional data of the test object, such as: the size, position, status, etc. of a button in the user interface;
attribute test data, which is individual attribute data of a test object, including but not limited to: the user interface comprises a development department of an application, a version of the application, an environment (comprising an online environment and a test environment) of the application, a test account number and account number login data of the application, and the like.
5. The test case is a text in a set format generated according to test data and a test script path, and in the application, the test case is a JSON text.
6. The test database is used for storing relevant test data such as test data, test script paths, test cases, test tasks and the like and relevant user data such as user names, passwords and the like.
7. Data interfaces, interfaces provided for the test control server for the test control platform and the test execution client for accessing the test database, include, but are not limited to: get interface, post interface, etc.
After technical terms related to the application are introduced, application scenes and design ideas of the embodiment of the application are briefly introduced.
At present, different test frameworks are generally used for different types of user interface tests, and obviously, the application test method has higher cost and lower efficiency. Therefore, in the embodiment of the application, the test control platform acquires the test data and the test script path input by a user aiming at the user interface, and stores the test data and the test script path of each test object of the user interface into the test database of the test control server; the test control server acquires test data and test script paths of all test objects of the user interface stored by the test control platform from the test database, generates test cases of all test objects of the user interface based on the test data and the test script paths of all test objects of the user interface, and stores the test cases of all test objects of the user interface to the test database; the test execution client acquires test cases of all test objects of the user interface stored by the test control server from the test database, acquires test scripts of all test objects of the user interface based on test script paths in the test cases of all test objects of the user interface, acquires test data in the test cases of all test objects of the user interface based on the test scripts of all test objects of the user interface, and performs various interface tests on the user interface by utilizing the test scripts of all test objects of the user interface. Therefore, unified management and automatic testing of different types of user interfaces can be realized through mutual cooperation of the test control platform, the test control server and the test execution client, so that the test cost is saved, and the test efficiency is improved.
After the application scenario and the design idea of the embodiment of the present application are introduced, the technical solution provided by the embodiment of the present application is described below.
The embodiment of the application provides a test control system, referring to fig. 1, the test control system provided by the embodiment of the application at least includes:
The test control platform 110 is configured to obtain test data and test script paths that are respectively input for each test object of the user interface, and store the test data and the test script paths of each test object of the user interface to a test database of the test control server 120, where each test object of the user interface is a test object included in each interface test of the user interface;
The test control server 120 is configured to obtain, from the test database, test data and a test script path of each test object of the user interface stored in the test control platform 110, generate test cases of each test object of the user interface based on the test data and the test script path of each test object of the user interface, and store the test cases of each test object of the user interface to the test database;
Each test execution client 130 is configured to obtain, from a test database, a test case of each test object of the user interface stored by the test control server 120, obtain, based on a test script path in the test case of each test object of the user interface, a test script of each test object of the user interface, and based on test data in the test case of each test object of the user interface, and perform various interface tests on the user interface by using the test script of each test object of the user interface.
In one possible implementation manner, when acquiring the test data and the test script path respectively input for each test object of the user interface, the test control platform 110 is specifically configured to perform the following operations respectively for each test object of the user interface:
Receiving a test configuration request initiated for a test object;
Displaying a test configuration interface of the test object, wherein the test configuration interface at least displays each attribute selection frame, each test data field and a script path field;
acquiring attribute test data respectively selected in each attribute selection frame, functional test data respectively input in each test data field and a test script path input in a script path field;
And determining the obtained attribute test data, the function test data and the test script path as test data of the test object.
In one possible implementation, when generating test cases of each test object of the user interface based on the test data and the test script path of each test object of the user interface, the test control server 120 is specifically configured to:
And aiming at each test object of the user interface, performing format conversion on test data of the test object according to a set format to obtain a test case of the test object.
In one possible implementation, when storing test cases of respective test objects of the user interface in the test database, the test control server 120 is specifically configured to:
Determining a test execution client 130 for performing an interface test on the user interface from among the test execution clients based on the load balancing policy;
The test cases of the respective test objects of the user interface are stored in association with the client identifications of the test execution clients 130 to the test database.
In one possible implementation, after storing the test cases of the respective test objects of the user interface in the test database, the test control server 120 is further configured to:
And respectively configuring the execution states of the test cases of the test objects of the user interface as to-be-executed.
In one possible implementation, after generating the test cases of the respective test objects of the user interface based on the test data and the test script path of the respective test objects of the user interface, the test control server 120 is further configured to:
Dividing test cases of all test objects of the user interface based on interface tests to which all test objects of the user interface belong to, so as to obtain test cases contained in all interface tests of the user interface;
Based on the test cases contained in each interface test of the user interface, respectively creating test tasks for the user interface, and storing each test task of the user interface into a test database;
And aiming at each test task of the user interface, when the execution state of all test cases contained in the test task is determined to be executed, configuring the execution state of the test task to be executed.
In one possible implementation manner, when obtaining test cases of each test object of the user interface stored in the test control server from the test database, the test execution client 130 is specifically configured to:
the test cases of each test object of the service interface stored by the test control server 120 are obtained from the test database, wherein the test cases are stored in association with the client identifier and correspond to each test object whose execution state is to be executed.
In one possible implementation, when obtaining test cases of respective test objects of the user interface stored in the test control server from the test database, the test execution client 130 is further configured to:
the execution states of the test cases of the respective test objects of the user interface stored in the test control server 120 are respectively configured from to-be-executed to being-executed.
In one possible implementation, the test execution client 130 is further configured to:
And aiming at each test task of the service interface, when the execution state of any test case contained in the test task is monitored to be switched from to be executed, configuring the execution state of the test task from to be executed.
In one possible implementation manner, when performing various interface tests on the user interface based on the test data in the test cases of the various test objects of the user interface and using the test scripts of the various test objects of the user interface, the test execution client 130 is specifically configured to:
determining a test execution module of each test object of the user interface based on the interface test to which each test object of the user interface belongs;
and respectively distributing the test scripts of each test object and the test data in the test cases of the user interface to corresponding test execution modules for corresponding interface tests.
In one possible implementation, after performing various interface tests on the user interface based on the test data in the test cases of the various test objects of the user interface and using the test scripts of the various test objects of the user interface, the test execution client 130 is further configured to:
Storing the execution results of the test cases of the test objects of the user interface into a test database, and configuring the execution states of the test cases of the test objects of the user interface from being executed to completed respectively.
In one possible implementation, the test control server 120 is further configured to:
Aiming at each test task of a user interface, when the execution state of each test case contained in the test task is monitored to be switched from executing to being completed, the execution result of each test case contained in the test task is obtained, when the abnormal test case exists in each test case contained in the test task based on the execution result of each test case contained in the test task, the execution state of the test task is configured to be verified from executing, and when the abnormal test case does not exist in each test case contained in the test task, the execution state of the test task is configured to be completed from executing.
In one possible implementation, the test control platform 110 is further configured to: receiving a test detail viewing request initiated for the user interface and forwarding the test detail viewing request to the test control server 120; receiving and displaying task detail information of each test task returned by the test control server 120 based on the test detail checking request;
the test control server 120 is also configured to: receiving a test detail checking request forwarded by the test control platform 110, and acquiring task detail information of each test task of a corresponding user interface based on an interface identifier carried by the test detail checking request and returning to the test control platform 110 when determining that a user corresponding to the user identifier has a checking right based on a user identifier carried by the test detail checking request.
In the embodiment of the application, the task detail information can include but is not limited to: the method comprises the steps of task identification of a test task, interface identification of an affiliated user interface, test environment and version number, case identification of each test case contained in the test task, description information, client identification of a test execution client and the like.
In one possible implementation, the test control platform 110 is further configured to: receiving a test state query request initiated for the user interface and forwarding the test state query request to the test control server 120; receiving and displaying task state information of each test task returned by the test control server 120 based on the test state query request;
The test control server 120 is also configured to: and receiving a test state query request forwarded by the test control platform 110, and acquiring task state information of each test task of the corresponding user interface based on the interface identifier carried by the test state query request and returning to the test control platform 110 when determining that the user corresponding to the user identifier has the viewing right based on the user identifier carried by the test state query request.
In an embodiment of the present application, the task status information may include, but is not limited to: task identification of test tasks, execution status, total number of test cases, number of test cases passing execution, number of test cases failing execution, number of test cases to be verified, number of suspended test cases, and the like.
In one possible implementation, the test control platform 110 is further configured to: receiving a test result query request initiated for the user interface and forwarding the test result query request to the test control server 120; receiving and displaying test result logs of each test task returned by the test control server 120 based on the test result query request;
The test control server 120 is also configured to: and receiving a test result query request forwarded by the test control platform 110, and acquiring test result logs of each test task of the corresponding user interface based on the interface identifier carried by the test result query request and returning to the test control platform 110 when determining that the user corresponding to the user identifier has the viewing right based on the user identifier carried by the test result query request.
In an embodiment of the present application, the test result log may include, but is not limited to: execution results of test cases, execution logs, error reporting details, screen shots when reporting errors, and the like.
In one possible implementation, the test control platform 110 is further configured to: receiving a pause test instruction initiated for a test task of the user interface and forwarding the pause test instruction to the test control server 120;
The test control server 120 is also configured to: receiving a suspension test instruction forwarded by the test control platform 110, determining that a user corresponding to the user identifier has a processing right based on a user identifier carried by the suspension test instruction, determining a test task to be suspended based on a task identifier carried by the suspension test instruction, controlling a test execution client 130 corresponding to the test task to suspend execution of each test case of the test task, and configuring the execution states of the test task and each test case of the test task from executing to suspended respectively.
In one possible implementation, the test control server 120 is further configured to: for each test execution client 130, generating 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 storing the client state information of the test execution client 130 based on a client identifier of the test client.
In an embodiment of the present application, the client status 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 execution passes, the number of test case execution failed, the test case execution passing rate, and the like within the set time range.
In one possible implementation, the test control platform 110 is further configured to: receiving the client state viewing request and forwarding the client state viewing request to the test control server 120; receiving and displaying the 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 also configured to: and receiving a client state viewing request forwarded by the test control platform 110, acquiring client state information of a corresponding test client based on the client identifier carried by the client state viewing request and returning to the test control platform 110 when determining that a user corresponding to the user identifier has viewing rights based on the user identifier carried by the client state viewing request.
In one possible implementation, 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-side enabling instruction initiated for the test client side and forwarding the client-side enabling instruction to the test control server 120;
the test control server 120 is also configured to: receiving a client disabling instruction forwarded by the test control platform 110, and controlling the test execution client 130 indicated by the client disabling instruction to be disabled when the user corresponding to the user identifier is determined to have the processing right based on the user identifier carried by the client disabling 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 the user corresponding to the user identifier is determined to have the processing right based on the user identifier carried by the client enabling instruction.
The test control method provided by the embodiment of the application is described below in connection with the test control system provided by the embodiment of the application.
Referring to fig. 2, an overview flow of the test control method provided by the embodiment of the application is as follows:
Step 201: the test control platform 110 obtains test data and test script paths respectively input for each test object of the user interface, wherein each test object of the user interface is a test object included in various interface tests of the user interface.
Step 202: the test control platform 110 stores the test data and test script paths of the respective test objects of the user interface to the test database of the test control server 120.
Step 203: the test control server 120 acquires test data and a test script path of each test object of the user interface stored in the test control platform 110 from the test database.
Step 204: the test control server 120 generates test cases for each test object of the user interface based on the test data and the test script path for each test object of the user interface.
Step 205: the test control server 120 stores the test cases of the respective test objects of the user interface in a test database.
Step 206: the test execution client 130 obtains test cases of the respective test objects of the user interface stored in the test control server 120 from the test database.
Step 207: the test execution client 130 obtains test scripts of each test object of the user interface based on the test script paths in the test cases of each test object of the user interface.
Step 208: the test execution client 130 performs various interface tests on the user interface based on the test data in the test cases of the test objects of the user interface and by using the test scripts of the test objects of the user interface.
The following describes in detail the test control method applied to the test control platform 110 provided in the embodiment of the present application, and referring to fig. 3, an overview flow of the test control method applied to the test control platform 110 provided in the embodiment of the present application is as follows:
step 301: the test control platform 110 obtains test data and test script paths respectively input for each test object of the user interface, wherein each test object of the user interface is a test object included in various interface tests of the user interface.
In practical application, when acquiring test data and test script paths respectively input for each test object of the user interface, the test control platform 110 may respectively perform the following operations for each test object of the user interface:
First, the test control platform 110 receives a test configuration request initiated for the test object.
Then, the test control platform 110 displays a test configuration interface of the test object, where the test configuration interface displays at least each attribute selection box, each test data field, and a script path field.
Next, the test control platform 110 acquires the attribute test data respectively selected in the respective attribute selection boxes, the functional test data respectively input in the respective test data fields, and the test script path input in the script path field.
Finally, the test control platform 110 determines the obtained attribute test data, functional test data and test script path as the test data of the test object.
Step 302: the test control platform 110 stores the test data and test script paths of the respective test objects of the user interface to the test database of the test control server 120.
In practice, the test control platform 110 may call a data interface (e.g., post interface) provided by the test control server 120, and store test data and a test script path of each test object of the user interface to a test database of the test control server 120.
Further, after the test control platform 110 stores the test data and the test script path of each test object of the user interface in the test database of the test control server 120, the test control server 120 may generate the test case of each test object of the user interface based on the test data and the test script path of each test object of the user interface stored in the test database of the test control platform 110, and specifically, referring to fig. 4, the general flow of the test control method applied to the test control server 120 provided in the embodiment of the present application is as follows:
step 401: the test control server 120 obtains, from the test database, test data and a test script path of each test object of the user interface stored in the test control platform 110, where each test object of the user interface is a test object included in each interface test of the user interface.
In particular implementations, the test control server 120 may obtain test data and test script paths for each test object of the user interface in any of the following cases:
First case: the test control server 120 determines that a test period is reached.
Second case: the test control server 120 determines a version update of the application to which the user interface belongs.
Third case: the test control server 120 receives interface test instructions forwarded by the test control platform 110 for the user interface.
Step 402: the test control server 120 generates test cases for each test object of the user interface based on the test data and the test script path for each test object of the user interface.
In a specific implementation, when executing step 402, the test control server 120 may perform format conversion on test data of the test object according to a set format for each test object of the user interface, to obtain a test case of the test object.
Specifically, in the embodiment of the present application, the test control server 120 may convert, for each test object of the user interface, test data of the test object into JSON format, so as to obtain a test case of the test object.
Further, after generating test cases of each test object of the user interface based on the test data of each test object of the user interface, the test control server 120 may further divide the test cases of each test object of the user interface based on the interface test to which each test object of the user interface belongs, obtain test cases included in each interface test of the user interface, create test tasks for each user interface based on the test cases included in each interface test of the user interface, and store each test task of the user interface to the test database.
In this way, when a user needs to view the test detail information of the user interface, a test view request can be initiated on the test control platform 110 aiming at the user interface, when the test control platform 110 receives the test view request initiated on the user interface, the test view request is forwarded to the test control server 120, when the test control server 120 receives the test view request forwarded by the test control platform 110, if the user corresponding to the user identification is determined to have view authority based on the user identification carried by the test view request, the task detail information of each test task of the corresponding user interface can be acquired based on the interface identification carried by the test view request and returned to the test control platform 110, and when the test control platform 110 receives the task detail information of each test task returned by the test control server 120 based on the test view request, the task detail information of each test task can be displayed to the user, so that each interface test of the user interface can be more intuitively displayed to the user through the test task, and convenience is provided for the user to view.
Step 403: the test control server 120 stores the test cases of the respective test objects of the user interface in a test database.
In particular implementations, the test control server 120, when storing test cases for individual test objects of the user interface in a test database, may employ, but is not limited to, the following:
First, the test control server 120 determines a test execution client 130 for performing an interface test on the user interface from among the respective test execution clients 130 based on a load balancing policy.
Then, the test control server 120 stores the test cases of the respective test objects of the user interface in association with the client identifications of the test execution clients 130 of the user interface to the test database.
Further, in the embodiment of the present application, after the test control server 120 stores the test cases of each test object of the user interface in the test database, the execution states of the test cases of each test object of the user interface may be configured as to be executed.
Further, the test control server 120 may further determine, for each test task of the user interface, that the execution state of all test cases included in the test task is to be executed, and configure the execution state of the test task to be executed.
Further, in the embodiment of the present application, after the test control server 120 stores the test cases of the test objects of the user interface in the test database, the test execution client 130 may perform various interface tests on the user interface based on the test cases of the test objects of the user interface stored in the test database of the test control server 120, and specifically, referring to fig. 5, the general flow of the test control method applied to the test execution client 130 provided in the embodiment of the present application is as follows:
Step 501: the test execution client 130 obtains, from a test database of the test control server 120, test cases of each test object of the user interface stored in the test control server 120, where each test object of the user interface is a test object included in each type of interface test of the user interface.
In a specific implementation, when executing step 501, the test execution client 130 may call a data interface (for example, get interface) provided by the test control server 120, and obtain, from a test database of the test control server 120, a test case of each test object stored in association with the client identifier and having a corresponding execution state as a test object to be executed, as the test case of each test object of the user interface.
Further, after the test execution client 130 obtains the test cases of the test objects of the user interface, the execution states of the test cases of the test objects of the user interface may be configured from to-be-executed to executing.
It should be noted that, in the embodiment of the present application, the test control server 120 may monitor the execution state of the test case of each test object of the user interface in real time, and may configure the execution state of any test case included in each test task of the user interface from to be executed to be executing when it is monitored that the execution state of the test case is from to be executed to be executing.
Step 502: the test execution client 130 obtains test scripts of each test object of the user interface based on the test script paths in the test cases of each test object of the user interface.
In practical application, the test scripts of each test object of the user interface may be submitted to the code library of the code management platform by the tester for storage, and the test execution client 130 may obtain the test scripts of each test object of the user interface from the code library of the code management platform based on the test script paths in the test cases of each test object of the user interface.
Step 503: the test execution client 130 performs various interface tests on the user interface based on the test data in the test cases of the test objects of the user interface and by using the test scripts of the test objects of the user interface.
In particular implementations, test execution client 130, when executing step 503, may employ, but is not limited to, the following:
First, the test execution client 130 determines a test execution module of each test object of the user interface based on the interface test to which each test object of the user interface belongs.
Then, the test execution client 130 distributes the test scripts of the test objects and the test data in the test cases of the user interface to the corresponding test execution modules for corresponding interface tests.
Further, in the embodiment of the present application, the test execution client 130 may further call a data interface (e.g., post interface) provided by the test control server 120 after performing various interface tests on the user interface by using the test script of each test object of the user interface based on the test data in the test case of each test object of the user interface, and store the execution result of the test case of each test object of the user interface to the test database of the test control server 120.
In this way, when the user needs to view the test result of the user interface, a test result query request can be initiated on the test control platform 110 aiming at the user interface, and when the test control platform 110 receives the test result query request initiated aiming at the user interface, the test result query request can be forwarded to the test control server 120; when the test control server 120 receives the test result query request forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has the viewing authority based on the user identifier carried by the test result query request, the test result log of each test task of the corresponding user interface can be obtained based on the interface identifier carried by the test result query request and returned to the test control platform 110; when the test control platform 110 receives the test result logs of each test task returned by the test control server 120 based on the test result query request, the test result logs of each test task of the user interface may be displayed to the user so that the user can view the test results of the user interface.
It should be noted that, in the embodiment of the present application, when the test execution client 130 invokes the data interface (e.g., post interface) provided by the test control server 120 and stores the execution result of the test case of each test object of the user interface to the test database of the test control server 120, the execution state of the test case of each test object of the user interface may be configured from being executed to completed.
Further, the test control server 120 may further monitor, for each test task of the user interface, that the execution state of each test case included in the test task is switched from executing to being completed, obtain the execution result of each test case included in the test task, and configure the execution state of the test task from executing to be verified when determining that an abnormal test case exists in each test case included in the test task based on the execution result of each test case included in the test task, and configure the execution state of the test task from executing to being completed when determining that no abnormal test case exists in each test case included in the test task.
It is noted that, in the embodiment of the present application, when a user needs to suspend the test of any test task of the user interface, a suspend test instruction can be initiated on the test control platform 110 for any test task of the user interface, and when the test control platform 110 receives the suspend test instruction initiated for any test task of the user interface, the suspend test instruction is forwarded to the test control server 120; when the test control server 120 receives the suspension test instruction forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has the processing authority based on the user identifier carried by the suspension test instruction, the test task to be suspended is determined based on the task identifier carried by the suspension test instruction, the test execution client 130 corresponding to the test task is controlled to suspend executing each test case of the test task, and the execution states of the test task and each test case of the test task are respectively configured from being executed to suspended.
In addition, in the embodiment of the present application, when a user needs to view the test state of the user interface, a test state query request may be initiated on the test control platform 110 for the user interface, and when the test control platform 110 receives the test state query request initiated for the user interface, the test state query request is forwarded to the test control server 120; when receiving the test state query request forwarded by the test control platform 110, if the user corresponding to the user identifier is determined to have viewing authority based on the user identifier carried by the test state query request, the test control server 120 obtains task state information of each test task of the corresponding user interface based on the interface identifier carried by the test state query request and returns the task state information to the test control platform 110; when the test control platform 110 receives the task state information of each test task returned by the test control server 120 based on the test state query request, the task state information of each test task of the user interface may be displayed to the user, so that the user can check the test state of the user interface.
Further, in the embodiment of the present 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 a client identifier of the test 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 can be initiated on the test control platform 110 for 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 viewing authority based on the user identifier carried by the client state viewing request, the client state information of the corresponding test client can be obtained based on the client identifier carried by the client state viewing request and returned to the test control platform 110; when the test control platform 110 receives the client state information of the test client returned by the test control server 120 for the client state viewing request, the client state information of the test client may be displayed to the user.
It should be noted that, in the embodiment of the present application, if a user determines that an abnormality occurs in a test client according to the client state information of the test client displayed by the test control platform 110, a client disabling instruction may be initiated 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 client disabling instruction is forwarded to the test control server 120; when the test control server 120 receives the client disabling instruction forwarded by the test control platform 110, if it is determined that the user corresponding to the user identifier has the processing authority based on the user identifier carried by the client disabling instruction, it may control the test execution client indicated by the client disabling instruction to be disabled.
Further, when the user determines that the test client returns to normal, a client enabling instruction can be initiated 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 client enabling instruction is forwarded to the test control server 120; when the test control server 120 receives the client enabling instruction forwarded by the test control platform, if it is determined that the user corresponding to the user identifier has the processing authority based on the user identifier carried by the client enabling instruction, the test execution client indicated by the client enabling instruction can be controlled to be re-enabled.
The test control method provided by the embodiment of the present application is further described in detail below through a specific application scenario, and referring to fig. 6, a specific flow of the test control method provided by the embodiment of the present application is as follows:
Step 601: the test control platform 110 obtains test data and test script paths respectively input for each test object of the user interface, wherein each test object of the user interface is a test object contained in each type of user interface test of the user interface.
Step 602: the test control platform 110 invokes the Post interface provided by the test control server 120, and stores the test data and the test script path of each test object of the user interface 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, test data and test script paths of the respective test objects of the user interface stored by the test control platform 110 are acquired from the test database.
Step 604: the test control server 120 converts the test data and the test script path of the test object into JSON format for each test object of the user interface, to obtain a test case of the test object.
Step 605: based on the load balancing policy, the test control server 120 determines, from among the test execution clients 130, the test execution client 130 for performing an interface test on the user interface, and stores the test cases of the test objects of the user interface in association with the client identifications of the test execution clients 130 of the user interface to 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 user interface as to be executed, respectively.
Step 607: the test control server 120 divides the test cases of each test object of the user interface based on the interface test to which each test object of the user interface belongs, obtains the test cases included in each interface test of the user interface, and creates test tasks for each user interface based on the test cases included in each interface test of the user interface.
Step 608: the test control server 120 stores each test task of the user interface into a 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 user interface.
Step 609: the test execution client 130 invokes the Get interface provided by the test control server 120, obtains, from the test database, test cases of each test object to be executed, which are stored in association with the client identifier and correspond to the execution states, as the test cases of each test object of the user interface, and configures the execution states of the test cases of each test object of the user interface from to-be-executed to being executed, respectively, and continues to execute step 611.
Step 610: the test control server 120 monitors, for each test task of the user interface, that the execution state of any test case included in the test task is from to be executed, and configures the execution state of the test task from to be executed.
Step 611: the test execution client 130 obtains test scripts of each test object of the user interface based on the test script paths in the test cases of each test object of the user interface.
Step 612: the test execution client 130 determines, for each test object of the user interface, a test execution module of the test object based on an interface test to which the test object belongs, and distributes test scripts of the test object and test data in a test case to the test execution module for testing.
Step 613: the test execution client 130 calls a Post interface provided by the test control server 120, stores execution results of test cases of each test object of the user interface into a test database of the test control server 120, and configures execution states of the test cases of each test object of the user interface from being executed to being completed, respectively.
Step 614: the test control server 120 monitors, for each test task of the user interface, that the execution state of each test case included in the test task is switched from executing to being completed, and obtains the execution result of each test case included in the test task.
Step 615: based on the execution results of the test cases included in the test task, the test control server 120 determines that when an abnormal test case exists in the test cases included in the test task, configures the execution state of the test task from being executed to be verified, and configures the execution state of the test task from being executed to be completed when it is determined that no abnormal test case exists in the test cases included in the test task.
Based on the above embodiments, the embodiment of the present application provides a test control device applied to a test control platform 110, and referring to fig. 7, the test control device 700 applied to the test control platform 110 provided in the embodiment of the present application at least includes:
The data acquisition unit 701 is configured to acquire test data and a test script path that are respectively input for each test object of the user interface, where each test object of the user interface is a test object included in each type of interface test of the user interface;
the data storage unit 702 is configured to store test data and test script paths of each test object of the user interface to a test database of the test control server 120, so that the test control server generates test cases of each test object of the user interface based on the test data and the test script paths of each test object of the user interface, stores the test cases of each test object of the user interface to the test database, and triggers the test execution client to perform various interface tests on the user interface based on the test cases of each test object of the user interface stored in the test database.
In one possible implementation manner, in acquiring test data and test script paths respectively input for each test object of the user interface, the data acquisition unit 701 is specifically configured to perform the following operations for each test object of the user interface:
Receiving a test configuration request initiated for a test object;
Displaying a test configuration interface of the test object, wherein the test configuration interface at least displays each attribute selection frame, each test data field and a script path field;
acquiring attribute test data respectively selected in each attribute selection frame, functional test data respectively input in each test data field and a test script path input in a script path field;
And determining the obtained attribute test data, the function test data and the test script path as test data of the test object.
Based on the above embodiments, the embodiment of the present application provides a test control device applied to a test control server 120, and referring to fig. 8, the test control device 800 applied to the test control server 120 provided in the embodiment of the present application at least includes:
The data obtaining unit 801 is configured to obtain, from a test database, test data and a test script path of each test object of a user interface stored in a test control platform, where each test object of the user interface is a test object included in each interface test of the user interface;
A case generation unit 802, configured to generate a test case of each test object of the user interface based on the test data and the test script path of each test object of the user interface;
the use case storage unit 803 is configured to store test cases of each test object of the user interface into the test database, trigger the test execution client to perform various interface tests on the user interface based on the test cases of each test object of the user interface stored in the test database.
In one possible implementation manner, when generating test cases of each test object of the user interface based on the test data and the test script path of each test object of the user interface, the case generation unit 802 is specifically configured to:
And aiming at each test object of the user interface, performing format conversion on test data of the test object according to a set format to obtain a test case of the test object.
In one possible implementation, when storing test cases of respective test objects of the user interface in the test database, the case storage unit 803 is specifically configured to:
Determining a test execution client 130 for performing an interface test on the user interface from among the test execution clients based on the load balancing policy;
The test cases of the respective test objects of the user interface are stored in association with the client identifications of the test execution clients 130 to the test database.
In a possible implementation, after storing the test cases of the respective test objects of the user interface in the test database, the case storage unit 803 is further configured to:
And respectively configuring the execution states of the test cases of the test objects of the user interface as to-be-executed.
In a possible implementation manner, the test control device 800 applied to the test control server 120 provided in the embodiment of the present application further includes:
The task creating unit 804 is configured to divide, after the case generating unit 802 generates the test cases of each test object of the user interface based on the test data and the test script path of each test object of the user interface, the test cases of each test object of the user interface based on the interface test to which each test object of the user interface belongs, to obtain test cases included in each interface test of the user interface, create test tasks for the user interface based on the test cases included in each interface test of the user interface, store each test task of the user interface in the test database, and configure the execution state of the test task as to be executed when determining, for each test task of the user interface, that the execution state of all the test cases included in the test task is to be executed.
In a possible implementation manner, the test control device 800 applied to the test control server 120 provided in the embodiment of the present application further includes:
The state monitoring unit 805 is configured to, for each test task of the service interface, monitor that, when the execution state of any test case included in the test task is switched from to be executed, configure the execution state of the test task from to be executed; and aiming at each test task of the user interface, when the execution state of each test case contained in the test task is monitored to be switched from executing to being completed, the execution result of each test case contained in the test task is obtained, when the abnormal test case exists in each test case contained in the test task based on the execution result of each test case contained in the test task, the execution state of the test task is configured from executing to be verified, and when the abnormal test case does not exist in each test case contained in the test task, the execution state of the test task is configured from executing to being completed.
In a possible implementation manner, the test control device 800 applied to the test control server 120 provided in the embodiment of the present application further includes:
The client monitoring unit 806 is configured to generate, for each test execution client 130, client state information of the test execution client 130 according to an execution result of each test case executed by the test execution client 130 within a set time range, and store the client state information of the test execution client 130 based on a client identifier of the test client.
In one possible implementation, the client monitoring unit 806 is further configured to:
Receiving a client state viewing request forwarded by the test control platform 110;
and when the user corresponding to the user identifier is determined to have 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 to the test control platform 110 for display.
In a possible implementation manner, the test control device 800 applied to the test control server 120 provided in the embodiment of the present application further includes:
A client management unit 807 configured to receive a client deactivation instruction forwarded by the test control platform 110; based on the user identifier carried by the client disabling instruction, when the user corresponding to the user identifier is determined to have the processing right, controlling the test execution client 130 indicated by the client disabling instruction to be disabled; and, receiving a client enabling instruction forwarded by the test control platform 110; based on the user identifier carried by the client enabling instruction, when the user corresponding to the user identifier is determined to have the processing right, the test execution client 130 indicated by the client enabling instruction is controlled to be re-enabled.
Based on the above embodiments, the embodiment of the present application further provides a test control device applied to the test execution client 130, and referring to fig. 9, the test control device 900 applied to the test execution client 130 provided in the embodiment of the present application at least includes:
a case obtaining unit 901, configured to obtain, from a test database of the test control server 120, a test case of each test object of the user interface stored in the test control server 120, where each test object of the user interface is a test object included in each type of interface test of the user interface;
The use case execution unit 902 is configured to obtain a test script of each test object of the user interface based on a test script path in a test case of each test object of the user interface, and test data in the test case of each test object of the user interface based on the test script path of each test object of the user interface, and perform various interface tests on the user interface by using the test script of each test object of the user interface.
In one possible implementation manner, when acquiring, from a test database, test cases of respective test objects of a user interface stored in a test control server, the case acquisition unit 901 is specifically configured to:
the test cases of each test object of the service interface stored by the test control server 120 are obtained from the test database, wherein the test cases are stored in association with the client identifier and correspond to each test object whose execution state is to be executed.
In one possible implementation manner, when acquiring, from the test database, test cases of respective test objects of the user interface stored in the test control server, the case acquisition unit 901 is further configured to:
and respectively configuring the execution states of the test cases of the test objects of the user interface stored by the test control server from to-be-executed to executing.
In one possible implementation, the test execution client 130 is further configured to:
And aiming at each test task of the service interface, when the execution state of any test case contained in the test task is monitored to be switched from to be executed, configuring the execution state of the test task from to be executed.
In one possible implementation manner, when the user interface is tested by using test scripts of each test object of the user interface based on test data in test cases of each test object of the user interface, the case execution unit 902 is specifically configured to:
determining a test execution module of each test object of the user interface based on the interface test to which each test object of the user interface belongs;
and respectively distributing the test scripts of each test object and the test data in the test cases of the user interface to corresponding test execution modules for corresponding interface tests.
In a possible implementation manner, the test control device 900 applied to the test execution client 130 provided in the embodiment of the present application further includes:
The result storage unit 903 is configured to store, after the case execution unit 902 performs various interface tests on the user interface based on the test data in the test cases of the various test objects of the user interface and using the test scripts of the various test objects of the user interface, execution results of the test cases of the various test objects of the user interface to the test database, and configure execution states of the test cases of the various test objects of the user interface from being executed to being completed, respectively.
It should be noted that, the principle of solving the technical problem by the three test control devices provided by the embodiment of the present application is similar to that of the test control method provided by the embodiment of the present application, so that the implementation of the three test control devices provided by the embodiment of the present application can refer to the implementation of the test control method provided by the embodiment of the present application, and repeated parts are not repeated.
After the test control system, the test control method and the test control device provided by the embodiment of the application are introduced, the test control device provided by the embodiment of the application is briefly introduced.
Referring to fig. 10, a test control device 100 according to an embodiment of the present application at least includes: the processor 101, the memory 102 and the computer program stored in the memory 102 and capable of running on the processor 101, when the processor 101 executes the computer program, the test control method applied to the test control platform 110 provided by the embodiment of the application is implemented; or the test control method applied to the test control server 120 provided by the embodiment of the application is realized; or the test control method applied to the test execution client 130 provided by the embodiment of the application is realized.
It should be noted that the test control apparatus 100 shown in fig. 10 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
The test control device 100 provided by embodiments of the present application may also include a bus 103 that connects the different components, including the processor 101 and the memory 102. Where bus 103 represents one or more of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and the like.
The Memory 102 may include readable media in the form of volatile Memory, such as random access Memory (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: the operational sub-methods, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The test control device 100 may also communicate with one or more external devices 104 (e.g., keyboard, remote control, etc.), one or more devices that enable a user to interact with the test control device 100 (e.g., cell phone, computer, etc.), and/or any device that enables the test control device 100 to communicate with one or more other test control devices 100 (e.g., router, modem, etc.). Such 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 (Local Area Network, LAN), a wide area network (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 other modules of the test control device 100 via the bus 103. It should be appreciated that although not shown in fig. 10, other hardware and/or software modules may be used in connection with test control apparatus 100, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, disk array (Redundant Arrays of INDEPENDENT DISKS, RAID) submethods, tape drives, data backup storage submethods, and the like.
The following describes a computer-readable storage medium provided by an embodiment of the present application. The embodiment of the application provides a computer readable storage medium, which stores computer instructions that when executed by a processor implement the test control method applied to the test control platform 110 provided by the embodiment of the application; or the test control method applied to the test control server 120 provided by the embodiment of the application is realized; or the test control method applied to the test execution client 130 provided by the embodiment of the application is realized. 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; or the test control method applied to the test control server 120 provided by the embodiment of the application is realized; or the test control method applied to the test execution client 130 provided by the embodiment of the application is realized.
In addition, 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 employ any combination of one or more readable media, where the readable media may be a readable signal medium or a readable storage medium, and the readable storage medium may be, but is not limited to, a method, apparatus or device that is an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor, or any combination of the above, and more specific examples (a 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 (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 embodiments of the present application may be implemented as a CD-ROM and include program code that may also be 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 that can contain, or store a program for use by or in connection 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 a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
While 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. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present application without departing from the spirit or scope of the embodiments of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims and the equivalents thereof, the present application is also intended to include such modifications and variations.

Claims (9)

1. A test control system, comprising:
The test control platform is used for acquiring test data and test script paths which are respectively input for all test objects of a user interface, and storing the test data and the test script paths of all the test objects of the user interface into a test database of the test control server, wherein all the test objects of the user interface are test objects contained in all types of interface tests of the user interface;
The test control server is used for acquiring the test data and the test script path of each test object of the user interface stored by the test control platform from the test database, generating test cases of each test object of the user interface based on the test data and the test script path of each test object of the user interface, and storing the test cases of each test object of the user interface into the test database;
Each test execution client is used for acquiring test cases of each test object of the user interface stored by the test control server from the test database, acquiring test scripts of each test object of the user interface based on test script paths in the test cases of each test object of the user interface, acquiring test data in the test cases of each test object of the user interface based on the test scripts of each test object of the user interface, and performing various interface tests on the user interface by utilizing the test scripts of each test object of the user interface;
When the test cases of the test objects of the user interface are stored in the test database, the test control server is specifically configured to:
Determining a test execution client for performing interface test on a service interface from the test execution clients based on a load balancing strategy;
The test cases of all the test objects of the service interface are stored in the test database in association with the client identification of the test execution client;
The test execution client determines a test execution module of each test object of the user interface based on the interface test to which each test object of the user interface belongs.
2. The test control system of claim 1, wherein after storing test cases for respective test objects of the user interface to the test database, the test control server is further configured to:
and respectively configuring the execution states of the test cases of the test objects of the user interface as to-be-executed.
3. The test control system of claim 2, wherein, when obtaining, from the test database, test cases of each test object of the user interface stored by the test control server, the test execution client is specifically configured to:
And acquiring test cases which are stored in association with the client identifier and correspond to the test objects with the execution states to be executed from the test database, wherein the test cases are used as the test cases of the test objects of the user interface stored by the test control server.
4. A test control system according to claim 2 or 3, wherein after retrieving test cases of respective test objects of the user interface stored by the test control server from 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 of the user interface stored by the test control server from to-be-executed to executing.
5. The test control system of claim 4, wherein after performing various types of interface tests on the user interface based on the test data in the test cases of the various test objects of the user interface and using the test scripts of the various test objects of the user interface, the test execution client is further configured to:
Storing the execution results of the test cases of the test objects of the user interface into the test database, and configuring the execution states of the test cases of the test objects of the user interface from executing to completed.
6. A test control method, characterized by being applied to a test control platform, the test control method comprising:
acquiring test data and test script paths which are respectively input for each test object of a user interface, wherein each test object of the user interface is a test object contained in various interface tests of the user interface;
Storing test data and test script paths of all test objects of the user interface into a test database of a test control server, so that the test control server generates test cases of all test objects of the user interface based on the test data and the test script paths of all test objects of the user interface, stores the test cases of all test objects of the user interface into the test database, and triggers all test execution clients to perform all kinds of interface tests on the user interface based on the test cases of all test objects of the user interface stored in the test database;
When the test cases of the test objects of the user interface are stored in the test database, the test control server is specifically configured to:
Determining a test execution client for performing interface test on a service interface from the test execution clients based on a load balancing strategy;
The test cases of all the test objects of the service interface are stored in the test database in association with the client identification of the test execution client;
The test execution client determines a test execution module of each test object of the user interface based on the interface test to which each test object of the user interface belongs.
7. A test control method, applied to a test control server, comprising:
obtaining test data and test script paths of all test objects of a user interface stored by a test control platform from a test database, wherein all the test objects of the user interface are test objects contained in various interface tests of the user interface;
Generating test cases of all the test objects of the user interface based on the test data and the test script paths of all the test objects of the user interface;
Storing test cases of all test objects of the user interface into the test database, triggering all test execution clients to perform all kinds of interface tests on the user interface based on the test cases of all test objects of the user interface stored in the test database;
When the test cases of the test objects of the user interface are stored in the test database, the test control server is specifically configured to:
Determining a test execution client for performing interface test on a service interface from the test execution clients based on a load balancing strategy;
The test cases of all the test objects of the service interface are stored in the test database in association with the client identification of the test execution client;
The test execution client determines a test execution module of each test object of the user interface based on the interface test to which each test object of the user interface belongs.
8. A test control method applied to each test execution client, the test control method comprising:
obtaining test cases of all test objects of a user interface stored by a test control server from a test database of the test control server, wherein all the test objects of the user interface are test objects contained in all types of interface tests of the user interface;
Acquiring test scripts of all test objects of the user interface based on test script paths in test cases of all test objects of the user interface; the test data and the test script path of each test object are acquired from a test control platform;
Based on the test data in the test cases of all the test objects of the user interface, and by utilizing the test scripts of all the test objects of the user interface, performing various interface tests on the user interface;
when the test cases of the test objects of the user interface are stored in the test database, the test control server is specifically configured to:
Determining a test execution client for performing interface test on a service interface from the test execution clients based on a load balancing strategy;
The test cases of all the test objects of the service interface are stored in the test database in association with the client identification of the test execution client;
The test execution client determines a test execution module of each test object of the user interface based on the interface test to which each test object of the user interface belongs.
9. A test control device, 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 6 when the computer program is executed; or implementing the test control method as claimed in claim 7; or implement the test control method as claimed in claim 8.
CN202010070646.2A 2020-01-21 2020-01-21 Test control system, method and equipment Active CN112416743B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN112416743A CN112416743A (en) 2021-02-26
CN112416743B true CN112416743B (en) 2024-07-30

Family

ID=74844016

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN112416743B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342679A (en) * 2021-06-29 2021-09-03 汇付天下有限公司 Interface test method and test device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062276A (en) * 2017-12-19 2018-05-22 北京小度信息科技有限公司 The generation method and device of test case and the generation method and device of test report
CN110162466A (en) * 2019-04-19 2019-08-23 平安国际智慧城市科技股份有限公司 Automatic test approach, device, computer equipment and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6804709B2 (en) * 2001-02-20 2004-10-12 Microsoft Corporation System uses test controller to match different combination configuration capabilities of servers and clients and assign test cases for implementing distributed testing
CN101118515B (en) * 2007-09-11 2010-06-23 腾讯科技(深圳)有限公司 Automatically testing method and apparatus for list
JP5174706B2 (en) * 2009-02-12 2013-04-03 株式会社日立ソリューションズ Test execution system
US8627295B2 (en) * 2009-10-09 2014-01-07 General Electric Company Methods and apparatus for testing user interfaces
JP5453147B2 (en) * 2010-03-24 2014-03-26 アンリツ株式会社 Test frame configuration apparatus and test frame configuration method
CN102651700A (en) * 2011-02-28 2012-08-29 Sap股份公司 Management test automation
CN104252413B (en) * 2013-06-27 2018-06-05 阿里巴巴集团控股有限公司 A kind of automatized script generation method, apparatus and system
CN104794048B (en) * 2014-01-17 2017-10-24 阿里巴巴集团控股有限公司 A kind of UI automated testing methods and system
US10127141B2 (en) * 2017-02-20 2018-11-13 Bank Of America Corporation Electronic technology resource evaluation system
US10657032B2 (en) * 2018-03-30 2020-05-19 Atlassian Pty Ltd Systems and methods for monitoring performance of applications
CN109710537B (en) * 2019-01-02 2022-02-18 郑州云海信息技术有限公司 Intelligent automatic testing method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108062276A (en) * 2017-12-19 2018-05-22 北京小度信息科技有限公司 The generation method and device of test case and the generation method and device of test report
CN110162466A (en) * 2019-04-19 2019-08-23 平安国际智慧城市科技股份有限公司 Automatic test approach, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于STAF的软件自动化测试系统的研究和实现;李夏安等;《计算机应用》;第699-701页,704页 *

Also Published As

Publication number Publication date
CN112416743A (en) 2021-02-26

Similar Documents

Publication Publication Date Title
US11416373B2 (en) Providing debug information on production containers using debug containers
US10394703B2 (en) Managing converged IT infrastructure with generic object instances
US9594640B1 (en) Backup/recovery system and method for a computing environment
CN109271325A (en) Test method, system, electronic equipment and the storage medium of application
US9092395B2 (en) Provide an appliance like test vehicle for IT disaster recovery
CN103795749B (en) The method and apparatus operating in the problem of software product in cloud environment for diagnosis
US10540265B2 (en) Using test workload run facts and problem discovery data as input for business analytics to determine test effectiveness
US11362912B2 (en) Support ticket platform for improving network infrastructures
US9929969B1 (en) Tenant-based management system and method for distributed computing environments
US20190349267A1 (en) Intelligent information adapter generation for service management
US11599404B2 (en) Correlation-based multi-source problem diagnosis
CN112187933A (en) Method and system for monitoring services in multi-architecture cloud platform
CN115812298A (en) Block chain management of supply failure
US10552282B2 (en) On demand monitoring mechanism to identify root cause of operation problems
CN112416743B (en) Test control system, method and equipment
CN112416744B (en) Test control system, method and equipment
CN113849356A (en) Equipment testing method and device, electronic equipment and storage medium
CN112416747A (en) Test case execution method, device, equipment and medium
CN112817869A (en) Test method, test device, test medium, and electronic apparatus
US11182272B2 (en) Application state monitoring
US20230023869A1 (en) System and method for providing intelligent assistance using a warranty bot
Kandan et al. A Generic Log Analyzer for automated troubleshooting in container orchestration system
CN112416745A (en) Test control system, method and equipment
CN113900898B (en) Data processing system, equipment and medium
CN114626839A (en) Payment channel monitoring method and system, electronic equipment 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
GR01 Patent grant
GR01 Patent grant