CN113190434B - Test case generation method and device, storage medium and computer equipment - Google Patents

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

Info

Publication number
CN113190434B
CN113190434B CN202110388358.6A CN202110388358A CN113190434B CN 113190434 B CN113190434 B CN 113190434B CN 202110388358 A CN202110388358 A CN 202110388358A CN 113190434 B CN113190434 B CN 113190434B
Authority
CN
China
Prior art keywords
test case
test
target
list
historical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110388358.6A
Other languages
Chinese (zh)
Other versions
CN113190434A (en
Inventor
宋晓亮
何世伟
田野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Anyixun Technology Co ltd
Original Assignee
Chengdu Anyixun 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 Chengdu Anyixun Technology Co ltd filed Critical Chengdu Anyixun Technology Co ltd
Priority to CN202110388358.6A priority Critical patent/CN113190434B/en
Publication of CN113190434A publication Critical patent/CN113190434A/en
Application granted granted Critical
Publication of CN113190434B publication Critical patent/CN113190434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The application discloses a test case generation method, a device, a storage medium and computer equipment, wherein the method comprises the following steps: responding to a submitting instruction of a target test case, acquiring target query characteristics of the target test case, and generating a test case query request, wherein the test case query request comprises the target query characteristics; sending the test case query request to a test case database, and receiving a test case list corresponding to the test case query request fed back by the test case database, wherein the test case list comprises description information of historical test cases matched with the target query characteristics; and outputting the test case list to prompt a tester to modify the target test case according to the description information. The method and the device are beneficial to fully utilizing the history test cases and reducing the compiling omission of the target test cases by testers.

Description

Test case generation method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a test case generating method, a device, a storage medium, and a computer apparatus.
Background
Today, the development speed of computer technology is increasing, and in order to meet the needs of various functions of computer users, software with various functions has been developed. Before the software is put into use, professional testers can carry out omnibearing test on the software so as to ensure that the software functions normally. Before software testing, professional testers write test cases in advance, the test cases contain all test points required by the whole testing process, and in order to enable the software to be used stably and normally by users, the test points are required to be complete, and the function investigation is complete.
However, when a tester compiles test cases, the test cases are often compiled only according to own experience, but the method easily causes the compiled test cases to be missed, so that the function of the software which should be tested originally cannot be tested.
Disclosure of Invention
In view of this, the present application provides a test case generating method, apparatus, storage medium, and computer device, which are helpful for fully utilizing historical test cases and reducing the omission of writing target test cases by testers.
According to one aspect of the present application, there is provided a test case generating method, including:
Responding to a submitting instruction of a target test case, acquiring target query characteristics of the target test case, and generating a test case query request, wherein the test case query request comprises the target query characteristics;
sending the test case query request to a test case database, and receiving a test case list corresponding to the test case query request fed back by the test case database, wherein the test case list comprises description information of historical test cases matched with the target query characteristics;
and outputting the test case list to prompt a tester to modify the target test case according to the description information.
Optionally, the target query feature includes an index and/or a keyword of the target test case; the sending the test case query request to a test case database specifically includes:
and sending the test case query request to the test case database so that the test case database queries the historical test cases matched with the target query characteristics, and generating the test case list according to the description information of the historical test cases.
Optionally, the target query feature includes target description information of the target test case; the sending the test case query request to a test case database specifically includes:
and sending the test case query request to the test case database so that the test case database extracts indexes and/or keywords corresponding to the target test case according to the target description information, queries historical test cases matched with the indexes and/or keywords corresponding to the target test case, and generates the test case list according to the historical test cases.
Optionally, after the outputting the test case list, the method further includes:
responding to a first selection instruction of the tester for any description information and/or any historical test case in the test case list, and generating a test case downloading request;
sending the test case downloading request to the test case database, so that the test case database returns an embeddable test point and/or any historical test case corresponding to any description information according to any description information and/or any historical test case corresponding to the test case downloading request, wherein the returned any historical test case comprises the embeddable test point;
And receiving the embeddable test point and/or the historical test case corresponding to any piece of description information.
Optionally, after receiving the embeddable test point and/or the any historical test case corresponding to the any descriptive information, the method further includes:
the embeddable test points corresponding to any descriptive information and/or the embeddable test points included in any historical test case are obtained, and the embeddable test points which are not included in the target test points corresponding to the target test case are used as new test points to form a new test point list;
and in response to a second selection instruction of any new test point in the new test point list, embedding any new test point corresponding to the second selection instruction into the target test case, and updating the target test case.
Optionally, after the updating the target test case, the method further includes:
responding to a storage instruction of the target test case, and acquiring an index and/or a keyword of the target test case;
and sending the target test case and the index and/or the keyword corresponding to the target test case to the test case database so that the test case database stores the target test case according to the index and/or the keyword of the target test case, wherein the test case database comprises a public test case library and other product test case libraries.
According to another aspect of the present application, there is provided a test case generating apparatus including:
the query request generation unit is used for responding to a submitting instruction of a target test case, acquiring target query characteristics of the target test case and generating a test case query request, wherein the test case query request comprises the target query characteristics;
the query request sending unit is used for sending the test case query request to a test case database;
the list receiving unit is used for receiving a test case list corresponding to the test case query request and fed back by the test case database, wherein the test case list comprises description information of historical test cases matched with the target query characteristics;
and the list output unit is used for outputting the test case list so as to prompt a tester to modify the target test case according to the description information.
Optionally, the target query feature includes an index and/or a keyword of the target test case;
the query request sending unit is specifically configured to: and sending the test case query request to the test case database so that the test case database queries the historical test cases matched with the target query characteristics, and generating the test case list according to the description information of the historical test cases.
Optionally, the target query feature includes target description information of the target test case;
the query request sending unit is specifically configured to: and sending the test case query request to the test case database so that the test case database extracts indexes and/or keywords corresponding to the target test case according to the target description information, queries historical test cases matched with the indexes and/or keywords corresponding to the target test case, and generates the test case list according to the historical test cases.
Optionally, the test case generating device further includes:
the download request generating unit is used for responding to a first selection instruction of any description information and/or any historical test case in the test case list by the tester after the test case list is output, and generating a test case download request;
a download request sending unit, configured to send the test case download request to the test case database, so that the test case database returns an embeddable test point and/or any historical test case corresponding to the any description information according to the any description information and/or the any historical test case corresponding to the test case download request, where the returned any historical test case includes the embeddable test point;
And the use case receiving unit is used for receiving the embeddable test point corresponding to any piece of description information and/or any historical test case.
Optionally, the test case generating device further includes:
a new test point list generating unit, configured to obtain, after the receiving the embeddable test point corresponding to the arbitrary description information and/or the arbitrary historical test case, an embeddable test point corresponding to the arbitrary description information and/or an embeddable test point included in the arbitrary historical test case, and use, as a new test point, the embeddable test point not included in the target test point corresponding to the target test case, to form a new test point list;
and the target test case updating unit is used for responding to a second selection instruction of any new test point in the new test point list, embedding any new test point corresponding to the second selection instruction into the target test case, and updating the target test case.
Optionally, the test case generating device further includes:
a stored instruction response unit, configured to obtain an index and/or a keyword of the target test case in response to a stored instruction of the target test case after the target test case is updated;
And the target test case storage unit is used for sending the target test case and the index and/or the keyword corresponding to the target test case to the test case database so that the test case database stores the target test case according to the index and/or the keyword of the target test case, wherein the test case database comprises a public test case database and other product test case databases.
According to still another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above test case generating method.
According to still another aspect of the present application, there is provided a computer apparatus including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, the processor implementing the test case generating method described above when executing the program.
By means of the technical scheme, the test case generating method, the device, the storage medium and the computer equipment are characterized in that the terminal equipment receives and responds to a submitting instruction of the target test case, then obtains target query characteristics corresponding to the target test case uploaded by a tester, generates a test case query request comprising the target query characteristics and sends the test case query request to the test case database, the test case database feeds back a test case list corresponding to the test case query request to the terminal equipment, and the terminal equipment outputs the test case list after receiving the test case list, so that whether the tester modifies the target test case is prompted. According to the embodiment test case database, the history test cases are used as the basis, the test case list matched with the target query characteristics of the target test cases is created, so that a tester is prompted to modify the target test cases by combining description information of the history test cases contained in the test case list, the history test cases are fully utilized, and writing omission of the target test cases by the tester is reduced.
The foregoing description is only an overview of the technical solutions of the present application, and may be implemented according to the content of the specification in order to make the technical means of the present application more clearly understood, and in order to make the above-mentioned and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
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 embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
FIG. 1 shows a schematic flow chart of a test case generating method according to an embodiment of the present application;
fig. 2 shows a schematic structural diagram of a test case generating device according to an embodiment of the present application.
Detailed Description
The present application will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
In this embodiment, a test case generating method is provided, as shown in fig. 1, and the method includes:
step 101, responding to a submitting instruction of a target test case, acquiring target query characteristics of the target test case, and generating a test case query request, wherein the test case query request comprises the target query characteristics;
In the embodiment of the application, the submitting instruction of the target test case can be triggered by the screen touch behavior of the tester, and also can be triggered by the mouse click behavior of the tester. After a tester makes a target test case and triggers a submitting instruction of the target test case, the terminal equipment responds to the instruction to acquire target query characteristics of the target test case uploaded by the tester. The terminal device may be a computer device or a mobile phone device, the target test case includes a case index/keyword, description information, case details, expectations, and the like, and the target query feature may be an index/keyword of the target test case, or may be description information, details, expectations, and the like of the target test case. The index/key word of the target test case may be a test object name of the target test case, for example, weChat public number, and the description information of the target test case may be a specific description of the content of the test case. After the terminal device obtains the target query feature of the target test case, the terminal device may generate a test case query request, where the test case query request includes the target query feature.
Step 102, sending the test case query request to a test case database, and receiving a test case list corresponding to the test case query request fed back by the test case database, wherein the test case list comprises description information of historical test cases matched with the target query feature;
in this embodiment, after the terminal device generates the test case query request, the request may be sent to the test case database. After receiving the test case query request, the test case database generates a test case list matched with the target query feature and comprising historical test case description information, and returns the test case list to the terminal equipment, wherein the historical test case refers to the test case existing in the test case database. In addition, when the test case database does not query the result corresponding to the test case query request, an empty list can be directly returned to the terminal device.
And step 103, outputting the test case list to prompt a tester to modify the target test case according to the description information.
In this embodiment, after receiving a test case list fed back by the test case database, the terminal device displays contents such as description information included in the test case list on a display screen of the terminal device in a list form, prompts a tester to modify a target test case, and can refer to the description information content in the test case list on the display screen to determine whether to modify the target test case. The terminal device can use a voice prompt mode or a screen warning mode when prompting a tester after outputting the test case list. For example, after the terminal device completes the display of the test case list on the display screen, the voice alarm function can be automatically triggered, so that voice broadcasting is automatically performed: "please determine if modification is needed? And finally, the tester further determines according to the description information in the test case list. In addition, after the terminal equipment finishes displaying the test case list on the display screen, triggering a display screen prompting function, automatically displaying a box on the display screen, displaying a modified button and an unmodified button in the box, flashing for three times, and then clicking the modified button in the box by a tester to finish modification of the target test case; or clicking the not-modified button, and discarding the modification to the target test case.
By applying the technical scheme of the embodiment, the terminal equipment receives and responds the submitting instruction of the target test case, then obtains the target query feature corresponding to the target test case uploaded by the tester, generates the test case query request comprising the target query feature and sends the test case query request to the test case database, the test case database feeds back a test case list corresponding to the test case query request to the terminal equipment, and the terminal equipment outputs the test case list after receiving the test case list, so as to prompt the tester whether to modify the target test case. According to the embodiment test case database, the history test cases are used as the basis, the test case list matched with the target query characteristics of the target test cases is created, so that a tester is prompted to modify the target test cases by combining description information of the history test cases contained in the test case list, the history test cases are fully utilized, and writing omission of the target test cases by the tester is reduced.
In this embodiment of the present application, optionally, the target query feature includes an index and/or a keyword of the target test case; the "sending the test case query request to the test case database" in step 102 may specifically include:
Step 102-1, sending the test case query request to the test case database, so that the test case database queries the historical test cases matched with the target query feature, and generating the test case list according to the description information of the historical test cases.
In this embodiment, the index and/or the keyword of the target test case may be used as the target query feature, and after the terminal device sends the test case query request to the test case database, the test case database queries the historical test case having the same or similar index and/or keyword as the target test case through the test case query request, and extracts the description information of the corresponding historical test case. For example, the test case database may extract indexes and/or keywords included in the test case query request, and extract indexes and/or keywords of the history test case, and when there is a repetition, extract description information of the corresponding history test case. And the terminal equipment generates a test case list according to the description information. Here, the test case list may include a history test case, so that a subsequent tester may modify the target test case according to the history test case.
In this embodiment of the present application, optionally, the target query feature includes target description information of the target test case; the "sending the test case query request to the test case database" in step 102 may specifically include:
102-2, sending the test case query request to the test case database, so that the test case database extracts indexes and/or keywords corresponding to the target test case according to the target description information, queries historical test cases matched with the indexes and/or keywords corresponding to the target test case, and generates the test case list according to the historical test cases.
In this embodiment, the target description information, details, expectations, and other information of the target test case may also be used as the target query feature. When the terminal device sends a test case query request to the test case database, the test case database can extract indexes and/or keywords corresponding to the target test case from the target description information, the details, the expectations and the like, for example, semantic recognition is performed on the information such as the target description information, the details, the expectations and the indexes and/or keywords by using a semantic recognition model established in advance based on the description information, the details, the expectations and the like of the historical test case, so as to determine the indexes and/or the keywords of the target test case, query the historical test case which is the same as or similar to the indexes and/or the keywords, and then generate a test case list based on the found historical test case. Here, the test case list may include a history test case, so that a subsequent tester may modify the target test case according to the history test case.
In the embodiment, the historical test cases corresponding to the request are searched by using the test case query request, and the test case list corresponding to the test case query request is generated, so that the terminal equipment can quickly obtain the historical test cases related to the target test cases, the searching efficiency is improved, and the testers can quickly obtain the contents to be checked.
In an embodiment of the present application, optionally, after step 103, the method further includes:
step 104, responding to a first selection instruction of any descriptive information and/or any historical test case in the test case list by the tester, and generating a test case downloading request;
step 105, sending the test case downloading request to the test case database, so that the test case database returns an embeddable test point and/or any historical test case corresponding to any description information according to any description information and/or any historical test case corresponding to the test case downloading request, wherein the returned any historical test case comprises the embeddable test point;
and 106, receiving the embeddable test point and/or any historical test case corresponding to any piece of description information.
In this embodiment, after the terminal device reminds the tester that the target test case can be modified according to the test case list, the tester can combine the list to modify the target test case according to own requirements. When a tester wants to add description information in a certain historical test case, any description information and/or any historical test case in the test case list can be selected to trigger generation of a first selection instruction, at this time, the terminal equipment can generate a test case downloading request in response to the first selection instruction, and the request is sent to a test case database. For example, after a tester triggers a first selection instruction of a certain description information in a test case list, the terminal equipment sends identification information carrying the description information to a test case database; after a tester triggers a first selection instruction of a certain historical test case in the test case list, the terminal equipment sends identification information carrying the historical test case to a test case database. After receiving the instruction, the test case database can download the embeddable test point and/or any historical test case corresponding to the instruction, and then the terminal equipment receives the embeddable test point and/or any historical test case downloaded by the test case database. For example, when the first selection instruction is generated based on selection of any one of the description information in the test case list, the test case database searches for an embeddable test point corresponding to the description information, and transmits the embeddable test point to the terminal device; when the first selection instruction is generated based on selection of any historical test case in the test case list, the test case database searches the historical test case and sends the historical test case to the terminal equipment. Here, the historical test cases returned by the test case database include embeddable test points. According to the test case database, the embeddable test point and/or any historical test case corresponding to the first selection instruction is returned, a tester can conveniently check the historical test case and the related test point related to the target test case, test point omission in the target test case can be conveniently found, and the efficiency of checking the missing and the missing is improved.
In addition, in the above embodiment, the tester may select any several pieces of description information and/or any several pieces of history test cases in the test case list according to its own requirement, and generate a first selection instruction, so that the test case database returns, according to the first selection instruction, embeddable test points and/or any several pieces of history test cases corresponding to any several pieces of description information and/or any several pieces of history test cases.
In an embodiment of the present application, optionally, after step 106, the method further includes:
step 107, obtaining an embeddable test point corresponding to any description information and/or an embeddable test point included in any historical test case, and taking the embeddable test point not included in a target test point corresponding to the target test case as a new test point to form a new test point list;
step 108, in response to a second selection instruction for any new test point in the new test point list, embedding the any new test point corresponding to the second selection instruction into the target test case, and updating the target test case.
In this embodiment, after the terminal device receives the embeddable test points returned from the test case database and any history test case, the terminal device may obtain the embeddable test points, or may obtain the embeddable test points included in any history test case. For example, when the terminal device receives the embeddable test points corresponding to any piece of description information, the terminal device directly acquires the embeddable test points; when the terminal equipment receives the history test case, the terminal equipment acquires the embeddable test point included in the history test case. And then, based on the target test points in the target test case, the terminal equipment compares the acquired embeddable test points with the target test points, uses the embeddable test points which are not included in the target test points as new test points, and displays the new test points in a list form to form a new test point list. After the new test point list is formed, a tester can select an embeddable test point which is wanted to be embedded in the target test case according to the embeddable test point in the new test point list, and the terminal equipment can embed the corresponding embeddable test point into the target test case according to the second selection instruction by triggering the second selection instruction of any new test point in the new test point list, so that the original target test case is updated. The embodiment obtains the embeddable test points returned by the test case database and the embeddable test points included in the historical test cases through the terminal equipment, and the tester selects the embeddable test points which are wanted to be added into the target test case from the embeddable test points, so that the required embeddable test points are added into the target test case to update the target test case, intelligent completion of the target test case is realized, the tester is helped to quickly find the missed embeddable test points in the target test case, and the efficiency of the test point completion of the target test case is improved.
In the same way, in the above embodiment, the tester may select any several new test points in the new test point list according to its own requirement, and generate a second selection instruction, so that the terminal device embeds any several new test points selected by the tester into the target test case according to the second selection instruction, and updates the target test case.
In an embodiment of the present application, optionally, after step 108, the method further includes:
step 109, responding to a storage instruction of the target test case, and acquiring an index and/or a keyword of the target test case;
step 110, the target test case and the index and/or the keyword corresponding to the target test case are sent to the test case database, so that the test case database stores the target test case according to the index and/or the keyword of the target test case, wherein the test case database comprises a public test case library and other product test case libraries.
In this embodiment, after the tester updates the target test case according to its own needs, the updated target test case may be sent to the test case database for storage. The method comprises the following specific steps: the terminal equipment responds to a storage instruction of the target test case, acquires an index and/or a keyword in the target test case, sends the target test case and the acquired index and/or keyword to a test case database, and then the test case database stores the received target test case in a corresponding test case database according to the received index and/or keyword. Here, the test case database includes a common test case library and other product test case libraries. The embodiment sends and stores the updated target test case into the test case database, so that the updated target test case is used as a historical test case in the test case database, and when a future tester rewrites the test case, the updated target test case can be used as the historical test case for reference and utilization.
Further, as a specific implementation of the method of fig. 1, an embodiment of the present application provides a test case generating device, as shown in fig. 2, where the device includes:
the query request generation unit is used for responding to a submitting instruction of a target test case, acquiring target query characteristics of the target test case and generating a test case query request, wherein the test case query request comprises the target query characteristics;
the query request sending unit is used for sending the test case query request to a test case database;
the list receiving unit is used for receiving a test case list corresponding to the test case query request and fed back by the test case database, wherein the test case list comprises description information of historical test cases matched with the target query characteristics;
and the list output unit is used for outputting the test case list so as to prompt a tester to modify the target test case according to the description information.
In this embodiment of the present application, optionally, the target query feature includes an index and/or a keyword of the target test case;
the query request sending unit is specifically configured to: and sending the test case query request to the test case database so that the test case database queries the historical test cases matched with the target query characteristics, and generating the test case list according to the description information of the historical test cases.
In this embodiment of the present application, optionally, the target query feature includes target description information of the target test case;
the query request sending unit is specifically configured to: and sending the test case query request to the test case database so that the test case database extracts indexes and/or keywords corresponding to the target test case according to the target description information, queries historical test cases matched with the indexes and/or keywords corresponding to the target test case, and generates the test case list according to the historical test cases.
In an embodiment of the present application, optionally, the test case generating device further includes:
the download request generating unit is used for responding to a first selection instruction of any description information and/or any historical test case in the test case list by the tester after the test case list is output, and generating a test case download request;
a download request sending unit, configured to send the test case download request to the test case database, so that the test case database returns an embeddable test point and/or any historical test case corresponding to the any description information according to the any description information and/or the any historical test case corresponding to the test case download request, where the returned any historical test case includes the embeddable test point;
And the use case receiving unit is used for receiving the embeddable test point corresponding to any piece of description information and/or any historical test case.
In an embodiment of the present application, optionally, the test case generating device further includes:
a new test point list generating unit, configured to obtain, after the receiving the embeddable test point corresponding to the arbitrary description information and/or the arbitrary historical test case, an embeddable test point corresponding to the arbitrary description information and/or an embeddable test point included in the arbitrary historical test case, and use, as a new test point, the embeddable test point not included in the target test point corresponding to the target test case, to form a new test point list;
and the target test case updating unit is used for responding to a second selection instruction of any new test point in the new test point list, embedding any new test point corresponding to the second selection instruction into the target test case, and updating the target test case.
In an embodiment of the present application, optionally, the test case generating device further includes:
a stored instruction response unit, configured to obtain an index and/or a keyword of the target test case in response to a stored instruction of the target test case after the target test case is updated;
And the target test case storage unit is used for sending the target test case and the index and/or the keyword corresponding to the target test case to the test case database so that the test case database stores the target test case according to the index and/or the keyword of the target test case, wherein the test case database comprises a public test case database and other product test case databases.
It should be noted that, other corresponding descriptions of each functional unit related to the test case generating device provided in the embodiment of the present application may refer to corresponding descriptions in the method of fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, the embodiment of the application also provides a storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the test case generating method shown in fig. 1.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and includes several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to perform the methods described in various implementation scenarios of the present application.
Based on the method shown in fig. 1 and the virtual device embodiment shown in fig. 2, in order to achieve the above objective, the embodiment of the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, etc., where the computer device includes a storage medium and a processor; a storage medium storing a computer program; and a processor for executing a computer program to implement the test case generating method shown in fig. 1.
Optionally, the computer device may also include a user interface, a network interface, a camera, radio Frequency (RF) circuitry, sensors, audio circuitry, WI-FI modules, and the like. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the architecture of a computer device provided in the present embodiment is not limited to the computer device, and may include more or fewer components, or may combine certain components, or may be arranged in different components.
The storage medium may also include an operating system, a network communication module. An operating system is a program that manages and saves computer device hardware and software resources, supporting the execution of information handling programs and other software and/or programs. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware. The terminal equipment receives and responds a submitting instruction of the target test case, then obtains target query characteristics corresponding to the target test case uploaded by a tester, generates a test case query request comprising the target query characteristics and sends the test case query request to the test case database, the test case database feeds back a test case list corresponding to the test case query request to the terminal equipment, and the terminal equipment receives and outputs the test case list so as to prompt the tester whether to modify the target test case. According to the embodiment test case database, the history test cases are used as the basis, the test case list matched with the target query characteristics of the target test cases is created, so that a tester is prompted to modify the target test cases by combining description information of the history test cases contained in the test case list, the history test cases are fully utilized, and writing omission of the target test cases by the tester is reduced.
Those skilled in the art will appreciate that the drawings are merely schematic illustrations of one preferred implementation scenario, and that the modules or flows in the drawings are not necessarily required to practice the present application. Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The foregoing application serial numbers are merely for description, and do not represent advantages or disadvantages of the implementation scenario. The foregoing disclosure is merely a few specific implementations of the present application, but the present application is not limited thereto and any variations that can be considered by a person skilled in the art shall fall within the protection scope of the present application.

Claims (8)

1. A test case generation method, comprising:
responding to a submitting instruction of a target test case, acquiring target query characteristics of the target test case, and generating a test case query request, wherein the test case query request comprises the target query characteristics;
sending the test case query request to a test case database, and receiving a test case list corresponding to the test case query request fed back by the test case database, wherein the test case list comprises description information of historical test cases matched with the target query characteristics;
Outputting the test case list to prompt a tester to modify the target test case according to the description information;
after the outputting the test case list, the method further includes:
responding to a first selection instruction of the tester for any description information and/or any historical test case in the test case list, and generating a test case downloading request;
sending the test case downloading request to the test case database, so that the test case database returns an embeddable test point and/or any historical test case corresponding to any description information according to any description information and/or any historical test case corresponding to the test case downloading request, wherein the returned any historical test case comprises the embeddable test point;
receiving the embeddable test point and/or the historical test case corresponding to any one of the description information;
the embeddable test points corresponding to any descriptive information and/or the embeddable test points included in any historical test case are obtained, and the embeddable test points which are not included in the target test points corresponding to the target test case are used as new test points to form a new test point list;
And in response to a second selection instruction of any new test point in the new test point list, embedding any new test point corresponding to the second selection instruction into the target test case, and updating the target test case.
2. The test case generation method according to claim 1, wherein the target query feature includes an index and/or a keyword of the target test case; the sending the test case query request to a test case database specifically includes:
and sending the test case query request to the test case database so that the test case database queries the historical test cases matched with the target query characteristics, and generating the test case list according to the description information of the historical test cases.
3. The test case generation method according to claim 1, wherein the target query feature includes target description information of the target test case; the sending the test case query request to a test case database specifically includes:
and sending the test case query request to the test case database so that the test case database extracts indexes and/or keywords corresponding to the target test case according to the target description information, queries historical test cases matched with the indexes and/or keywords corresponding to the target test case, and generates the test case list according to the historical test cases.
4. The test case generation method of claim 1, wherein after the updating the target test case, the method further comprises:
responding to a storage instruction of the target test case, and acquiring an index and/or a keyword of the target test case;
and sending the target test case and the index and/or the keyword corresponding to the target test case to the test case database so that the test case database stores the target test case according to the index and/or the keyword of the target test case, wherein the test case database comprises a public test case library and other product test case libraries.
5. A test case generating apparatus, comprising:
the query request generation unit is used for responding to a submitting instruction of a target test case, acquiring target query characteristics of the target test case and generating a test case query request, wherein the test case query request comprises the target query characteristics;
the query request sending unit is used for sending the test case query request to a test case database;
the list receiving unit is used for receiving a test case list corresponding to the test case query request and fed back by the test case database, wherein the test case list comprises description information of historical test cases matched with the target query characteristics;
The list output unit is used for outputting the test case list so as to prompt a tester to modify the target test case according to the description information;
the test case generating device further includes:
the download request generating unit is used for responding to a first selection instruction of any description information and/or any historical test case in the test case list by the tester after the test case list is output, and generating a test case download request;
a download request sending unit, configured to send the test case download request to the test case database, so that the test case database returns an embeddable test point and/or any historical test case corresponding to the any description information according to the any description information and/or the any historical test case corresponding to the test case download request, where the returned any historical test case includes the embeddable test point;
the use case receiving unit is used for receiving the embeddable test point corresponding to any one piece of description information and/or any historical test case;
a new test point list generating unit, configured to obtain, after the receiving the embeddable test point corresponding to the arbitrary description information and/or the arbitrary historical test case, an embeddable test point corresponding to the arbitrary description information and/or an embeddable test point included in the arbitrary historical test case, and use, as a new test point, the embeddable test point not included in the target test point corresponding to the target test case, to form a new test point list;
And the target test case updating unit is used for responding to a second selection instruction of any new test point in the new test point list, embedding any new test point corresponding to the second selection instruction into the target test case, and updating the target test case.
6. The test case generating device according to claim 5, wherein the target query feature includes an index and/or a keyword of the target test case;
the query request sending unit is specifically configured to: and sending the test case query request to the test case database so that the test case database queries the historical test cases matched with the target query characteristics, and generating the test case list according to the description information of the historical test cases.
7. A storage medium having stored thereon a computer program, which when executed by a processor, implements the method of any of claims 1 to 4.
8. A computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 4 when executing the computer program.
CN202110388358.6A 2021-04-12 2021-04-12 Test case generation method and device, storage medium and computer equipment Active CN113190434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110388358.6A CN113190434B (en) 2021-04-12 2021-04-12 Test case generation method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110388358.6A CN113190434B (en) 2021-04-12 2021-04-12 Test case generation method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN113190434A CN113190434A (en) 2021-07-30
CN113190434B true CN113190434B (en) 2024-03-08

Family

ID=76975379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110388358.6A Active CN113190434B (en) 2021-04-12 2021-04-12 Test case generation method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN113190434B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116841913B (en) * 2023-08-31 2023-12-29 美云智数科技有限公司 Test case generation method and device, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920791A (en) * 2005-08-22 2007-02-28 王彤 Program testing system
CN101192194A (en) * 2007-01-19 2008-06-04 中兴通讯股份有限公司 Test case design method based on test case database
CN102968373A (en) * 2012-11-29 2013-03-13 安科智慧城市技术(中国)有限公司 Method and device for maintaining test system
CN108733557A (en) * 2018-03-28 2018-11-02 新华三信息安全技术有限公司 A kind of test point generation method and device
CN109446104A (en) * 2018-11-16 2019-03-08 郑州云海信息技术有限公司 A kind of testing case management and device based on big data
CN109614312A (en) * 2018-10-23 2019-04-12 中国平安人寿保险股份有限公司 Method for generating test case, device, electronic equipment and storage medium
CN110795352A (en) * 2019-10-29 2020-02-14 中国科学院微小卫星创新研究院 Establishing and using method of fine-grained test case system for component-oriented star software
CN111190814A (en) * 2019-12-17 2020-05-22 远光软件股份有限公司 Software test case generation method and device, storage medium and terminal
CN112256558A (en) * 2020-09-17 2021-01-22 苏宁云计算有限公司 Test case generation method and device, computer equipment and storage medium
CN112380138A (en) * 2020-12-07 2021-02-19 深圳开源互联网安全技术有限公司 Test case compiling method and device and storage medium
CN113220563A (en) * 2021-04-12 2021-08-06 成都安易迅科技有限公司 Test case generation method and system, storage medium and computer equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100192128A1 (en) * 2009-01-27 2010-07-29 Honeywell International Inc. System and methods of using test points and signal overrides in requirements-based test generation
JP5669630B2 (en) * 2011-03-04 2015-02-12 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Test case generation method, program and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1920791A (en) * 2005-08-22 2007-02-28 王彤 Program testing system
CN101192194A (en) * 2007-01-19 2008-06-04 中兴通讯股份有限公司 Test case design method based on test case database
CN102968373A (en) * 2012-11-29 2013-03-13 安科智慧城市技术(中国)有限公司 Method and device for maintaining test system
CN108733557A (en) * 2018-03-28 2018-11-02 新华三信息安全技术有限公司 A kind of test point generation method and device
CN109614312A (en) * 2018-10-23 2019-04-12 中国平安人寿保险股份有限公司 Method for generating test case, device, electronic equipment and storage medium
CN109446104A (en) * 2018-11-16 2019-03-08 郑州云海信息技术有限公司 A kind of testing case management and device based on big data
CN110795352A (en) * 2019-10-29 2020-02-14 中国科学院微小卫星创新研究院 Establishing and using method of fine-grained test case system for component-oriented star software
CN111190814A (en) * 2019-12-17 2020-05-22 远光软件股份有限公司 Software test case generation method and device, storage medium and terminal
CN112256558A (en) * 2020-09-17 2021-01-22 苏宁云计算有限公司 Test case generation method and device, computer equipment and storage medium
CN112380138A (en) * 2020-12-07 2021-02-19 深圳开源互联网安全技术有限公司 Test case compiling method and device and storage medium
CN113220563A (en) * 2021-04-12 2021-08-06 成都安易迅科技有限公司 Test case generation method and system, storage medium and computer equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
A Test Generation Method for Microprocessor Based on A Function Point Model;Y. Li等;《2019 IEEE 2nd International Conference on Electronics Technology (ICET)》;20191219;387-389 *
刘琛梅.《测试架构师修炼之道 从测试工程师到测试架构师》.机械工业出版社,2016,(第1版),74-77. *
软件内建自测试中的测试点与测试用例;肖全亮;《万方学位论文》;20070611;1-68 *

Also Published As

Publication number Publication date
CN113190434A (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN107615270B (en) Man-machine interaction method and device
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN111078481B (en) Method, device, electronic equipment and storage medium for acquiring configuration checklist
CN108959067A (en) Test method, device and the computer readable storage medium of search engine
CN113190434B (en) Test case generation method and device, storage medium and computer equipment
CN112905441A (en) Test case generation method, test method, device and equipment
CN112286486B (en) Operation method of application program on intelligent terminal, intelligent terminal and storage medium
CN112417107A (en) Information processing method and device
CN111090589A (en) Software testing method, software testing device and readable storage medium
CN110674023B (en) Interface testing method and device
KR20210038496A (en) Method and system for extracting synonym by using keyword relation structure
US20090158255A1 (en) Test method and test device for unit code using unit test code
CN111488286A (en) Method and device for independently developing Android module
CN115016775A (en) Interface simulation method and device, storage medium and electronic equipment
CN110795101A (en) SQL code information display method and device, computer device and storage medium
US8751517B2 (en) Information processing apparatus, information processing system, information processing method, and computer readable non-transitory medium
CN108304433B (en) Data searching method and equipment, storage medium and server thereof
CN109725799B (en) Advertisement display control method and device and intelligent terminal
KR100949800B1 (en) Test method and test device for unit code using unit test code
CN112256252A (en) Interface generation method and device, storage medium and electronic equipment
CN116974653B (en) Class loading method and system
CN112988160B (en) Server compiling method, device, equipment and computer readable storage medium
CN113515454A (en) Test case generation method, device, equipment and storage medium
CN114860576A (en) Test method, test device, electronic equipment and storage medium
CN114461347A (en) Block chain intelligent contract development and deployment method, device, equipment and storage medium

Legal Events

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