CN109753437A - Method of generating test program and device, storage medium, electronic equipment - Google Patents
Method of generating test program and device, storage medium, electronic equipment Download PDFInfo
- Publication number
- CN109753437A CN109753437A CN201910030105.4A CN201910030105A CN109753437A CN 109753437 A CN109753437 A CN 109753437A CN 201910030105 A CN201910030105 A CN 201910030105A CN 109753437 A CN109753437 A CN 109753437A
- Authority
- CN
- China
- Prior art keywords
- test action
- test
- sequence
- user
- candidate
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000012360 testing method Methods 0.000 claims abstract description 364
- 230000009471 action Effects 0.000 claims abstract description 310
- 230000004044 response Effects 0.000 claims abstract description 58
- 238000013507 mapping Methods 0.000 claims abstract description 46
- 238000012986 modification Methods 0.000 claims description 12
- 230000004048 modification Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000000916 dilatatory effect Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 241000416536 Euproctis pseudoconspersa Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000002844 melting Methods 0.000 description 1
- 230000008018 melting Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003014 reinforcing effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
- 238000012956 testing procedure Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The disclosure is directed to a kind of method of generating test program and devices, belong to testing tool technical field, this method comprises: showing candidate test action list to user in response to test request;In response to user to the sequential selection of test action candidate in candidate test action list, the sequence of the candidate test action of user's sequential selection is recorded;The candidate's test action of each of sequence of candidate test action for user's sequential selection, searches test action and page elements sequence of operation mapping table, obtains the page elements sequence of operation of each candidate test action;The page elements sequence of operation of each of sequence of candidate test action by user's sequential selection candidate's test action is linked according to the sequence that user selects, the page elements sequence of operation used in stroke test;Corresponding test program is generated according to the page elements sequence of operation used in the test.The method increase the efficiency of test program generation, and reduce test program writes mistake.
Description
Technical field
This disclosure relates to testing tool technical field, in particular to a kind of method of generating test program, test program
Generating means, computer readable storage medium and electronic equipment.
Background technique
Financial asset valuation system is to aim at the system software for carrying out valuation to financial asset and designing.Estimate in financial asset
In the exploitation and escalation process of valve system, need to test financial asset valuation system.For different types of finance money
It produces or agrees to that the different operation datas of financial asset require to carry out different test operations, such as choose, click etc., because
This needs to carry out different testing procedures.Current financial asset valuation system testing program is all to have programmer manually to grab gold
After the various page elements for melting valuation of assets system, in the various operations for writing page elements, cost of labor is higher and works
Content is heavy, in programming process, is easy to appear mistake.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part
Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of method of generating test program, test program generation device, computer-readable
Storage medium and electronic equipment.
According to the disclosure in a first aspect, providing a kind of method of generating test program, comprising:
In response to test request, candidate test action list is shown to user;
In response to user to the sequential selection of test action candidate in candidate test action list, user's sequential selection is recorded
Candidate test action sequence;
The candidate's test action of each of sequence of candidate test action for user's sequential selection, searches test action
With page elements sequence of operation mapping table, the page elements sequence of operation of each candidate test action is obtained;
The page elements operation of each of sequence of candidate test action by user's sequential selection candidate's test action
Sequence is linked according to the sequence that user selects, the page elements sequence of operation used in stroke test;
Corresponding test program is generated according to the page elements sequence of operation used in the test.
In a kind of exemplary embodiment of the disclosure, in response to test request, candidate test action is shown to user
Before list, further includes:
Establish candidate test action list, wherein the candidate actions, which test the candidate test action of each of list, is
Test action in test action and page elements sequence of operation mapping table.
In a kind of exemplary embodiment of the disclosure, after establishing candidate test action list, the method is also wrapped
It includes:
In response to the test action list edit request of user, test action list edit interface is shown to user, it is described
Test action list edit interface includes deleting candidate test action option;
It selects to delete candidate test action option in response to user, shows candidate test action list to user;
In response to user for the selection of the candidate test action in candidate test action list, the candidate of selection is tested
Movement is deleted from candidate test action list.
In a kind of exemplary embodiment of the disclosure, after establishing candidate test action list, the method is also wrapped
It includes:
In response to the test action list edit request of user, test action list edit interface is shown to user, it is described
Test action list edit interface includes increasing candidate test action option;
It selects to increase candidate test action option in response to user, the input of increased candidate test action is shown to user
Frame;
Candidate test action is inputted in input frame in response to user, determine the candidate test action of input whether there is in
In test action and page elements sequence of operation mapping table;
It, will be defeated when the candidate test action of input is present in test action and page elements sequence of operation mapping table
The candidate test action entered increases in candidate test action list.
In a kind of exemplary embodiment of the disclosure, in response to test request, candidate test action is shown to user
Before list, the method also includes:
Establish test action and page elements sequence of operation mapping table;
The test action of each pre-selection and the page elements sequence of operation corresponding with the test action of the pre-selection is corresponding
It is stored in test action and page elements sequence of operation mapping table.
In a kind of exemplary embodiment of the disclosure, test action and page elements sequence of operation corresponding relationship are being established
After table, the method also includes:
In response to the test action and page elements sequence of operation corresponding relationship edit requests of user, shows and test to user
Movement and page elements sequence of operation corresponding relationship editing interface, wherein the test action and the page elements sequence of operation pair
Answering relationship editor interface includes that test action and page elements sequence of operation corresponding relationship modify option;
It selects test action and page elements sequence of operation corresponding relationship to modify option in response to user, shows and survey to user
Test action and page elements sequence of operation corresponding relationship in examination movement and page elements sequence of operation mapping table;
In response to user for test action in test action and page elements sequence of operation mapping table and page member
The test action of selection and page elements sequence of operation corresponding relationship are placed in modification shape by the selection of plain sequence of operation corresponding relationship
State;
Receive under modification state user to the test action of selection and the modification of page elements sequence of operation corresponding relationship.
In a kind of exemplary embodiment of the disclosure, test action and page elements sequence of operation corresponding relationship are being established
After table, the method also includes:
In response to the test action and page elements sequence of operation corresponding relationship edit requests of user, shows and test to user
Movement and page elements sequence of operation corresponding relationship editing interface, wherein the test action and the page elements sequence of operation pair
Answering relationship editor interface includes that test action and page elements sequence of operation corresponding relationship increase option;
It selects test action and page elements sequence of operation corresponding relationship to increase option in response to user, shows and survey to user
Try action input frame and page elements sequence of operation input frame;
In response to user's input test movement and the page elements sequence of operation, the test action of input and page elements are grasped
It is accordingly stored in test action and page elements sequence of operation mapping table as sequence.
According to the second aspect of the disclosure, a kind of test program generation device is provided, comprising:
Display module, is configured in response to test request, shows candidate test action list to user;
Logging modle is configured to the sequential selection in response to user to test action candidate in candidate test action list,
Record the sequence of the candidate test action of user's sequential selection;
Module is obtained, is configured to dynamic for the candidate test of each of sequence of candidate test action of user's sequential selection
Make, search test action and page elements sequence of operation mapping table, obtains the page elements behaviour of each candidate test action
Make sequence;
Sorting module is configured to the candidate test action of each of sequence of candidate test action of user's sequential selection
The sequential connection that is selected according to user of the page elements sequence of operation, form the test page elements sequence of operation used;
Program generating module is configured to the page elements sequence of operation according to used in the test and generates corresponding test journey
Sequence.
According to the third aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with,
The method of generating test program as described in above-mentioned any one is realized when the computer program is executed by processor.
According to the fourth aspect of the disclosure, a kind of electronic equipment is provided, comprising:
Processor;And
Memory is stored thereon with computer program;
Wherein, the processor is configured to realize as described in above-mentioned any one via the computer program is executed
Method of generating test program.
The technical scheme provided by this disclosed embodiment can have it is following the utility model has the advantages that
By the presently disclosed embodiments, by showing candidate test action list to user, user is surveyed by the candidate
The selection of the candidate test action of examination action lists progress, the sequence of the selected candidate actions test of system records user, and it is right
Should candidate actions test sequence generate page operation element sequence, according to the page operation element sequence generate test journey
Sequence.Different from making cost of labor higher by human-edited's program in the prior art and more error-prone, the present invention is surveyed by candidate
Examination movement is corresponding with page operation element and the correspondence of page operation element and test program, so that user need to only pass through
Choose needed for candidate test action writing for test program can be realized, write it is high-efficient, and can be avoided programming mistake
The case where missing.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 shows a kind of flow diagram of method of generating test program according to one exemplary embodiment of the disclosure.
Fig. 2 shows the also included foundation of method of generating test program of Fig. 1 according to one exemplary embodiment of the disclosure to survey
The flow diagram of examination movement and page elements sequence of operation mapping table.
Fig. 3 is shown to be surveyed according to the also included editor of method of generating test program of Fig. 2 of one exemplary embodiment of the disclosure
The flow diagram of examination movement and page elements sequence of operation corresponding relationship.
Fig. 4 shows a kind of block diagram of test program generation device according to one exemplary embodiment of the disclosure.
Fig. 5 shows a kind of electricity for realizing above-mentioned method of generating test program according to one exemplary embodiment of the disclosure
Sub- device examples block diagram.
Fig. 6 shows a kind of meter for realizing above-mentioned method of generating test program according to one exemplary embodiment of the disclosure
Calculation machine readable storage medium storing program for executing.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps
More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can
It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used
Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and
So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function
Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form
Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place
These functional entitys are realized in reason device device and/or microcontroller device.
A kind of method of generating test program is provided firstly in this example embodiment, which can run
In terminal, which can be position-movable terminal (such as mobile phone, laptop computer etc.), be also possible to what position was fixed
Terminal (such as the work computer etc. for being configured at the fixed position of enterprise).Certainly, those skilled in the art can also be according to demand
Method of the invention is run in other platforms, and particular determination is not done to this in the present exemplary embodiment.Refering to what is shown in Fig. 1, Fig. 1 is
According to a kind of flow diagram of method of generating test program of one exemplary embodiment of the disclosure, embodiment shown in Fig. 1
In, which may comprise steps of:
Step S110 shows candidate test action list to user in response to test request.
Wherein, test request refers to for requesting the request write of starting test program, the test request can be by with
The specific position that family is clicked on interface is sent (such as " writing starting " button on interface etc.), is also possible to when reception
To financial asset valuation system upgrade notice when sent, this example does not do particular determination to this.Candidate test action is
Refer to the test operation carried out in the test of financial asset valuation system, such as choose, click etc..Candidate test action list
Refer to the table for being arranged with selectable candidate test action.Candidate's test action list can be drop-down list etc.,
It can also be directly displayed at page middle position, there is no special restriction on this for this example.
In an illustrative embodiments, in response to test request, before showing candidate test action list to user,
The method also includes:
Establish candidate test action list, wherein the candidate test action of each of described candidate's test action list is
Test action in test action and page elements sequence of operation mapping table.
In the illustrative embodiments, each of candidate test action list candidate's test action is recorded on survey
In examination movement and page elements sequence of operation mapping table, so that user's time selected in candidate test action list
Select test action can be by finding the corresponding page in test action and page elements sequence of operation mapping table
Element operation sequence.
Further, in an illustrative embodiments, after establishing candidate test action list, the method is also wrapped
It includes:
In response to the test action list edit request of user, test action list edit interface is shown to user, it is described
Test action list edit interface includes deleting candidate test action option;
It selects to delete candidate test action option in response to user, shows candidate test action list to user;
In response to user for the selection of the candidate test action in candidate test action list, the candidate of selection is tested
Movement is deleted from candidate test action list.
In the illustrative embodiments, the request of test action list edit, which refers to, edits candidate test action for starting
The request of list, test action list request can be the specific region clicked on interface by user, and (such as " starting editor " is pressed
Button etc.) it is generated and sent.When receiving the request of test action list edit, show that test action list is compiled to user
Editing interface, the interface include deleting candidate test action option.When user selects to delete candidate test action option, to user
Show candidate actions test list, according to user in candidate test action list selection (such as choose or by candidate survey
The dilatory list etc. out of examination movement), it is convenient by the selected candidate test action of user by being deleted in candidate test action list
The editor of user.
In another exemplary embodiment, after establishing candidate test action list, the method also includes:
In response to the test action list edit request of user, test action list edit interface is shown to user, it is described
Test action list edit interface includes increasing candidate test action option;
It selects to increase candidate test action option in response to user, the input of increased candidate test action is shown to user
Frame;
Candidate test action is inputted in input frame in response to user, determine the candidate test action of input whether there is in
In test action and page elements sequence of operation mapping table;
It, will be defeated when the candidate test action of input is present in test action and page elements sequence of operation mapping table
The candidate test action entered increases in candidate test action list.
In the illustrative embodiments, when user selects to increase candidate test action option, shows and increase to user
Candidate test action input frame, user's increased candidate test action needed for being inputted in the input frame, wherein input
Can be the title for needing increased candidate test action or digital number etc., there is no special restriction on this for this example.When
User inputs after completion, judges that the candidate test action that user is inputted whether there is in test action and page elements operation
In sequence mapping table, to determine that can the candidate test action that inputted corresponding with the page elements sequence of operation.When defeated
When the candidate test action entered is present in test action and page elements sequence of operation mapping table, user is inputted
Candidate test action increases in candidate test action list.
Referring to FIG. 2, Fig. 2 is to further include according to the method for generating test program of Fig. 1 of one exemplary embodiment of the disclosure
The flow diagram for establishing test action Yu page elements sequence of operation mapping table, in the embodiment shown in Figure 2,
In response to test request, before showing candidate test action list to user, the method also includes:
Step S210 establishes test action and page elements sequence of operation mapping table.
Step S220 operates the test action of each pre-selection and page elements corresponding with the test action of the pre-selection
Sequence is corresponding to be stored in test action and page elements sequence of operation mapping table.
In the illustrative embodiments, it is pre-configured with the corresponding page elements operation sequence of test action of each pre-selection
Column, and by the test action of each pre-selection and the page elements sequence of operation corresponding with the test action it is corresponding be stored in test move
Make and in page elements sequence of operation mapping table, is convenient for searching.
Referring to FIG. 3, Fig. 3 is to further include according to the method for generating test program of Fig. 2 of one exemplary embodiment of the disclosure
The flow diagram of editor test action and page elements sequence of operation corresponding relationship building in the embodiment shown in fig. 3
After vertical test action and page elements sequence of operation mapping table, the method also includes:
Step S310, in response to the test action and page elements sequence of operation corresponding relationship edit requests of user, Xiang Yong
Family shows test action and page elements sequence of operation corresponding relationship editing interface, wherein the test action and page elements
Sequence of operation corresponding relationship editing interface includes that test action and page elements sequence of operation corresponding relationship modify option.
Step S320 selects test action and page elements sequence of operation corresponding relationship to modify option in response to user, to
User shows test action and the page elements sequence of operation pair in test action and page elements sequence of operation mapping table
It should be related to.
Wherein, test action of the test action in page elements sequence of operation mapping table and page elements operate sequence
Column corresponding relationship can be and shown by reference numeral (such as a certain corresponding test action and the page elements sequence of operation
Number is 1 etc.), it is also possible to show in such a way that test action is carried out line with the corresponding page elements sequence of operation
Show, be also possible to by by test action and the corresponding page elements sequence of operation be placed in corresponding position shown (such as
A certain corresponding test action and the page elements sequence of operation are placed in first of respective queue etc.) etc., this example
There is no special restriction on this.
Step S330, in response to user for test action in test action and page elements sequence of operation mapping table
With the selection of page elements sequence of operation corresponding relationship, the test action of selection and page elements sequence of operation corresponding relationship are set
In modification state.
Wherein, user can carry out pass between the two by the number of modification test action and the page elements sequence of operation
System's selection can also carry out relationship between the two by the line between modification test action and the page elements sequence of operation and select
It selects, relationship between the two can also be carried out in the position of respective queue by adjusting test action and the page elements sequence of operation
Selection etc., there is no special restriction on this for this example.
Step S340 receives the pass corresponding with the page elements sequence of operation to the test action of selection of the user under modification state
The modification of system.
In an illustrative embodiments, after establishing test action and page elements sequence of operation mapping table,
The method also includes:
In response to the test action and page elements sequence of operation corresponding relationship edit requests of user, shows and test to user
Movement and page elements sequence of operation corresponding relationship editing interface, wherein the test action and the page elements sequence of operation pair
Answering relationship editor interface includes that test action and page elements sequence of operation corresponding relationship increase option.
It selects test action and page elements sequence of operation corresponding relationship to increase option in response to user, shows and survey to user
Try action input frame and page elements sequence of operation input frame.
In response to user's input test movement and the page elements sequence of operation, the test action of input and page elements are grasped
It is accordingly stored in test action and page elements sequence of operation mapping table as sequence.
In the illustrative embodiments, option is increased by test action and page elements sequence of operation corresponding relationship
Setting allows users to the page elements behaviour according to corresponding to the actual demand of oneself increase test action and test action
Make sequence, is easy to use.
Step S120, in response to user to the sequential selection of test action candidate in candidate test action list, record is used
The sequence of the candidate test action of family sequential selection.
User's test action according to needed for financial asset valuation system testing, to the candidate in candidate test action list
Test action is chosen.The selecting sequence of user and the selected candidate test action of the corresponding user of the sequence are carried out
Record generates the sequence of candidate test action, such as user first has selected to choose, and second has selected click etc..Its
In, which can be the candidate test action clicked in candidate test action list by user, be generated according to number of clicks suitable
Sequence number, and candidate test action corresponding to the serial number and the number is stored;Being also possible to will by user
The dilatory list out of candidate test action in candidate test action list is arranged, further according to drawn candidate test action
Position carry out serial number, the serial number can be from top to bottom carry out automatic numbering be also possible to by it is left-to-right carry out from
Dynamic number etc., this example does not do particular determination to this.
Step S130 is looked into for the candidate test action of each of sequence of candidate test action of user's sequential selection
Test action and page elements sequence of operation mapping table are looked for, the page elements operation sequence of each candidate test action is obtained
Column.
Wherein, page elements refer to the element that can be operated in the page, such as key, tick boxes, hyperlink etc..Page
Surface element operation refers to the operational motion to page elements, such as: click the page elements etc..The page elements sequence of operation is
Refer to needed for completing each test action to one group of operational order of page elements, the corresponding page elements of each test action
The sequence of operation.Such as: the page elements sequence of operation corresponding to " a choosing " test action are as follows: click " tick boxes "-and click
" determination " key, etc..
Test action can be pre-configured with page elements sequence of operation mapping table, be tested according to the candidate recorded
The sequence of movement obtains and candidate test action by searching for test action and page elements sequence of operation mapping table
The page elements sequence of operation corresponding to the candidate test action of each in sequence.
Step S140, by the page of the candidate test action of each of sequence of candidate test action of user's sequential selection
The sequential connection that element operation sequence is selected according to user forms the test page elements sequence of operation used.
Step S150 generates corresponding test program according to the page elements sequence of operation used in the test.
In an illustrative embodiments, it is previously stored with each page elements and operates corresponding program code segments, according to
The page elements sequence of operation used in the test generates corresponding test program:
It obtains each page elements in the page elements sequence of operation used in the test and operates corresponding program code segments;
Each page elements are operated into corresponding program code segments according to the page elements sequence of operation used in the test
Middle putting in order for page elements operation assembles, and becomes corresponding test program.
In above-mentioned example embodiment, program code segments refer to the generation that corresponding page elements operation can be achieved
Code, each page elements operate a corresponding program code segments.Corresponding journey is carried out according to a page elements sequence of operation
The test program of the page elements sequence of operation can be achieved in the combination of sequence code segment.
The disclosure additionally provides a kind of test program generation device.Refering to what is shown in Fig. 4, the test program generation device can be with
Including display module 410, logging modle 420, obtain module 430, sorting module 440 and program generating module 450.Wherein:
Display module 410 is configured in response to test request, shows candidate test action list to user.
Logging modle 420 is configured to select in response to sequence of the user to test action candidate in candidate test action list
It selects, records the sequence of the candidate test action of user's sequential selection.
Module 430 is obtained to be configured to for the candidate test of each of sequence of candidate test action of user's sequential selection
Test action and page elements sequence of operation mapping table are searched in movement, obtain the page elements of each candidate test action
The sequence of operation.
Sorting module 440 is configured to the candidate test of each of sequence of candidate test action of user's sequential selection is dynamic
The sequential connection that the page elements sequence of operation of work is selected according to user forms the test page elements sequence of operation used.
Program generating module 450 is configured to the page elements sequence of operation according to used in the test and generates corresponding test
Program.
The detail of each module is in corresponding method of generating test program in above-mentioned test program generation device
It is described in detail, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want
These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize
Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/
Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 500 of this embodiment according to the present invention is described referring to Fig. 5.The electronics that Fig. 5 is shown
Equipment 500 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 5, electronic equipment 500 is showed in the form of universal computing device.The component of electronic equipment 500 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 510, at least one above-mentioned storage unit 520, the different system components of connection
The bus 530 of (including storage unit 520 and processing unit 510).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510
Row, so that various according to the present invention described in the execution of the processing unit 510 above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the processing unit 510 can execute step S110 as shown in fig. 1: in response to
Test request shows candidate test action list to user;Step S120: in response to user to being waited in candidate test action list
The sequential selection of test action is selected, the sequence of the candidate test action of user's sequential selection is recorded;Step S130: suitable for user
The candidate test action of each of the sequence of candidate test action of sequence selection, searches test action and the page elements sequence of operation
Mapping table obtains the page elements sequence of operation of each candidate test action;Step S140: by the time of user's sequential selection
The page elements sequence of operation of the candidate test action of each of sequence of test action is selected to link according to the sequence that user selects,
The page elements sequence of operation used in stroke test;Step S150: raw according to the page elements sequence of operation used in the test
At corresponding test program.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 5201 and/or cache memory unit 5202, it can further include read-only memory unit (ROM) 5203.
Storage unit 520 can also include program/utility with one group of (at least one) program module 5205
5204, such program module 5205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 500 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 500 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 500 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, electronic equipment 500 can be with
By network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 560 is communicated by bus 530 with other modules of electronic equipment 500.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 500, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also
In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute
Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair
The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 6, describing the program product for realizing the above method of embodiment according to the present invention
600, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device,
Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional mistake
Formula programming language-such as " C " language or similar programming language.Program code can be calculated fully in user
It executes in equipment, partly execute on a user device, executing, as an independent software package partially in user calculating equipment
Upper part executes on a remote computing or executes in remote computing device or server completely.It is being related to remotely counting
In the situation for calculating equipment, remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
Claims (10)
1. a kind of method of generating test program characterized by comprising
In response to test request, candidate test action list is shown to user;
In response to user to the sequential selection of test action candidate in candidate test action list, the time of user's sequential selection is recorded
Select the sequence of test action;
The candidate's test action of each of sequence of candidate test action for user's sequential selection, searches test action and page
Surface element sequence of operation mapping table obtains the page elements sequence of operation of each candidate test action;
The page elements sequence of operation of each of sequence of candidate test action by user's sequential selection candidate's test action
It is linked according to the sequence of user's selection, the page elements sequence of operation used in stroke test;
Corresponding test program is generated according to the page elements sequence of operation used in the test.
2. method of generating test program according to claim 1, which is characterized in that in response to test request, to user
Before the candidate test action list of display, further includes:
Establish candidate test action list, wherein the candidate test action of each of described candidate actions test list is to survey
Test action in examination movement and page elements sequence of operation mapping table.
3. method of generating test program according to claim 2, which is characterized in that establish candidate test action list it
Afterwards, further includes:
In response to the test action list edit request of user, test action list edit interface, the test are shown to user
Action lists editing interface includes deleting candidate test action option;
It selects to delete candidate test action option in response to user, shows candidate test action list to user;
In response to user for the selection of the candidate test action in candidate test action list, by the candidate test action of selection
It is deleted from candidate test action list.
4. method of generating test program according to claim 2, which is characterized in that establish candidate test action list it
Afterwards, further includes:
In response to the test action list edit request of user, test action list edit interface, the test are shown to user
Action lists editing interface includes increasing candidate test action option;
It selects to increase candidate test action option in response to user, the input frame of increased candidate test action is shown to user;
Candidate test action is inputted in input frame in response to user, determines that the candidate test action of input whether there is in test
In movement and page elements sequence of operation mapping table;
When the candidate test action of input is present in test action and page elements sequence of operation mapping table, by input
Candidate test action increases in candidate test action list.
5. method of generating test program according to claim 1, which is characterized in that in response to test request, to user
Before the candidate test action list of display, further includes:
Establish test action and page elements sequence of operation mapping table;
By the test action of each pre-selection and the page elements sequence of operation corresponding with the test action of the pre-selection it is corresponding storage
In test action and page elements sequence of operation mapping table.
6. method of generating test program according to claim 5, which is characterized in that establishing test action and page elements
After sequence of operation mapping table, the method also includes:
In response to the test action and page elements sequence of operation corresponding relationship edit requests of user, test action is shown to user
With page elements sequence of operation corresponding relationship editing interface, wherein the test action is corresponding with the page elements sequence of operation to close
It is editing interface include that test action and page elements sequence of operation corresponding relationship modify option;
It selects test action and page elements sequence of operation corresponding relationship to modify option in response to user, shows that test is dynamic to user
Test action and page elements sequence of operation corresponding relationship in work and page elements sequence of operation mapping table;
Test action in test action and page elements sequence of operation mapping table and page elements are grasped in response to user
The test action of selection and page elements sequence of operation corresponding relationship are placed in modification state by the selection for making sequence corresponding relationship;
Receive under modification state user to the test action of selection and the modification of page elements sequence of operation corresponding relationship.
7. method of generating test program according to claim 5, which is characterized in that establishing test action and page elements
After sequence of operation mapping table, further includes:
In response to the test action and page elements sequence of operation corresponding relationship edit requests of user, test action is shown to user
With page elements sequence of operation corresponding relationship editing interface, wherein the test action is corresponding with the page elements sequence of operation to close
It is editing interface include that test action and page elements sequence of operation corresponding relationship increase option;
It selects test action and page elements sequence of operation corresponding relationship to increase option in response to user, shows that test is dynamic to user
Make input frame and page elements sequence of operation input frame;
In response to user's input test movement and the page elements sequence of operation, the test action of input and page elements are operated into sequence
Column accordingly store in test action and page elements sequence of operation mapping table.
8. a kind of test program generation device characterized by comprising
Display module, is configured in response to test request, shows candidate test action list to user;
Logging modle is configured to the sequential selection in response to user to test action candidate in candidate test action list, record
The sequence of the candidate test action of user's sequential selection;
Module is obtained, is configured to for the candidate test action of each of sequence of candidate test action of user's sequential selection,
Test action and page elements sequence of operation mapping table are searched, the page elements operation sequence of each candidate test action is obtained
Column;
Sorting module is configured to the page of the candidate test action of each of sequence of candidate test action of user's sequential selection
The sequential connection that the surface element sequence of operation is selected according to user forms the test page elements sequence of operation used;
Program generating module is configured to the page elements sequence of operation according to used in the test and generates corresponding test program.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt
Such as method of generating test program of any of claims 1-7 is realized when processor executes.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory is stored thereon with computer program;
Wherein, the processor is configured to realize via the computer program is executed such as any one of claim 1-7 institute
The method of generating test program stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910030105.4A CN109753437B (en) | 2019-01-11 | 2019-01-11 | Test program generation method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910030105.4A CN109753437B (en) | 2019-01-11 | 2019-01-11 | Test program generation method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109753437A true CN109753437A (en) | 2019-05-14 |
CN109753437B CN109753437B (en) | 2024-06-25 |
Family
ID=66405558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910030105.4A Active CN109753437B (en) | 2019-01-11 | 2019-01-11 | Test program generation method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109753437B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110348127A (en) * | 2019-07-12 | 2019-10-18 | 北京物芯科技有限责任公司 | A kind of generation method of test case, device, equipment and storage medium |
CN110781092A (en) * | 2019-11-07 | 2020-02-11 | 北京博睿宏远数据科技股份有限公司 | Script testing method, device, terminal and storage medium |
CN112579451A (en) * | 2020-12-22 | 2021-03-30 | 建信金融科技有限责任公司 | Test method, device and equipment based on test element sequencing |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306122A (en) * | 2011-09-14 | 2012-01-04 | 北京星网锐捷网络技术有限公司 | Automated testing method and equipment |
CN103984626A (en) * | 2014-05-13 | 2014-08-13 | 华为技术有限公司 | Method and device for generating test-case script |
CN105094511A (en) * | 2014-05-20 | 2015-11-25 | 富士通株式会社 | Test case generating method and test case generating device |
CN106326121A (en) * | 2016-08-22 | 2017-01-11 | 上海亿账通互联网科技有限公司 | Method for automatically generating test script and terminal |
CN106598869A (en) * | 2016-12-26 | 2017-04-26 | 北京京东金融科技控股有限公司 | Method and device for realizing automatic software testing and electronic equipment |
CN108255706A (en) * | 2017-11-27 | 2018-07-06 | 平安科技(深圳)有限公司 | Edit methods, device, terminal device and the storage medium of automatic test script |
CN108255709A (en) * | 2017-12-26 | 2018-07-06 | 平安壹钱包电子商务有限公司 | Script tests method, apparatus, terminal device and the storage medium of written in code |
CN108304329A (en) * | 2018-02-13 | 2018-07-20 | 论客科技(广州)有限公司 | A kind of testing example design method, apparatus, terminal and readable storage medium storing program for executing |
-
2019
- 2019-01-11 CN CN201910030105.4A patent/CN109753437B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102306122A (en) * | 2011-09-14 | 2012-01-04 | 北京星网锐捷网络技术有限公司 | Automated testing method and equipment |
CN103984626A (en) * | 2014-05-13 | 2014-08-13 | 华为技术有限公司 | Method and device for generating test-case script |
CN105094511A (en) * | 2014-05-20 | 2015-11-25 | 富士通株式会社 | Test case generating method and test case generating device |
CN106326121A (en) * | 2016-08-22 | 2017-01-11 | 上海亿账通互联网科技有限公司 | Method for automatically generating test script and terminal |
CN106598869A (en) * | 2016-12-26 | 2017-04-26 | 北京京东金融科技控股有限公司 | Method and device for realizing automatic software testing and electronic equipment |
CN108255706A (en) * | 2017-11-27 | 2018-07-06 | 平安科技(深圳)有限公司 | Edit methods, device, terminal device and the storage medium of automatic test script |
CN108255709A (en) * | 2017-12-26 | 2018-07-06 | 平安壹钱包电子商务有限公司 | Script tests method, apparatus, terminal device and the storage medium of written in code |
CN108304329A (en) * | 2018-02-13 | 2018-07-20 | 论客科技(广州)有限公司 | A kind of testing example design method, apparatus, terminal and readable storage medium storing program for executing |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110348127A (en) * | 2019-07-12 | 2019-10-18 | 北京物芯科技有限责任公司 | A kind of generation method of test case, device, equipment and storage medium |
CN110348127B (en) * | 2019-07-12 | 2023-05-09 | 北京物芯科技有限责任公司 | Method, device, equipment and storage medium for generating test cases |
CN110781092A (en) * | 2019-11-07 | 2020-02-11 | 北京博睿宏远数据科技股份有限公司 | Script testing method, device, terminal and storage medium |
CN112579451A (en) * | 2020-12-22 | 2021-03-30 | 建信金融科技有限责任公司 | Test method, device and equipment based on test element sequencing |
Also Published As
Publication number | Publication date |
---|---|
CN109753437B (en) | 2024-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102508845B (en) | Interface to navigate and search a concept hierarchy | |
CN102520841B (en) | Collection user interface | |
US10339481B2 (en) | Systems and methods for generating user interface-based service workflows utilizing voice data | |
US20130073969A1 (en) | Systems and methods for web based application modeling and generation | |
CN105378817A (en) | Incorporating external dynamic content into a whiteboard | |
EP3465469A1 (en) | Intelligent capture, storage, and retrieval of information for task completion | |
US10474439B2 (en) | Systems and methods for building conversational understanding systems | |
CN104471566A (en) | Interacting with a document as an application | |
CN105453017A (en) | Method and apparatus for providing graphic user interface | |
CN109753437A (en) | Method of generating test program and device, storage medium, electronic equipment | |
US20140068496A1 (en) | User interface apparatus in a user terminal and method for supporting the same | |
CN104011698A (en) | Access to supplemental data based on identifier derived from corresponding primary application data | |
CN110019498A (en) | Log synchronous method and device, storage medium, electronic equipment | |
CN109918314A (en) | Test method and device on mobile terminal, electronic equipment, storage medium | |
CN107038905A (en) | A kind of VR intellectual education control system | |
KR20220009338A (en) | Configuration method, device, electronic equipment and computer storage medium of modeling parameters | |
US20140279823A1 (en) | Lifecycle product analysis | |
CN110460647A (en) | Dispatching method, device, electronic equipment and the storage medium of network node | |
CN110404253A (en) | Interface data acquisition methods and device, electronic equipment, storage medium | |
US20200379786A1 (en) | Keyboard interaction model for software builder canvas nodes | |
US20230289729A1 (en) | Systems and methods for visualizing and managing project flows in a megaproject | |
JP2021196840A (en) | Information processing apparatus, information processing method, program, and information processing system | |
JP4839813B2 (en) | Information processing system and program | |
CN109684207A (en) | Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation | |
JP7254842B2 (en) | A method, system, and computer-readable recording medium for creating notes for audio files through interaction between an app and a website |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |