CN112527654A - Test case preparation method and device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN112527654A
CN112527654A CN202011489616.1A CN202011489616A CN112527654A CN 112527654 A CN112527654 A CN 112527654A CN 202011489616 A CN202011489616 A CN 202011489616A CN 112527654 A CN112527654 A CN 112527654A
Authority
CN
China
Prior art keywords
card
test
information
test task
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011489616.1A
Other languages
Chinese (zh)
Inventor
徐佐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen 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 Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202011489616.1A priority Critical patent/CN112527654A/en
Publication of CN112527654A publication Critical patent/CN112527654A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The application relates to the field of test tools for research and development management, in particular to a test case preparation method and device, computer equipment and a storage medium. The method comprises the steps of acquiring a query message sent by a terminal; searching a test task card corresponding to the service label in the query message; feeding back card information of the test task card to the terminal; and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information. According to the method and the device, in the test case generation process, the preset data preparation script for generating the test case is displayed to the user of the terminal side in the form of the test task card according to the service label requested by the terminal, and then the corresponding test case is generated according to the card selection information and the parameter setting information fed back by the terminal, so that the time for data preparation and data construction in the test case preparation process can be greatly saved, and the test case generation efficiency is improved.

Description

Test case preparation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for preparing a test case, a computer device, and a storage medium.
Background
With the development of computer technology and software technology, test case generation technology is also continuously updated. The range judgment in the test case generation process is an important ring in the test case generation field, and has different characteristics for different projects. In the process of generating the test case, the test is generally completed through the test case. The test case is a description of a test task performed on a specific software product, and embodies a test scheme, a method, a technology and a strategy. The test case is generally divided into three parts, namely data preparation, execution and assertion.
However, in the prior art, in the data preparation process of test data, a corresponding case generation script needs to be constructed according to the current test situation, and huge man-hours are needed to be spent on creating a large amount of data under the condition that a single item of data is complicated to construct; and needs to be done again when the data is one-time test data and problems (such as recurrent problems) occur and the test data needs to be reconstructed. Therefore, the preparation process of the whole test data consumes a lot of time and cost, and the efficiency of the test is affected.
Disclosure of Invention
In view of the above, it is desirable to provide a test case preparation method, apparatus, computer device, and storage medium capable of improving test efficiency.
A method of test case preparation, the method comprising:
acquiring a query message sent by a terminal;
searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script;
feeding back card information of the test task card to the terminal;
and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information.
In one embodiment, before the searching for the test task card corresponding to the service tag in the query message and generating the test task card based on the preset data preparation script, the method further includes:
acquiring a data preparation script;
adding a service tag for the data preparation script;
and generating a test task card according to the data preparation script added with the service tag.
In one embodiment, the generating a test task card according to the data preparation script after adding the service tag includes:
packaging the data preparation script into a JAR file;
obtaining a script method and script parameters in the JAR file through binary analysis;
setting a vacancy of the test task card according to the script method and the script parameters, and adding index information to the test task card based on the task tag to generate the test task card.
In one embodiment, after the generating a test task card according to the data preparation script after adding the service tag, the method further includes:
acquiring a card updating message;
and modifying the data preparation script corresponding to the test task card according to the card updating message.
In one embodiment, the card selection information includes card sequence information;
the obtaining terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information, and the card selection information and the parameter setting information comprise:
acquiring card sequence information and parameter setting information of the test task card fed back by the terminal according to the card information;
and generating a test case according to the card sequence information and the parameter setting information.
In one embodiment, the parameter setting information includes a parameter list;
the generating of the test case according to the card selection information and the parameter setting information comprises:
determining a test task card according to the card selection information;
and sequentially filling the parameters in the parameter list into the test task card, and generating test cases in batches.
A test case preparation apparatus, the apparatus comprising:
the message acquisition module is used for acquiring a query message sent by a terminal;
the card searching module is used for searching a test task card corresponding to the service label in the query message, and the test task card is generated based on a preset data preparation script;
the information feedback module is used for feeding back the card information of the test task card to the terminal;
and the case generation module is used for acquiring card selection information and parameter setting information fed back by the terminal according to the card information and generating a test case according to the card selection information and the parameter setting information.
In one embodiment, the system further comprises a card generation module for: acquiring a data preparation script; adding a service tag for the data preparation script; and generating a test task card according to the data preparation script added with the service tag.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a query message sent by a terminal;
searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script;
feeding back card information of the test task card to the terminal;
and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information.
A computer storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of:
acquiring a query message sent by a terminal;
searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script;
feeding back card information of the test task card to the terminal;
and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information.
According to the test case preparation method, the test case preparation device, the computer equipment and the storage medium, the query message sent by the terminal is acquired; searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script; feeding back card information of the test task card to the terminal; and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information. According to the method and the device, in the test case generation process, the preset data preparation script for generating the test case is displayed to the user of the terminal side in the form of the test task card according to the service label requested by the terminal, and then the corresponding test case is generated according to the card selection information and the parameter setting information fed back by the terminal, so that the time for data preparation and data construction in the test case preparation process can be greatly saved, and the test case generation efficiency is improved.
Drawings
FIG. 1 is a diagram illustrating an example of an application scenario of a test case preparation method;
FIG. 2 is a flowchart illustrating a method for test case preparation according to an embodiment;
FIG. 3 is a flowchart illustrating the steps of generating a test task card in one embodiment;
FIG. 4 is a flowchart illustrating the steps of generating a test task card in another embodiment;
FIG. 5 is a block diagram showing the structure of a test case preparing apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The test case preparation method provided by the application can be applied to the application environment shown in fig. 1. The terminal 102 communicates with the use case generation server 104 via a network. When a user needs to generate a test case through the terminal 102, a corresponding query message may be sent to the server according to the type of the test case. The use case generation server 104 acquires the query message sent by the terminal 102; searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script; feeding back card information of the test task card to the terminal 102; the obtaining terminal 102 generates a test case according to the card selection information and the parameter setting information fed back by the card information and according to the card selection information and the parameter setting information. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the use case generating server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a test case preparation method is provided, which is described by taking the application of the method to the use case generation server 104 in fig. 1 as an example, and includes the following steps:
step 201, acquiring a query message sent by a terminal.
Step 203, searching a test task card corresponding to the service label in the query message, and generating a script based on preset data preparation by the test task card.
The query message is used for querying the test task card, and the query message specifically includes a service tag of the test task card to be queried, and the service tag can be specifically set according to a specific service environment of the test case and the content of the case. The test task card is used for abstracting a data preparation process in the test case preparation process into one card, and leaving a parameter setting part in the card for carrying out specific parameter setting on the test case. The generation process of the test case is generally divided into three parts, namely data preparation, execution and assertion; the data preparation process is very important for use case generation, and takes a lot of time to prepare, and for executing a use case, the data preparation process takes about 50% of the time cost. The preset data preparation script is used for constructing test preparation data, and the data preparation script can construct non-polluted, real and credible data. In one embodiment, the preset data preparation script is used to construct prepared data related to a free doctor assistant, and the service tags corresponding to the corresponding test task cards may also include data tags such as "free doctor assistant", "service APP", and "basic service".
Specifically. According to the scheme, the data preparation process in the test case preparation process can be simplified into the test task card, the preset data preparation script can be called through the test task card, the preparation data of the test case can be generated and obtained through the preset data preparation script, meanwhile, the service tag is added to the index information of the test task card, and the corresponding test task card can be found through indexing based on the service tag. By continuously obtaining and storing the test task cards, a data bank corresponding to the test preparation data can be formed. When a test case needs to be generated, the terminal 102 where the user is located may search for a corresponding test task card according to the keywords of the current test content, and call the script through the test task card to obtain corresponding test preparation data. The test task card contains a plurality of parameters left blank and parameter description. The user can directly obtain corresponding test preparation data by filling parameters, and further construct a corresponding test case according to the test preparation data.
And step 205, feeding back the card information of the test task card to the terminal.
And step 207, acquiring card selection information and parameter setting information fed back by the terminal according to the card information, and generating a test case according to the card selection information and the parameter setting information.
The card information refers to a card list fed back according to the service tags, one service tag often corresponds to a plurality of different test task cards, and when a user queries the test task cards, the case generation server can feed back the card information of the test task cards to the terminal 102 in a list form according to the service tags input by the user. And the card selection information refers to the selection information of the test task card in the feedback card information by the user. For determining the test task card that the user really wishes to use. The parameter setting information refers to actual parameter information set by a user for parameters to be filled in the test task card, the actual parameter information can be filled in the test task card, a data preparation process in a test case preparation process is completed through a preset data preparation script, a corresponding test case is generated, and then the purpose of application test is achieved through processing such as execution, assertion and the like.
Specifically, after the test case server determines the test task cards that the user wishes to query, all the test task cards related to the query content can be fed back to the terminal in a list form, and then the user at the terminal side can select the required test task cards according to the fed back card list and the card information, so that corresponding card selection information is generated at the terminal 102, and meanwhile, after the test task cards are selected, the user can also set the parameters left in the test task cards, so that corresponding parameter setting information is generated at the terminal 102. And then feeding back the generated card selection information and the parameter setting information to the case generation server 104, calling a corresponding preset data preparation script by the case generation server through the test task card corresponding to the card selection information, and generating a test case according to the test case parameters set by the user through the parameter setting information.
The test case preparation method comprises the steps of acquiring a query message sent by a terminal; searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script; feeding back card information of the test task card to the terminal; and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information. According to the method and the device, in the test case generation process, the preset data preparation script for generating the test case is displayed to the user of the terminal side in the form of the test task card according to the service label requested by the terminal, and then the corresponding test case is generated according to the card selection information and the parameter setting information fed back by the terminal, so that the time for data preparation and data construction in the test case preparation process can be greatly saved, and the test case generation efficiency is improved.
In one embodiment, as shown in fig. 3, before step 203, the method further includes:
step 302, obtain data preparation script.
Step 304, adding a service tag for the data preparation script;
and step 306, generating a test task card according to the data preparation script added with the service tag.
The data preparation script is used for constructing test preparation data, and the data preparation script can construct non-polluted, real and credible data. In other embodiments, test preparation data may also be constructed in SQL instead of data preparation scripts. The service tag is used for searching the data preparation script, and the service tag can be specifically set according to the content of the data preparation script, the used technical field and the like.
Specifically, the data preparation flow of test case preparation can be simplified into a card form, the data preparation script can be called through the card, the preparation data of the test case can be generated and obtained through the data preparation script, meanwhile, the corresponding service tag can also be added to the index information of the test task card, and then the corresponding test task card can be found through indexing based on the service tag. In the embodiment, the corresponding test task cards are generated through the data preparation scripts, and the data bank is formed by continuously accumulating the test task cards, so that convenience is provided for the generation flow of the test cases.
In one embodiment, as shown in FIG. 4, step 306 comprises:
step 401, packaging the data preparation script into a JAR file.
And step 403, acquiring a script method and script parameters in the JAR file through binary analysis.
Step 405, setting a vacant position of the test task card according to the script method and the script parameters, and adding index information to the test task card based on the task tag to generate the test task card.
Among them, JAR files (Java Archive, english: Java Archive) is a software package file format that is generally used to aggregate a large number of Java class files, associated metadata and resource (text, picture, etc.) files into one file in order to develop Java platform application software or libraries.
Specifically, the data preparation script can be packaged into a JAR file, the script method and the script parameters in the JAR file are obtained through binary analysis, and the blank of the test task card is set according to the script method and the script parameters. And simultaneously, adding index information for the test task card based on the task tag. Meanwhile, the test task card can be added with corresponding description information, and the description information is obtained based on the script method and the script parameters in the JAR file. In the embodiment, the data preparation script is packaged into the JAR file, the binary analysis is performed to extract the method and the parameters in the script, and then the blank is set, so that the corresponding test task card can be effectively generated, and the generation efficiency of the test task card is improved.
In one embodiment, after step 306, the method further includes: acquiring a card updating message; and modifying the data preparation script corresponding to the test task card according to the card updating message.
And the card updating message is used for updating the data of the generated test task card.
Specifically, after the test task card is generated, since the specific test task is continuously updated, the staff at the use case generation server 104 end can import the corresponding card update message to the use case generation server 104 after the service is updated. The synchronous updating of the data preparation script is completed, and the parameters and remarks in the test task card corresponding to the data preparation script can be modified in the updating process. In the embodiment, the updating of the corresponding test task card is completed through the card updating message, so that the test task card can be effectively utilized.
In one embodiment, the card selection information includes card sequence information; step 207 comprises: acquiring card sequence information and parameter setting information of the test task card fed back by the terminal according to the card information; and generating a test case according to the card sequence information and the parameter setting information.
The number of the test task cards selected by the user terminal 102 may be multiple, and a complete pair of test cases is formed by combining multiple test task cards. At this time, the user also needs to perform corresponding sequence setting in the card selection information, and simultaneously, independent parameters are set for each test task card.
Specifically, the use case generating server 104 may obtain sequence selection information and parameter setting information for a plurality of test task cards, and then generate a test case according to the plurality of sequential test task cards and the parameter setting of each card. Specifically, as for a test case simulating the behavior of a user purchasing a commodity, a tester needs to prepare one user (user center system) and sufficient funds for the user's account (payment center) first, needs to prepare several commodities (commodity center systems) which need to be on-shelf and have sufficient inventory, and finally purchases the commodity. By using the scheme of the application, the development of the function of the data bank card is firstly completed only by the test of each business team, if a user center writes a method for creating a new user according to the definition requirement of a data bank interface, and a card is built on a card management platform of a test case server, a tester for verifying the transaction flow only needs to find the corresponding cards for creating the user, recharging the user, creating commodities, putting the commodities on shelves and the like on the card management platform, input a few necessary parameters to complete data preparation, then log in an APP to perform the order-placing flow verification, and the efficiency of the whole data preparation process is greatly improved. In the embodiment, the generation of the corresponding test case is completed by combining a plurality of cards, so that the test case preparation efficiency of a multi-link test task can be effectively ensured.
In one embodiment, the parameter setting information includes a parameter list; step 207 comprises: determining a test task card according to the card selection information; and filling parameters in the parameter list into the test task card in sequence, and generating test cases in batches.
Specifically, a user can generate test cases corresponding to one test task card in batch by setting a parameter list according to the card. At this time, one test task card corresponds to a plurality of parameters in the parameter setting information. The use case generation server 104 can determine the test task card according to the card selection information; and filling parameters in the parameter list into the test task card in sequence, and generating test cases in batches. In one embodiment, the user terminal 102 may define a List < Map < String, Object > > set variable of this List for storing setting parameters required when constructing a single card, then splice the card parameter List using the address of the web site where the card is located, and finally complete the automated test data preparation by creating corresponding data. In the embodiment, the test cases are generated in batch by setting the parameter list, so that the generation efficiency of the test cases can be effectively improved.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, a test case preparing apparatus is provided, including:
a message obtaining module 502, configured to obtain a query message sent by a terminal.
The card search module 504 is configured to search a test task card corresponding to the service tag in the query message, where the test task card is generated based on a preset data preparation script.
And the information feedback module 506 is used for feeding back the card information of the test task card to the terminal.
The use case generating module 508 is configured to obtain card selection information and parameter setting information fed back by the terminal according to the card information, and generate a test case according to the card selection information and the parameter setting information.
In one embodiment, the system further comprises a card generation module for: acquiring a data preparation script; adding a service tag for the data preparation script; and generating a test task card according to the data preparation script added with the service tag.
In one embodiment, the card generation module is specifically configured to: packing the data preparation script into a JAR file; obtaining a script method and script parameters in a JAR file through binary analysis; setting a vacancy of the test task card according to the script method and the script parameters, and adding index information to the test task card based on the task tag to generate the test task card.
In one embodiment, the system further comprises a card updating module, configured to: acquiring a card updating message; and modifying the data preparation script corresponding to the test task card according to the card updating message.
In one embodiment, the card selection information includes card sequence information; the use case generation module 508 is specifically configured to: acquiring card sequence information and parameter setting information of the test task card fed back by the terminal according to the card information; and generating a test case according to the card sequence information and the parameter setting information.
In one embodiment, the parameter setting information includes a parameter list, and the use case generating module 508 is specifically configured to: determining a test task card according to the card selection information; and filling parameters in the parameter list into the test task card in sequence, and generating test cases in batches.
For specific limitations of the test case preparation apparatus, reference may be made to the above limitations of the test case preparation method, which are not described herein again. The modules in the test case preparation apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing test case preparation data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a test case preparation method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
acquiring a query message sent by a terminal;
searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script;
feeding back card information of the test task card to the terminal;
and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a data preparation script; adding a service tag for the data preparation script; and generating a test task card according to the data preparation script added with the service tag.
In one embodiment, the processor, when executing the computer program, further performs the steps of: packing the data preparation script into a JAR file; obtaining a script method and script parameters in a JAR file through binary analysis; setting a vacancy of the test task card according to the script method and the script parameters, and adding index information to the test task card based on the task tag to generate the test task card.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring a card updating message; and modifying the data preparation script corresponding to the test task card according to the card updating message.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring card sequence information and parameter setting information of the test task card fed back by the terminal according to the card information; and generating a test case according to the card sequence information and the parameter setting information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining a test task card according to the card selection information; and filling parameters in the parameter list into the test task card in sequence, and generating test cases in batches.
In one embodiment, a computer storage medium is provided, having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
acquiring a query message sent by a terminal;
searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script;
feeding back card information of the test task card to the terminal;
and the acquisition terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a data preparation script; adding a service tag for the data preparation script; and generating a test task card according to the data preparation script added with the service tag.
In one embodiment, the computer program when executed by the processor further performs the steps of: packing the data preparation script into a JAR file; obtaining a script method and script parameters in a JAR file through binary analysis; setting a vacancy of the test task card according to the script method and the script parameters, and adding index information to the test task card based on the task tag to generate the test task card.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a card updating message; and modifying the data preparation script corresponding to the test task card according to the card updating message.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring card sequence information and parameter setting information of the test task card fed back by the terminal according to the card information; and generating a test case according to the card sequence information and the parameter setting information.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a test task card according to the card selection information; and filling parameters in the parameter list into the test task card in sequence, and generating test cases in batches.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of test case preparation, the method comprising:
acquiring a query message;
searching a test task card corresponding to the service label in the query message, wherein the test task card is generated based on a preset data preparation script;
feeding back card information of the test task card;
obtaining card selection information and parameter setting information fed back by the card information;
and generating a test case according to the card selection information and the parameter setting information.
2. The method according to claim 1, wherein before searching for the test task card corresponding to the service tag in the query message and generating the test task card based on the preset data preparation script, the method further comprises:
acquiring a data preparation script;
adding a service tag for the data preparation script;
and generating a test task card according to the data preparation script added with the service tag.
3. The method of claim 2, wherein generating a test task card according to the data preparation script after adding the service tag comprises:
packaging the data preparation script into a JAR file;
obtaining a script method and script parameters in the JAR file through binary analysis;
setting a vacancy of the test task card according to the script method and the script parameters, and adding index information to the test task card based on the task tag to generate the test task card.
4. The method of claim 2, after generating the test task card according to the data preparation script after adding the service tag, further comprising:
acquiring a card updating message;
and modifying the data preparation script corresponding to the test task card according to the card updating message.
5. The method of claim 1, wherein the card selection information includes card sequence information;
the obtaining terminal generates a test case according to the card selection information and the parameter setting information fed back by the card information, and the card selection information and the parameter setting information comprise:
acquiring card sequence information and parameter setting information of the test task card fed back by the terminal according to the card information;
and generating a test case according to the card sequence information and the parameter setting information.
6. The method of claim 1, wherein the parameter setting information comprises a parameter list;
the generating of the test case according to the card selection information and the parameter setting information comprises:
determining a test task card according to the card selection information;
and sequentially filling the parameters in the parameter list into the test task card, and generating test cases in batches.
7. A test case preparation apparatus, the apparatus comprising:
the message acquisition module is used for acquiring a query message sent by a terminal;
the card searching module is used for searching a test task card corresponding to the service label in the query message, and the test task card is generated based on a preset data preparation script;
the information feedback module is used for feeding back the card information of the test task card to the terminal;
and the case generation module is used for acquiring card selection information and parameter setting information fed back by the terminal according to the card information and generating a test case according to the card selection information and the parameter setting information.
8. The apparatus of claim 7, further comprising a card generation module to: acquiring a data preparation script; adding a service tag for the data preparation script; and generating a test task card according to the data preparation script added with the service tag.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer storage medium on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202011489616.1A 2020-12-16 2020-12-16 Test case preparation method and device, computer equipment and storage medium Pending CN112527654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011489616.1A CN112527654A (en) 2020-12-16 2020-12-16 Test case preparation method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011489616.1A CN112527654A (en) 2020-12-16 2020-12-16 Test case preparation method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112527654A true CN112527654A (en) 2021-03-19

