CN110825618B - Method and related device for generating test case - Google Patents
Method and related device for generating test case Download PDFInfo
- Publication number
- CN110825618B CN110825618B CN201910959737.9A CN201910959737A CN110825618B CN 110825618 B CN110825618 B CN 110825618B CN 201910959737 A CN201910959737 A CN 201910959737A CN 110825618 B CN110825618 B CN 110825618B
- Authority
- CN
- China
- Prior art keywords
- test
- case
- test case
- name
- operation function
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 444
- 238000000034 method Methods 0.000 title claims abstract description 49
- 230000006870 function Effects 0.000 claims abstract description 137
- 230000002452 interceptive effect Effects 0.000 claims abstract description 82
- 230000003993 interaction Effects 0.000 claims description 31
- 238000004891 communication Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 3
- 238000004458 analytical method Methods 0.000 claims description 2
- 238000012790 confirmation Methods 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 238000007726 management method Methods 0.000 description 44
- 239000000306 component Substances 0.000 description 21
- 238000012550 audit Methods 0.000 description 15
- 238000012797 qualification Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 238000011156 evaluation Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000008676 import Effects 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 239000008358 core component Substances 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application provides a method and a related device for generating test cases. A method of generating test cases comprising: recording interactive operation between a user and a server to generate an interactive operation set; determining a scripting language, compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set; inserting a call statement corresponding to the script language into the operation function set to generate a test script; analyzing the test script to obtain an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set; obtaining an example name and an expected result; and calling an interface of the test case management platform, and importing the case name, the operation step set, the test data set and the expected result into the test case management platform to generate the test case. The technical scheme of the embodiment of the application is beneficial to realizing the format standardization of the test case and improving the output efficiency of the test case.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and a related device for generating test cases.
Background
The software test refers to a process of operating a program under a specified condition to find out program errors, measure the quality of the software and evaluate whether the software can meet design requirements, and a test case is an output document of test work, which is very important in the test process and can convert the behavior of the software test into a manageable mode.
At present, test cases are often manually written, and because the number of people for writing the test cases is large, the writing modes of all people are different, the formats of the formed test cases are different, and moreover, more time is required for manually writing the test cases, so that the efficiency of test case output is low.
Disclosure of Invention
The embodiment of the application provides a method and a related device for generating test cases, which are beneficial to realizing format standardization of the test cases and improving the efficiency of test case output.
The first aspect of the present application provides a method for generating a test case, including:
recording interactive operation between a user and a server to generate an interactive operation set;
determining a scripting language, compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set;
Inserting call sentences corresponding to the script language into the operation function set to generate a test script;
analyzing the test script to obtain an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set;
obtaining an example name and an expected result;
and calling an interface of a test case management platform, and importing the case name, the operation step set, the test data set and the expected result into the test case management platform to generate a test case.
A second aspect of the present application provides an apparatus for generating a test case, the apparatus including:
the recording unit is used for recording the interactive operation between the user and the server so as to generate an interactive operation set;
the compiling unit is used for determining a scripting language, and compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set;
the script generation unit is used for intensively inserting a call statement corresponding to the script language into the operation function so as to generate a test script;
the analysis unit is used for analyzing the test script, obtaining an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set;
The acquisition unit is used for acquiring the case name and the expected result;
and the case generation unit is used for calling an interface of the test case management platform and importing the case name, the operation step set, the test data set and the expected result into the test case management platform so as to generate a test case.
A third aspect of the present application provides an electronic device comprising a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the processor, the programs comprising instructions for performing the steps of any of the methods of the first aspect of the present application.
A fourth aspect of the present application provides a computer readable storage medium storing a computer program for execution by a processor to perform some or all of the steps described in any of the methods of the first aspect of the present application.
It can be seen that, through the method and related device for generating test cases provided by the application, the interactive operation of the user and the server is recorded to generate an interactive operation set, the scripting language is determined, for each interactive operation in the interactive operation set, each interactive operation is compiled into an operation function according to the scripting language to obtain an operation function set, a call statement corresponding to the scripting language is inserted into the operation function set to generate a test script, the test script is analyzed to obtain an operation step set corresponding to the operation function set, a test data set is obtained according to parameters in the operation function set, an interface of a test case management platform is called, and the test case name, the operation step set, the test data set and the expected result are imported into the test case management platform to generate the test cases. Therefore, in the test process, only the interactive operation between the user and the server is required to be recorded, the test script is generated according to the interactive operation, then the test script is analyzed, the analyzed data is imported into the test case management platform, the test case can be automatically generated, the test case does not need to be manually written, the format standardization of the test case is facilitated by the platform for generating the test case, the test case does not need to be written for a large amount of time, and the efficiency of test case output is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system for generating test cases according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for generating test cases according to an embodiment of the present application;
FIG. 3 is a flowchart of another method for generating test cases according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an apparatus for generating test cases according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device in a hardware running environment according to an embodiment of the present application.
Detailed Description
The method and the related device for generating the test case are beneficial to realizing format standardization of the test case and improving the efficiency of test case output.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of this application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
The embodiments of the present application are described in detail below.
Referring first to fig. 1, fig. 1 is a schematic diagram of a system 100 for generating test cases according to an embodiment of the present application. The system 100 for generating the test cases comprises a terminal 101, a server 102 and a test case management platform 103, wherein the terminal 101 is in communication connection with the server 102, and the terminal 101 is in communication connection with the test case management platform 103;
the terminal 101 is configured to record an interaction operation between a user and a server, so as to generate an interaction operation set; determining a scripting language, compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set; inserting call sentences corresponding to the script language into the operation function set to generate a test script; analyzing the test script to obtain an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set; obtaining an example name and an expected result; calling an interface of a test case management platform, and importing the case name, the operation step set, the test data set and the expected result into the test case management platform to generate a test case;
A server 102 for interacting with the terminal 101;
and the test case management platform 103 is used for importing the case name, the operation step set, the test data set and the expected result to generate a test case.
In the above embodiment, the terminal 101 includes a mobile phone, a tablet computer, a palm computer, a mobile internet device or other types of terminals, the server 102 is a tested system, and the user interacts with the server 102 through the terminal 101.
It can be seen that, through the above embodiment, the terminal 101 records the interaction between the user and the server 102, generates a test script, parses the test script to obtain an operation step set and a test data set, obtains an instance name and an expected result, invokes an interface of the test case management platform 103, and imports the instance name, the operation step set, the test data set and the expected result into the test case management platform 103 to generate a test case. Therefore, in the test process, only the interactive operation between the user and the server is required to be recorded, the test script is generated according to the interactive operation, then the test script is analyzed, the analyzed data is imported into the test case management platform, the test case can be automatically generated, the test case does not need to be manually written, the format standardization of the test case is facilitated by the platform for generating the test case, the test case does not need to be written for a large amount of time, and the efficiency of test case output is improved.
Referring to fig. 2, fig. 2 is a flowchart of a method for generating test cases according to an embodiment of the present application. As shown in fig. 2, a method for generating a test case provided in this embodiment may include:
201. the terminal records the interaction operation of the user and the server to generate an interaction operation set.
The terminal comprises a mobile phone, a tablet personal computer, a palm computer, mobile internet equipment or other types of terminals, the server is a system to be tested, the user interacts with the server through the terminal, and the terminal records the interaction operation of the user and the server so as to generate an interaction operation set.
In one possible example, the terminal records the interaction between the user and the server by using a VuGen component, where the VuGen component is one of core components of LoadRunner, which is a load testing tool for predicting system behavior and performance, and determines and searches for problems by simulating how tens of millions of users implement concurrent load and real-time performance monitoring, and the LoadRunner can test the entire enterprise architecture. The enterprise can furthest shorten the test time by using LoadRunner, optimize the performance and accelerate the release period of the application system. LoadRunner can be used for automatic load testing of various architectures, and can predict system behavior and evaluate system performance.
Before recording the interactive operation between the user and the server, the terminal operates the VuGen component;
after running the VuGen component, selecting a protocol type, in a possible example, a user communicates with a server through an ICA protocol, wherein a ICA (Independent Computing Architecture) protocol is relatively saved in occupation of bandwidth resources, supports various types of terminal equipment, averagely occupies 10-20kbps network bandwidth, and has a platform independent characteristic compared with other protocols such as RDP/RDS, PCoIP, RGS;
the transaction name and the expected result are input in advance by a user, wherein the transaction name is used for generally describing the interactive operation, and the expected result is used for outputting the expected result of the current interactive operation and comprises the content of a return value, the response result of an interface, the rule compliance of the output result, the operation state in a storage table such as a database and the like, and for example, the transaction name can be used for checking whether the basic flow of the qualification audit application is normal or not.
In one possible example, the process of recording user interactions with a server using a VuGen component includes:
the VuGen component opens a browser that accesses the server with the VuGen component as a proxy, so that the VuGen component can capture interactions between the user and the server.
In one possible example, after recording is completed, the set of interactions is stored in a log.
202. The terminal determines a scripting language, and compiles each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set.
Among them, the scripting languages include C language, javaScript language, VBScript language, etc., and in most cases C language is used, javaScript language is used for some Java applications such as Java applets, etc., and VBScript language is used for applications developed in visual basic.
In one possible example, the terminal obtains a set of interactions from the log, compiles each interaction in the set of interactions into an operation function according to the scripting language, the operation functions form the set of operation functions, the operation function is used for simulating the operation or movement of the mouse and the keyboard, meanwhile, communication data in each interaction is obtained, and the communication data in each interaction is used for replacing parameters in the operation function.
After compiling each interactive operation into an operation function according to the scripting language, the operation functions corresponding to each interactive operation can be sequenced according to the sequence of operation and combined into an operation function set.
For example, the operation function web_custom_request, describes the interactive operation as: any method that allows the creation of custom HTTP requests using HTTP support; the operation function web_image describes the interactive operation as: simulating a mouse click on the defined image; the operation function web_link describes the interactive operation as follows: simulating a mouse click on the defined text link; the operation function web_subset_data describes interactive operations as follows: executing a form that is "unconditional" or "context free"; the operation function web_subset_form describes the interactive operation as follows: submitting the simulation form; the operation function web_url describes the interactive operation as follows: the URL specified by the "URL" attribute is loaded.
203. And the terminal inserts the call statement corresponding to the script language into the operation function set to generate a test script.
The operation function set can be called and executed through the calling statement, the script languages are different, and the description modes of the corresponding calling statement are also different, so that the calling statement corresponding to the script language selected by the user needs to be determined and inserted into the operation function set to generate the test script.
For example, when the scripting language is C language, the call statement may be a main function, a main function is inserted into the set of operation functions, and an operation function executing the set of operation functions may be called by the main function.
For example, when a user accesses a certain Html file, the browser first takes the Html file and then parses it. If the Html file contains information such as pictures and videos, the browser accesses the background Web server again, sequentially acquires the images and the video files, assembles the Html file with the images and the video files, and displays the assembled images and video files on a screen.
The description will be given taking the top page of the Apache server as an example. The page is composed of two parts: text file index. There are actually two request actions in one access procedure: firstly, a browser sends a request to an Apache server, and the Apache server returns index. After receiving index HTML, the built-in HTML parser starts parsing index HTML, and finds that there is one picture link apache_pb.gif, so that the browser sends request GET/cache_pb.gif again, and requests to obtain picture file apache_pb.gif.
The terminal generates an operation function describing the first page of accessing the Apache server, and because of two request actions, the two request processes of the server correspondingly generate the operation function, the obtained operation function set comprises two operation functions, the function names of the two operation functions are web_url, a call statement is inserted into the operation function set, and the call statement can be a main function, so that a test script is formed.
204. And the terminal analyzes the test script to obtain an operation step set corresponding to the operation function set, and obtains a test data set according to parameters in the operation function set.
In one possible example, the method for obtaining the test data set according to the parameters in the operation function set by the terminal analyzing the test script to obtain the operation step set corresponding to the operation function set may be:
analyzing the test script to obtain an operation function set;
acquiring a pre-stored corresponding relation between an operation function and an operation step;
aiming at each operation function in the operation function set, obtaining an operation step corresponding to each operation function according to the corresponding relation to obtain an operation step set;
parameters in each operating function are acquired to obtain a test dataset.
Specifically, the test script is composed of an operation function set, the operation function set can be obtained by analyzing the test script, the corresponding relation between the operation function and the operation steps is stored in the terminal in advance, the operation step corresponding to each operation function in the operation function set can be obtained according to the corresponding relation, each operation step forms the operation step set, the parameters in each operation function are communication data of a user and the server, the parameters in each operation function are obtained, and the parameters in each operation function form the test data set.
The test data set comprises external data which needs to be input in the execution process of the test case.
The operation step set includes operation steps required for executing the current test case, detailed description of each step needs to be explicitly given, and a tester can complete the execution of the test case according to the operation steps, for example, for a test script with a transaction name of checking whether a basic flow of "qualification audit application" is normal, the operation step set may be:
(1) Entering a main application page, and clicking a qualification audit application button;
(2) Inputting a valid item number, clicking a search button;
(3) After a new page is popped up, relevant information is input, and a 'submit' button at the bottom is clicked;
(4) The other necessary filling items are correctly input completely, and the 'save' button of the main page is clicked;
(5) Checking prompt information of a pop-up dialog box;
(6) The storage status of the application in the database table is checked.
205. The terminal obtains the case name and the expected result.
In one possible example, before recording the interaction between the user and the server, the user needs to input a transaction name and an expected result, where the transaction name generally describes the interaction, and the expected result is an expected output result of the current interaction, including content of a return value, a response result of an interface, rule compliance of the output result, and an operation state in a storage table such as a database, and the transaction name may be, for example, checking whether a basic flow of a "qualification audit application" is normal.
The test case is described by the language of the case name and the summary, the terminal obtains the transaction name and the expected result input by the user before recording, and the case name of the test case is determined to be the transaction name input by the user.
For example, for a test script whose transaction name is checking whether the "qualification audit application" basic flow is normal, the set of operational steps includes: (1) Entering a main application page, and clicking a qualification audit application button; (2) Inputting a valid item number, clicking a search button; (3) After a new page is popped up, relevant information is input, and a 'submit' button at the bottom is clicked; (4) The other necessary filling items are correctly input completely, and the 'save' button of the main page is clicked; (5) viewing popup dialog prompt information; (6) checking the storage state of the application in the database table. The corresponding use case name is used for checking whether the basic flow of the qualification audit application is normal, and the expected result can be:
(1) Entering an entry page of a qualification audit application;
(2) Entering a 'search result' page, wherein the search result corresponds to the number;
(3) Prompting success of submission;
(4) Prompting that the preservation is successful, and generating a new record in the draft;
(5) An application record is newly added in the table, and the status code is 1.
206. And the terminal calls an interface of a test case management platform, and the case name, the operation step set, the test data set and the expected result are imported into the test case management platform to generate a test case.
The Test case management platform comprises TestManager, wiki, bugzilla +test Runner, testDirector, testLink, QC and other platforms.
And calling an interface of the test case management platform, importing the case name, the operation step set, the test data set and the expected result into the test case management platform, generating the test case by the platform, and uploading the test case, wherein the test case comprises the case name, the operation step set, the test data set and the expected result.
In one possible example, the test cases also include any one or a combination of the following:
the case number is formed by combining characters and numbers, and has uniqueness and easy recognition;
the module represents a testing large class or a tested requirement, a tested module, a tested unit and the like of the current test case;
the importance level, namely the use case priority, is generally divided into high, medium and low, special items can be customized to the priority level, and testers can schedule execution time according to the importance level;
The precondition represents a precondition required when executing the current test case, and if the precondition is not satisfied, the following test step cannot be executed, and the precondition is not required for each test case, depending on the situation.
In one possible example, after generating the test case, further includes:
uploading the test cases to a test case management platform;
classifying all test cases stored in a test case management platform according to the names of the test cases to obtain M test case sets, wherein the M test case sets respectively correspond to M types, and M is a positive integer;
when a query instruction carrying a first case name is received, searching whether a first test case set matched with the first case name exists from M test case sets;
and if the first test case set exists, displaying all the test cases in the first test case set.
Specifically, the test case management platform stores a plurality of test cases, classifies the test cases according to the case names to obtain M test case sets, wherein the M test case sets correspond to M types, namely, each test case set in the M test case sets corresponds to one type of case name, when a query instruction carrying a first case name is received, whether a first test case set matched with the first case name exists in the M test case sets is searched, if the first test case set exists, all test cases in the first test case set are displayed, for example, the searched test case is of a login type, and the search case name comprises the login test case set and is displayed.
In one possible example, the method further includes:
if the first test case set does not exist, at least one case name matched with the first case name is obtained;
acquiring at least one test case set matched with at least one case name from M test case sets;
displaying all test cases in at least one test case set.
Specifically, a fuzzy search strategy can be adopted when the test cases are inquired, namely, the case names are not subjected to strong matching, but the case names matched with the case names are searched, and then the matched test case sets are searched and displayed, so that more inquiry results are obtained. For example, if the queried test case is of the "login" type, the test case set whose case name includes "login" is searched, if the test case set whose case name includes "login" is not searched, the case name "login" matching with "login" is determined, and then the test case set whose case name includes "login" is searched and displayed.
In one possible example, the method of displaying all test cases in the at least one test case set may be:
acquiring uploading time of all test cases in at least one test case set, and displaying all test cases in the at least one test case set according to the sequence of the uploading time from first to last;
Or obtaining the case names of all the test cases in the at least one test case set, calculating the similarity between the case names of all the test cases in the at least one test case set and the first case name, and displaying all the test cases in the at least one test case set according to the sequence from the high similarity to the low similarity.
Specifically, when a plurality of test cases are displayed, the order of display may be set, including:
the display sequence can be the sequence from near to far according to the uploading time, and in a plurality of test cases in the same category, the test cases with the more recent uploading time are displayed in front according to the ordering of the uploading time, so that the user can be ensured to preferentially select the test cases which are updated recently;
the display sequence may also be that, after the fuzzy search mode is selected according to the sequence from the large to the small of the similarity, the test case with the input case name being weakly matched may be displayed, and the test case with the input case name being strongly matched is displayed in front of the test case with the input case name being weakly matched, so that the user can be ensured to preferentially select the test case with the input case name being strongly matched.
In one possible example, after the test cases on the test case management platform are used for testing, the platform also supports feedback test results, namely, a user can input the test results tested according to the test cases to the test case management platform, so that the platform can compare the test results input by the user with expected results in the test cases stored in the platform, the test cases are evaluated, the validity of the test cases is evaluated, the test cases can be comprehensively evaluated through the test results fed back by a plurality of users, the test cases in the same category are ranked according to the comprehensive evaluation results, and when the subsequent user selects the test cases in the category, the test cases are ranked from good to bad according to the comprehensive evaluation results, so that the user can be ensured to preferentially select the better test cases.
It can be seen that, through the method and related device for generating test cases provided by the embodiment, the interactive operation between the user and the server is recorded to generate an interactive operation set, the scripting language is determined, each interactive operation is compiled into an operation function according to the scripting language for each interactive operation in the interactive operation set, so as to obtain an operation function set, a call statement corresponding to the scripting language is inserted into the operation function set to generate a test script, the test script is analyzed to obtain an operation step set corresponding to the operation function set, a test data set is obtained according to parameters in the operation function set, a case name and an expected result are obtained, an interface of a test case management platform is called, and the case name, the operation step set, the test data set and the expected result are imported into the test case management platform to generate the test cases. Therefore, in the test process, only the interactive operation between the user and the server is required to be recorded, the test script is generated according to the interactive operation, then the test script is analyzed, the analyzed data is imported into the test case management platform, the test case can be automatically generated, the test case does not need to be manually written, the format standardization of the test case is facilitated by the platform for generating the test case, the test case does not need to be written for a large amount of time, and the efficiency of test case output is improved.
Referring to fig. 3, fig. 3 is a flowchart of another method for generating test cases according to another embodiment of the present application. As shown in fig. 3, a method for generating a test case provided in an embodiment of the present application may include:
301. the terminal calls a script generating component, wherein the script generating component comprises a recording interface and receives a selection instruction of a user for starting a recording button displayed on the recording interface.
The terminal comprises a mobile phone, a tablet personal computer, a palm computer, mobile internet equipment or other types of terminals.
302. And the terminal opens the browser through the script generating component and accesses the server.
The server is a system to be tested, a user interacts with the server through a terminal, and the script generation component comprises a VuGen component.
303. The terminal captures the interaction operation between the user and the server through the script generating component.
Specifically, the browser is opened through the script generating component, and the browser takes the script generating component as a proxy to access the server, so that the script generating component can capture the interaction operation between the user and the server.
304. Determining a scripting language, and compiling each interactive operation into an operation function according to the scripting language by the terminal aiming at each interactive operation in the interactive operation set to obtain an operation function set.
Among them, the scripting languages include C language, javaScript language, VBScript language, etc., and in most cases C language is used, javaScript language is used for some Java applications such as Java applets, etc., and VBScript language is used for applications developed in visual basic.
In one possible example, for each interactive operation in the set of interactive operations, each interactive operation is compiled into an operation function according to a scripting language, the respective operation functions form an operation function set, the operation function is used for simulating the operation or movement of a mouse and a keyboard, and at the same time, communication data in each interactive operation is acquired, and the communication data in each interactive operation is used for replacing parameters in the operation function.
For example, the operation function web_custom_request, describes the interactive operation as: any method that allows the creation of custom HTTP requests using HTTP support; the operation function web_image describes the interactive operation as: simulating a mouse click on the defined image; the operation function web_link describes the interactive operation as follows: simulating a mouse click on the defined text link; the operation function web_subset_data describes interactive operations as follows: executing a form that is "unconditional" or "context free"; the operation function web_subset_form describes the interactive operation as follows: submitting the simulation form; the operation function web_url describes the interactive operation as follows: the URL specified by the "URL" attribute is loaded.
305. And the terminal inserts call sentences corresponding to the script language into the operation function set to generate a test script.
306. The terminal analyzes the test script to obtain an operation function set.
307. The terminal acquires a corresponding relation between a prestored operation function and an operation step.
308. Aiming at each operation function in the operation function set, the terminal obtains the operation step corresponding to each operation function according to the corresponding relation to obtain an operation step set.
The operation step set includes operation steps required for executing the current test case, detailed description of each step needs to be explicitly given, and a tester can complete the execution of the test case according to the operation steps, for example, for a test script with a transaction name of checking whether a basic flow of "qualification audit application" is normal, the operation step set may be:
(1) Entering a main application page, and clicking a qualification audit application button;
(2) Inputting a valid item number, clicking a search button;
(3) After a new page is popped up, relevant information is input, and a 'submit' button at the bottom is clicked;
(4) The other necessary filling items are correctly input completely, and the 'save' button of the main page is clicked;
(5) Checking prompt information of a pop-up dialog box;
(6) The storage status of the application in the database table is checked.
309. The terminal obtains parameters in each operation function to obtain a test data set.
The parameters in each operation function are communication data of a user and a server, the parameters in each operation function are obtained, and the parameters in each operation function form a test data set.
310. The terminal obtains the case name and the expected result.
In one possible example, before recording the interaction between the user and the server, the user needs to input a transaction name and an expected result, where the transaction name generally describes the interaction, and the expected result is an expected output result of the current interaction, including content of a return value, a response result of an interface, rule compliance of the output result, and an operation state in a storage table such as a database, and the transaction name may be, for example, checking whether a basic flow of a "qualification audit application" is normal.
The test case is described by the language of the case name and the summary, the terminal obtains the transaction name and the expected result input by the user before recording, and the case name of the test case is determined to be the transaction name input by the user.
For example, for a test script whose transaction name is checking whether the "qualification audit application" basic flow is normal, the set of operational steps includes: (1) Entering a main application page, and clicking a qualification audit application button; (2) Inputting a valid item number, clicking a search button; (3) After a new page is popped up, relevant information is input, and a 'submit' button at the bottom is clicked; (4) The other necessary filling items are correctly input completely, and the 'save' button of the main page is clicked; (5) viewing popup dialog prompt information; (6) checking the storage state of the application in the database table. The corresponding use case name is used for checking whether the basic flow of the qualification audit application is normal, and the expected result can be:
(1) Entering an entry page of a qualification audit application;
(2) Entering a 'search result' page, wherein the search result corresponds to the number;
(3) Prompting success of submission;
(4) Prompting that the preservation is successful, and generating a new record in the draft;
(5) An application record is newly added in the table, and the status code is 1.
311. The terminal calls an interface of the test case management platform, and the case name, the operation step set, the test data set and the expected result are imported into the test case management platform to generate the test case.
The Test case management platform comprises TestManager, wiki, bugzilla +test Runner, testDirector, testLink, QC and other platforms.
And calling an interface of the test case management platform, importing the case name, the operation step set, the test data set and the expected result into the test case management platform, generating the test case by the platform, and uploading the test case, wherein the test case comprises the case name, the operation step set, the test data set and the expected result.
In one possible example, the test cases also include any one or a combination of the following:
the case number is formed by combining characters and numbers, and has uniqueness and easy recognition;
The module represents a testing large class or a tested requirement, a tested module, a tested unit and the like of the current test case;
the importance level, namely the use case priority, is generally divided into high, medium and low, special items can be customized to the priority level, and testers can schedule execution time according to the importance level;
the precondition represents a precondition required when executing the current test case, and if the precondition is not satisfied, the following test step cannot be executed, and the precondition is not required for each test case, depending on the situation.
In one possible example, after generating the test case, further includes:
uploading the test cases to a test case management platform;
classifying all test cases stored in a test case management platform according to the names of the test cases to obtain M test case sets, wherein the M test case sets respectively correspond to M types, and M is a positive integer;
when a query instruction carrying a first case name is received, searching whether a first test case set matched with the first case name exists from M test case sets;
and if the first test case set exists, displaying all the test cases in the first test case set.
Specifically, the test case management platform stores a plurality of test cases, classifies the test cases according to the case names to obtain M test case sets, wherein the M test case sets correspond to M types, namely, each test case set in the M test case sets corresponds to one type of case name, when a query instruction carrying a first case name is received, whether a first test case set matched with the first case name exists in the M test case sets is searched, if the first test case set exists, all test cases in the first test case set are displayed, for example, the searched test case is of a login type, and the search case name comprises the login test case set and is displayed.
In one possible example, the method further includes:
if the first test case set does not exist, at least one case name matched with the first case name is obtained;
acquiring at least one test case set matched with at least one case name from M test case sets;
displaying all test cases in at least one test case set.
Specifically, a fuzzy search strategy can be adopted when the test cases are inquired, namely, the case names are not subjected to strong matching, but the case names matched with the case names are searched, and then the matched test case sets are searched and displayed, so that more inquiry results are obtained. For example, if the queried test case is of the "login" type, the test case set whose case name includes "login" is searched, if the test case set whose case name includes "login" is not searched, the case name "login" matching with "login" is determined, and then the test case set whose case name includes "login" is searched and displayed.
In one possible example, the method of displaying all test cases in the at least one test case set may be:
acquiring uploading time of all test cases in at least one test case set, and displaying all test cases in the at least one test case set according to the sequence of the uploading time from first to last;
or obtaining the case names of all the test cases in the at least one test case set, calculating the similarity between the case names of all the test cases in the at least one test case set and the first case name, and displaying all the test cases in the at least one test case set according to the sequence from the high similarity to the low similarity.
Specifically, when a plurality of test cases are displayed, the order of display may be set, including:
the display sequence can be the sequence from near to far according to the uploading time, and in a plurality of test cases in the same category, the test cases with the more recent uploading time are displayed in front according to the ordering of the uploading time, so that the user can be ensured to preferentially select the test cases which are updated recently;
the display sequence may also be that, after the fuzzy search mode is selected according to the sequence from the large to the small of the similarity, the test case with the input case name being weakly matched may be displayed, and the test case with the input case name being strongly matched is displayed in front of the test case with the input case name being weakly matched, so that the user can be ensured to preferentially select the test case with the input case name being strongly matched.
In one possible example, after the test cases on the test case management platform are used for testing, the platform also supports feedback test results, namely, a user can input the test results tested according to the test cases to the test case management platform, so that the platform can compare the test results input by the user with expected results in the test cases stored in the platform, the test cases are evaluated, the validity of the test cases is evaluated, the test cases can be comprehensively evaluated through the test results fed back by a plurality of users, the test cases in the same category are ranked according to the comprehensive evaluation results, and when the subsequent user selects the test cases in the category, the test cases are ranked from good to bad according to the comprehensive evaluation results, so that the user can be ensured to preferentially select the better test cases.
Referring to fig. 4, fig. 4 is a schematic diagram of an apparatus for generating test cases according to an embodiment of the present application. As shown in fig. 4, an apparatus for generating a test case provided in an embodiment of the present application may include:
a recording unit 401, configured to record an interaction between a user and a server, so as to generate an interaction set;
A compiling unit 402, configured to determine a scripting language, and compile, for each interaction in the interaction set, each interaction into an operation function according to the scripting language, so as to obtain an operation function set;
a script generating unit 403, configured to insert call statements corresponding to the scripting language into the operation function set, so as to generate a test script;
the parsing unit 404 is configured to parse the test script, obtain an operation step set corresponding to the operation function set, and obtain a test data set according to parameters in the operation function set;
an obtaining unit 405, configured to obtain a use case name and an expected result;
the case generating unit 406 is configured to invoke an interface of a test case management platform, and import the case name, the operation step set, the test data set, and the expected result into the test case management platform to generate a test case.
The specific implementation of the device for generating the test case can refer to each embodiment of the method for generating the test case, and will not be described herein.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device of a hardware running environment according to an embodiment of the present application. As shown in fig. 5, an electronic device of a hardware running environment according to an embodiment of the present application may include:
A processor 501, such as a CPU.
The memory 502 may alternatively be a high-speed RAM memory or a stable memory, such as a disk memory.
A communication interface 503 for enabling a connected communication between the processor 501 and the memory 502.
It will be appreciated by those skilled in the art that the configuration of the electronic device shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in FIG. 5, memory 502 may include an operating system, a network communication module, and a program that generates test cases. The operating system is a program that manages and controls the hardware and software resources of the electronic device, supporting the generation of test cases and the running of other software or programs. The network communication module is used to enable communication between components within the memory 502 and with other hardware and software in the electronic device.
In the electronic device shown in fig. 5, the processor 501 is configured to execute a program for generating test cases stored in the memory 502, and implement the following steps:
recording interactive operation between a user and a server to generate an interactive operation set;
Determining a scripting language, compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set;
inserting call sentences corresponding to the script language into the operation function set to generate a test script;
analyzing the test script to obtain an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set;
obtaining an example name and an expected result;
and calling an interface of a test case management platform, and importing the case name, the operation step set, the test data set and the expected result into the test case management platform to generate a test case.
The specific implementation of the electronic device may refer to each embodiment of the method for generating a test case, which is not described herein.
Another embodiment of the present application provides a computer readable storage medium storing a computer program for execution by a processor to:
recording interactive operation between a user and a server to generate an interactive operation set;
Determining a scripting language, compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set;
inserting call sentences corresponding to the script language into the operation function set to generate a test script;
analyzing the test script to obtain an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set;
obtaining an example name and an expected result;
and calling an interface of a test case management platform, and importing the case name, the operation step set, the test data set and the expected result into the test case management platform to generate a test case.
The specific implementation of the computer readable storage medium of the present application may refer to each embodiment of the method for generating a test case, which is not described herein.
It should also be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood and appreciated by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application. In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims (7)
1. A method of generating test cases, comprising:
recording interactive operation between a user and a server to generate an interactive operation set;
determining a scripting language, compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set;
inserting call sentences corresponding to the script language into the operation function set to generate a test script;
analyzing the test script to obtain an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set;
obtaining an example name and an expected result;
Calling an interface of a test case management platform, and importing the case name, the operation step set, the test data set and the expected result into the test case management platform to generate a test case, wherein the method comprises the following steps:
uploading the test case to the test case management platform;
classifying all test cases stored in the test case management platform according to the case names to obtain M test case sets, wherein the M test case sets respectively correspond to M types, and M is a positive integer;
when a query instruction carrying a first case name is received, searching whether a first test case set matched with the first case name exists in the M test case sets or not;
if the first test case set exists, displaying all test cases in the first test case set;
if the first test case set does not exist, acquiring at least one case name matched with the first case name;
acquiring at least one test case set matched with the at least one case name from the M test case sets;
displaying all test cases in the at least one test case set, including:
Acquiring uploading time of all test cases in the at least one test case set, and displaying all test cases in the at least one test case set according to the sequence of the uploading time from first to last;
or obtaining the case names of all the test cases in the at least one test case set, calculating the similarity between the case names of all the test cases in the at least one test case set and the first case name, and displaying all the test cases in the at least one test case set according to the sequence from the high similarity to the low similarity.
2. The method of claim 1, wherein the recording user interaction with the server comprises:
invoking a script generation component, wherein the script generation component comprises a recording interface;
receiving a selection instruction of a user for a start recording button displayed on the recording interface;
opening a browser through the script generation component to access the server;
and capturing interaction operation between the user and the server through the script generation component.
3. The method of claim 2, wherein the determining a scripting language comprises:
receiving a selection instruction of the user for a language selection button displayed on the recording interface, wherein one language selection button corresponds to one scripting language; determining the script language selected by the user according to the selection instruction;
Or receiving a confirmation instruction of the user to a language input box displayed on the recording interface;
and determining the scripting language in the language input box as the scripting language selected by the user.
4. A method according to any one of claims 1 to 3, wherein said parsing said test script to obtain a set of operation steps corresponding to said set of operation functions, obtaining a set of test data from parameters in said set of operation functions, comprises:
analyzing the test script to obtain the operation function set;
acquiring a pre-stored corresponding relation between an operation function and an operation step;
aiming at each operation function in the operation function set, obtaining an operation step corresponding to each operation function according to the corresponding relation to obtain the operation step set;
and acquiring parameters in each operation function to obtain the test data set.
5. An apparatus for generating test cases, the apparatus comprising:
the recording unit is used for recording the interactive operation between the user and the server so as to generate an interactive operation set;
the compiling unit is used for determining a scripting language, and compiling each interactive operation into an operation function according to the scripting language aiming at each interactive operation in the interactive operation set so as to obtain an operation function set;
The script generation unit is used for intensively inserting a call statement corresponding to the script language into the operation function so as to generate a test script;
the analysis unit is used for analyzing the test script, obtaining an operation step set corresponding to the operation function set, and obtaining a test data set according to parameters in the operation function set;
the acquisition unit is used for acquiring the case name and the expected result;
the case generation unit is used for calling an interface of the test case management platform, importing the case name, the operation step set, the test data set and the expected result into the test case management platform to generate a test case, and is specifically used for:
uploading the test case to the test case management platform;
classifying all test cases stored in the test case management platform according to the case names to obtain M test case sets, wherein the M test case sets respectively correspond to M types, and M is a positive integer;
when a query instruction carrying a first case name is received, searching whether a first test case set matched with the first case name exists in the M test case sets or not;
if the first test case set exists, displaying all test cases in the first test case set;
If the first test case set does not exist, acquiring at least one case name matched with the first case name;
acquiring at least one test case set matched with the at least one case name from the M test case sets;
displaying all test cases in the at least one test case set, including:
acquiring uploading time of all test cases in the at least one test case set, and displaying all test cases in the at least one test case set according to the sequence of the uploading time from first to last;
or obtaining the case names of all the test cases in the at least one test case set, calculating the similarity between the case names of all the test cases in the at least one test case set and the first case name, and displaying all the test cases in the at least one test case set according to the sequence from the high similarity to the low similarity.
6. An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured for execution by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-4.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910959737.9A CN110825618B (en) | 2019-10-10 | 2019-10-10 | Method and related device for generating test case |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910959737.9A CN110825618B (en) | 2019-10-10 | 2019-10-10 | Method and related device for generating test case |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110825618A CN110825618A (en) | 2020-02-21 |
CN110825618B true CN110825618B (en) | 2024-01-26 |
Family
ID=69549081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910959737.9A Active CN110825618B (en) | 2019-10-10 | 2019-10-10 | Method and related device for generating test case |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110825618B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112035373B (en) * | 2020-09-08 | 2022-10-28 | 厦门亿联网络技术股份有限公司 | Method, device, server and medium for testing basic test script |
CN113760713B (en) * | 2020-10-27 | 2024-10-18 | 北京沃东天骏信息技术有限公司 | Test method, system, computer system and medium |
CN112749048B (en) * | 2021-01-13 | 2024-10-11 | 北京开拓鸿业高科技有限公司 | Method, device, medium and equipment for teaching server pressure test |
CN114791875B (en) * | 2021-01-25 | 2024-07-02 | 阿里巴巴集团控股有限公司 | Usability testing method and device, electronic equipment and storage medium |
CN112788640B (en) * | 2021-03-04 | 2022-08-05 | 惠州Tcl移动通信有限公司 | Communication equipment testing method and device, storage medium and terminal |
US11586532B2 (en) * | 2021-07-02 | 2023-02-21 | Grammatech, Inc. | Software test environment with automated configurable harness capabilities, and associated methods and computer readable storage media |
CN113656319A (en) * | 2021-08-25 | 2021-11-16 | 广东三维家信息科技有限公司 | Regression testing method and device, electronic equipment and storage medium |
CN113836037B (en) * | 2021-10-21 | 2024-04-05 | 中国平安人寿保险股份有限公司 | Interface interaction testing method, device, equipment and storage medium |
CN116610591B (en) * | 2023-07-20 | 2023-09-12 | 金篆信科有限责任公司 | Method, device, system and medium for generating test data and call statement |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306122A (en) * | 2011-09-14 | 2012-01-04 | 北京星网锐捷网络技术有限公司 | Automated testing method and equipment |
CN104536889A (en) * | 2014-12-26 | 2015-04-22 | 北京奇虎科技有限公司 | Method and system for testing user interface, use case management platform and operating terminal |
CN107678951A (en) * | 2017-09-21 | 2018-02-09 | 平安科技(深圳)有限公司 | Test exemple automation management method, device, equipment and storage medium |
CN107704392A (en) * | 2017-09-30 | 2018-02-16 | 华为技术有限公司 | The processing method and server of a kind of test case |
CN107943683A (en) * | 2017-10-30 | 2018-04-20 | 北京奇虎科技有限公司 | A kind of test script generation method, device, electronic equipment and storage medium |
CN108345532A (en) * | 2017-01-23 | 2018-07-31 | 中国移动通信集团浙江有限公司 | A kind of automatic test cases generation method and device |
CN108459953A (en) * | 2017-02-22 | 2018-08-28 | 北京京东尚科信息技术有限公司 | test method and device |
CN109766280A (en) * | 2019-01-16 | 2019-05-17 | 广东飞企互联科技股份有限公司 | Method for testing software and software test platform |
CN109857671A (en) * | 2019-02-15 | 2019-06-07 | 广州视源电子科技股份有限公司 | Test case generation method and device, server and storage medium |
CN110232028A (en) * | 2019-06-24 | 2019-09-13 | 湖南国科微电子股份有限公司 | A kind of test exemple automation operation method and system |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9396098B2 (en) * | 2014-03-26 | 2016-07-19 | Mckesson Financial Holdings | Apparatuses, methods, and computer program products for conducting automated tests |
KR101989802B1 (en) * | 2017-02-28 | 2019-06-18 | 주식회사 스패로우 | Method for performing test using test case and apparatus for the same |
CN107133178A (en) * | 2017-05-24 | 2017-09-05 | 郑州云海信息技术有限公司 | A kind of different-format method for automatically leading in test cases |
CN109299017A (en) * | 2018-11-16 | 2019-02-01 | 郑州云海信息技术有限公司 | The method and system of test script frame are automatically generated based on test case document |
CN109783350A (en) * | 2018-12-13 | 2019-05-21 | 重庆金融资产交易所有限责任公司 | Interface test method, device and computer readable storage medium |
CN109885488B (en) * | 2019-01-30 | 2022-03-18 | 上海卫星工程研究所 | Automatic test method and system for satellite orbit calculation software driven by case table |
CN110162468B (en) * | 2019-04-26 | 2024-07-09 | 腾讯科技(深圳)有限公司 | Test method, test device and computer readable storage medium |
-
2019
- 2019-10-10 CN CN201910959737.9A patent/CN110825618B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306122A (en) * | 2011-09-14 | 2012-01-04 | 北京星网锐捷网络技术有限公司 | Automated testing method and equipment |
CN104536889A (en) * | 2014-12-26 | 2015-04-22 | 北京奇虎科技有限公司 | Method and system for testing user interface, use case management platform and operating terminal |
CN108345532A (en) * | 2017-01-23 | 2018-07-31 | 中国移动通信集团浙江有限公司 | A kind of automatic test cases generation method and device |
CN108459953A (en) * | 2017-02-22 | 2018-08-28 | 北京京东尚科信息技术有限公司 | test method and device |
CN107678951A (en) * | 2017-09-21 | 2018-02-09 | 平安科技(深圳)有限公司 | Test exemple automation management method, device, equipment and storage medium |
CN107704392A (en) * | 2017-09-30 | 2018-02-16 | 华为技术有限公司 | The processing method and server of a kind of test case |
CN107943683A (en) * | 2017-10-30 | 2018-04-20 | 北京奇虎科技有限公司 | A kind of test script generation method, device, electronic equipment and storage medium |
CN109766280A (en) * | 2019-01-16 | 2019-05-17 | 广东飞企互联科技股份有限公司 | Method for testing software and software test platform |
CN109857671A (en) * | 2019-02-15 | 2019-06-07 | 广州视源电子科技股份有限公司 | Test case generation method and device, server and storage medium |
CN110232028A (en) * | 2019-06-24 | 2019-09-13 | 湖南国科微电子股份有限公司 | A kind of test exemple automation operation method and system |
Non-Patent Citations (3)
Title |
---|
A survey on model-based testing tools for test case generation;Wenbin Li 等;《Tools and Methods of Program Analysis: 4th International Conference》;第779卷;第77-89页 * |
一种混合测试用例约简和生成的方法;李益 等;《微电子学与计算机》;第35卷(第6期);第17-21页 * |
基于漏洞约束求解的测试用例生成方法研究;王辉;《中国优秀硕士学位论文全文数据库 信息科技辑》(第6期);I138-188 * |
Also Published As
Publication number | Publication date |
---|---|
CN110825618A (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110825618B (en) | Method and related device for generating test case | |
US11074067B2 (en) | Auto-generation of application programming interface (API) documentation via implementation-neutral analysis of API traffic | |
CN111061526B (en) | Automatic test method, device, computer equipment and storage medium | |
US7877681B2 (en) | Automatic context management for web applications with client side code execution | |
US9003423B1 (en) | Dynamic browser compatibility checker | |
US7139978B2 (en) | Recording user interaction with an application | |
US7594176B1 (en) | Automated retrieval, evaluation, and presentation of context-sensitive user support | |
CN109446075B (en) | Interface testing method and device | |
US20090281819A1 (en) | Data driven component reputation | |
US9852217B2 (en) | Searching and ranking of code in videos | |
US8335845B2 (en) | Web application management method and web system | |
US20160063062A1 (en) | Code searching and ranking | |
WO2014209263A1 (en) | Contextual-based localization based on manual testing | |
US11436133B2 (en) | Comparable user interface object identifications | |
CN113760763A (en) | Software testing method, device, server and system | |
CN109240700B (en) | Key code positioning method and system | |
CN112395182A (en) | Automatic testing method, device, equipment and computer readable storage medium | |
US9104573B1 (en) | Providing relevant diagnostic information using ontology rules | |
CN117033253A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN110659191B (en) | Buried data analysis method, buried data analysis device, computer equipment and storage medium | |
CN109062784B (en) | Interface parameter constraint code entry positioning method and system | |
CN112597036B (en) | Universal baffle plate testing method and device | |
CN110515829A (en) | Application testing method, device, equipment and computer readable storage medium | |
CN114238048B (en) | Automatic testing method and system for Web front-end performance | |
CN112346991B (en) | Interface test script generation method and device |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20240102 Address after: No. 301, Building 11, Phase II, Taicang University Science Park, No. 27 Zigang Road, Science and Education New City, Taicang City, Suzhou City, Jiangsu Province, 215000 Applicant after: Tianhang Changying (Jiangsu) Technology Co.,Ltd. Address before: 400010 38 / F, 39 / F, unit 1, 99 Wuyi Road, Yuzhong District, Chongqing Applicant before: CHONGQING FINANCIAL ASSETS EXCHANGE Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |