CN112416747A - Test case execution method, device, equipment and medium - Google Patents

Test case execution method, device, equipment and medium Download PDF

Info

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

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application discloses a test case execution method, a test case execution device, test case execution equipment and a test case execution medium, which are applied to the technical field of computers and used for solving the problem that the test case execution method in the prior art is low in application test efficiency. The method specifically comprises the following steps: when the application test meets the test case execution condition, the target test case is obtained from each test case of the application test, and the test execution module to which the target test case belongs is utilized to execute the target test case, so that the automatic execution of the test case can be realized, the operation of manually controlling the test case execution by a tester is simplified, the target test case is distributed to the corresponding test execution module to be executed according to the test item to which the target test case belongs, the test cases of each test item corresponding to the application test can be executed at the same time, and the test efficiency of the application test is improved.

Description

Test case execution method, device, equipment and medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for executing a test case.
Background
In recent years, with the continuous development of network technology and multimedia technology, applications with various functions are generated, wherein application tests are closely related to user experience and become an important stage of application development.
In practical application, application tests mainly include user interface tests, service interface tests and the like, and currently, for various types of application tests such as user interface tests, service interface tests and the like, testers are usually required to manually control execution of test cases, so that the efficiency of the application tests is low.
Disclosure of Invention
The embodiment of the application provides a test case execution method, a test case execution device, test case execution equipment and a test case execution medium, and aims to solve the problem that the application test efficiency is low in the test case execution 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 case execution method, including:
when the application test meets the execution condition of the test case, acquiring a target test case from each test case of the application test;
determining a test execution module of the target test case according to the test item to which the target test case belongs;
and executing the target test case through the test execution module.
In one possible embodiment, the determining that the application test satisfies the test case execution condition includes:
calling a data interface of the test control server, and polling and inquiring the execution state of each test case of the application test in a test database of the test control server;
and when the test case with the corresponding execution state to be executed exists in each test case of the application test, determining that the application test meets the execution condition of the test case.
In a possible implementation manner, obtaining a target test case from each test case of an application test includes:
and acquiring the test case with the corresponding execution state to be executed from each test case of the application test as a target test case.
In a possible implementation manner, when obtaining a target test case from each test case of an application test, the method further includes:
and configuring the execution state of the target test case from the to-be-executed state to the executing state.
In one possible implementation, executing the target test case by the test execution module includes:
if the application test is a service interface test, calling a built-in test script through a test execution module, and carrying out the service interface test based on test parameters in a test case;
if the application test is the user interface test, a test script path in the test case is obtained through the test execution module, a test script corresponding to the test script path in the test case is called, and the user interface test is carried out based on the test parameters in the test case.
In a possible implementation manner, after the target test case is executed by the test execution module, the method further includes:
acquiring an execution result of a target test case by a test execution module;
and calling a data interface of the test control server, and storing the execution result of the target test case to a test database of the test control server.
In a possible embodiment, when the execution result of the target test case is stored in the test database of the test control server, the method further includes:
and configuring the execution state of the target test case from being executed to being completed.
In another aspect, an embodiment of the present application provides a test case execution apparatus, including:
the test case acquisition unit is used for acquiring a target test case from each test case of the application test when the application test meets the test case execution condition;
the module determining unit is used for determining a test execution module of the target test case according to the test item to which the target test case belongs;
and the case execution unit is used for executing the target test case through the test execution module.
In a possible implementation manner, when it is determined that the application test satisfies the test case execution condition, the case obtaining unit is specifically configured to:
calling a data interface of the test control server, and polling and inquiring the execution state of each test case of the application test in a test database of the test control server;
and when the test case with the corresponding execution state to be executed exists in each test case of the application test, determining that the application test meets the execution condition of the test case.
In a possible implementation manner, when obtaining a target test case from each test case of an application test, the case obtaining unit is specifically configured to:
and acquiring the test case with the corresponding execution state to be executed from each test case of the application test as a target test case.
In a possible implementation manner, when obtaining the target test case from the test cases of the application test, the case obtaining unit is further configured to:
and configuring the execution state of the target test case from the to-be-executed state to the executing state.
In a possible implementation manner, when the target test case is executed by the test execution module, the case execution unit is specifically configured to:
if the application test is a service interface test, calling a built-in test script through a test execution module, and carrying out the service interface test based on test parameters in a test case;
if the application test is the user interface test, a test script path in the test case is obtained through the test execution module, a test script corresponding to the test script path in the test case is called, and the user interface test is carried out based on the test parameters in the test case.
In a possible implementation manner, the test case execution device provided in the embodiment of the present application further includes:
and the result storage unit is used for acquiring the execution result of the target test case by the test execution module after the case execution unit executes the target test case through the test execution module, calling the data interface of the test control server and storing the execution result of the target test case to the test database of the test control server.
In one possible implementation, when storing the execution result of the target test case to the test database of the test control server, the result storage unit is further configured to:
and configuring the execution state of the target test case from being executed to being completed.
In another aspect, an embodiment of the present application provides a test case execution device, including: the test case execution method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the computer program to realize the test case execution method provided by the embodiment of the application.
On the other hand, an embodiment of the present application further provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed by a processor, the test case execution method provided in the embodiment of the present application is implemented.
The beneficial effects of the embodiment of the application are as follows:
in the embodiment of the application, when the application test meets the test case execution condition, the target test case is obtained from each test case of the application test, and the target test case is executed by using the test execution module to which the target test case belongs, so that the automatic execution of the test case can be realized, the operation of manually controlling the test case execution by a tester is simplified, in addition, the target test case is distributed to the corresponding test execution module to be executed according to the test item to which the target test case belongs, the test cases of each test item corresponding to the application test can be simultaneously executed, and the test efficiency of the application test is improved.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a system framework diagram of a test system in an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating an overview of a test case generation method according to an embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating an overview of a test case execution method according to an embodiment of the present application;
FIG. 4 is a schematic flowchart illustrating a specific method for executing a test case in an embodiment of the present application;
FIG. 5 is a functional structure diagram of a test case execution device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of a test case execution device in the embodiment of the present application.
Detailed Description
In order to make the purpose, technical solution and advantages of the present application more clearly and clearly understood, the technical solution in the embodiments of the present application will be described below in detail and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
To facilitate a better understanding of the present application by those skilled in the art, a brief description of the technical terms involved in the present application will be given below.
1. The test control platform is a front-end user platform for managing and checking test data, test cases and the like.
2. The test control server generates test cases for each test object of the application test according to the test data of each test object of the application test, and provides background running equipment of database service for the test control platform and the test execution client.
3. The test execution client is a background running device for executing the test case, and includes but is not limited to: android devices, IOS devices, virtual machines, and the like. In the present application, different types of application tests correspond to different test execution clients, for example: the test execution client corresponding to the application test of the user interface test of the Android application is Android equipment, the test execution client corresponding to the application test of the user interface test of the IOS application is IOS equipment, and the test execution client corresponding to the application test of the service interface test of the application server is a virtual machine and the like.
4. Test items, which are various test aspects involved in testing applications, such as: the application test is a service interface test, and the test items may include, but are not limited to: compression test, function test, regression test, and the like; for another example: the application test is a user interface test of an android application, then the test items may include, but are not limited to: graphic testing, navigation testing, content testing, overall interface testing, form testing, and the like.
5. And the test data is data used in the application test process. In the present application, test data includes, but is not limited to: test parameters and test script paths, etc.
6. The test case is a text in a set format generated according to the test data, and in the present application, the test case is a Java Script Object Notation (JSON) text.
7. The test database is a database for storing relevant test data such as test data, test cases and the like.
8. A data interface, which is an interface provided for the test control server to the test control platform and the test execution client for accessing the test database, including but not limited to: a Get interface, a Post interface, etc.
After introducing the technical terms related to the present application, the following briefly introduces the application scenarios and design ideas of the embodiments of the present application.
At present, for various types of application tests such as user interface tests, service interface tests and the like, a tester is usually required to manually control the execution of test cases, so that the efficiency of the application tests is low. For this reason, referring to fig. 1, in the embodiment of the present application, the test control platform 110 obtains test data configured by a tester for each test object of the application test, and stores the test data of each test object of the application test in the test database of the test control server 120; the test control server 120 obtains the test data of each test object of the application test stored in the test database by the test control platform 110, generates a test case of each test object of the application test based on the test data of each test object of the application test, and stores the test case of each test object of the application test in the test database; when the test execution client 130 determines that the application test meets the test case execution condition, a target test case is obtained from each test case of the application test, a test execution module of the target test case is determined according to the test item to which the target test case belongs, and the target test case is executed through the test execution module. In this way, when the application test meets the test case execution condition, the target test case is obtained from each test case of the application test, and the test execution module to which the target test case belongs is utilized to execute the target test case, so that the automatic execution of the test case can be realized, the operation of manually controlling the test case execution by a tester is simplified, the target test case is distributed to the corresponding test execution module to be executed according to the test item to which the target test case belongs, the test cases of each test item corresponding to the application test can be executed at the same time, and the test efficiency of the application test is improved.
After introducing the application scenario and the design concept of the embodiment of the present application, the following describes a technical solution provided by the embodiment of the present application.
In practical application, for application tests such as user interface tests and service interface tests, a tester may configure test data for each test object of the application test in the test control platform 110, and the test control platform 110 may obtain the test data of each test object of the application test according to an input operation of the tester, and store the test data of each test object of the application test in the test database of the test control server 120, so that the test control server 120 generates each test case of the application test according to the test data of each test object of the application test stored in the test database. Specifically, referring to fig. 2, an outline flow of the test case generation method provided in the embodiment of the present application is as follows:
step 201: the test control platform 110 obtains test data configured for each test object of the application test, where each test object of the application test is a test object included in each test item of the application test.
In practical applications, when the test control platform 110 obtains the test data configured for each test object of the application test, the following operations may be performed for each test object of the application test:
first, the test control platform 110 receives a test configuration request initiated for the test object.
The test control platform 110 then displays the test configuration interface for the test object.
Finally, the test control platform 110 obtains the test data configured for the test object on the test configuration interface.
Step 202: the test control platform 110 stores the test data of each test object of the application test to the test database of the test control server 120.
In practical applications, the test control platform 110 may call a data interface (e.g., Post interface) provided by the test control server 120, and store the test data of each test object tested by the application in the test database of the test control server 120.
Step 203: the test control server 120 obtains the test data of each test object of the application test from the test database.
In a specific implementation, the test control server 120 may obtain test data of each test object of the application test under any one of the following conditions:
in the first case: the test control server 120 determines that a test period is reached.
In the second case: the test control server 120 determines the version update of the application to which the application test belongs.
In the third case: the test control server 120 receives the application test instruction forwarded by the test control platform 110 for the application test.
Step 204: the test control server 120 generates a test case of each test object of the application test as each test case of the application test based on the test data of each test object of the application test.
In specific implementation, when the test control server 120 executes step 204, for each test object of the application test, format conversion may be performed on the test data of the test object according to a set format to obtain a test case of the test object. In practical application, the test control server 120 may convert the test data of each test object tested by the application into JSON format, so as to obtain a test case of the test object.
Step 205: the test control server 120 stores each test case of the application test in the test database, and configures the execution state of each test case of the application test to be executed.
In this way, the test execution client 130 may determine, through the polled test database, that the application test satisfies the test case execution condition, and automatically execute the test case of the application test, specifically, referring to fig. 3, an overview flow of the test case execution method provided in the embodiment of the present application is as follows:
step 301: and when the application test meets the execution condition of the test case, acquiring a target test case from each test case of the application test.
In practical applications, the test execution client 130 may poll and query the execution state of each test case of the application test stored in the test database of the test control server 120 by calling a data interface (e.g., Get interface) of the test control server 120, and when it is queried that there is a test case to be executed in each test case of the application test, it may be determined that the application test satisfies the test case execution condition, at this time, the test execution client 130 may obtain the test case whose corresponding execution state is to be executed from each test case of the application test as a target test case.
Further, when the test execution client 130 acquires the test case with the corresponding execution state to be executed from each test case of the application test as the target test case, the execution state of the target test case may be configured from the to-be-executed state to be being executed.
Step 302: and determining a test execution module of the target test case according to the test item to which the target test case belongs.
In practical application, for each test item corresponding to the application test, a corresponding test execution module may be configured in the test execution client 130, so that after the test execution client 130 obtains a target test case from each test case of the application test, the test execution module of the target test case may be determined according to the test item to which the target test case belongs.
Step 303: and executing the target test case through the test execution module.
In practical applications, when the test execution client 130 executes step 303, there may be, but is not limited to, the following two cases:
in the first case: the application test is a service interface test.
In this case, the test execution client 130 may execute the following operations through the test execution module: and calling a built-in test script, and testing the service interface based on the test parameters in the test case.
In the second case: the application test is a user interface test.
In this case, the test execution client 130 may execute the following operations through the test execution module: and acquiring a test script path in the test case, calling a test script corresponding to the test script path in the test case, and testing a user interface based on the test parameters in the test case.
Further, after the test execution client 130 executes the target test case through the test execution module, the test execution client may also obtain an execution result of the target test case by the test execution module, call a data interface (for example, a Post interface) of the test control server 120, and store the execution result of the target test case in the test database of the test control server 120.
Further, the test execution client 130 may also configure the execution state of the target test case from being executed to being completed when calling the data interface of the test control server 120 and storing the execution result of the target test case in the test database of the test control server 120.
The test case execution method provided in the embodiment of the present application is further described in detail below through a specific application scenario, and referring to fig. 4, a specific flow of the test case execution method provided in the embodiment of the present application is as follows:
step 401: the test control platform 110 obtains test data respectively input for each test object of the application test, where each test object of the application test is a test object included in each test item of the application test.
Step 402: the test control platform 110 calls the Post interface provided by the test control server 120, and stores the test data of each test object of the application test in the test database of the test control server 120.
Step 403: when the test control server 120 determines that the test period is reached, the test control server obtains the test data of each test object of the application test stored in the test control platform 110 from the test database.
Step 404: the test control server 120 converts the test data of the test object into JSON format for each test object of the application test, and obtains a test case of the test object.
Step 405: the test control server 120 stores each test case of the application test in the test database, and configures the execution state of each test case of the application test to be executed.
Step 406: the test execution client 130 calls a Get interface of the test control server 120, and when it is found that there is a test case with a corresponding execution state to be executed in each test case of the application test, acquires the test case with the corresponding execution state to be executed as a target test case, and configures the execution state of the target test case from the to-be-executed state to being executed.
Step 407: the test execution client 130 determines the test execution module of the target test case according to the test item to which the target test case belongs, and executes the target test case through the test execution module.
Step 408: the test execution client 130 obtains the execution result of the target test case by the test execution module.
Step 409: the test execution client 130 calls the Post interface of the test control server 120, stores the execution result of the target test case to the test database of the test control server 120, and configures the execution state of the target test case from the executing state to the completed state.
Based on the foregoing embodiments, an embodiment of the present application provides a test case execution device, and referring to fig. 5, the test case execution device 500 provided in the embodiment of the present application at least includes:
a case obtaining unit 501, configured to obtain a target test case from each test case of the application test when it is determined that the application test meets the test case execution condition;
a module determining unit 502, configured to determine a test execution module of the target test case according to the test item to which the target test case belongs;
the use case execution unit 503 is configured to execute the target test use case through the test execution module.
In a possible implementation manner, when it is determined that the application test satisfies the test case execution condition, the use case obtaining unit 501 is specifically configured to:
calling a data interface of the test control server, and polling and inquiring the execution state of each test case of the application test in a test database of the test control server;
and when the test case with the corresponding execution state to be executed exists in each test case of the application test, determining that the application test meets the execution condition of the test case.
In a possible implementation manner, when obtaining a target test case from each test case of an application test, the use case obtaining unit 501 is specifically configured to:
and acquiring the test case with the corresponding execution state to be executed from each test case of the application test as a target test case.
In a possible implementation manner, when obtaining a target test case from among the test cases of the application test, the use case obtaining unit 501 is further configured to:
and configuring the execution state of the target test case from the to-be-executed state to the executing state.
In a possible implementation manner, when the target test case is executed by the test execution module, the case execution unit 503 is specifically configured to:
if the application test is a service interface test, calling a built-in test script through a test execution module, and carrying out the service interface test based on test parameters in a test case;
if the application test is the user interface test, a test script path in the test case is obtained through the test execution module, a test script corresponding to the test script path in the test case is called, and the user interface test is carried out based on the test parameters in the test case.
In a possible implementation manner, the test case execution device 500 provided in the embodiment of the present application further includes:
the result storage unit 504 is configured to, after the case execution unit 503 executes the target test case through the test execution module, obtain an execution result of the target test case by the test execution module, call a data interface of the test control server, and store the execution result of the target test case in a test database of the test control server.
In a possible implementation manner, when storing the execution result of the target test case to the test database of the test control server, the result storage unit 504 is further configured to:
and configuring the execution state of the target test case from being executed to being completed.
It should be noted that the principle of the test case execution device 500 provided in the embodiment of the present application for solving the technical problem is similar to that of the test case execution method provided in the embodiment of the present application, and therefore, the implementation of the test case execution device 500 provided in the embodiment of the present application can refer to the implementation of the test case execution method provided in the embodiment of the present application, and repeated details are not described again.
After the test case execution method and the test case execution device provided by the embodiment of the present application are introduced, a simple introduction is performed on the test case execution device provided by the embodiment of the present application.
Referring to fig. 6, the test case execution device 600 provided in the embodiment of the present application at least includes: the test case execution method comprises a processor 601, a memory 602 and a computer program stored on the memory 602 and capable of running on the processor 601, wherein the test case execution method provided by the embodiment of the application is realized when the processor 601 executes the computer program.
It should be noted that the test case execution apparatus 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
The test case execution device 600 provided in the embodiment of the present application may further include a bus 603 connecting different components (including the processor 601 and the memory 602). Bus 603 represents one or more of any of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and so forth.
The Memory 602 may include readable media in the form of volatile Memory, such as Random Access Memory (RAM) 6021 and/or cache Memory 6022, and may further include Read Only Memory (ROM) 6023.
The memory 602 may also include a program means 6025 having a set (at least one) of program modules 6024, the program modules 6024 including, but not limited to: an operating subsystem, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The test case execution device 600 may also communicate with one or more external devices 604 (e.g., a keyboard, a remote control, etc.), with one or more devices that enable a user to interact with the test case execution device 600 (e.g., a cell phone, a computer, etc.), and/or with any device that enables the test case execution device 600 to communicate with one or more other test case execution devices 600 (e.g., a router, a modem, etc.). Such communication may be through an Input/Output (I/O) interface 605. Also, the test case execution apparatus 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network, such as the internet) through the Network adapter 606. As shown in FIG. 6, the network adapter 606 communicates with the other modules of the test case execution apparatus 600 via the bus 603. It should be appreciated that, although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with the test case execution apparatus 600, including but not limited to: microcode, device drivers, Redundant processors, external disk drive Arrays, disk array (RAID) subsystems, tape drives, and data backup storage subsystems, to name a few.
The following describes a computer-readable storage medium provided by embodiments of the present application. The embodiment of the application provides a computer-readable storage medium, which stores computer instructions, and the computer instructions, when executed by a processor, implement the test case execution method provided by the embodiment of the application. Specifically, the executable program may be built in the test case execution device 600, so that the test case execution device 600 may implement the test case execution method provided in the embodiment of the present application by executing the built-in executable program.
In addition, the test case execution method provided in the embodiment of the present application may also be implemented as a program product, where the program product includes program code, and when the program product can run on the test case execution device 600, the program code is used to enable the test case execution device 600 to execute the test case execution method provided in the embodiment of the present application.
The program product provided by the embodiments of the present application may be 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, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof, and in particular, 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 (EPROM), an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product provided by the embodiment of the application can adopt a CD-ROM and comprises program codes, and can run on a computing device. However, the program product provided by the embodiments of the present application is not limited thereto, and in the embodiments of the present application, the readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus, or device.
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.

Claims (10)

1. A test case execution method, comprising:
when the application test meets the execution condition of the test case, acquiring a target test case from each test case of the application test;
determining a test execution module of the target test case according to the test item to which the target test case belongs;
and executing the target test case through the test execution module.
2. The test case execution method of claim 1, wherein determining that the application test satisfies the test case execution condition comprises:
calling a data interface of a test control server, and polling and inquiring the execution state of each test case of the application test in a test database of the test control server;
and when the test case with the corresponding execution state to be executed exists in each test case of the application test, determining that the application test meets the execution condition of the test case.
3. The method for executing test cases according to claim 2, wherein obtaining target test cases from the test cases of the application test comprises:
and acquiring the test case with the corresponding execution state to be executed from each test case of the application test as the target test case.
4. The test case execution method according to claim 2 or 3, wherein when obtaining the target test case from each test case of the application test, the method further comprises:
and configuring the execution state of the target test case from the to-be-executed state to the executing state.
5. The test case execution method of claim 4, wherein executing the target test case by the test execution module comprises:
if the application test is a service interface test, calling a built-in test script through the test execution module, and carrying out the service interface test based on the test parameters in the test case;
if the application test is the user interface test, the test execution module acquires a test script path in the test case, calls a test script corresponding to the test script path in the test case, and performs the user interface test based on the test parameters in the test case.
6. The method for executing the test case according to claim 4, wherein after the target test case is executed by the test execution module, the method further comprises:
acquiring an execution result of the target test case by the test execution module;
and calling a data interface of a test control server, and storing the execution result of the target test case to a test database of the test control server.
7. The test case execution method according to claim 6, wherein when storing the execution result of the target test case in the test database of the test control server, the method further comprises:
and configuring the execution state of the target test case from being executed to being completed.
8. A test case execution apparatus, comprising:
the application test system comprises a case acquisition unit, a test case execution unit and a test case execution unit, wherein the case acquisition unit is used for acquiring a target test case from each test case of an application test when the application test meets a test case execution condition;
the module determining unit is used for determining a test execution module of the target test case according to the test item to which the target test case belongs;
and the case execution unit is used for executing the target test case through the test execution module.
9. A test case execution apparatus, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the test case execution method of any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium storing computer instructions which, when executed by a processor, implement the test case execution method of any one of claims 1-7.
CN202010072598.0A 2020-01-21 2020-01-21 Test case execution method, device, equipment and medium Pending CN112416747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010072598.0A CN112416747A (en) 2020-01-21 2020-01-21 Test case execution method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010072598.0A CN112416747A (en) 2020-01-21 2020-01-21 Test case execution method, device, equipment and medium