Family

ID=75000804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011489616.1A Pending CN112527654A (en) 2020-12-16 2020-12-16 Test case preparation method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112527654A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN107894953A (en) * 2017-11-21 2018-04-10 中国银行股份有限公司 A kind of generation method and device of Bank application test data
CN109726105A (en) * 2018-05-15 2019-05-07 平安普惠企业管理有限公司 Test data building method, device, equipment and storage medium
CN110489325A (en) * 2019-07-09 2019-11-22 微民保险代理有限公司 Vehicle insurance data test method, apparatus, test platform and vehicle insurance test macro
WO2020181839A1 (en) * 2019-03-13 2020-09-17 深圳壹账通智能科技有限公司 Page data testing method, apparatus, computer device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN107894953A (en) * 2017-11-21 2018-04-10 中国银行股份有限公司 A kind of generation method and device of Bank application test data
CN109726105A (en) * 2018-05-15 2019-05-07 平安普惠企业管理有限公司 Test data building method, device, equipment and storage medium
WO2020181839A1 (en) * 2019-03-13 2020-09-17 深圳壹账通智能科技有限公司 Page data testing method, apparatus, computer device, and storage medium
CN110489325A (en) * 2019-07-09 2019-11-22 微民保险代理有限公司 Vehicle insurance data test method, apparatus, test platform and vehicle insurance test macro

