[go: up one dir, main page]

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

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

Info

Publication number
CN111176996A
CN111176996A CN201911356748.4A CN201911356748A CN111176996A CN 111176996 A CN111176996 A CN 111176996A CN 201911356748 A CN201911356748 A CN 201911356748A CN 111176996 A CN111176996 A CN 111176996A
Authority
CN
China
Prior art keywords
test case
preset
test
analyzed
target
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
CN201911356748.4A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201911356748.4A priority Critical patent/CN111176996A/en
Publication of CN111176996A publication Critical patent/CN111176996A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

本发明公开了一种测试用例生成方法、装置、计算机设备及存储介质。所述方法包括接收客户端发送的测试用例信息;若从预设需求数据库中未获取到与所述测试用例信息对应的预设测试需求,则识别所述测试用例信息中的所述用例关键字,并根据识别到的所述用例关键字对所述测试用例信息进行解析和转换,得到与所述测试用例信息对应的目标测试用例;采用预设分词方式对所述目标测试用例进行分词处理,得到待分析字符串,并对所述待分析字符串进行合法性分析,得到分析结果;若所述分析结果为所述待分析字符串合法,则将所述目标测试用例作为可执行测试用例存储到预设数据库中。采用本方法解决了无法基于最新的软件需求生成测试用例的技术问题。

Figure 201911356748

The invention discloses a test case generation method, device, computer equipment and storage medium. The method includes receiving the test case information sent by the client; if the preset test requirement corresponding to the test case information is not obtained from the preset requirement database, identifying the use case keyword in the test case information , and analyze and convert the test case information according to the identified use case keywords to obtain the target test case corresponding to the test case information; use the preset word segmentation method to perform word segmentation processing on the target test case, Obtain the character string to be analyzed, and perform legality analysis on the character string to be analyzed to obtain an analysis result; if the analysis result is that the character string to be analyzed is legal, store the target test case as an executable test case into the preset database. The method solves the technical problem that test cases cannot be generated based on the latest software requirements.

Figure 201911356748

Description

