Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is further detailed explanation.
Generation method embodiment one
Reference picture 1, gives a kind of step flow chart of the method for generation test case of the offer of the embodiment of the present application one,
Specifically it may include steps of:
Step 101, the data structure for defining according to the interface document of code to be measured message, generate source template;
The embodiment of the present invention can apply in unit testing, for shortening when writing of test case in unit testing
Between, so as to reduce corresponding testing cost.
In unit testing, test case can specifically include:The test vector of one or more checkpoints, test vector
Substantially it is made up of the configuration of message and message, and the data structure of message needed for test can be defined in interface document, therefore
Can according to these corresponding source templates of data structure building test case, wherein, above-mentioned interface document generally falls into tested
A part for the design documentation of code, above-mentioned generating process is used to being converted to interface document into the message mould for being easy to machine parsing
Plate, above-mentioned source template can be using the language description for being easy to machine parsing.
In the specific implementation, interface document can be parsed, the data structure of acquisition corresponding message is simultaneously converted to standard
The source template of JSON (JavaScript object representation, JavaScript Object Notation) form;Wherein, JSON
Form is preferable data interchange language, had both been easy to people and has read and write, while being also easy to machine parsing and generating.
For example, in a kind of application example of the present invention, defined in interface document two message A_TO_B_MSG_1 and
B_TO_A_MSG_2 and corresponding structure, then, the template of two message can be included in the source template of generation, with side
Just step 102 two message defined in excel forms.
Step 102, the configuration that message and message are listed according to testing example design in excel forms;
Because test case refers to one group of test input, execution condition and the expection developed for the specific objective of unit testing
As a result, therefore in a kind of application example of the present invention, it is above-mentioned according to testing example design listed in excel forms message and
The step of configuration of message, it can specifically include:Message sequence (such as message 1, message 2 according to as defined in testing example design
With message 3), the configuration of message and message is listed in excel forms.Specifically, input can be listed in excel forms to disappear
The parameter of breath as input test vector, and list expect output message parameter as checkpoint.
Message or output message are either inputted, the parameter of above-mentioned message can specifically include one kind in following parameter
Or it is a variety of:
1st, message name;
2nd, message direction;Input/output,
3rd, sequential;For input message, it is possible to specify at the time of the message is sent;For output message, it is possible to specify the phase
Hope at the time of the message is sent or the period.
By taking above-mentioned two message A_TO_B_MSG_1 and B_TO_A_MSG_2 as an example, the embodiment of the present invention can be in excel
Automatic setting includes the combobox of the message name of two message in form, then, tester only need to be in combobox
Choose one and be used as message name.
Step 103, the VBA scripts called in above-mentioned excel forms, above-mentioned message and the copy of above-mentioned source template are entered
Row link;
VBA (Visual Basic macrolanguages, Visual Basic for Applications) is Visual Basic
A kind of macrolanguage, is that Microsoft develops the programming language that general automation task is performed in its multipad.
In practical application, the VBA scripts in excel forms can be called to work, the message in above-mentioned excel forms is read and parse,
And linked above-mentioned message and the copy of above-mentioned source template.The copy of above-mentioned source template namely above-mentioned source template
Copy.
In a kind of alternative embodiment of the present invention, the above method can also include:Above-mentioned interface document is parsed, obtains each
The mapping table of intermodule message to be measured, above-mentioned mapping table can be used in storage message name, message id (Identity) and message
Hold the mapping relations between structure name.During writing test case in excel forms, tester is more desirable to
Certain message is characterized by message name, rather than remembers the message id of this message, therefore it can be newly-built in excel forms
This message, and by being provided with the message name of this message.So, step 103 is in above-mentioned excel forms are called
During VBA scripts, the VBA scripts can be found in excel forms by inquiring about above-mentioned mapping table in the corresponding message of message name
Hold structure file, so as to be this message relating to corresponding source template.The corresponding message id of message name also can be by simultaneously
Preserve, used in the implementation procedure of test case, such as in the implementation procedure of test case can according to message id come
Messaging.
Step 104, the configuration file for configuring the above-mentioned test case of generation according to above-mentioned message;
Above-mentioned configuration file specifically includes the test vector of above-mentioned message to perform in testing, and above-mentioned test vector can be with
For JSON forms;Also, because step 102 only lists the parameter of message, the content without filling in message, therefore, this
When configuration file be blank configuration file.
Run in the specific implementation, some VBA scripts can be developed in above-mentioned excel forms as grand, pin VBA
Originally the test vector template of JSON forms can according to the message listed in excel, be automatically generated.
Reference picture 2, shows a kind of example of the message of test case defined in excel forms of the present invention, wherein,
It can be arranged by writing the left side 5 in above-mentioned excel forms to define message and corresponding sequential, then call above-mentioned excel
VBA scripts in form generate the corresponding empty configuration file of every message.
Step 105, the content for filling in the copy of above-mentioned source template above-mentioned message.
For input message, the content of message can include:The value of each field of message;For output message, message
Content can include:The output valve of desired each field, it can also be provided that particular value makes script client not check this
Field.After the content that input message and output message are filled in the copy of above-mentioned source template, it is possible to complete a test
Use-case is write.;
To sum up, the embodiment of the present invention, only need to be according to testing example design in excel during test case is write
The configuration of message and message is listed in form, and fills in the copy of source template the content of above-mentioned message, it is possible to be complete
Into writing for test case;It is easy to the data interchange language that people reads and write because above-mentioned source template can be used, therefore this hair
Bright embodiment without excessive programming experience and to being tested the understanding of code, therefore reduce generation test case threshold and
Complexity, so that shorten test case writes the time;Also, the test case of the embodiment of the present invention depends only on interface
Document, therefore be separate with tested written in code, therefore will not depend upon code realization, be truly realized realize it is unrelated,
Enhance the validity of test.
Generation method embodiment two
Reference picture 3, gives a kind of step flow chart of the method for generation test case of the offer of the embodiment of the present application two,
Specifically it may include steps of:
Step 301, the data structure for defining according to the interface document of code to be measured message, generate source template;
Step 302, the configuration that message and message are listed according to testing example design in excel forms;
Wherein, it is above-mentioned message and message are listed in excel forms according to testing example design configuration the step of, tool
Body can include:
Sub-step 321, list according to the testing example design that subprocess includes in excel forms it is each described in disappear
Breath, and the combination defined in excel forms between each subprocess, with by way of splicing by some sons
Process is spliced into a complete test case;
Step 303, the VBA scripts called in above-mentioned excel forms, above-mentioned message and the copy of above-mentioned source template are entered
Row link;
Step 304, the configuration file for configuring the above-mentioned test case of generation according to above-mentioned message;
Step 305, the content for filling in the copy of above-mentioned source template above-mentioned message.
In unit testing, in order to detect influence of the different parameters to code, it usually needs write some similar surveys
Inevitably deposited between the subprocess of the test case similar with these between subprocess in example on probation, same test case
In situation about repeating, that is, existing test case needs repeatedly to write the identical subprocess of similar test case.
The repetition sex chromosome mosaicism write for existing test case, the embodiment of the present invention during test case is write,
Each message that subprocess is included only need to be listed in excel forms according to the testing example design, and in excel tables
Combination defined in lattice between each subprocess, so that some subprocess are spliced into one by way of splicing
Complete test case, that is, when writing test case, it is only necessary to write subprocess, and to these subprocess carry out groups
Close, you can form complete test case, therefore solve the repetition sex chromosome mosaicism that test case is write, reduce generation test and use
The workload of example.
There is provided herein and fill in an example of subprocess, specifically, can be referred in excel forms with above-mentioned source template
Fixed form lists the sub-process name for needing to add successively, and starting and the terminating point of each subprocess are set respectively, and individually
List the message content for needing to adjust.
Reference picture 4, shows a kind of example of the message of test case defined in excel forms of the present invention, wherein,
The 5th in above-mentioned excel forms, 6,8 rows be used to represent subprocess and corresponding combination, the above-mentioned 5th, 6, the combination of 8 rows can spell
A complete process is connected in, for tester, the corresponding row of subprocess is arranged in above-mentioned excel forms can be real
The combination of existing subprocess.Wherein, the combination of subprocess can specifically include:Sequential concatenation mode and nested mode, etc..
To sum up, the present embodiment, which can be provided in excel forms, specifies some subprocess and the sequential between them to close
The interface of system, it is possible to the message of above-mentioned excel forms middle finger sub-process is stitched together by certain rule automatically, as one
Individual new test case, therefore the repetition sex chromosome mosaicism that test case is write is solved, reduce the workload of generation test case.
In addition, in a kind of alternative embodiment of the present invention, when splicing subprocess, can also allow for disappearing in sub-process
The field of breath is adjusted, and makes the splicing of subprocess and has greater flexibility, and this causes tester realizing some bases
Test case after, it is not necessary to write, only can just be realized greatly by the combination of subprocess in the basic test case again
The extension use-case of amount.
Generation method embodiment three
The method of the generation test case of the present embodiment can be with the basis of above-mentioned embodiment illustrated in fig. 1, further
Including following optional technical scheme.
Specifically, the above method of the present embodiment can also include:Enumeration type in above-mentioned interface document and grand
Definition, the corresponding relation of enumeration type and macrodefinition and numerical value is stored to dictionary;
Then it is above-mentioned above-mentioned message is filled in the copy of above-mentioned source template content the step of, can specifically include:Make
The content of above-mentioned message is filled in the enumeration type and macrodefinition in above-mentioned dictionary.
In the present embodiment, dictionary can be used for the corresponding relation for storing macrodefinition and numerical value, so, write test case
When, the macrodefinition in above-mentioned dictionary can be directly used, without writing specific numerical value.For example, the span of certain field includes:
0 (CLOSE) and 1 (OPEN), when dictionary is not used, can write 0/1;And after using dictionary, can directly write CLOSE/
OPEN, thinks that more intuitive data are presented in tester.
To sum up, the present embodiment fills in test case using the enumeration type and macrodefinition in above-mentioned dictionary, can be test
More intuitive data are presented in personnel.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented
Necessary to example.
The structure chart of the device embodiment one for the generation test case that reference picture 5 is provided there is provided the embodiment of the present application, tool
Body can include:Template generation module 501, message column go out module 502, link module 503, file generating module 504 and content
Fill in module 505;
Wherein, above-mentioned template generation module 501, the data knot for defining message according to the interface document of code to be measured
Structure, generates source template;
Above-mentioned message column goes out module 502, for listing message and message in excel forms according to testing example design
Configuration;
Above-mentioned link module 503, for calling the VBA scripts in above-mentioned excel forms, by above-mentioned message and above-mentioned message
The copy of template is linked;
Above-mentioned file generating module 504, the configuration file for generating above-mentioned test case according to the configuration of above-mentioned message;
And
The above fills in module 505, the content for filling in above-mentioned message in the copy of above-mentioned source template.
In a kind of alternative embodiment of the present invention, above-mentioned message column goes out module, specifically for according to the test case
Design each message that subprocess is included, and each subprocess defined in excel forms are listed in excel forms
Between combination, so that some subprocess are spliced into a complete test case by way of splicing, that is,
When writing test case, it is only necessary to write subprocess, and these subprocess are combined, you can form complete test
Use-case, therefore the repetition sex chromosome mosaicism that test case is write is solved, reduce the workload of generation test case
The present embodiment need to only be arranged during test case is write according to testing example design in excel forms
The configuration of outbound message and message, and fill in the copy of source template the content of above-mentioned message, it is possible to complete test and use
Example write;It is easy to the data interchange language that people reads and write because above-mentioned source template can be used, therefore the embodiment of the present invention
Without excessive programming experience and to being tested the understanding of code, therefore reduce the threshold and complexity of generation test case,
The time is write so as to shorten test case;Also, the test case of the embodiment of the present invention depends only on interface document, because
This and tested written in code are separate, therefore will not depend upon code realization, are truly realized and realize unrelated, enhance survey
The validity of examination.
The structure chart of the device embodiment two for the generation test case that reference picture 6 is provided there is provided the embodiment of the present application, tool
Body can include:Template generation module 601, message column go out module 602, link module 603, file generating module 604, content and filled out
Writing module 605 and mapping table acquisition module 606;
Wherein, above-mentioned template generation module 601, the data knot for defining message according to the interface document of code to be measured
Structure, generates source template;Wherein, the multiple modules to be measured of the code correspondence to be measured;
Above-mentioned message column goes out module 602, for listing message and message in excel forms according to testing example design
Configuration;
Above-mentioned mapping table acquisition module 606, for parsing above-mentioned interface document, obtains the mapping of each intermodule message to be measured
Table, wherein, above-mentioned mapping table is used to store the mapping relations between message name, message id and message content structure name;
Above-mentioned link module 603, the corresponding message content knot of message in excel forms is obtained for inquiring about above-mentioned mapping table
Structure body name, and be the corresponding source template of the above-mentioned message content structure name of above-mentioned message relating;
Above-mentioned file generating module 604, the configuration file for generating above-mentioned test case according to the configuration of above-mentioned message;
And
The above fills in module 605, the content for filling in above-mentioned message in the copy of above-mentioned source template.
To sum up, the present embodiment is in the VBA scripts in calling above-mentioned excel forms, and the VBA scripts can be by inquiry
State mapping table to find the corresponding message content structure file of message name in excel forms, so as to arrive for this message relating
Corresponding source template, therefore, it is possible to rise to the convenience of above-mentioned message relating source template.
The structure chart of the device embodiment three for the generation test case that reference picture 7 is provided there is provided the embodiment of the present application, tool
Body can include:Template generation module 701, message column go out module 702, link module 703, file generating module 704, content and filled out
Writing module 705 and memory module 706 and dictionary 707;
Wherein, above-mentioned template generation module 701, the data knot for defining message according to the interface document of code to be measured
Structure, generates source template;
Above-mentioned memory module 706, for the enumeration type and macrodefinition in the interface document, by enumeration type with
The corresponding relation and macrodefinition of numerical value and the corresponding relation of numerical value are stored to above-mentioned dictionary 707;
Above-mentioned message column goes out module 702, for listing message and message in excel forms according to testing example design
Configuration;
Above-mentioned link module 703, for calling the VBA scripts in above-mentioned excel forms, by above-mentioned message and above-mentioned message
The copy of template is linked;
Above-mentioned file generating module 704, the configuration file for generating above-mentioned test case according to the configuration of above-mentioned message;
And
The above fills in module 705, for the corresponding relation according to enumeration type in above-mentioned dictionary and numerical value and grand fixed
Justice and the corresponding relation of numerical value, fill in the corresponding enumeration type of content or macrodefinition of the message.
The present embodiment fills in test case using the enumeration type and macrodefinition in above-mentioned dictionary, can be in for tester
Existing more intuitive data.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
The structure chart for the test system embodiment that reference picture 8 is provided there is provided the embodiment of the present application, can specifically include:
Test script client 801, test agent server 802 and tested code device 803;
Wherein, above-mentioned test script client 801 can be used for generation test case and implementation of test cases;
Above-mentioned test agent server 802 can be used for entering line number with test script client 801 and tested code device 803
According to interaction, and act on behalf of the test job that above-mentioned test script client completed and be tested code device 803;
Tested code device 803 is the target that software module testing needs to check, for given input, checks input knot
Really, it passes through interacting message with the external world.
Above-mentioned test system can complete automatic test, therefore, it is possible to improve test according to the test case automatically generated
Efficiency.
The structure chart for the test script client embodiment that reference picture 9 is provided there is provided the embodiment of the present application, specifically can be with
Including:The device 901 of foregoing generation test case, connection set up device 902, message conversion device 903, dispensing device 904,
Reception device 905 and check device 906;
Wherein, the device 901 of above-mentioned generation test case, the configuration file for generating test case;Wherein, it is above-mentioned to match somebody with somebody
Put the copy that chain of messages in file is connected to source template;
Device 902 is set up in above-mentioned connection, for setting up the connection with test agent server;
Above-mentioned message conversion device 903, the copy for reading the source template that message is linked in above-mentioned configuration file will
It is converted to message sequence;Wherein, above-mentioned message sequence can specifically include:Input message sequence and output message sequence;
Above-mentioned dispensing device 904, for sending above-mentioned input message sequence to above-mentioned test agent server;
Above-mentioned reception device 905, for receiving the test post content that above-mentioned test agent server is returned;
Above-mentioned check device 906, is advised for checking whether above-mentioned test post content meets in above-mentioned output message sequence
Fixed order, if so, then checking whether above-mentioned test post content is consistent with above-mentioned output message sequence, if so, then above-mentioned survey
Example on probation passes through, and otherwise above-mentioned test case does not pass through.
Above-mentioned test script client mainly has two functions:One it is automatic, efficiently generates test case, two is logical
Cross and interacted with test agent server, perform the test case of above-mentioned generation.
In the specific implementation, above-mentioned test script client can be adjusted after the completion of test case is write by shortcut
Worked with the VBA scripts in excel forms, and after having parsed whole data, initiate connection to test agent server and build
Vertical request, starts the execution of a test case.
Specifically, it can set up SOCKET (socket) with test agent server and be connected.In the specific implementation, above-mentioned disappear
Cease conversion equipment 903, can first read test vector, convert thereof into the form defined between test agent server,
Corresponding data content (including message name, length, source module, purpose module, message time sequence, and message content etc.) is passed through
SOCKET linkup transmits are to test agent server.
The structure chart for the test agent server example that reference picture 10 is provided there is provided the embodiment of the present application, specifically may be used
With including:Service unit 1001 and resolver 1002;
Wherein, above-mentioned service unit 1001, data interaction, above-mentioned data interaction are carried out available for test script client
It can specifically include:The data that above-mentioned test script client is sent are sent to above-mentioned resolver and are parsed and performed,
And, the data that above-mentioned resolver has been handled are sent to above-mentioned test script client and checked;
Above-mentioned resolver 1002, obtains cycle tests, according to above-mentioned for parsing the data that above-mentioned service unit is sent
The tested code device work of cycle tests simulation external environment condition driving, and, monitor the reception that above-mentioned tested code device is sent
Message, after handling above-mentioned reception message, sends to above-mentioned service unit.
The structure chart for the service unit 1001 that reference picture 11 is provided there is provided the embodiment of the present application, can specifically include:
Module 1011 is monitored, for monitoring preset port, the connection of above-mentioned test script client is waited;
Wherein, above-mentioned preset port can be the port of test script client and test agent server commitment.
Receiving module 1012, for after the connection with above-mentioned test script client is set up, receiving above-mentioned test script
The data that client is sent;
Calling module 1013, for when above-mentioned receiving module receives data success, calling above-mentioned resolver to enter line number
According to processing;
Sending module 1014, for sending the result that above-mentioned resolver is returned to above-mentioned test script client;
Module 1015 is disconnected, for when above-mentioned receiving module receives data failure, disconnecting and above-mentioned test script client
The connection at end.
In a kind of alternative embodiment of the present invention, above-mentioned service unit 1001 can also include:
Reset notification module, for after the connection with above-mentioned test script client is set up, calling above-mentioned tested code
Device, which is performed, resets operation;
Then above-mentioned calling module 1013, can complete to disappear specifically for the reset returned in the above-mentioned test script client of reception
After breath and the reception data success of above-mentioned receiving module, above-mentioned resolver is called to carry out the processing of data.
In actual applications, after first sets up connection inferior to test script client, new test process can be indicated
Start, can now trigger above-mentioned reset notification module work.
The structure chart for the resolver 1002 that reference picture 12 is provided there is provided the embodiment of the present application, can specifically include:
Type of message parsing module 1021, for parsing data or the above-mentioned tested code device that above-mentioned service module is sent
The type of the reception message sent, obtained type of message includes:Send message and receive message;
First processing module 1022, for for above-mentioned transmission message, judging whether current time reaches delivery time, such as
Fruit reaches to be sent immediately, and the time of above-mentioned tested code device report is obtained until arriving by obstruction mode if not reaching
Up to delivery time;If current time has exceeded delivery time, corresponding error code, finish test procedure are filled in;And
Second processing module 1023, for for the receive information with time correlation, whether judging the corresponding time of reception
Correctly, data content and corresponding header are filled in if correct, fills in corresponding mistake in message header if incorrect
Error code, data content and header and finish test procedure, if receiving data time-out, fill in corresponding error code, terminate to survey
Examination process.
To sum up, the test agent server that the present invention is provided can enter line number with test script client and tested code device
According to interaction, and the test job that above-mentioned test script client completed and be tested code device is acted on behalf of, above-mentioned interaction and agency are real
Show the automatic test based on test case, improve testing efficiency.
A kind of flow chart for method of testing embodiment that reference picture 13 is provided there is provided the embodiment of the present application, it is applied to
Test script client, can specifically include:
Step 1301, the method using foregoing generation test case, generate the configuration file of test case;Wherein, it is above-mentioned
Chain of messages is connected to the copy of source template in configuration file;
Step 1302, foundation and the connection of test agent server;
Step 1303, the copy for reading the source template that message is linked in above-mentioned configuration file, are converted into message sequence
Row;Wherein, above-mentioned message sequence is specifically included:Input message sequence and output message sequence;
Step 1304, to above-mentioned test agent server send above-mentioned input message sequence;
Step 1305, the test post content for receiving above-mentioned test agent server return;
Whether step 1306, the above-mentioned test post content of inspection meet order specified in above-mentioned output message sequence, if
It is then to check whether above-mentioned test post content is consistent with above-mentioned output message sequence, if so, then above-mentioned test case passes through,
Otherwise above-mentioned test case does not pass through.
The present embodiment be located at test script client end, both can automatically, efficiently generate test case, can pass through again
With interacting for test agent server, the test case of above-mentioned generation is performed.
A kind of flow chart for method of testing embodiment that reference picture 14 is provided there is provided the embodiment of the present application, it is applied to
Test agent server end, can specifically include:
Step 1401 and test script client carry out data interaction, and above-mentioned data interaction is specifically included:Receive above-mentioned survey
The data that this client of training is sent, and, the reception message data handled is sent to above-mentioned test script client and entered
Row is checked;
The data that step 1402, the above-mentioned test script client of parsing are sent obtain cycle tests, according to above-mentioned test sequence
The tested code device work of row simulation external environment condition driving, and, the reception message that above-mentioned tested code device is sent is monitored, it is right
Above-mentioned reception message is handled.
In a kind of alternative embodiment of the present invention, the step of above-mentioned and test script client carries out data interaction, tool
Body can include:
Preset port is monitored, the connection of above-mentioned test script client is waited;
After the connection with above-mentioned test script client is set up, the data that above-mentioned test script client is sent are received;
When receiving data success, above-mentioned resolver is called to carry out the processing of data;
The result that above-mentioned resolver is returned is sent to above-mentioned test script client;
When receiving data failure, the connection with above-mentioned test script client is disconnected.
In another alternative embodiment of the present invention, the data that the above-mentioned above-mentioned test script client of parsing is sent are obtained
Cycle tests, according to the tested code device work of above-mentioned cycle tests simulation external environment condition driving, and, monitor above-mentioned tested generation
The reception message that code device is sent, the step of handling above-mentioned reception message can specifically include:
Parse the class of the data that above-mentioned test script client sends or the reception message that above-mentioned tested code device is sent
Type, obtained type of message can specifically include:Send message and receive message;
For above-mentioned transmission message, judge whether current time reaches delivery time, sent immediately if reached, if do not had
Have to reach and the time of above-mentioned tested code device report is then obtained until reaching delivery time by obstruction mode;If when current
Exceed delivery time quarter, then fill in corresponding error code, finish test procedure;
For the receive information with time correlation, judge whether the corresponding time of reception is correct, number is filled in if correct
According to content and corresponding header, corresponding error code, data content and header are filled in message header if incorrect
And finish test procedure, if receiving data time-out, fill in corresponding error code, finish test procedure.
In another alternative embodiment of the present invention, the step of above-mentioned and test script client carries out data interaction,
It can also include:
After the connection with above-mentioned test script client is set up, call above-mentioned tested code device to perform and reset operation;
After receiving the reset completion message of above-mentioned test script client return and receiving data success, above-mentioned solution is called
Analysis apparatus carries out the processing of data
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use it is one or more wherein include computer can
With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram
In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided
Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipments
Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that
The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped
Those key elements, but also other key elements including being not expressly set out are included, or also include being this process, method, article
Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited
Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Above to a kind of method for generating test case provided by the present invention and a kind of device of generation test case, one
Test script client, a kind of test agent server and a kind of method of testing are planted, is described in detail, it is used herein
Specific case is set forth to the principle and embodiment of the present invention, and the explanation of above example is only intended to help and understands this
The method and its core concept of invention;Simultaneously for those of ordinary skill in the art, according to the thought of the present invention, specific
It will change in embodiment and application, in summary, this specification content should not be construed as to the present invention's
Limitation.