CN113190434A - 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
CN113190434A
CN113190434A CN202110388358.6A CN202110388358A CN113190434A CN 113190434 A CN113190434 A CN 113190434A CN 202110388358 A CN202110388358 A CN 202110388358A CN 113190434 A CN113190434 A CN 113190434A
Authority
CN
China
Prior art keywords
test case
target
test
historical
list
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.)
Granted
Application number
CN202110388358.6A
Other languages
Chinese (zh)
Other versions
CN113190434B (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

Images

Classifications

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

Abstract

The application discloses a test case generation method, a test case generation device, a storage medium and computer equipment, wherein the method comprises the following steps: responding to a submission 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 which is fed back by the test case database and corresponds to the test case query request, 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 historical test cases, and reduce the writing omission of the target test cases by testers.

Description

Test case generation method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a test case generation method, an apparatus, a storage medium, and a computer device.
Background
Nowadays, computer technology is developing faster and faster, and software with various functions is produced in order to meet various functional requirements of computer users. Before the software is put into use, professional testers can carry out all-around test on the software so as to ensure that the software functions are normal. Before software testing, a professional tester can write a test case in advance, the test case comprises all test points required in the whole testing process, and the test points are required to be complete and the function investigation is comprehensive when the software is required to be stably and normally used by a user.
However, when a tester writes a test case, the tester often writes the test case only according to own experience, but the method easily causes omission of the written test case, so that the function of the software which should be originally tested cannot be tested.
Disclosure of Invention
In view of this, the present application provides a test case generation method, device, storage medium, and computer device, which are helpful to make full use of historical test cases and reduce the programming omission of target test cases for testers.
According to an aspect of the present application, there is provided a test case generation method, including:
responding to a submission 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 which is fed back by the test case database and corresponds to the test case query request, 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 of 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 of 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 the index and/or the keyword corresponding to the target test case according to the target description information, queries a historical test case matched with the index and/or the keyword corresponding to the target test case, and generates the test case list according to the historical test case.
Optionally, after the outputting the test case list, the method further includes:
responding to a first selection instruction of the tester to 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 the 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 corresponding to the any description information and/or the any historical test case.
Optionally, after receiving the embeddable test point and/or the historical test case corresponding to the any piece of description information, the method further includes:
acquiring embeddable test points corresponding to any description information and/or embeddable test points included in any historical test case, and taking the embeddable test points not included in the target test points corresponding to the target test case as new test points to form a new test point list;
responding to a second selection instruction of any newly added test point in the newly added test point list, embedding any newly added test point corresponding to the second selection instruction into the target test case, and updating the target test case.
Optionally, after the target test case is updated, 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 keyword corresponding to the target test case to a test case database so that the test case database stores the target test case according to the index and/or 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 generation apparatus including:
the query request generating unit is used for responding to a submission 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 which is fed back by the test case database and corresponds to the test case query request, 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 the index and/or the keyword corresponding to the target test case according to the target description information, queries a historical test case matched with the index and/or the keyword corresponding to the target test case, and generates the test case list according to the historical test case.
Optionally, the test case generating apparatus further includes:
the download request generating unit is used for responding to a first selection instruction of the tester to any description information and/or any historical test case in the test case list 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 any description information according to any description information and/or any historical test case corresponding to the test case download request, where the returned any historical test case includes an embeddable test point;
and the use case receiving unit is used for receiving the embeddable test point corresponding to the any description information and/or the any historical test case.
Optionally, the test case generating apparatus further includes:
a newly added test point list generating unit, configured to obtain the embeddable test point corresponding to the any description information and/or the embeddable test point included in the any historical test case after receiving the embeddable test point corresponding to the any description information and/or the any historical test case, and use the embeddable test point that is not included in the target test point corresponding to the target test case as a newly added test point to form a newly added test point list;
and the target test case updating unit is used for responding to a second selection instruction of any newly added test point in the newly added test point list, embedding any newly added test point corresponding to the second selection instruction into the target test case, and updating the target test case.
Optionally, the test case generating apparatus further includes:
a save instruction response unit, configured to, after the target test case is updated, respond to a save instruction of the target test case and obtain an index and/or a keyword of the target test case;
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 library and other product test case libraries.
According to yet 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 test case generation method described above.
According to yet another aspect of the present application, there is provided a computer device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the test case generation method when executing the program.
By means of the technical scheme, the terminal device receives a submission instruction of a target test case and responds to the submission instruction, then the target query characteristic corresponding to the target test case uploaded by a tester is obtained, a test case query request comprising the target query characteristic is generated and sent to the test case database, the test case database feeds back to the terminal device to form a test case list corresponding to the test case query request, and the terminal device 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 test case database, the historical 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 testers are prompted to modify the target test cases by combining the description information of the historical test cases contained in the test case list, the historical test cases are favorably and fully utilized, and writing omission of the testers on the target test cases is reduced.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
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 shows a flowchart of a test case generation method provided in an embodiment of the present application;
fig. 2 shows a schematic structural diagram of a test case generation apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In this embodiment, a test case generation method is provided, as shown in fig. 1, the method includes:
step 101, responding to a submission 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 submission instruction of the target test case can be triggered by a screen touch behavior of a tester or a mouse click behavior of the tester. And after the tester makes a target test case and triggers a submission instruction of the target test case, the terminal equipment responds to the instruction to acquire the target query characteristics of the target test case uploaded by the tester. Here, 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 the index/keyword of the target test case, or the description information, details, expectations, and the like of the target test case. The index/key of the target test case may be a test object name of the target test case, such as a 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.
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 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;
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 which is matched with the target query characteristics and comprises historical test case description information, and returns the test case list to the terminal equipment, wherein the historical test cases refer to the test cases existing in the test case database. In addition, when the test case database does not inquire the result corresponding to the test case inquiry request, the empty list can be directly returned to the terminal equipment.
And 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 the 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 the tester can determine whether to modify the target test case according to the description information content in the test case list on the display screen. Here, when the terminal device prompts the tester after outputting the test case list, the terminal device may use a voice prompt mode or a screen warning mode. For example, after the terminal equipment finishes the display of the test case list on the display screen, the voice alarm function can be triggered automatically, so that the voice broadcast is automatically carried out: "please determine if modifications are needed? And then the tester further determines according to the description information in the test case list. In addition, after the terminal device finishes displaying the test case list on the display screen, a display screen prompt function is triggered, a square frame is automatically displayed on the display screen, a modification button and a non-modification button are displayed in the square frame and are flashed for three times, and then a tester clicks the modification button in the square frame to finish the modification of the target test case; or clicking the not-modified button to abandon the modification of the target test case.
By applying the technical scheme of the embodiment, the terminal equipment receives the submission instruction of the target test case and responds, then the target query characteristics corresponding to the target test case uploaded by the tester are obtained, the test case query request comprising the target query characteristics is generated and sent to the test case database, the test case database feeds back to the terminal equipment a test case list corresponding to the test case query request, 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 test case database, the historical 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 testers are prompted to modify the target test cases by combining the description information of the historical test cases contained in the test case list, the historical test cases are favorably and fully utilized, and writing omission of the testers on the target test cases 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 step 102 of sending the test case query request to the test case database may specifically include:
102-1, sending the test case query request to the test case database so that the test case database queries a historical test case matched with the target query characteristic, and generating the test case list according to the description information of the historical test case.
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, through the test case query request, the historical test cases having the same or similar index and/or keyword as the target test case, and extracts the description information of the corresponding historical test cases. For example, the test case database may extract indexes and/or keywords included in the test case query request, extract indexes and/or keywords of historical test cases, and extract description information of corresponding historical test cases when there is duplication. And the terminal equipment generates a test case list according to the description information. Here, the test case list may include a historical test case, so that a subsequent tester may modify the target test case according to the historical test case.
In this embodiment of the present application, optionally, the target query feature includes target description information of the target test case; the step 102 of sending the test case query request to the test case database may specifically include:
102-2, sending the test case query request to the test case database, so that the test case database extracts an index and/or a keyword corresponding to the target test case according to the target description information, queries a historical test case matched with the index and/or the keyword corresponding to the target test case, and generates the test case list according to the historical test case.
In this embodiment, the target description information, details, expectations, and the like 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 may extract an index and/or a keyword corresponding to the target test case from the target description information, the details, the expectation, and the like, perform semantic recognition on the target description information, the details, the expectation, and the like by using a semantic recognition model established in advance based on the description information, the details, the expectation, and the index and/or the keyword of the historical test case, determine the index and/or the keyword of the target test case, query the historical test case that is the same as or similar to the index and/or the keyword, and then generate a test case list based on the found historical test case. Here, the test case list may include a historical test case, so that a subsequent tester may modify the target test case according to the historical test case.
In the embodiment, the historical test case corresponding to the request is 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 device can quickly obtain the historical test case related to the target test case, the search efficiency is improved, and the tester can quickly obtain the content which the tester wants to check.
In this embodiment of the present application, optionally, after step 103, the method further includes:
104, responding to a first selection instruction of the tester to any description information and/or any historical test case in the test case list, and generating a test case downloading request;
105, sending the test case downloading request to the test case database so that the test case database returns the 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 historical test case comprises the embeddable test point;
and 106, receiving the embeddable test point and/or the historical test case corresponding to the any 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 modify the target test case according to the requirements of the tester in combination with the list. When a tester wants to add description information in a certain historical test case, any description information and/or any historical test case in a test case list can be selected to trigger generation of a first selection instruction, and at the moment, the terminal device can generate a test case downloading request in response to the first selection instruction and send the request to a test case database. For example, after a tester triggers a first selection instruction of certain description information in a test case list, the terminal device sends identification information carrying the description information to a test case database; and after the tester triggers a first selection instruction of a certain historical test case in the test case list, the terminal equipment sends the identification information carrying the historical test case to the 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 device 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 description information in the test case list, the test case database searches for an embeddable test point corresponding to the description information, and sends the embeddable test point to the terminal device; when the first selection instruction is generated based on selection of any one historical test case in the test case list, the historical test case is searched by the test case database and is sent 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 points and/or any historical test case corresponding to the first selection instruction are/is returned, so that a tester can conveniently check the historical test case and the related test points related to the target test case, the omission of the test points in the target test case is conveniently found, and the efficiency of checking, missing and repairing is improved.
In addition, in the above embodiment, the tester may also select any several items of description information and/or any several historical test cases in the test case list according to the own requirement, and generate the first selection instruction, so that the test case database returns the embeddable test points and/or any several historical test cases corresponding to any several items of description information and/or any several historical test cases according to the first selection instruction.
In this embodiment of the present application, optionally, after step 106, the method further includes:
step 107, acquiring embeddable test points corresponding to any description information and/or embeddable test points included in any historical test case, and taking the embeddable test points not included in the target test points corresponding to the target test case as new test points to form a new test point list;
step 108, responding to a second selection instruction for any newly added test point in the newly added test point list, embedding any newly added 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 and any historical test case returned from the test case database, the terminal device may obtain the embeddable test points, and may also obtain the embeddable test points included in any historical test case. For example, when the terminal device receives the embeddable test points corresponding to any description information, the terminal device directly acquires the embeddable test points; and when the terminal equipment receives the historical test case, the terminal equipment acquires the embeddable test point included in the historical test case. And then on the basis of the target test point in the target test case, the terminal equipment compares the obtained embeddable test point with the target test point, takes the embeddable test point which is not included in the target test point as a new test point, and displays the new test point in a list form to form a new test point list. After the newly added test point list is formed, a tester can select the embeddable test point to be embedded into the target test case according to the embeddable test point in the newly added test point list, and the terminal device 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 newly added test point in the newly added test list to update the original target test case. According to the embodiment, the embeddable test points returned by the test case database and the embeddable test points included in the historical test cases are obtained through the terminal device, and the tester selects the embeddable test points to be added into the target test case, so that the required embeddable test points are added into the target test case to be updated, the intelligent completion of the target test case is realized, the tester is helped to quickly find the overlooked embeddable test points in the target test case, and the efficiency of completing the test points of the target test case is improved.
Similarly, in the above embodiment, the tester may select any few newly added test points in the newly added test point list according to the own requirement, and generate the second selection instruction, so that the terminal device embeds any few newly added test points selected by the tester into the target test case according to the second selection instruction, and updates the target test case.
In this embodiment of the present application, optionally, after step 108, the method further includes:
step 109, responding to the storage instruction of the target test case, and acquiring the index and/or the keyword of the target test case;
and 110, sending the target test case and the index and/or keyword corresponding to the target test case to a test case database so that the test case database stores the target test case according to the index and/or 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 the requirement of the tester, 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 the test case database together, and then the test case database stores the received target test case in the 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. In the embodiment, the updated target test case is sent to and stored in the test case database to be used as the historical test case in the test case database, and when a tester writes the test case again in the future, the updated target test case can be used as the historical test case to be referred and utilized.
Further, as a specific implementation of the method in fig. 1, an embodiment of the present application provides a test case generation apparatus, as shown in fig. 2, the apparatus includes:
the query request generating unit is used for responding to a submission 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 which is fed back by the test case database and corresponds to the test case query request, 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 the index and/or the keyword corresponding to the target test case according to the target description information, queries a historical test case matched with the index and/or the keyword corresponding to the target test case, and generates the test case list according to the historical test case.
In this embodiment of the application, optionally, the test case generating apparatus further includes:
the download request generating unit is used for responding to a first selection instruction of the tester to any description information and/or any historical test case in the test case list 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 any description information according to any description information and/or any historical test case corresponding to the test case download request, where the returned any historical test case includes an embeddable test point;
and the use case receiving unit is used for receiving the embeddable test point corresponding to the any description information and/or the any historical test case.
In this embodiment of the application, optionally, the test case generating apparatus further includes:
a newly added test point list generating unit, configured to obtain the embeddable test point corresponding to the any description information and/or the embeddable test point included in the any historical test case after receiving the embeddable test point corresponding to the any description information and/or the any historical test case, and use the embeddable test point that is not included in the target test point corresponding to the target test case as a newly added test point to form a newly added test point list;
and the target test case updating unit is used for responding to a second selection instruction of any newly added test point in the newly added test point list, embedding any newly added test point corresponding to the second selection instruction into the target test case, and updating the target test case.
In this embodiment of the application, optionally, the test case generating apparatus further includes:
a save instruction response unit, configured to, after the target test case is updated, respond to a save instruction of the target test case and obtain an index and/or a keyword of the target test case;
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 library and other product test case libraries.
It should be noted that other corresponding descriptions of the functional units related to the test case generation apparatus provided in the embodiment of the present application may refer to the corresponding descriptions in the method in fig. 1, and are not described herein again.
Based on the method shown in fig. 1, correspondingly, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the test case generation 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 (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the 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 object, the present application further provides a computer device, which may specifically be a personal computer, a server, a network device, and the like, where the computer device includes a storage medium and a processor; a storage medium for storing a computer program; and a processor for executing the computer program to implement the test case generation 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, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (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., a bluetooth interface, WI-FI interface), etc.
It will be appreciated by those skilled in the art that the present embodiment provides a computer device architecture that is not limiting of the computer device, and that may include more or fewer components, or some components in combination, or a different arrangement of components.
The storage medium may further include an operating system and a network communication module. An operating system is a program that manages and maintains the hardware and software resources of a computer device, supporting the operation of information handling programs, as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and other hardware and software in the entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. The terminal equipment receives a submission instruction of a target test case and responds, then, target query characteristics corresponding to the target test case uploaded by a tester are obtained, a test case query request comprising the target query characteristics is generated and sent to a 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 test case database, the historical 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 testers are prompted to modify the target test cases by combining the description information of the historical test cases contained in the test case list, the historical test cases are favorably and fully utilized, and writing omission of the testers on the target test cases is reduced.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A test case generation method is characterized by comprising the following steps:
responding to a submission 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 which is fed back by the test case database and corresponds to the test case query request, 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.
2. The test case generation method according to claim 1, wherein the target query feature comprises an index and/or a keyword of the target test case; the sending of 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 method according to claim 1, wherein the target query feature includes target description information of the target test case; the sending of 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 the index and/or the keyword corresponding to the target test case according to the target description information, queries a historical test case matched with the index and/or the keyword corresponding to the target test case, and generates the test case list according to the historical test case.
4. The method according to claim 1, wherein after outputting the test case list, the method further comprises:
responding to a first selection instruction of the tester to 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 the 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 corresponding to the any description information and/or the any historical test case.
5. The method according to claim 4, wherein after receiving the embeddable test point corresponding to the any description information and/or the any historical test case, the method further comprises:
acquiring embeddable test points corresponding to any description information and/or embeddable test points included in any historical test case, and taking the embeddable test points not included in the target test points corresponding to the target test case as new test points to form a new test point list;
responding to a second selection instruction of any newly added test point in the newly added test point list, embedding any newly added test point corresponding to the second selection instruction into the target test case, and updating the target test case.
6. The method according to claim 5, 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 keyword corresponding to the target test case to a test case database so that the test case database stores the target test case according to the index and/or keyword of the target test case, wherein the test case database comprises a public test case library and other product test case libraries.
7. A test case generation apparatus, comprising:
the query request generating unit is used for responding to a submission 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 which is fed back by the test case database and corresponds to the test case query request, 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.
8. The apparatus according to claim 7, wherein the target query feature comprises 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.
9. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method of any of claims 1 to 6.
10. 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 6 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 true CN113190434A (en) 2021-07-30
CN113190434B 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)

Cited By (1)

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

Citations (13)

* 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
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
US20120226465A1 (en) * 2011-03-04 2012-09-06 International Business Machines Corporation Method, program, and system for generating test cases
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

Patent Citations (13)

* 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
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
US20120226465A1 (en) * 2011-03-04 2012-09-06 International Business Machines Corporation Method, program, and system for generating test cases
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 (5)

* Cited by examiner, † Cited by third party
Title
GERIE OWEN: "How to write test cases for both manual and automated tests", pages 1 - 3, Retrieved from the Internet <URL:《https://www.techtarget.com/searchsoftwarequality/tip/How-to-write-test-cases-one-component-at-a-time》> *
SH-XULIANG: "回归测试;测试用例;基线测试用例库", pages 1 - 5, Retrieved from the Internet <URL:《https://www.cnblogs.com/SH-xuliang/p/8021646.html》> *
Y. LI等: "A Test Generation Method for Microprocessor Based on A Function Point Model", 《2019 IEEE 2ND INTERNATIONAL CONFERENCE ON ELECTRONICS TECHNOLOGY (ICET)》, vol. 1, 19 December 2019 (2019-12-19), pages 387 - 389 *
刘琛梅: "《测试架构师修炼之道 从测试工程师到测试架构师》", vol. 1, 机械工业出版社, pages: 74 - 77 *
肖全亮: "软件内建自测试中的测试点与测试用例", 《万方学位论文》, 11 June 2007 (2007-06-11), pages 1 - 68 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN113190434B (en) 2024-03-08

Similar Documents

Publication Publication Date Title
KR101517659B1 (en) Search extensibility to third party applications
CN110955416A (en) Interface document generation method, device, equipment and computer storage medium
WO2018129509A1 (en) Managing, using, and updating application resources
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN111068328A (en) Game advertisement configuration table generation method, terminal device and medium
CN111385633A (en) Resource searching method based on voice, intelligent terminal and storage medium
CN112905441A (en) Test case generation method, test method, device and equipment
CN113018870A (en) Data processing method and device and computer readable storage medium
CN113190434B (en) Test case generation method and device, storage medium and computer equipment
CN110674023B (en) Interface testing method and device
CN102214093A (en) Search extensibility to third party applications
CN112286486B (en) Operation method of application program on intelligent terminal, intelligent terminal and storage medium
CN110825395A (en) Multi-plug-in layered deployment system, device and medium
US20150120650A1 (en) Methods and Systems for Utilizing Global Entities In Software Applications
CN113407561A (en) Configurable asset management method, apparatus, medium and computer program product
CN115951947A (en) Information interaction method and device and storage medium
CN114328678A (en) Method and device for displaying option information in service, electronic equipment and storage medium
CN115686506A (en) Data display method and device, electronic equipment and storage medium
JP2018045619A (en) Analysis program, analysis method, and analysis device
JP2015533435A (en) System and method for dynamically updating the contents of a folder on a device
CN110096537B (en) Pattern contrast method, apparatus, electronic device, and computer-readable storage medium
CN109726111B (en) Test rule customizing method, device, apparatus and computer readable storage medium
CN117131307A (en) Page processing result acquisition method, device, equipment, medium and program product
CN113515454A (en) Test case generation method, device, equipment and storage medium
CN105159568A (en) Music searching method and device in input interface

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