Test case generation method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a test case generation method and apparatus, a computer device, and a storage medium.
Background
At present, with the increasing of software test items, the demand of test cases for testing the software test items is increasing.
In the conventional technology, a service person or a product manager usually determines a software requirement, then a developer develops a function of application software according to the software requirement, and finally a tester tests whether the function of the application software passes or whether a BUG exists by using a test case generated based on the software requirement. However, in the development process of application software, many times, the software requirements change frequently, and a product manager only transmits the latest software requirements to developers and does not transmit the latest software requirements to testers, under the above conditions, the testers cannot generate corresponding test cases based on the latest software requirements, so that the formulated test cases cannot meet the test requirements, that is, the accuracy of the test results of the test cases is low.
Disclosure of Invention
The embodiment of the invention provides a test case generation method and device, computer equipment and a storage medium, and aims to solve the technical problem that in the prior art, a tester cannot generate a corresponding test case based on the latest software requirement, so that the accuracy of a test result is low.
A test case generation method comprises the following steps:
receiving test case information sent by a client;
if the preset test requirement corresponding to the test case information is not acquired from a preset requirement database, identifying the case keywords in the test case information, and analyzing and converting the test case information according to the identified case keywords to obtain a target test case corresponding to the test case information;
performing word segmentation processing on the target test case by adopting a preset word segmentation mode to obtain a character string to be analyzed, and performing legality analysis on the character string to be analyzed to obtain an analysis result;
and if the analysis result is that the character string to be analyzed is legal, storing the target test case serving as an executable test case into a preset database.
A test case generation apparatus comprising:
the system comprises a case information detection module, a case information detection module and a case information processing module, wherein the case information detection module is used for receiving test case information sent by a client, and the test case information is test content generated by the client according to an obtained case keyword;
the first target test case generation module is used for identifying the case keywords in the test case information if the preset test requirement corresponding to the test case information is not acquired from a preset requirement database, and analyzing and converting the test case information according to the identified case keywords to obtain a target test case corresponding to the test case information;
the character string legal analysis module is used for carrying out word segmentation processing on the target test case by adopting a preset word segmentation mode to obtain a character string to be analyzed, and carrying out legality analysis on the character string to be analyzed to obtain an analysis result;
and the first target case processing module is used for storing the target test case serving as an executable test case into a preset database if the analysis result is that the character string to be analyzed is legal.
A computer device comprising a memory and a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the test case generation method when executing the computer program.
A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned test case generation method.
According to the test case generation method, the test case generation device, the computer equipment and the readable storage medium, the technical problem that the accuracy of a software test result is low due to the fact that the test case cannot be generated based on the latest software requirement in the traditional technology can be solved by identifying case keywords in the test case information sent by the client side and generated according to the latest software requirement, converting the test case information according to the case keywords to obtain the target test case which can be compiled and executed, and then storing the target test case into the database or directly executing the target test case after legality analysis.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram illustrating an application environment of a test case generation method according to an embodiment;
FIG. 2 is a flowchart illustrating a test case generation method according to an embodiment;
FIG. 3 is a flowchart illustrating step 204 of the test case generation method according to an embodiment;
FIG. 4 is a flowchart illustrating step 206 of the test case generation method according to another embodiment;
FIG. 5 is a schematic diagram illustrating a flow of executing a target test case in the test case generation method according to an embodiment;
FIG. 6 is a schematic diagram illustrating a flow of generating a test report in the test case generating method according to an embodiment;
FIG. 7 is a diagram of a test case generation apparatus according to an embodiment;
FIG. 8 is a diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in 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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The test case generation method provided by the embodiment of the invention can be applied to the application environment shown in fig. 1. Wherein the client 102 communicates with the server 104 via a network. The server 104 acquires test case information sent by the client 102, analyzes the test case information and extracts case keywords; and then analyzing and converting the test case information according to the extracted case keywords to obtain a target test case, and storing the target test case into a preset database when the target test case obtained by analysis is legal. Therefore, the purpose of generating the test case based on the latest software requirement is achieved. The client 102 and the server 104 are connected through a network, the network may be a wired network or a wireless network, the client 102 may be but is not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the 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 generation method is provided, which is described by taking the application of the method to the server in fig. 1 as an example, and includes the following steps:
step 202, receiving test case information sent by the client.
The test case information is the test case information of the latest software requirement filled by the test case applicant through the client, if a product manager or a service person needs to update certain software, the update information needs to be notified to a developer, but a general tester cannot know the latest software requirement, and the tester cannot make a corresponding test case according to the latest software requirement to test the requirement.
In this embodiment, a product manager or a service person may serve as an applicant to send test case information generated according to the latest software requirements to a server through a client.
And 204, if the preset test requirement corresponding to the test case information is not acquired from the preset requirement database, identifying case keywords in the test case information, and analyzing and converting the test case information according to the identified case keywords to obtain a target test case corresponding to the test case information.
The preset requirement database stores a large number of preset test requirements, the preset test requirements are test requirements corresponding to original functions of the product, or test requirements which do not correspond to the original functions of the product, and the preset requirement database generally comprises a large number of test requirements which may be required by one product to be used by an applicant.
The server side extracts case keywords capable of representing the piece of test case information from the received test case information, translates the case keywords into programming language keywords of a preset programming language, and then obtains a grammatical structure of the test case information according to the sequence of the programming language keywords in the whole test case information; and finally, obtaining a target test case corresponding to the test case information according to the syntactic structure and the programming language keywords.
Further, if the test case information is: if a is equal to b, c is assigned to 1; then the key extracted from the piece of test case information may be: if, equal, valued, and parameters a, b, c, and the number 1, etc.; in addition, if the preset programming language is Python and the recognized grammar structure is a selection structure, the piece of test case information can be converted into:
it should be noted that the specific content of the test case information and the preset programming language can be set according to actual requirements, and are not limited herein.
And step 206, performing word segmentation processing on the target test case by adopting a preset word segmentation mode to obtain a character string to be analyzed, and performing legality analysis on the character string to be analyzed to obtain an analysis result.
When the target test case is subjected to validity analysis, whether each character string in the target test case meets the regulations or not needs to be acquired; because the programming language generally adopts English, the target test case needs to be divided into independent character strings in advance by a word segmentation mode. The word segmentation method generally obtains character strings such as word groups, numbers, operation symbols and the like according to spaces, symbols and paragraphs, and then removes dry words such as stopword and the like through filtering, so as to achieve the purpose of extracting word stems.
The legality analysis is used for detecting whether the target test case is a complete executable test case.
And 208, if the analysis result is that the character string to be analyzed is legal, storing the target test case serving as an executable test case into a preset database.
If the analysis result is that the character string to be analyzed is legal, the target test case is stored in a preset database as an executable test case, and a tester can directly obtain the item mapping trial case from the preset database to compile and run.
According to the embodiment, the technical problem of low accuracy of a software test result caused by the fact that the test case cannot be generated based on the latest software requirement in the traditional technology can be solved by identifying the case keywords in the test case information sent by the client and generated according to the latest software requirement, converting the test case information according to the case keywords to obtain the target test case which can be compiled and executed, and then storing the target test case into the database or directly executing the target test case after legality analysis.
Further, after step 202, the test case generating method further includes:
and step 210, if the analysis result is that the character string to be analyzed is illegal, sending a case generation instruction to the client, wherein the case generation instruction is used for indicating the client to display reminding information for regenerating the test case information.
The server sends an instruction for regenerating test case information to the client so as to remind the applicant of mapping the generation failure and the failure reason of the test case, whether case keywords are selected again to regenerate the target test case and other information.
The embodiment can remind the applicant of the reason of the generation failure and the like after the target test case is failed to be generated, so that the applicant can obtain the failure information in time to adjust the selection of the case keywords.
Further, as shown in fig. 2, before step 202, the method for generating a test case further includes:
and 212, receiving a test case generation request sent by the client, generating a test case filling instruction according to the test case generation request, and sending the test case filling instruction to the client, wherein the test case filling instruction is used for indicating the client to generate test case information according to case keywords selected by the applicant.
Generally, a service person or a product manager initiates a request for generating a test case through a client, and if the server receives the request for generating the test case, a test case filling instruction is generated according to the request for generating the test case and is sent to the client.
When the functions of the product are various and complex, the test case generation request can include keywords of a certain or some functional modules filled by an applicant, the server extracts module keywords from the test case generation request, indexes case keywords corresponding to the module according to the module keywords, and sends the case keywords of the module to the client through a test case filling instruction. And finally, the client generates test case information according to the case keywords selected by the applicant and sends the test case information to the server.
If the product has simple functions, the server side can directly send a preset test case filling instruction to the client side according to the test case generation instruction sent by the client side, and the test case filling instruction comprises all preset case keywords for an applicant to select.
According to the embodiment, the plurality of case keywords are preset at the server, the case keywords are contained in the test case filling instruction and are sent to the client, the client generates the test case information according to the case keywords selected by the application party from the preset case keywords and sends the test case information to the server, the time for the application party to write the case keywords is reduced, and the efficiency for generating the test case information is improved.
In one embodiment, as shown in FIG. 3, step 204 comprises:
step 302, obtaining a target grammatical structure of the test case information according to the sequence of the recognized case keywords in the test case information.
Specifically, if the preset programming language is Python and the test case information is "if a is equal to b, then c is assigned to 1", then identifying each word in the test case information and obtaining a case keyword as follows:
if/if
Is equal to
Then the value is assigned
Then, according to the obtained category of the case keywords, the appearance sequence and the appearance frequency of each case keyword in the test case information, the target grammatical structure of the test case information is a selected structure in the programming language.
And 304, converting the recognized case keywords into programming language keywords, and combining the programming language keywords according to the target grammatical structure to generate the target test case.
According to a preset corresponding table, identifying the identified use case keywords as corresponding programming language keywords:
if it is "if"
Equal to ═ ═ "
Assigned as ═ i "
Wherein, then ═ print () ".
Further, the recognition result is determined by the type of the selected structure, for example, a single selection generally recognizes "then" as "print" according to a predetermined rule; if the grammar structure is a nested selection structure, the word "then" may be identified as "else … … print" or "elif … … print", or the like.
Then, combining the syntactic structure and the programming language keywords, so that the target test case corresponding to the test case information that if a is equal to b, c is assigned to 1 is as follows:
if a==b:
c=1
further, the Test case may be added to the Test module Test in the form of a function for testing:
Figure BDA0002336136180000061
the above programming language keywords, operation symbols, numbers, and the like are stored in a preset database in advance. Different types of keywords, symbols are stored in different databases, for example: programming language keywords are stored in a preset programming language database, operator symbol keywords are stored in a preset symbol database, and so on.
Specifically, assuming that the character of the test case information is a _ bc, in the preset character database, it is necessary to first obtain a storage path of a and bc corresponding to the a _ bc, and then extract the a and bc according to the storage path.
According to the embodiment, the server side can generate the target test case corresponding to the test case information by using the preset programming language by combining the case keyword and the possible grammar structure of the test case information in the programming language.
In one embodiment, as shown in FIG. 4, step 206, comprises:
and step 402, performing word segmentation processing on the target test case by adopting an NLTK word segmentation mode to obtain a character string to be analyzed.
NLTK is an efficient Python-built platform for processing natural language data, providing easy-to-use interfaces through which more than 50 corpora and lexical resources (e.g., WordNet) can be accessed, as well as a set of text processing libraries for classification, tokenization, stemming, parsing, and semantic reasoning.
When the word segmentation processing is performed on the target test case, an NLTK is generally adopted.
When obtaining each character string in the target test case (the target test case is used as a text for processing), firstly reading the target test case as a text file, and filtering special symbols in the target test case, such as a double quotation mark, a colon mark and the like; and then, carrying out word segmentation processing on the target test case based on the blank space and the line feed to obtain keywords, such as ' if ', else, print ', ' if ', and the like, and recording the frequency and the sequence of the occurrence of each keyword in the target test case.
And step 404, if the character string to be analyzed meets the preset case conditions, determining that the analysis result is that the character string to be analyzed is legal.
The server side adopts a preset word segmentation mode to segment words of the target test case, and the character string to be analyzed after the word segmentation is obtained comprises the following steps: programming keywords, operation symbols, characters, numbers and the like, and then analyzing whether the segmented programming keywords, operation symbols, characters, numbers and the like meet preset use case conditions or not; that is, whether the keywords, operation symbols, characters and numbers after word segmentation contain the basic elements of a test case is analyzed. When the characters are consistent, namely, the analyzed keywords, the operation symbols, the characters and the numbers after the word segmentation contain all basic elements of one test case, the analysis result of the target test case is determined to be that the character string to be analyzed is legal.
The script rule of a test case includes a test case number, a test title, an importance level, test input, an operation step, an expected result, correctness of grammar logic, and the like.
Further, the comparison character string matched with the character string to be analyzed can be searched from the preset operation database, and whether the character string to be analyzed is legal or not can be determined.
And if the comparison character string matched with the character string to be analyzed is found from the preset operation database, determining that the analysis result is that the character string to be analyzed is legal. The preset operation database comprises preset use case specification data such as keywords, operation symbols, punctuation mark types, writing specifications of programming languages and the like of various pre-stored programming languages. And searching a comparison character string corresponding to the operation symbol, the programming language keyword and other character strings to be analyzed, which are obtained after word segmentation, in a preset operation database by taking the operation symbol, the programming language keyword and the like character strings to be analyzed as keywords, wherein the comparison character string can be the operation symbol or the programming language keyword, and then comparing the operation symbol and the programming language keyword to obtain whether the character strings to be analyzed correspond to the comparison character string or not.
And 406, if the character string to be analyzed does not accord with the preset case condition, determining that the analysis result is that the character string to be analyzed is illegal.
And when the analyzed keywords, the operation symbols, the characters and the numbers after word segmentation do not contain all basic elements of one test case, determining that the analysis result of the target test case is that the character string to be analyzed is illegal. And when the character string to be analyzed is not matched with the character string to be analyzed, namely when the analyzed and segmented keywords, the operation symbols, the characters and the numbers do not contain all basic elements of the test case, determining that the analysis result of the target test case is that the character string to be analyzed is illegal.
Further, if the comparison character string matched with the character string to be analyzed is not found from the preset operation database, the analysis result is determined to be that the character string to be analyzed is illegal.
Specifically, If the character string to be analyzed is "If", the comparison character string is "If", and the initials of "If" and "If" are capital one and lowercase one, because of the case distinction in Python, such an illegal character string to be analyzed that does not correspond to the comparison character string in the preset operation database may be obtained.
In addition, if the test case information is not filled in the specification, the recognized grammar structure is not the expected grammar structure, for example, two "ifs" are obtained or the "if" is lacked in the same line, so that the target test case grammar obtained by the conversion is wrong, or the data overflow caused by the wrong filling of the numerical value is illegal.
The target test case generating method and the device are used for filtering the target test cases which cannot be executed or can make errors in execution by performing validity analysis on the target test cases, and are used for improving the quality of generation of the target test cases.
Further, as shown in fig. 2, after step 202 and before step 206, the test case generation method further includes:
in step 214, if the preset test requirement corresponding to the test case information is obtained from the preset requirement database, the test case of the preset test requirement is obtained from the preset target case database as the target test case.
If the preset test requirements corresponding to the test case information are obtained from the preset requirement database, the test case information filled by the representative applicant is input into the preset requirement database in advance, and the server can directly obtain the test cases with the preset test requirements from the preset target case database to serve as the target test cases. The preset target database stores test cases of each test requirement in the preset requirement database, and each test requirement is compiled through different programming languages so as to be suitable for different test environments.
It should be noted that although the preset test requirement corresponding to the test case information can be queried in the preset requirement database, in order to ensure the accuracy of the target test case, the validity of the character string after the word segmentation processing in the target test case still needs to be checked.
Further, as shown in fig. 2, before step 202, the method further includes:
step 216, receiving a test case selection request sent by the client, generating a test case selection instruction according to the test case selection request, and sending the test case selection instruction to the client, wherein the test case selection instruction includes preset test case information. Generally, a service person or a product manager can initiate a request for generating a test case through a client, and if the request is a test case selection request, the server generates a test case selection instruction according to the test case selection request and sends the test case selection instruction to the client.
When the functions of the product are various and complex, the test case selection request can include keywords of a certain or some functional modules filled by an applicant, the server extracts module keywords from the test case generation request, indexes a test requirement group corresponding to the module according to the module keywords, and sends the test requirement group corresponding to the module to the client for selection by the applicant through a test case selection instruction. The applicant selects one or more test requirements from the test requirement group according to the requirements and sends the test requirements as test case information to the server.
If the product has simple functions, the server side can directly send a preset test case selection instruction to the client side according to the test case selection instruction sent by the client side, and the test case selection instruction comprises all preset test requirements for an applicant to select.
In the embodiment, different test requirements are stored in the database in advance at the server so that one or more test requirements can be selected by the application party and sent to the server as the test case information, so that the time for the application party to write the test case information is reduced, and the efficiency of generating the test case information is improved.
In an embodiment, as shown in fig. 5, the test case generation method further includes:
step 502, if a test case browsing request sent by a client is received, a language conversion tool is obtained from a preset conversion system according to a browsing language identifier of a browsing language in the test case browsing request.
The client side sends a test case browsing request to the server side, and meanwhile, the test case browsing request carries a browsing language identifier of a client side browsing language. The method comprises the steps that a case browsing party requests to browse a test case, a test case browsing request user applies for a request instruction for browsing a target test case, a language conversion tool is a case conversion tool for converting the target test case written by other programming languages into a browsing language expression of the case browsing party, and the other programming languages are all possible programming languages except the browsing language.
Step 504, converting the target test case into the target browsing case through the obtained language conversion tool according to the grammatical structure of the browsing language.
Specifically, according to a grammatical structure and a program structure of the browsing language, a language conversion tool is adopted to convert the target test case to obtain a converted target browsing case.
Supposing that the target test case is a case compiled in C language, the language conversion tool is a Tencent cloud platform, and the target case is converted by adopting the Tencent cloud platform according to the grammatical structure of the C language to obtain the converted target case expressed by JAVA. The Tencent cloud platform is a programming language on-line conversion platform.
And step 506, sending the converted target browsing use case to a client for displaying.
The browsing case party can browse the converted target case through the client, and the browsing requirements of different browsing case parties are met.
In this embodiment, the test case written in one programming language is converted into the test case written in another programming language by the language conversion tool, so as to meet the browsing requirements of different browsing case parties.
In an embodiment, as shown in fig. 6, the test case generation method further includes:
step 602, if a preset case execution time sent by the case tester through the client is received, a spring timer is started.
Specifically, if a preset case execution time initiated by a case tester at a client is received, a spring timer is started. The case execution time is a time for starting and executing the test case, for example, the case execution time may be "16.04.2019, 10 am", the Spring timer is a timer pre-configured by a Spring frame, and the Spring frame refers to a software frame with light-weight control inversion and facing to the tangent plane.
And step 604, when the time of the spring timer is the preset case execution time, executing the target test case to obtain a case execution result.
Specifically, after the spring timer is started, the time of the timer is moved forward all the time, and when the time of the spring timer is the preset case execution time, the executable test case is executed and processed to obtain a case execution result, where the case execution result is an execution success or an execution failure.
The target test case can be executed through multiple threads, so that the case execution efficiency is improved.
Specifically, an idle thread is selected for each executable target test case from a preset thread pool.
The preset thread pool is specially used for storing idle threads, and the idle threads comprise definitions of executable use case execution interfaces. The preset thread pool can be created by Java-based ExecutorService thread pool technology.
And then, finishing the execution processing of each executable target test case by adopting each selected idle thread, wherein the idle thread comprises the definition of an executable test case execution interface.
Specifically, each selected idle thread is adopted to perform parallel execution processing on each executable target test case, and the execution processing of each executable target test case is known to be completed.
And if the selected idle thread is successfully executed, acquiring an execution result returned by the selected idle thread to obtain an execution result of each executable test case.
In this embodiment, each idle thread corresponds to an output interface, for example, each idle thread corresponds to an I/O output interface.
Step 606, obtaining the number of target test cases with successful execution, the total execution time length and the number of target test cases with failed execution as case execution results.
Specifically, the starting execution time of each target test case, that is, the case execution time of each target test case, is first obtained, then the execution end time of each target test case is recorded, finally, the case execution result is selected from the execution end times of all the target test cases as the execution end time of the target test case with successful execution, and then the difference between the execution end time and the execution start time is calculated to obtain the total execution duration.
And 608, filling the total number, success number, failure number, execution market and success ratio of the executed target test cases into a test report template to obtain a test report, and sending the test report to the client.
According to the embodiment, the test report is generated by acquiring the number of successes and failures after the target test case is executed, the execution duration of the successfully executed target test case and other data, so that a tester can intuitively browse the test report.
It should be understood that although the various steps in the flowcharts of fig. 2-6 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-6 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 performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment, as shown in fig. 7, a test case generation apparatus is provided, and the test case generation apparatus corresponds to the test case generation methods in the foregoing embodiments one to one. The test case generation apparatus includes a case information detection module 702, a first target test case generation module 704, a string synthesis analysis module 706, and a first target case processing module 708, wherein,
the use case information detection module 702 is configured to receive test case information sent by a client.
The first target test case generating module 704 is configured to identify a case keyword in the test case information if the preset test requirement corresponding to the test case information is not obtained from the preset requirement database, and analyze and convert the test case information according to the identified case keyword to obtain a target test case corresponding to the test case information.
And the character string combination analysis module 706 is configured to perform word segmentation processing on the target test case by using a preset word segmentation mode to obtain a character string to be analyzed, and perform validity analysis on the character string to be analyzed to obtain an analysis result.
The first target use case processing module 708 is configured to, if the analysis result is that the character string to be analyzed is legal, store the target test case as an executable test case in a preset database.
Further, as shown in fig. 7, the test case generation apparatus further includes:
and the second target use case processing module 710 is configured to send a use case generation instruction to the client if the analysis result is that the character string to be analyzed is illegal, where the use case generation instruction is used to instruct the client to display a prompt message for regenerating the test use case information.
Further, as shown in fig. 7, the test case generation apparatus further includes:
the case request processing module 712 is configured to receive a test case generation request sent by the client, generate a test case filling instruction according to the test case generation request, and send the test case filling instruction to the client, where the test case filling instruction is used to instruct the client to generate test case information according to a case keyword selected by the application party.
Further, as shown in fig. 7, the first target test case generation module 704 includes:
and the grammar structure recognition sub-module 7042 is configured to obtain a target grammar structure of the test case information according to the sequence of the recognized case keywords in the test case information.
And the target use case combination generation sub-module 7044 is configured to convert the recognized use case keywords into programming language keywords, and combine the programming language keywords according to the target grammatical structure to generate the target test case.
Further, as shown in fig. 7, the string combination analysis module 706 includes:
and the text word segmentation sub-module 7062 is configured to perform word segmentation on the target test case in an NLTK word segmentation manner to obtain a character string to be analyzed.
A legality analysis submodule 7064 configured to determine that the analysis result is that the character string to be analyzed is legal if the character string to be analyzed meets the preset case condition; and if the character string to be analyzed does not accord with the preset case conditions, determining that the analysis result is that the character string to be analyzed is illegal.
Further, as shown in fig. 7, the test case generation apparatus further includes:
the second target test case generating module 714 is configured to, if the preset test requirement corresponding to the test case information is obtained from the preset requirement database, obtain a test case of the preset test requirement from the preset target case database, as the target test case.
Further, as shown in fig. 7, the test case generation apparatus further includes:
the case request selecting module 716 is configured to receive a test case selection request sent by the client, generate a test case selection instruction according to the test case selection request, and send the test case selection instruction to the client, where the test case selection instruction includes preset test case information.
The test case generation device obtains the target test case which can be compiled and executed by identifying the case keywords in the test case information which is sent by the client and generated according to the latest software requirement, and then converts the test case information according to the case keywords, and stores the target test case into the database or directly executes the target test case after legality analysis, so that the technical problem that the accuracy of a software test result is low due to the fact that the test case cannot be generated based on the latest software requirement in the traditional technology can be solved.
For specific limitations of the test case generation apparatus, reference may be made to the above limitations of the test case generation method, which is not described herein again. The modules in the test case generation device may be implemented in whole or in part by software, hardware, and 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. 8. 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 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 generation method.
Those skilled in the art will appreciate that the architecture shown in fig. 8 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, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the test case generation method in the above embodiments are implemented, for example, in steps 202 to 208 shown in fig. 2, or when the processor executes the computer program, the functions of the modules/units of the test case generation apparatus in the above embodiments are implemented, for example, the functions of modules 702 to 708 shown in fig. 7. To avoid repetition, further description is omitted here.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program when executed by a processor implements the steps of the test case generation method in the above-described embodiment, for example, the steps 202 to 208 shown in fig. 2, or the processor implements the functions of the modules/units of the test case generation apparatus in the above-described embodiment, for example, the functions of the modules 702 to 708 shown in fig. 7. To avoid repetition, further description is omitted here.
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 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 (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
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-mentioned embodiments 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 those skilled in the art, without departing from the spirit and scope of the present invention, several changes, modifications and equivalent substitutions of some technical features may be made, and these changes or substitutions do not make the essence of the same technical solution depart from the spirit and scope of the technical solution of the embodiments of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1.一种测试用例生成方法,其特征在于,所述测试用例生成方法,包括:1. a test case generation method, is characterized in that, described test case generation method, comprises: 接收客户端发送的测试用例信息;Receive the test case information sent by the client; 若从预设需求数据库中未获取到与所述测试用例信息对应的预设测试需求,则识别所述测试用例信息中的用例关键字,并根据识别到的所述用例关键字对所述测试用例信息进行解析和转换,得到与所述测试用例信息对应的目标测试用例;If the preset test requirement corresponding to the test case information is not obtained from the preset requirement database, the use case keyword in the test case information is identified, and the test is performed according to the identified use case keyword. The use case information is parsed and converted to obtain a target test case corresponding to the test case information; 采用预设分词方式对所述目标测试用例进行分词处理,得到待分析字符串,并对所述待分析字符串进行合法性分析,得到分析结果;Perform word segmentation processing on the target test case by using a preset word segmentation method to obtain a character string to be analyzed, and perform legitimacy analysis on the character string to be analyzed to obtain an analysis result; 若所述分析结果为所述待分析字符串合法,则将所述目标测试用例作为可执行测试用例存储到预设数据库中。If the analysis result is that the character string to be analyzed is valid, the target test case is stored in a preset database as an executable test case. 2.根据权利要求1所述的测试用例生成方法,其特征在于,在所述根据预设分词方式对所述目标测试用例进行分词处理,得到待分析字符串,并对得到的所述待分析字符串进行合法性分析之后,所述测试用例生成方法,还包括:2. The method for generating a test case according to claim 1, characterized in that, performing word segmentation processing on the target test case according to a preset word segmentation method, obtaining a character string to be analyzed, and analyzing the obtained character string to be analyzed. After the legality analysis of the string, the test case generation method further includes: 若所述分析结果为所述待分析字符串不合法,则向所述客户端发送用例生成指令,其中,所述用例生成指令用于指示所述客户端显示重新生成测试用例信息的提醒信息。If the analysis result is that the string to be analyzed is invalid, a use case generation instruction is sent to the client, wherein the use case generation instruction is used to instruct the client to display reminder information for regenerating test case information. 3.根据权利要求1所述的测试用例生成方法,其特征在于,在所述接收客户端发送的测试用例信息之前,所述测试用例生成方法,还包括:3. The method for generating a test case according to claim 1, wherein, before the receiving the test case information sent by the client, the method for generating a test case further comprises: 接收所述客户端发送的测试用例生成请求,根据所述测试用例生成请求生成测试用例填写指令,并将所述测试用例填写指令发送至所述客户端,其中,所述测试用例填写指令用于指示所述客户端根据申请方选中的用例关键字生成所述测试用例信息。Receive a test case generation request sent by the client, generate a test case filling instruction according to the test case generation request, and send the test case filling instruction to the client, wherein the test case filling instruction is used for Instruct the client to generate the test case information according to the use case keyword selected by the applicant. 4.根据权利要求1所述的测试用例生成方法,其特征在于,所述根据识别到的所述用例关键字对所述测试用例信息进行解析和转换,得到与所述测试用例信息对应的目标测试用例,包括:4 . The test case generation method according to claim 1 , wherein the test case information is parsed and converted according to the identified use case keywords to obtain a target corresponding to the test case information. 5 . Test cases, including: 根据识别到的所述用例关键字在所述测试用例信息中的先后顺序,得到所述测试用例信息的目标语法结构;Obtain the target grammatical structure of the test case information according to the identified sequence of the use case keywords in the test case information; 将识别到的所述用例关键字转换成编程语言关键字,并根据所述目标语法结构组合所述编程语言关键字,生成所述目标测试用例。Convert the identified use case keywords into programming language keywords, and combine the programming language keywords according to the target syntax structure to generate the target test case. 5.根据权利要求1所述的测试用例生成方法,其特征在于,所述采用预设分词方式对所述目标测试用例进行分词处理,得到待分析字符串,并对得到的所述待分析字符串进行合法性分析,得到分析结果,包括:5. The method for generating a test case according to claim 1, wherein the target test case is subjected to word segmentation by using a preset word segmentation method to obtain a character string to be analyzed, and the obtained character to be analyzed is analyzed. Perform legality analysis on the string to obtain analysis results, including: 采用NLTK分词方式对所述目标测试用例进行分词处理,得到所述待分析字符串;Using NLTK word segmentation method to perform word segmentation processing on the target test case to obtain the to-be-analyzed character string; 若所述待分析字符串符合预设用例条件,则确认所述分析结果为所述待分析字符串合法;If the to-be-analyzed string meets the preset use case conditions, confirming that the analysis result is that the to-be-analyzed string is legal; 若所述待分析字符串不符合预设用例条件,则确认所述分析结果为所述待分析字符串不合法。If the string to be analyzed does not meet the preset use case conditions, it is confirmed that the analysis result is that the string to be analyzed is invalid. 6.根据权利要求1所述的测试用例生成方法,其特征在于,在所述接收客户端发送的测试用例信息之后,并且在所述采用预设分词方式对所述目标测试用例进行分词处理,得到待分析字符串,并对所述待分析字符串进行合法性分析,得到分析结果之前,所述测试用例生成方法,还包括:6. The method for generating a test case according to claim 1, characterized in that, after said receiving the test case information sent by the client, and in said adopting a preset word segmentation method to perform word segmentation on the target test case, Obtaining the character string to be analyzed, and performing legality analysis on the character string to be analyzed, and before obtaining the analysis result, the test case generation method further includes: 若从预设需求数据库中获取到与所述测试用例信息对应的预设测试需求,则从预设目标用例数据库中获取所述预设测试需求的测试用例,作为所述目标测试用例。If the preset test requirement corresponding to the test case information is acquired from the preset requirement database, the test case of the preset test requirement is acquired from the preset target use case database as the target test case. 7.根据权利要求1所述的测试用例生成方法,其特征在于,在所述接收客户端发送的测试用例信息之前,所述测试用例生成方法,还包括:7. The method for generating a test case according to claim 1, wherein before the receiving the test case information sent by the client, the method for generating a test case further comprises: 接收所述客户端发送的测试用例选择请求,根据所述测试用例选择请求生成测试用例选择指令,并将所述测试用例选择指令发送至所述客户端,其中,所述测试用例选择指令中包括预设的所述测试用例信息。Receive a test case selection request sent by the client, generate a test case selection instruction according to the test case selection request, and send the test case selection instruction to the client, wherein the test case selection instruction includes The preset test case information. 8.一种测试用例生成装置,其特征在于,所述测试用例生成装置,包括:8. A test case generation device, wherein the test case generation device comprises: 用例信息检测模块,用于接收客户端发送的测试用例信息;The use case information detection module is used to receive the test case information sent by the client; 第一目标测试用例生成模块,用于若从预设需求数据库中未获取到与所述测试用例信息对应的预设测试需求,则识别所述测试用例信息中的用例关键字,并根据识别到的所述用例关键字对所述测试用例信息进行解析和转换,得到与所述测试用例信息对应的目标测试用例;The first target test case generation module is configured to identify the use case keyword in the test case information if the preset test requirement corresponding to the test case information is not obtained from the preset requirement database, and identify the use case keyword according to the identified test case information. parses and converts the test case information by using the use case keyword, and obtains the target test case corresponding to the test case information; 字符串合法分析模块,用于采用预设分词方式对所述目标测试用例进行分词处理,得到待分析字符串,并对所述待分析字符串进行合法性分析,得到分析结果;A string legal analysis module, configured to perform word segmentation processing on the target test case by using a preset word segmentation method to obtain a string to be analyzed, and to analyze the legality of the string to be analyzed to obtain an analysis result; 第一目标用例处理模块,用于若所述分析结果为所述待分析字符串合法,则将所述目标测试用例作为可执行测试用例存储到预设数据库中。The first target use case processing module is configured to store the target test case as an executable test case in a preset database if the analysis result is that the character string to be analyzed is valid. 9.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述的测试用例生成方法。9. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the test case described in any one of claims 1 to 7 when the processor executes the computer program generate method. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的测试用例生成方法。10 . A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the method for generating a test case according to any one of claims 1 to 7 is implemented.
CN201911356748.4A 2019-12-25 2019-12-25 Test case generation method, device, computer equipment and storage medium Pending CN111176996A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911356748.4A CN111176996A (en) 2019-12-25 2019-12-25 Test case generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911356748.4A CN111176996A (en) 2019-12-25 2019-12-25 Test case generation method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111176996A true CN111176996A (en) 2020-05-19

Family

ID=70654042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911356748.4A Pending CN111176996A (en) 2019-12-25 2019-12-25 Test case generation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111176996A (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949552A (en) * 2020-09-03 2020-11-17 Oppo广东移动通信有限公司 Test case set generation method, device, computer equipment and storage medium
CN112181849A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Test case identification method, device, equipment and storage medium
CN112416778A (en) * 2020-11-24 2021-02-26 北京金山云网络技术有限公司 Test case recommendation method and device and electronic equipment
CN112416751A (en) * 2020-10-15 2021-02-26 北京达佳互联信息技术有限公司 Processing method and device for interface automation test and storage medium
CN112433940A (en) * 2020-11-19 2021-03-02 腾讯科技(深圳)有限公司 Software development kit SDK testing method and related equipment
CN112579474A (en) * 2020-12-30 2021-03-30 中国科学院长春光学精密机械与物理研究所 Software test requirement extraction system and test requirement extraction method thereof
CN112597034A (en) * 2020-12-25 2021-04-02 深圳证券交易所 Test case generation method and device and computer readable storage medium
CN113282519A (en) * 2021-07-22 2021-08-20 北京关键科技股份有限公司 Case data recommendation method, system and medium for software testing
CN113535563A (en) * 2021-07-19 2021-10-22 上海复深蓝软件股份有限公司 Test case duplication removing method and device, computer equipment and storage medium
CN113704083A (en) * 2021-03-09 2021-11-26 腾讯科技(深圳)有限公司 Test case generation method and device, storage medium and electronic equipment
CN114168488A (en) * 2021-12-29 2022-03-11 中国邮政储蓄银行股份有限公司 Method, device, computer readable storage medium and processor for automated testing
CN114297081A (en) * 2021-12-30 2022-04-08 深圳市捷顺科技实业股份有限公司 Automatic testing method and related equipment
CN114328192A (en) * 2021-12-14 2022-04-12 中国平安财产保险股份有限公司 Intelligent configuration method, device and equipment of application system and storage medium
CN114661906A (en) * 2022-03-15 2022-06-24 腾讯科技(深圳)有限公司 Entity mention classification method and device, electronic equipment and storage medium
CN114817004A (en) * 2022-04-07 2022-07-29 中国联合网络通信集团有限公司 Test case generation method, apparatus, device and readable storage medium
WO2022242923A1 (en) 2021-05-15 2022-11-24 Telefonaktiebolaget Lm Ericsson (Publ) Artificial intelligence based cognitive test script generation
CN117349188A (en) * 2023-12-05 2024-01-05 摩斯智联科技有限公司 Test case generation method and device based on large model
US20240012840A1 (en) * 2022-07-05 2024-01-11 Elm Company Method and apparatus with arabic information extraction and semantic search
CN117472727A (en) * 2022-11-09 2024-01-30 上海天好信息技术股份有限公司 A cloud computing-based software regression test case screening method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN109634847A (en) * 2018-11-21 2019-04-16 广州小鹏汽车科技有限公司 Embedded product automated testing method and system
CN110399294A (en) * 2019-06-26 2019-11-01 平安科技(深圳)有限公司 Method for generating test case, device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN109634847A (en) * 2018-11-21 2019-04-16 广州小鹏汽车科技有限公司 Embedded product automated testing method and system
CN110399294A (en) * 2019-06-26 2019-11-01 平安科技(深圳)有限公司 Method for generating test case, device, computer equipment and storage medium

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949552A (en) * 2020-09-03 2020-11-17 Oppo广东移动通信有限公司 Test case set generation method, device, computer equipment and storage medium
CN112416751B (en) * 2020-10-15 2024-12-31 北京达佳互联信息技术有限公司 Processing method, device and storage medium for interface automation testing
CN112416751A (en) * 2020-10-15 2021-02-26 北京达佳互联信息技术有限公司 Processing method and device for interface automation test and storage medium
CN112181849A (en) * 2020-10-23 2021-01-05 网易(杭州)网络有限公司 Test case identification method, device, equipment and storage medium
CN112181849B (en) * 2020-10-23 2023-07-25 网易(杭州)网络有限公司 Test case identification method, device, equipment and storage medium
CN112433940A (en) * 2020-11-19 2021-03-02 腾讯科技(深圳)有限公司 Software development kit SDK testing method and related equipment
CN112416778A (en) * 2020-11-24 2021-02-26 北京金山云网络技术有限公司 Test case recommendation method and device and electronic equipment
CN112597034A (en) * 2020-12-25 2021-04-02 深圳证券交易所 Test case generation method and device and computer readable storage medium
CN112579474A (en) * 2020-12-30 2021-03-30 中国科学院长春光学精密机械与物理研究所 Software test requirement extraction system and test requirement extraction method thereof
CN113704083A (en) * 2021-03-09 2021-11-26 腾讯科技(深圳)有限公司 Test case generation method and device, storage medium and electronic equipment
WO2022242923A1 (en) 2021-05-15 2022-11-24 Telefonaktiebolaget Lm Ericsson (Publ) Artificial intelligence based cognitive test script generation
CN113535563A (en) * 2021-07-19 2021-10-22 上海复深蓝软件股份有限公司 Test case duplication removing method and device, computer equipment and storage medium
CN113282519A (en) * 2021-07-22 2021-08-20 北京关键科技股份有限公司 Case data recommendation method, system and medium for software testing
CN114328192A (en) * 2021-12-14 2022-04-12 中国平安财产保险股份有限公司 Intelligent configuration method, device and equipment of application system and storage medium
CN114328192B (en) * 2021-12-14 2024-12-10 中国平安财产保险股份有限公司 Intelligent configuration method, device, equipment and storage medium of application system
CN114168488A (en) * 2021-12-29 2022-03-11 中国邮政储蓄银行股份有限公司 Method, device, computer readable storage medium and processor for automated testing
CN114297081A (en) * 2021-12-30 2022-04-08 深圳市捷顺科技实业股份有限公司 Automatic testing method and related equipment
CN114661906A (en) * 2022-03-15 2022-06-24 腾讯科技(深圳)有限公司 Entity mention classification method and device, electronic equipment and storage medium
CN114817004A (en) * 2022-04-07 2022-07-29 中国联合网络通信集团有限公司 Test case generation method, apparatus, device and readable storage medium
CN114817004B (en) * 2022-04-07 2024-05-17 中国联合网络通信集团有限公司 Test case generation method, device, equipment and readable storage medium
US20240012840A1 (en) * 2022-07-05 2024-01-11 Elm Company Method and apparatus with arabic information extraction and semantic search
US12499142B2 (en) * 2022-07-05 2025-12-16 Elm Method and apparatus with Arabic information extraction and semantic search
CN117472727A (en) * 2022-11-09 2024-01-30 上海天好信息技术股份有限公司 A cloud computing-based software regression test case screening method
CN117472727B (en) * 2022-11-09 2024-12-17 上海天好信息技术股份有限公司 Software regression test case screening method based on cloud computing
CN117349188A (en) * 2023-12-05 2024-01-05 摩斯智联科技有限公司 Test case generation method and device based on large model
CN117349188B (en) * 2023-12-05 2024-03-15 摩斯智联科技有限公司 Test case generation method and device based on large model

Similar Documents

Publication Publication Date Title
CN111176996A (en) Test case generation method, device, computer equipment and storage medium
US20230418566A1 (en) Programmatically generating evaluation data sets for code generation models
CN111680634A (en) Document file processing method and device, computer equipment and storage medium
CN111459977B (en) Conversion of natural language queries
CN115081440B (en) Method, device and device for identifying variant words in text and extracting original sensitive words
CN110955608B (en) Test data processing method, device, computer equipment and storage medium
US20230418567A1 (en) Constrained prefix matching for generating next token predictions
CN111881183B (en) Enterprise name matching method and device, storage medium and electronic equipment
CN113961768B (en) Sensitive word detection method and device, computer equipment and storage medium
KR20190095099A (en) Transaction system error detection method, apparatus, storage medium and computer device
CN111159016A (en) Standard detection method and device
CN114968725B (en) Task dependency correction method, device, computer equipment and storage medium
US10782942B1 (en) Rapid onboarding of data from diverse data sources into standardized objects with parser and unit test generation
CN116166236A (en) Code recommendation method, device, computer equipment and storage medium
CN108399125A (en) Automated testing method, device, computer equipment and storage medium
CN109344385B (en) Natural language processing method, apparatus, computer equipment and storage medium
US20180314683A1 (en) Method and device for processing natural language
RU2693328C2 (en) Methods and systems for generating a replacement request for a user input request
CN120029604A (en) Training data generation method, device, equipment and medium
CN113505889A (en) Processing method and device of atlas knowledge base, computer equipment and storage medium
CN118467334A (en) Conversion accuracy verification method, system and terminal for multilingual vocabulary strips
US10268674B2 (en) Linguistic intelligence using language validator
CN113485715B (en) Code prompting method and system based on data center platform and data computing platform
CN113176878B (en) Automatic query method, device and equipment
CN105787032B (en) The generation method and device of snapshots of web pages

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200519

WD01 Invention patent application deemed withdrawn after publication