Publications (1)

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

Family

ID=74844079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010072598.0A Pending CN112416747A (en) 2020-01-21 2020-01-21 Test case execution method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112416747A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948259A (en) * 2021-03-29 2021-06-11 深圳市广和通无线股份有限公司 Application testing method and device, electronic equipment and storage medium
CN113407438A (en) * 2021-05-10 2021-09-17 深圳市广和通无线股份有限公司 Module testing method, computer device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354298A (en) * 2011-07-27 2012-02-15 哈尔滨工业大学 Software testing automation framework (STAF)-based fault injection automation testing platform and method for high-end fault-tolerant computer
CN106484624A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The method of testing of interface automatic test
CN107704395A (en) * 2017-10-24 2018-02-16 武大吉奥信息技术有限公司 One kind is based on cloud platform automatic test implementation and system under Openstack
CN108984418A (en) * 2018-08-22 2018-12-11 中国平安人寿保险股份有限公司 Software testing management method, device, electronic equipment and storage medium
US20190065353A1 (en) * 2017-08-24 2019-02-28 Salesforce.Com, Inc. Controlling executions of synchronous and/or non-synchronous operations with asynchronous messages

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354298A (en) * 2011-07-27 2012-02-15 哈尔滨工业大学 Software testing automation framework (STAF)-based fault injection automation testing platform and method for high-end fault-tolerant computer
CN106484624A (en) * 2016-10-21 2017-03-08 天津海量信息技术股份有限公司 The method of testing of interface automatic test
US20190065353A1 (en) * 2017-08-24 2019-02-28 Salesforce.Com, Inc. Controlling executions of synchronous and/or non-synchronous operations with asynchronous messages
CN107704395A (en) * 2017-10-24 2018-02-16 武大吉奥信息技术有限公司 One kind is based on cloud platform automatic test implementation and system under Openstack
CN108984418A (en) * 2018-08-22 2018-12-11 中国平安人寿保险股份有限公司 Software testing management method, device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李夏安等: ""基于STAF的软件自动化测试系统的研究和实现"", 《计算机应用》 *
李夏安等: ""基于STAF的软件自动化测试系统的研究和实现"", 《计算机应用》, 31 March 2009 (2009-03-31), pages 700 - 703 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112948259A (en) * 2021-03-29 2021-06-11 深圳市广和通无线股份有限公司 Application testing method and device, electronic equipment and storage medium
CN113407438A (en) * 2021-05-10 2021-09-17 深圳市广和通无线股份有限公司 Module testing method, computer device, and storage medium