Similar Documents

Publication Publication Date Title
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN109460527B (en) Product data configuration method, device, computer equipment and storage medium
CN112380213B (en) Information acquisition method and device, computer equipment and storage medium
CN108804548B (en) Test data query method, device, computer equipment and storage medium
CN109474662B (en) Product data publishing method and device, computer equipment and storage medium
CN110751550B (en) Account checking method and device, computer equipment and storage medium
CN107798030B (en) Splitting method and device of data table
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
CN111324905A (en) Image data labeling method and device, computer equipment and storage medium
CN111078507A (en) Data monitoring method, system, computer equipment and storage medium
CN109062925A (en) Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence
CN112231224A (en) Business system testing method, device, equipment and medium based on artificial intelligence
CN112181423B (en) Project construction method and device based on configuration file, computer equipment and medium
CN112380130A (en) Application testing method and device based on call dependency relationship
CN112507729A (en) Method and device for translating text in page, computer equipment and storage medium
CN112615759A (en) Full link voltage measurement assembly, full link voltage measurement method and device
CN112100219A (en) Report generation method, device, equipment and medium based on database query processing
CN110362341B (en) Business management method, device, equipment and storage medium based on micro-service architecture
CN110134589B (en) Interface test case generation method and device, computer equipment and storage medium
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN111209061A (en) Method and device for filling in user information, computer equipment and storage medium
CN114327374A (en) Business process generation method and device and computer equipment
CN110362478A (en) Application upgrade test method, device, computer equipment and storage medium
CN115774672A (en) Test case generation method, test case generation device, server and storage medium
CN112527654A (en) Test case preparation method and device, computer 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