CN100428153C - Method and device for generating test script - Google Patents
Method and device for generating test script Download PDFInfo
- Publication number
- CN100428153C CN100428153C CNB2006101671850A CN200610167185A CN100428153C CN 100428153 C CN100428153 C CN 100428153C CN B2006101671850 A CNB2006101671850 A CN B2006101671850A CN 200610167185 A CN200610167185 A CN 200610167185A CN 100428153 C CN100428153 C CN 100428153C
- Authority
- CN
- China
- Prior art keywords
- chained list
- script
- test
- order line
- test script
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
A method for generating testing scripts starts with generating testing document based on manual testing process, selecting script parameter based on script list, generating testing script based on selected script parameter and testing documents. It also relates to a device for generating testing scripts. Through this method, it can generate optimized testing script based on the need of testing script generating party, realizing error deleting, incorporating repetition, and incorporating circulation, with reduced testing resources and strong adaptability.
Description
Technical field
The present invention relates to measuring technology, refer to a kind of method and device that generates test script especially.
Background technology
Automatic test receives more and more higher concern because it has the characteristics such as utilization factor height of test period weak point, test resource in field tests.In existing automatization testing technique, test script is usually according to obtaining by following two kinds of methods.
One is, at first carries out manual test one time by the tester, and then by the tester according to the manual test process, the hand-coding test script file.Here, the tester need be through a manual test process, the reason of writing test script file again is: the randomness of test process is bigger, therefore the tester must do manual test earlier one time, and then according to the situation of the problem that is run in the manual test, appearance, test process is improved, avoid causing testing inaccurate problem, therefore before writing test script file, need to carry out one time the manual test process owing to the imperfection of test process.The drawback of this method is exactly: repeated workload is big, and the script file of hand-coding is difficult to reappear manual test process at that time.
It two is to have the automated test tool of catching playback function by one and generate test script.The principle of work of this automated test tool is exactly the manual test process of duplicating fully, this manual test process of duplicating of resetting when needs are tested.The method of this generation test script, though can reduce tester's workload, can reappear manual test process at that time fully, but because automated test tool is the copy mode that adopts the fool, so some problems that in the manual test process, occur, as the bad command of having imported, or imported unnecessary character, automated test tool can not be discerned and be removed.Therefore, the method for this generation test script can not be optimized and then generate test script to test operation according to the manual test process of record.
Summary of the invention
In view of this, the fundamental purpose of the embodiment of the invention is to provide a kind of method that generates test script, uses this method and can generate the test script of optimizing according to the needs of test script generation side.
Simultaneously, the another fundamental purpose of the embodiment of the invention is to provide a kind of device that generates test script, and this device can be realized the needs according to test script generation side, generates the test script of optimizing.
For achieving the above object, the technical scheme of the embodiment of the invention is achieved in that
The embodiment of the invention provides a kind of method that generates test script, and the script argument tabulation is set, and the script argument in the described script argument tabulation is used to indicate the mode of optimizing test script; This method may further comprise the steps:
A, according to the operating process of manual test, generate the test record file according to all keystroke contents of sequence of event and window information; According to the script argument tabulation, select script argument; Generate order line input chained list and control desk window title chained list according to the test record file;
B, according to the script argument of order line input chained list, control desk window title chained list and selection, generate test script.
In addition, the embodiment of the invention also provides a kind of device that generates test script, and this device comprises:
Record cell is used for the operating process according to manual test, generates the test record file according to all keystroke contents of sequence of event and window information;
Selected cell is used for determining script argument according to the script argument tabulation; Wherein, described script argument is used to indicate the mode of optimizing test script;
The chained list generation unit is used for the test record file according to the record cell generation, generates and sends order line input chained list and control desk window title chained list;
The test script generation unit is used to receive and according to order line input chained list and control desk window title chained list and the definite script argument of selected cell that described chained list generation unit sends, generate test script.
A kind of method that generates test script that the embodiment of the invention provided is by being provided with the script argument tabulation; Then, generate the test record file at first according to the manual test process; According to the script argument tabulation, select script argument again; According to script argument and the test record file selected, generate test script at last.Because what comprise in the script argument tabulation is and the associated script parameter of optimizing test script, so generation side of user or test script, then can in the script argument tabulation, select one or more script arguments, and generate the test script of optimizing according to script argument of selecting and test record file according to the situation of self.In addition, the embodiment of the invention also provides a kind of device that generates test script.By using method and the device that the embodiment of the invention provides, can realize needs according to test script generation side, generate the test script of optimizing, can realize functions such as deletion error, merger repetition, merger circulation, improved the test performance of test script, saved the resource of test macro, very strong adaptability has also just been arranged simultaneously.
Description of drawings
To make clearer above-mentioned and other feature and advantage of the present invention of those of ordinary skill in the art by describe exemplary embodiment of the present invention in detail with reference to accompanying drawing below, in the accompanying drawing:
Fig. 1 is the process flow diagram of preferred embodiment method of the present invention;
Fig. 2 is for generating the method flow diagram of relevant chained list in the preferred embodiment of the present invention;
Fig. 3 is the structural drawing of preferred embodiment device of the present invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further detail.
In the technical scheme of embodiments of the invention, set in advance the script argument tabulation; Then, at first according to the manual test process, generate the test record file; According to the script argument tabulation, select script argument again; According to script argument and the test record file selected, generate test script at last.
What comprise in the script argument tabulation here is and optimizes the associated script parameter of test script, can comprise following several: merger iterated command, merger cycling, transform checked operation, filter false order, delete command and the deletion time interval.Certainly can also comprise other and optimize the relevant script argument of test script, not enumerate one by one at this.After being provided with the script argument tabulation, the generation side of user or test script then can select one or more script arguments according to the situation of self, and generate test script according to script argument of selecting and test record file in the script argument tabulation.Because script argument is used to optimize test script, therefore just can optimize test script according to script argument at the generation test script.For example in the process that generates test script, merger iterated command and filter false order just can be eliminated iterated command and filter false order in the test script, and then optimize test script.
Fig. 1 is the process flow diagram of preferred embodiment method of the present invention.Comprise in the script argument tabulation that hypothesis sets in advance in this preferred embodiment: merger iterated command, merger cycling, conversion checked operation, filter false order, delete command and the deletion time interval, the flow process of preferred embodiment method of the present invention is as described below:
In step 101,, generate the test record file according to the manual test process.
Here the test record file of Sheng Chenging is the operating process according to manual test, according to all keystroke contents of sequence of event and corresponding keystroke time, echo content, window information.For example on an equipment, carry out the test of dis this, shown in order line of knocking in and the echo on testing apparatus the contents are as follows:
[NE40-16Test-Ethernet2/0/4]dis?this
#
interface?Ethernet2/0/4
undo?shutdown
portswitch
port?trunk?allow-pass?vlan?21
#
return
When with can expand rower and sign this test process of language (XML) file logging the time, corresponding test record file is following form:
<VTP_KEY_RECORD>
<term?name=″NE67″>
<Kt=″2915500″>d</K>
<Et=″2915500″l=″3″>d
</E>
<Kt=″2915703″>i</K>
<Et=″2915719″l=″3″>i
</E>
<Kt=″2915844″>s</K>
<Et=″2915844″l=″3″>s
</E>
<Kt=″2919828″></K>
<Kt=″2920109″>t</K>
<Et=″2920125″l=″3″>t
</E>
<Kt=″2920312″>h</K>
<Et=″2920328″l=″3″>h
</E>
<Kt=″2920641″>
</K>
<Et=″2920719″l=″3″>#
</E>
<Et=″2920734″l=″521″>interface?Ethernet2/0/4
undo?shutdown
portswitch
port?trunk?allow-pass?vlan?21
#
return
[NE40-16Test-Ethernet2/0/4]
</E>
</term>
</VTP_KEY_RECORD>
Wherein,<and VTP_KEY_RECORD〉be XML file root node;<term〉expression window information; With K is the expression keystroke input content of mark; With E is the expression echo content of mark; Attribute t is a markers, writes down the current keystroke time; Attribute l is a length.Here Ji Lu echo content comprises two parts: the echo content of keystroke and the echo content of test command.
As the example of enumerating in the step 101,
<Et=″2920734″l=″521″>interface?Ethernet2/0/4
undo?shutdown
portswitch
port?trunk?allow-pass?vlan?21
#
return
[NE40-16Test-Ethernet2/0/4]
</E>
Echo content for test command;
And<Et=" 2915500 " l=" 3 "〉d
</E>
Echo content for keystroke information.
In step 102, after generating the test record file, test script generates root and tabulates according to script argument, selects script argument.
In this preferred embodiment, suppose that test script generation side selected all script arguments in the script argument tabulation, promptly select merger iterated command, merger cycling, transformed checked operation, filter false order, delete command and deletion time interval.Certainly one or more script argument also can be selected by test script generation side.
Here, the generation of the test script of indication can also can be certain concrete equipment to be the tester who tests.When test script generation side is certain concrete equipment, then can select script argument according to some selective rules that set in advance.
Step 102 also can be carried out simultaneously with step 101, also can carry out before step 102.
In step 103, generate order line input chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list according to the test record file.
The order line input chained list here is used for writing down every order that test process is imported; Echo content output chained list is used for writing down the echo content of every input command correspondence of test process, does not wherein comprise the echo to the keystroke content in the echo content output chained list; Control desk window title chained list is used to write down the title of every order place window; Order line time interval chained list is used at every order, the time interval between a record the current command and the last order input.
The mode that generates order line input chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list can be following form: when generating order line input chained list, traversal test record file, keystroke content before first enter key in the test record file as an order, is added order line input chained list; Afterwards, keystroke contents all between two enter keys is added order line input chained list as an order; Then, will add echo content output chained list respectively at the echo content of every order; And in the time will ordering adding order line input chained list,, the control desk window information is recorded in the control desk window title chained list according to the pairing control desk window of the current command at every turn; At last, at the current command, the time interval of importing between the current command and last the order is joined in the order line time interval chained list, wherein the time interval of first order line is 0.In order line input chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list, Tong Hang element all is one to one mutually, i.e. all corresponding the same command of element in the corresponding line.
In this preferred embodiment, the method for a detailed generation order line input chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list also is provided, idiographic flow is referring to Fig. 2.
In step 104,, generate test script according to the script argument of selecting, order line input chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list.
Because in this preferred embodiment, the generation side of test script is selected is merger iterated command, merger cycling, transform checked operation, filter false order, deletion are provided with the order and the deletion time interval.Therefore exporting chained list, control desk window title chained list and order line time interval chained list according to order line input chained list, echo content, generate in the process of test script, need merger iterated command, merger cycling, conversion checked operation, filter false order, deletion that the order and the deletion time interval are set.
Wherein, the concrete grammar of merger iterated command can be: in generating the process of test script, when using order line input chained list, when running into double above iterated command, then only utilize one of them generation test script when generation script.For example, when in order line input chained list, when having occurred the order of three dis th continuously, then only utilize one of them dis th order with generating test script.
The concrete grammar of merger cycling can be: in the process that generates test script, and when using order line input chained list, the cycling that identification wherein exists, the cycling that merger simultaneously identifies.The method of identification cycling can be: the content in the order line input chained list is traveled through, and when running into more than three times the digital section in the input content and be divided into arithmetic progression and arrange, the order that then can determine this part is cycling.For example: following three orders: int e0.1, int e0.2, int e0.3 then are a cycling, therefore when generating test script, can be a cycling with these three order merger, and then realize the optimization to test script.
The concrete grammar that transforms checked operation can be: test script generation side need set in advance the order that needs conversion, for example ping and route before transforming checked operation.In the process that generates test script, when using order line input chained list, find and need the order changed in the order line input chained list, the order that finds is converted into checked operation, for example<CHECK〉ping,<CHECK〉route, wherein<CHECK be packaged key word, utilization<CHECK〉in different parameter options different checked operations can be provided.At this moment, can also find the described echo content that needs the order correspondence of conversion, as the parameter that transforms checked operation, provide expected result to test side with the described echo content that finds according to echo content output chained list.According to this expected results, testing apparatus just can show operation result that test script is current and the difference between the expected results.
The concrete grammar of filter false order can be: in the process that generates test script, when using echo content output chained list, according to the mistake indication of writing down in the echo content output chained list, delete the corresponding order line of described wrong indication.For example, input command is:
[Quidway]int?e?5/0/2
Corresponding echo content is:
^
Error:Wrong?parameter?found?at′^′position
At this moment, then can leave out the pairing order of wrong echo content.Here, the reason of order int e 5/0/2 mistake is not have the port of e 5/0/2 on current device.
The concrete grammar of delete command can be: set in advance the delete command set, in the process that generates test script, when using order line input chained list, judge that whether the order of writing down in the order line input chained list is the order in the delete command set, be the order in the delete command set in order, when generating test script, ignore this order.
The concrete grammar in the deletion time interval is: in the process that generates test script, according to the time-delay between two orders of order line time interval chain list deletion.
In this preferred embodiment, when generating the process of test script, can also to the prompting of test script generation side, allow test script generation side confirm whether to need to carry out corresponding operation at the processing of each script argument.For example: in the merger iterated command, inquire when having repetitive operation continuous more than two, can need determine whether the merger iterated command by test script generation side to the prompting of test script generation side.
When carrying out test script, also definable is by definition option in addition, is used for selecting the option of carrying out or limiting the number of times of execution whether repeatedly or provide implementation to suspend and to continue.
In addition, it is to be noted: just can generate test script according to order line input chained list and control desk window title chained list.Echo content output chained list and order line time interval chained list generate in order to realize some script arguments.For example, echo content output chained list can be used for realizing the filter false order; Order line time interval chained list can be used for realizing the deletion time interval.That is to say, when not having the script argument relevant, can not generate echo content output chained list, also just do not need stylus point that each is ordered corresponding echo content accordingly with the echo content; When not having the script argument relevant with the time interval, can not generate order line time interval chained list, just do not need to write down every order line time corresponding at interval accordingly yet.
Certainly, also there is another implementation, promptly when generating chained list, generates order line input chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list, during generation script, utilize the chained list of the script argument correspondence of selecting to generate test script.For example, the script argument of selection is the merger iterated command, can generate this chained list of four types when generating chained list, but when generating test script, then only need import chained list and control desk window title chained list generation test script according to order line.And for example, the script argument of selection is the deletion time interval, only need import chained list, control desk window title chained list and order line time interval chained list generation test script according to order line when generating test script and get final product.
More than be the concrete introduction of this preferred embodiment method flow, described belowly be: the detailed step that generates order line input chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list according to the test record file.
Fig. 2 is above-described detailed step.In flow process shown in Figure 2, the test record file exists with the XML file layout, and is identical with the XML document form of enumerating in the step 101, promptly with<term〉handover information of expression window; With K is that mark is represented keystroke input content; With E is that mark is represented the echo content; Attribute t is a markers, writes down the current keystroke time; Attribute l is a length.
Before carrying out this flow process, also need to be provided with temporary file and interim time linked list.Wherein temporary file is used for the process at traversal test record file, and interim storage does not form the keystroke content of order line.For example, when an order is ping, there are four keystroke contents in this order, be respectively: p, i, n, g, because an order finishes with enter key usually, therefore when not running into enter key, p, i, n, g are stored in the temporary file respectively successively, when running into enter key, then from temporary file, take out this ping order and empty temporary file.In addition, interim time linked list is used to store input time of an order.
When generating above-mentioned relevant chained list, need all nodes in the traversal XML file, in order briefly clearly to describe, Fig. 2 is that example is described for the processing procedure at a node in the XML file at this, the disposal route of other nodes is identical with this process, and detailed process is as follows:
In step 201, judge whether current node is element node (ELEMENT_NODE), if then execution in step 202; Otherwise, execution in step 213.
At this, introduce the node in the XML file, the node in the XML file that uses in an embodiment of the present invention mainly is divided into two classes, for example<and Kt=" 2915500 "〉be a class node, the node type is ELEMENT_NODE; And the d that closelys follow afterwards is a class node, and the node type is text node (TEXT_NODE), and the text node is used to write down the content of the element node correspondence of closelying follow.
In step 202, that judges the currentElement node marks whether to be K, if then execution in step 203; Otherwise, execution in step 208.
In step 203, the text node of traversal currentElement node correspondence judges whether the content of text node is enter key, if then execution in step 204; Otherwise, execution in step 207.
In step 204, the content in the temporary file is added in the order line input chained list as an order.When the keystroke content is enter key, show that then current content of being preserved is an order in temporary file, therefore this order can be added in the order line input chained list as an element.
In step 205, the time attribute of currentElement node appended be stored to interim time linked list.At this moment, owing to run into enter key, then show corresponding this moment the end of input of certain bar order, therefore then can be with the time attribute of currentElement node time as order described in the step 204.
In step 206, obtain the time interval of this subcommand input according to interim time linked list, and be recorded in the order line time interval chained list execution in step 213.
When the time of this record is the time of writing down for the first time in the interim time linked list, and promptly this subcommand is input as the input command first time in the test process, and be spaced apart 0 the input time of this moment with this subcommand; When the time of this record is not the record first time in the interim time linked list, then obtains the time of last twice record in the interim time linked list, obtains the difference of these two times, and this difference is the time interval corresponding to this order line.The time of writing down in interim time linked list all is the time of input command, and therefore the difference of last twice writing time is exactly: the input time of this subcommand and last subcommand at interval.
In step 207, current text node content appended be stored in the provisional version execution in step 213.
In step 208, that judges the currentElement node marks whether to be E, if, execution in step 209; Otherwise, execution in step 211.
In step 209, judge whether the content in the provisional version is empty, if then execution in step 210; Otherwise, execution in step 213.
In step 210, the text node of traversal currentElement node correspondence as an element, is recorded in the echo content output chained list execution in step 213 with the echo content that writes down in the file node.In addition, when since the echo content too much, and need be recorded in a plurality of continued labellings when being the text node of element node correspondence of E, then then the echo content of the element node correspondence that is labeled as E of a plurality of connections is recorded in the echo content output chained list as an element.
Step 210 is that content in provisional version is for carrying out under the empty situation.When the content in the provisional version when being empty, illustrate that a test command just imports, the text node that then is labeled as at this moment the element node correspondence of E is writing down the echo content of this test command.
In step 211, that judges the currentElement node marks whether to be term, if then execution in step 212; Otherwise, execution in step 213.
In step 212, the text node of traversal currentElement node correspondence, with the content record of text node to control desk window title chained list.
In step 213, finish the treatment scheme of current node.
By each node being carried out flow process as above, just can be according to the capable input of test record file command chained list, the output of echo content chained list, control desk window title chained list and order line time interval chained list.
Aforesaid method also can adopt software to realize that this software can be stored in the storage medium of embodied on computer readable, for example the hard disk of CD, floppy disk, flash memory or computing machine.
Fig. 3 is the structural drawing of preferred embodiment device of the present invention.This device comprises: record cell 31, selected cell 32 and test script generation unit 33.Wherein, record cell 31 is used for according to the manual test process, generates the test record file.Selected cell 32 is used for determining script argument according to the script argument tabulation.Test script generation unit 33 is used for the script argument that the test record file that generates according to record cell 31 and selected cell 32 are determined, generates test script.
In addition, the present invention can adopt the method for utilizing order line input chained list, echo content output chained list, control desk window title chained list and order line time interval chained list to generate test script, so this device further comprises: chained list generation unit 34.Here, chained list generation unit 34 between record cell 31 and selected cell 32, is used for the test record file that generates according to record cell 31, generates and order line is imported chained list and control desk window title chained list is sent to test script generation unit 33; Accordingly, test script generation unit 33, according to order line input chained list and control desk window title chained list, and the script argument that selected cell 32 is determined generates test script.In addition, chained list generation unit 34 is further used for generating echo content output chained list and/or order line time interval chained list, and sends it to test script generation unit 33; Accordingly, test script generation unit 33 further generates test script according to echo content output chained list and/or order line time interval chained list when generating test script.
The software of above-mentioned realization embodiment of the invention method has identical technique effect with device shown in Figure 3.
In sum, in the method and device of the embodiment of the invention,, script is generated to select script argument enough according to the script argument tabulation by the script argument tabulation of optimizing test script is set; And according to the script argument generation test script of selecting.Therefore the generation side of user or test script then can select one or more script arguments according to the situation of self, and generate the test script of optimizing according to script argument of selecting and test record file in the script argument tabulation.Method that the embodiment of the invention provided and device, can realize needs according to test script generation side, generate the test script of optimizing, can realize functions such as deletion error, merger repetition, merger circulation, improved the test performance of test script, saved the resource of test macro, very strong adaptability has also just been arranged simultaneously.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (15)
1, a kind of method that generates test script is characterized in that, the script argument tabulation is set, and the script argument in the described script argument tabulation is used to indicate the mode of optimizing test script; This method may further comprise the steps:
A, according to the operating process of manual test, generate the test record file according to all keystroke contents of sequence of event and window information; According to the script argument tabulation, select script argument; Generate order line input chained list and control desk window title chained list according to the test record file;
B, according to the script argument of order line input chained list, control desk window title chained list and selection, generate test script.
2, method according to claim 1 is characterized in that, in the steps A, the step of described generation order line input chained list comprises:
Traversal test record file as an order, adds order line input chained list with keystroke contents all before first enter key in the test record file; With after between per two enter keys all keystroke contents add order line input chained list as an order; Accordingly,
The step of described generation control desk window title chained list comprises: according to the window information of record, will order the control desk window title at place to be recorded to control desk window title chained list at every order.
3, method according to claim 1 and 2 is characterized in that, the script argument of described selection is: the merger iterated command; Among the step B, described generation test script is:
Generating in the process of test script according to order line input chained list and control desk window title chained list, according to order line input chained list identification and the continuous iterated command of merger.
4, method according to claim 1 and 2 is characterized in that, the script argument of described selection is: the merger cycling; Among the step B, described generation test script is:
Generating in the process of test script the cycling that cycling in the capable input of the recognition command chained list and merger identify according to order line input chained list and control desk window title chained list.
5, method according to claim 1 and 2 is characterized in that, further comprises the delete command set is set; Described script argument is: delete command; Among the step B, described generation test script is:
Generating in the process of test script according to order line input chained list and control desk window title chained list, according to delete command set and order line input chained list, deletion the corresponding command.
6, method according to claim 1 is characterized in that, in the steps A, according to the operating process of manual test, further writes down the echo content corresponding with all keystroke contents; And according to the echo content generation echo content output chained list that writes down in the test record file; When the script argument of selecting was relevant with the echo content, described generation test script comprised:
Script argument according to order line input chained list, the output of echo content chained list, control desk window title chained list and selection generates test script.
7, method according to claim 6 is characterized in that, described generation echo content output chained list comprises: will add echo content output chained list respectively at the echo content of every order.
8, according to claim 6 or 7 described methods, it is characterized in that the script argument of described selection is: transform checked operation; This method further comprises: the order that needs transform is set; Among the step B, described generation test script is:
Generating in the process of test script according to order line input chained list and control desk window title chained list, finding the order that needs transform, described order is being converted into checked operation according to order input chained list.
9, method according to claim 8, it is characterized in that, this method further comprises: according to echo content output chained list, find the described echo content that needs the order correspondence of conversion, with the parameter of the described echo content that finds as described conversion checked operation.
10, according to claim 6 or 7 described methods, it is characterized in that described script argument is: the filter false order; Among the step B, described generation test script is:
Generating in the process of test script according to order line input chained list and control desk window title chained list,, ignoring the corresponding order line of described wrong indication according to the mistake indication of writing down in the echo content output chained list.
11, method according to claim 1 is characterized in that, in the steps A, according to the operating process of manual test, further writes down the keystroke time corresponding with all keystroke contents; And according to the keystroke time generation order line time interval chained list that writes down in the test record file; When script argument of selecting and keystroke time correlation, described generation test script comprises:
Script argument according to order line input chained list, order line time interval chained list and control desk window title chained list and selection generates test script.
12, method according to claim 11 is characterized in that, described generation order line time interval chained list comprises: at every order line, obtain the time interval between this order line and last the order line, and be recorded to order line time interval chained list.
13, according to claim 11 or 12 described methods, it is characterized in that described script argument is: the deletion time interval; Among the step B, described generation test script is:
Generating in the process of test script, according to order line input chained list and control desk window title chained list according to the time-delay between two orders of order line time interval chain list deletion.
14, a kind of device that generates test script is characterized in that, this device comprises:
Record cell is used for the operating process according to manual test, generates the test record file according to all keystroke contents of sequence of event and window information;
Selected cell is used for determining script argument according to the script argument tabulation; Wherein, described script argument is used to indicate the mode of optimizing test script;
The chained list generation unit is used for the test record file according to the record cell generation, generates and sends order line input chained list and control desk window title chained list;
The test script generation unit is used to receive and according to order line input chained list and control desk window title chained list and the definite script argument of selected cell that described chained list generation unit sends, generate test script.
15, device according to claim 14 is characterized in that,
Described chained list generation unit is further used for generating echo content output chained list and/or order line time interval chained list, and sends it to the test script generation unit; Accordingly,
Described test script generation unit further generates test script according to echo content output chained list and/or order line time interval chained list when generating test script.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101671850A CN100428153C (en) | 2006-12-26 | 2006-12-26 | Method and device for generating test script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101671850A CN100428153C (en) | 2006-12-26 | 2006-12-26 | Method and device for generating test script |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1996239A CN1996239A (en) | 2007-07-11 |
CN100428153C true CN100428153C (en) | 2008-10-22 |
Family
ID=38251340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101671850A Expired - Fee Related CN100428153C (en) | 2006-12-26 | 2006-12-26 | Method and device for generating test script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100428153C (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105426311A (en) * | 2015-12-23 | 2016-03-23 | 浪潮电子信息产业股份有限公司 | Keyword driven framework based on timeline |
CN106341684A (en) * | 2016-09-05 | 2017-01-18 | Tcl集团股份有限公司 | Method and system for automatically generating Android TV test script |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102169183A (en) * | 2010-12-10 | 2011-08-31 | 北京空间飞行器总体设计部 | Test atom based method for automatically testing satellites |
CN103218290B (en) * | 2013-03-29 | 2015-08-19 | 北京控制工程研究所 | A kind of aerospace satellite-borne software can perform the automatic method for transformation of script |
CN106326114A (en) * | 2016-08-16 | 2017-01-11 | 北京控制工程研究所 | Automatic aerospace software testing method for approximately natural language testing case script |
CN108459848B (en) * | 2017-02-20 | 2021-12-14 | 深圳市北斗智研科技有限公司 | Script obtaining method and system applied to Excel software |
CN111708474A (en) * | 2020-05-26 | 2020-09-25 | 广州朗国电子科技有限公司 | Method and device for simulating user touch operation, storage medium and all-in-one machine equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030212986A1 (en) * | 2002-05-10 | 2003-11-13 | Nelin Constance J. | Testing environment for database server side logic |
WO2005071545A2 (en) * | 2004-01-13 | 2005-08-04 | Symphony Services Corporation | Method and system for rule-based generation of automation test scripts from abstract test case representation |
US20060036907A1 (en) * | 2004-08-11 | 2006-02-16 | Emc Corporation | Area-and product-independent test automation system and method for automatically synchronizing tests of multiple devices |
US7039899B1 (en) * | 2002-03-27 | 2006-05-02 | Oracle International Corporation | System and method for automatically generating a script for testing software |
CN1805382A (en) * | 2005-01-14 | 2006-07-19 | 中兴通讯股份有限公司 | Repeatable automatic test method |
US20060253742A1 (en) * | 2004-07-16 | 2006-11-09 | International Business Machines Corporation | Automating modular manual tests including framework for test automation |
-
2006
- 2006-12-26 CN CNB2006101671850A patent/CN100428153C/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7039899B1 (en) * | 2002-03-27 | 2006-05-02 | Oracle International Corporation | System and method for automatically generating a script for testing software |
US20030212986A1 (en) * | 2002-05-10 | 2003-11-13 | Nelin Constance J. | Testing environment for database server side logic |
WO2005071545A2 (en) * | 2004-01-13 | 2005-08-04 | Symphony Services Corporation | Method and system for rule-based generation of automation test scripts from abstract test case representation |
US20060253742A1 (en) * | 2004-07-16 | 2006-11-09 | International Business Machines Corporation | Automating modular manual tests including framework for test automation |
US20060036907A1 (en) * | 2004-08-11 | 2006-02-16 | Emc Corporation | Area-and product-independent test automation system and method for automatically synchronizing tests of multiple devices |
CN1805382A (en) * | 2005-01-14 | 2006-07-19 | 中兴通讯股份有限公司 | Repeatable automatic test method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105426311A (en) * | 2015-12-23 | 2016-03-23 | 浪潮电子信息产业股份有限公司 | Keyword driven framework based on timeline |
CN106341684A (en) * | 2016-09-05 | 2017-01-18 | Tcl集团股份有限公司 | Method and system for automatically generating Android TV test script |
Also Published As
Publication number | Publication date |
---|---|
CN1996239A (en) | 2007-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100428153C (en) | Method and device for generating test script | |
WO2021088724A1 (en) | Testing method and apparatus | |
CN111970267B (en) | Data protocol conversion method and device, electronic equipment and storage medium | |
CN108459967B (en) | Web application test case generation method based on user interface state flow diagram | |
CN101311897B (en) | Method and device for snatching at application program graphical user interface resource | |
JP6387182B2 (en) | Information processing method, apparatus, and computer storage medium | |
CN111324526B (en) | Interface test system, method and server | |
CN111124379B (en) | Page generation method and device, electronic equipment and storage medium | |
US20160306736A1 (en) | Translation verification testing | |
CN107783766A (en) | The method and apparatus cleared up the file of application program | |
CN104391796A (en) | Method for parsing test cases | |
CN113761879B (en) | Message format verification method, device and storage medium | |
CN106201859A (en) | A kind of regression testing method and system | |
CN115185528A (en) | Cross-clock-domain static analysis system for VHDL programmable logic design | |
CN111143205B (en) | Android platform-oriented test case automatic generation method and generation system | |
CN113836014A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN112084111A (en) | Data processing method, system and device | |
CN109471637B (en) | Circuit diagram examination script debugging method | |
CN115080448B (en) | Method and device for automatically detecting inaccessible path of software code | |
CN113805861B (en) | Code generation method based on machine learning, code editing system and storage medium | |
CN115481025A (en) | Script recording method and device for automatic test, computer equipment and medium | |
CN115454702A (en) | Log fault analysis method and device, storage medium and electronic equipment | |
CN113900956A (en) | Test case generation method and device, computer equipment and storage medium | |
CN113419959A (en) | Method and equipment for generating coverage rate verification report | |
CN113434658A (en) | Thermal power generating unit operation question-answer generation method, system, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20081022 Termination date: 20121226 |