Similar Documents

Publication Publication Date Title
JP7209034B2 (en) Edge computing test method, apparatus, equipment and readable storage medium
CN109302522B (en) Test method, test device, computer system, and computer medium
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
WO2020233369A1 (en) Method for improving software integration system on basis of simulated port, and related device
CN112765023B (en) Test case generation method and device
CN109684038B (en) Docker service container log processing method and device and electronic equipment
CN111400172B (en) Program debugging method and device
CN110955409B (en) Method and device for creating resources on cloud platform
CN111045911A (en) Performance test method, performance test device, storage medium and electronic equipment
CN112416747A (en) Test case execution method, device, equipment and medium
US11288170B1 (en) Log analysis debugging without running on real production environment
CN111782382A (en) Task processing method and device, storage medium and electronic equipment
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN110609786A (en) Software testing method and device, computer equipment and storage medium
CN114610446B (en) Method, device and system for automatically injecting probe
CN110806967A (en) Unit testing method and device
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable medium
CN112416743A (en) Test control system, method and equipment
CN112416744A (en) Test control system, method and equipment
CN112948269B (en) Information processing method, information processing apparatus, electronic device, and readable storage medium
CN113778773B (en) SIM card simulation method and device and electronic equipment
CN112035425B (en) Log storage method and device and computer system
CN111857664B (en) Application development method, device, equipment and storage medium
CN114138648A (en) Server reliability test method and device, server and storage medium
CN113849356A (en) Equipment testing method and device, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226

RJ01 Rejection of invention patent application after publication