+

CN112416746A - Test case generation method, device, equipment and medium - Google Patents

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

Info

Publication number
CN112416746A
CN112416746A CN202010072402.8A CN202010072402A CN112416746A CN 112416746 A CN112416746 A CN 112416746A CN 202010072402 A CN202010072402 A CN 202010072402A CN 112416746 A CN112416746 A CN 112416746A
Authority
CN
China
Prior art keywords
test
test object
data
case
test case
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010072402.8A
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 CN202010072402.8A priority Critical patent/CN112416746A/en
Publication of CN112416746A publication Critical patent/CN112416746A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

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 case generation method, a test case generation device, test case generation equipment and a test case generation medium, which are applied to the technical field of computers and used for solving the problems that a test case compiling method in the prior art is low in compiling efficiency and poor in accuracy. The method specifically comprises the following steps: receiving a test case generation request initiated aiming at a test object; displaying a test configuration interface of a test object, and acquiring test data configured for the test object on the test configuration interface; and generating a test case of the test object based on the test data of the test object. Therefore, the test case of the test object can be automatically generated by configuring the test data for the test object on the test configuration interface of the test object, thereby simplifying the compiling step of the test case, reducing the error rate of the test case as much as possible and ensuring the test effect of the test object.

Description

Test case generation 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 generating 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 comprise user interface tests, service interface tests and the like, at present, various application tests such as the user interface tests, the service interface tests and the like generally comprise a plurality of test objects, a tester needs to manually compile test cases for each test object, the compiling efficiency of the test cases is low, and the test effect can be influenced when the manually compiled test cases are wrong.
Disclosure of Invention
The embodiment of the application provides a test case generation method, a test case generation device, test case generation equipment and a test case generation medium, and aims to solve the problems of low writing efficiency and poor accuracy of a test case writing 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 generation method, including:
receiving a test case generation request initiated aiming at a test object;
displaying a test configuration interface of a test object, and acquiring test data configured for the test object on the test configuration interface;
and generating a test case of the test object based on the test data of the test object.
In a possible implementation manner, if the test object is a test object tested by the user interface, the test configuration interface of the test object at least displays each test data field, each script address field and each attribute selection box.
In a possible embodiment, if the test object is a test object tested by the user interface, obtaining test data configured for the test object on the test configuration interface includes:
acquiring functional test data input in each test data field, a test script path input in a script path field and attribute test data selected in each attribute selection frame;
and determining the obtained functional test data, the test script path and the obtained attribute test data as the test data of the test object.
In a possible embodiment, if the test object is a test object tested by the service interface, the test configuration interface of the test object at least displays each test data field and each attribute selection box.
In a possible embodiment, if the test object is a test object tested by the service interface, obtaining test data configured for the test object on the test configuration interface includes:
acquiring functional test data respectively input in each test data field and attribute test data respectively selected in each attribute selection frame;
and determining the obtained functional test data and the obtained attribute test data as the test data of the test object.
In one possible embodiment, generating a test case of a test object based on test data of the test object includes:
and converting the test data of the test Object into an Object Notation (JSON) format to obtain a test case of the test Object.
In a possible implementation manner, after generating a test case of a test object based on test data of the test object, the method further includes:
and storing the test case of the test object into a test case library of the application test to which the test object belongs.
In another aspect, an embodiment of the present application provides a test case generating apparatus, including:
the device comprises a request receiving unit, a test case generating unit and a test case generating unit, wherein the request receiving unit is used for receiving a test case generating request initiated aiming at a test object;
the interface display unit is used for displaying a test configuration interface of a test object;
the data acquisition unit is used for acquiring test data configured for the test object on the test configuration interface;
and the case generating unit is used for generating the test case of the test object based on the test data of the test object.
In a possible implementation manner, if the test object is a test object tested by the user interface, the test configuration interface of the test object displayed by the interface display unit at least displays each test data field, each script address field, and each attribute selection box.
In a possible implementation manner, if the test object is a test object tested by the user interface, when the test data configured for the test object on the test configuration interface is acquired, the data acquiring unit is specifically configured to:
acquiring functional test data input in each test data field, a test script path input in a script path field and attribute test data selected in each attribute selection frame;
and determining the obtained functional test data, the test script path and the obtained attribute test data as the test data of the test object.
In a possible implementation manner, if the test object is a test object tested by the service interface, the test configuration interface of the test object displayed by the interface display unit at least displays each test data field and each attribute selection frame.
In a possible implementation manner, if the test object is a test object tested by the service interface, when the test data configured for the test object on the test configuration interface is acquired, the data acquisition unit is specifically configured to:
acquiring functional test data respectively input in each test data field and attribute test data respectively selected in each attribute selection frame;
and determining the obtained functional test data and the obtained attribute test data as the test data of the test object.
In a possible implementation manner, when generating a test case of a test object based on test data of the test object, the case generating unit is specifically configured to:
and converting the test data of the test object into a JSON format to obtain a test case of the test object.
In a possible implementation manner, the test case generation apparatus provided in an embodiment of the present application further includes:
and the case storage unit is used for storing the test cases of the test objects into the test case library of the application test to which the test objects belong.
On the other hand, an embodiment of the present application provides a test case generating device, including: the test case generation 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 generation 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 generation 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, the test case of the test object can be automatically generated by configuring the test data for the test object on the test configuration interface of the test object, so that the compiling step of the test case is simplified, the error rate of the test case is reduced as much as possible, and the test effect of the test object is ensured.
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 case generation system according to 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 of a specific process of a test case generation method when a test object tested by a user interface is used as a specific application scenario in the embodiment of the present application;
fig. 4 is a schematic flowchart of a specific process of a test case generation method when a test object tested by a service interface is used as a specific application scenario in the embodiment of the present application;
FIG. 5 is a schematic functional structure diagram of a test case generating device in an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of the test case generation 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 case management platform is a front-end user platform for managing and checking test data, test cases and the like.
2. The test case management server is background operation equipment for storing the test cases of the test objects.
3. And the code management platform is a front-end user platform for managing and checking the test script.
4. The test data is data used in a test process of a test object. In the present application, test data includes, but is not limited to: functional test data, attribute test data, and a test script path, wherein:
functional test data, which are respective functional data of a test object, for example: the size, position, status, etc. of a certain button in the user interface, as another example: input data, prediction result data, etc. of the service interface;
the attribute test data is the data of each attribute of the test object, and includes but is not limited to: the development department, version, environment (including on-line environment and test environment), test account and account login data of the application to which the test object belongs;
and the test script path is a storage path of the test script of the test object in a code library of the code management platform.
5. And the test object is used for testing each contained test item for the application. For example: test objects for service interface testing include, but are not limited to: function test, compression test, regression test and the like of a certain service interface; for another example: test objects for user interface testing include, but are not limited to: graphical test, navigation test, content test, overall interface test, form test, etc. of a certain user interface.
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, in order to carry out omnibearing test on an application user interface and a service interface, various application tests such as the application user interface test, the service interface test and the like generally comprise a plurality of test objects, a tester needs to manually compile a test case for each test object, the compiling efficiency of the test case is low, and the test effect can be influenced when the manually compiled test case is wrong.
For this reason, referring to fig. 1, in the embodiment of the present application, the test case management platform 110, the test case management server 120, and the code management platform 130 are in communication connection through a communication network, in practical applications, a tester may submit a test script for a test object of a user interface test on the code management platform 130, the code management platform 130 may store the test script submitted by the tester for the test object of the user interface test in a code library, and in addition, the tester may also initiate a test case generation request for the test object of an application test such as a user interface test and a service interface test on the test case management platform 110, configure test data for the test object, and generate a test case. Therefore, the tester can automatically generate the test case of the test object by configuring the test data for the test object on the test configuration interface of the test object, thereby simplifying the writing steps of the test case, reducing the error rate of the test case as much as possible and ensuring the test effect of the test object.
After introducing the application scenario and the design concept of the embodiment of the present application, the following describes a technical solution provided by the embodiment of the present application.
An embodiment of the present application provides a test case generation method, which is applied to a test case management platform 110 in a test case generation system shown in fig. 1, and referring to fig. 2, an overview flow of the test case generation method provided in the embodiment of the present application is as follows:
step 201: and receiving a test case generation request initiated aiming at the test object.
In practical application, the test case management platform 110 provides a selection frame of each test object included in application tests such as user interface tests, service interface tests and the like for testers, and a user can select the test object on the test case management platform 110 to initiate a test case generation request according to practical requirements.
Step 202: and displaying a test configuration interface of the test object, and acquiring test data configured for the test object on the test configuration interface.
In practical application, the test configuration interface displayed by the test case management platform 110 is different according to the test type of the test object, and specifically, there may be but is not limited to the following two cases:
in the first case: the test object is a test object for user interface testing.
In this case, the test configuration interface displayed by the testcase management platform 110 at least includes each test data field, the script address field, and each attribute selection box.
Further, when the test case management platform 110 obtains the test data configured for the test object on the test configuration interface by the tester, the following methods may be adopted, but are not limited to:
first, the test case management platform 110 obtains functional test data respectively input in each test data field, a test script path input in a script path field, and attribute test data respectively selected in each attribute selection box.
Then, the test case management platform 110 determines the obtained functional test data, the test script path, and the obtained attribute test data as the test data of the test object.
In the second case: the test object is a test object for the service interface test.
In this case, the test configuration interface displayed by the testcase management platform 110 at least includes each test data field and each attribute selection box.
Further, when the test case management platform 110 obtains the test data configured for the test object on the test configuration interface by the tester, the following methods may be adopted, but are not limited to:
first, the test case management platform 110 obtains functional test data respectively input in each test data field and attribute test data respectively selected in each attribute selection box.
Then, the test case management platform 110 determines each obtained functional test data and each obtained attribute test data as the test data of the test object.
Step 203: and generating a test case of the test object based on the test data of the test object.
In practical application, the test case management platform 110 may convert the test data of the test object into JSON format, so as to obtain the test case of the test object.
Further, after the test case management platform 110 generates the test case of the test object based on the test data of the test object, the test case of the test object may also be stored in a test case library of the application test to which the test object belongs.
In a specific implementation, the test case management platform 110 may call a data interface (e.g., a Post interface) provided by the test case management server 120, and store the test case of the test object in a test case library of the application test to which the test object belongs. Therefore, aiming at various application tests such as user interface test and service interface test of the application, all test cases of the application test can be obtained from the test case library corresponding to the application test, and convenience is provided for the application test.
The following describes in further detail the test case generation method provided in the embodiment of the present application with reference to fig. 3, in which "generating a test case for a test object tested by a user interface" is used as a specific application scenario, and a specific flow of the test control method provided in the embodiment of the present application is as follows:
step 301: the test case management platform 110 receives a test case generation request initiated for a test object of a user interface test.
Step 302: the test case management platform 110 displays a test configuration interface of the test object, where the test configuration interface at least includes each test data field, a script path field, and each attribute selection box.
Step 303: the test case management platform 110 obtains the functional test data respectively input in each test data field, the test script path input in the script path field, and the attribute test data respectively selected in each attribute selection box.
In practical application, a tester may submit a test script of the test object on the code management platform 130, and after the code management platform 130 stores the test script of the test object in the code library, the test script path of the test object is displayed to the tester. Thus, the tester can obtain the test script path of the test object.
Step 304: the test case management platform 110 determines the obtained functional test data, the test script path and the obtained attribute test data as the test data of the test object.
Step 305: the test case management platform 110 converts the test data of the test object into JSON format to obtain the test case of the test object.
Step 306: the test case management platform 1100 calls the Post interface provided by the test case management server 120, and stores the test case of the test object in the test case library for the user interface test.
The following describes in further detail the test case generation method provided in the embodiment of the present application with reference to fig. 4, in which "generating a test case for a test object tested by a service interface" is used as a specific application scenario, and a specific flow of the test control method provided in the embodiment of the present application is as follows:
step 401: the test case management platform 110 receives a test case generation request initiated by a test object for service interface testing.
Step 402: the test case management platform 110 displays a test configuration interface of the test object, where the test configuration interface at least includes each test data field and each attribute selection box.
Step 403: the test case management platform 110 obtains the functional test data respectively input in each test data field and the attribute test data respectively selected in each attribute selection box.
Step 404: the test case management platform 110 determines each obtained functional test data and each obtained attribute test data as the test data of the test object.
Step 405: the test case management platform 110 converts the test data of the test object into JSON format to obtain the test case of the test object.
Step 406: the test case management platform 110 calls the Post interface provided by the test case management server 120, and stores the test case of the test object into the test case library for the service interface test.
Based on the foregoing embodiments, an embodiment of the present application provides a test case generation apparatus, and referring to fig. 5, a test case generation apparatus 500 provided in an embodiment of the present application at least includes:
a request receiving unit 501, configured to receive a test case generation request initiated for a test object;
an interface display unit 502, configured to display a test configuration interface of a test object;
a data obtaining unit 503, configured to obtain test data configured for the test object on the test configuration interface;
the use case generating unit 504 is configured to generate a test case of the test object based on the test data of the test object.
In a possible implementation manner, if the test object is a test object tested by the user interface, the test configuration interface of the test object displayed by the interface display unit at least displays each test data field, each script address field, and each attribute selection box.
In a possible implementation manner, if the test object is a test object tested by the user interface, when the test data configured for the test object on the test configuration interface is acquired, the data acquiring unit 503 is specifically configured to:
acquiring functional test data input in each test data field, a test script path input in a script path field and attribute test data selected in each attribute selection frame;
and determining the obtained functional test data, the test script path and the obtained attribute test data as the test data of the test object.
In a possible implementation manner, if the test object is a test object tested by the service interface, the test configuration interface of the test object displayed by the interface display unit at least displays each test data field and each attribute selection frame.
In a possible implementation manner, if the test object is a test object tested by the service interface, and when the test data configured for the test object on the test configuration interface is acquired, the data acquiring unit 503 is specifically configured to:
acquiring functional test data respectively input in each test data field and attribute test data respectively selected in each attribute selection frame;
and determining the obtained functional test data and the obtained attribute test data as the test data of the test object.
In a possible implementation manner, when generating a test case of a test object based on test data of the test object, the case generating unit 504 is specifically configured to:
and converting the test data of the test object into a JSON format to obtain a test case of the test object.
In a possible implementation manner, the test case generation apparatus provided in an embodiment of the present application further includes:
the case storage unit 505 is configured to store the test case of the test object into a corresponding test case library based on the test type to which the test object belongs.
It should be noted that the principle of the test case generation apparatus 500 provided in the embodiment of the present application for solving the technical problem is similar to that of the test case generation method provided in the embodiment of the present application, and therefore, the implementation of the test case generation apparatus 500 provided in the embodiment of the present application can refer to the implementation of the test case generation method provided in the embodiment of the present application, and repeated details are not described again.
After the test case generation method and the test case generation device provided by the embodiment of the present application are introduced, a simple introduction is performed on the test case generation device provided by the embodiment of the present application.
Referring to fig. 6, the test case generation apparatus 600 provided in the embodiment of the present application at least includes: the test case generation system comprises a processor 601, a memory 602 and a computer program which is stored on the memory 602 and can run on the processor 601, wherein the test case generation 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 generation apparatus 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present application.
The test case generation 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 generation 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 generation device 600 (e.g., a cell phone, a computer, etc.), and/or with any device that enables the test case generation device 600 to communicate with one or more other test case generation 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 generation 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 generation 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 generation 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 generation method provided by the embodiment of the application. Specifically, the executable program may be built in the test case generating device 600, so that the test case generating device 600 may implement the test case generating method provided in the embodiment of the present application by executing the built-in executable program.
In addition, the test case generation 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 generation device 600, the program code is used to enable the test case generation device 600 to execute the test case generation 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 generation method is characterized by comprising the following steps:
receiving a test case generation request initiated aiming at a test object;
displaying a test configuration interface of the test object, and acquiring test data configured for the test object on the test configuration interface;
and generating a test case of the test object based on the test data of the test object.
2. The method for generating test cases according to claim 1, wherein if the test object is a test object tested by a user interface, the test configuration interface of the test object at least displays each test data field, each script address field, and each attribute selection box.
3. The method for generating test cases according to claim 2, wherein if the test object is a test object tested by a user interface, acquiring test data configured for the test object on the test configuration interface, includes:
acquiring functional test data respectively input in each test data field, a test script path input in the script path field and attribute test data respectively selected in each attribute selection box;
and determining the obtained functional test data, the test script path and the obtained attribute test data as the test data of the test object.
4. The method for generating test cases according to claim 1, wherein if the test object is a test object tested by a service interface, the test configuration interface of the test object at least displays each test data field and each attribute selection box.
5. The method for generating test cases according to claim 4, wherein if the test object is a test object tested by a service interface, acquiring test data configured for the test object on the test configuration interface, includes:
acquiring functional test data respectively input in each test data field and attribute test data respectively selected in each attribute selection frame;
and determining the obtained functional test data and the obtained attribute test data as the test data of the test object.
6. The test case generation method according to any one of claims 1 to 5, wherein generating the test case of the test object based on the test data of the test object includes:
and converting the test data of the test object into an object notation JSON format to obtain a test case of the test object.
7. The method for generating test cases according to claim 6, wherein after generating the test cases of the test objects based on the test data of the test objects, the method further comprises:
and storing the test case of the test object into a test case library of the application test to which the test object belongs.
8. A test case generation apparatus, comprising:
the device comprises a request receiving unit, a test case generating unit and a test case generating unit, wherein the request receiving unit is used for receiving a test case generating request initiated aiming at a test object;
the interface display unit is used for displaying a test configuration interface of the test object;
the data acquisition unit is used for acquiring the test data configured for the test object on the test configuration interface;
and the case generating unit is used for generating the test case of the test object based on the test data of the test object.
9. A test case generation device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the test case generation 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 generation method of any one of claims 1-7.
CN202010072402.8A 2020-01-21 2020-01-21 Test case generation method, device, equipment and medium Pending CN112416746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010072402.8A CN112416746A (en) 2020-01-21 2020-01-21 Test case generation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010072402.8A CN112416746A (en) 2020-01-21 2020-01-21 Test case generation method, device, equipment and medium

Publications (1)

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

Family

ID=74844026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010072402.8A Pending CN112416746A (en) 2020-01-21 2020-01-21 Test case generation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112416746A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282476A (en) * 2021-06-24 2021-08-20 深圳市商汤科技有限公司 Interface performance testing method and device and electronic equipment
CN114138654A (en) * 2021-12-04 2022-03-04 杭州安恒信息技术股份有限公司 Interface test case generation method, apparatus, computer equipment and storage medium
CN117234950A (en) * 2023-11-13 2023-12-15 广州品唯软件有限公司 Test case recording method and device, storage medium and computer equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060288256A1 (en) * 2005-06-15 2006-12-21 International Business Machines Corporation Stress testing a website having a backend application
CN101174240A (en) * 2006-11-03 2008-05-07 凌阳科技股份有限公司 Software test management method and system thereof
CN103684581A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Automatic testing tool and testing method for vlan function of ONU (Optical Network Unit)
CN104391794A (en) * 2014-12-03 2015-03-04 浪潮集团有限公司 Automatic testing method for multiple scripts
CN104679658A (en) * 2015-03-17 2015-06-03 百度在线网络技术(北京)有限公司 Test method and test system for WEB pages
CN107908542A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and storage medium
US9978084B1 (en) * 2013-06-14 2018-05-22 Groupon, Inc. Configurable relevance service test platform
CN108073511A (en) * 2016-11-14 2018-05-25 平安科技(深圳)有限公司 test code generating method and device
CN108694114A (en) * 2017-04-06 2018-10-23 广东亿迅科技有限公司 Method and its system for detaching test case, test script and test data
CN108829556A (en) * 2018-06-27 2018-11-16 中国建设银行股份有限公司 A kind of automated testing method and device
CN109471796A (en) * 2018-10-16 2019-03-15 平安证券股份有限公司 Interface testing method, device, computer equipment and storage medium
CN109783350A (en) * 2018-12-13 2019-05-21 重庆金融资产交易所有限责任公司 Interface test method, device and computer readable storage medium
CN109800149A (en) * 2018-12-14 2019-05-24 深圳壹账通智能科技有限公司 Application interface method for generating test case and server
US20190179732A1 (en) * 2017-12-08 2019-06-13 Cognizant Technology Solutions India Pvt. Ltd. System and method for automatically generating software testing scripts from test cases
CN110618941A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Interface element processing method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060288256A1 (en) * 2005-06-15 2006-12-21 International Business Machines Corporation Stress testing a website having a backend application
CN101174240A (en) * 2006-11-03 2008-05-07 凌阳科技股份有限公司 Software test management method and system thereof
US9978084B1 (en) * 2013-06-14 2018-05-22 Groupon, Inc. Configurable relevance service test platform
CN103684581A (en) * 2013-12-20 2014-03-26 上海斐讯数据通信技术有限公司 Automatic testing tool and testing method for vlan function of ONU (Optical Network Unit)
CN104391794A (en) * 2014-12-03 2015-03-04 浪潮集团有限公司 Automatic testing method for multiple scripts
CN104679658A (en) * 2015-03-17 2015-06-03 百度在线网络技术(北京)有限公司 Test method and test system for WEB pages
CN108073511A (en) * 2016-11-14 2018-05-25 平安科技(深圳)有限公司 test code generating method and device
CN108694114A (en) * 2017-04-06 2018-10-23 广东亿迅科技有限公司 Method and its system for detaching test case, test script and test data
CN107908542A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Test case creation method, apparatus, computer equipment and storage medium
US20190179732A1 (en) * 2017-12-08 2019-06-13 Cognizant Technology Solutions India Pvt. Ltd. System and method for automatically generating software testing scripts from test cases
CN108829556A (en) * 2018-06-27 2018-11-16 中国建设银行股份有限公司 A kind of automated testing method and device
CN109471796A (en) * 2018-10-16 2019-03-15 平安证券股份有限公司 Interface testing method, device, computer equipment and storage medium
CN109783350A (en) * 2018-12-13 2019-05-21 重庆金融资产交易所有限责任公司 Interface test method, device and computer readable storage medium
CN109800149A (en) * 2018-12-14 2019-05-24 深圳壹账通智能科技有限公司 Application interface method for generating test case and server
CN110618941A (en) * 2019-09-19 2019-12-27 中国银行股份有限公司 Interface element processing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
布赖恩•奥肯: "《pytest测试实战》", 华中科技大学出版社, pages: 88 - 89 *
张明等: "面向安卓手机App功能测试技术的方法", 《计算机工程与设计》, vol. 39, no. 3, 16 March 2018 (2018-03-16) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282476A (en) * 2021-06-24 2021-08-20 深圳市商汤科技有限公司 Interface performance testing method and device and electronic equipment
CN113282476B (en) * 2021-06-24 2023-01-20 深圳市商汤科技有限公司 Interface performance testing method and device and electronic equipment
CN114138654A (en) * 2021-12-04 2022-03-04 杭州安恒信息技术股份有限公司 Interface test case generation method, apparatus, computer equipment and storage medium
CN117234950A (en) * 2023-11-13 2023-12-15 广州品唯软件有限公司 Test case recording method and device, storage medium and computer equipment
CN117234950B (en) * 2023-11-13 2024-03-19 广州品唯软件有限公司 Test case recording method and device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN109739478B (en) Front-end project automatic construction method and device, storage medium and electronic equipment
CN112416746A (en) Test case generation method, device, equipment and medium
US20210157716A1 (en) Pre-populating continuous delivery test cases
CN111309343A (en) Development deployment method and device
CN113392002B (en) Test system construction method, device, equipment and storage medium
CN116795728B (en) Multi-core cache consistency verification module and method based on UVM
CN112667219A (en) Code generation method and device, equipment and computer readable storage medium
US11288170B1 (en) Log analysis debugging without running on real production environment
CN113885841A (en) Script generation method and device, electronic equipment and readable medium
CN110609786B (en) Software testing method, device, computer equipment and storage medium
CN109710523B (en) Visual draft test case generation method and device, storage medium and electronic equipment
CN112416747A (en) Test case execution method, device, equipment and medium
CN114911770A (en) Evaluation method, apparatus, equipment and medium for database migration
CN112988578A (en) An automated testing method and device
US11182272B2 (en) Application state monitoring
CN111176718A (en) Script online method and device, storage medium and electronic equipment
CN109901983B (en) Automatic testing method and device, storage medium and electronic equipment
CN110958243A (en) Network vulnerability submitting method and device, storage medium and electronic equipment
CN113742240B (en) User interface testing method, device, storage medium and electronic device
CN112416743B (en) Test control system, method and equipment
CN112181519B (en) A method, device, equipment and storage medium for data processing
CN115080382A (en) Code testing method, device, equipment and medium
CN113377648A (en) Software system diagnosis method and device, electronic equipment and computer readable medium
CN112485554B (en) Electrical performance test platform for complex product
CN114781294B (en) Signature comparison method and device in RISC-V CPU verification

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载