CN109684207A - Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation - Google Patents

Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation Download PDF

Info

Publication number
CN109684207A
CN109684207A CN201811534120.4A CN201811534120A CN109684207A CN 109684207 A CN109684207 A CN 109684207A CN 201811534120 A CN201811534120 A CN 201811534120A CN 109684207 A CN109684207 A CN 109684207A
Authority
CN
China
Prior art keywords
sequence
object element
test action
element test
action
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
Application number
CN201811534120.4A
Other languages
Chinese (zh)
Other versions
CN109684207B (en
Inventor
刘艺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811534120.4A priority Critical patent/CN109684207B/en
Publication of CN109684207A publication Critical patent/CN109684207A/en
Application granted granted Critical
Publication of CN109684207B publication Critical patent/CN109684207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management

Abstract

The invention discloses method, apparatus, electronic equipment and the storage mediums of a kind of encapsulation of sequence of operation, are related to software test field, this method comprises: determining object element test action;It determines in predetermined amount of time, the historical operation sequence that tester carries out the object element test action;Based on the historical operation sequence, the sequence of operation to be packaged to the object element test action is determined;The sequence of operation to be packaged is encapsulated as the object element test action.The method achieve unit testing movements to be adapted to the personalization of tester, improves the efficiency of test.

Description

Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation
Technical field
The present invention relates to software test fields, more particularly to the method, apparatus of sequence of operation encapsulation, electronic equipment and deposit Storage media.
Background technique
The page elements to graphic programming are being needed to carry out in test macro of the operation to complete test assignment, test Personnel need manually to pull each page elements, combine to realize the progress of test action.In many cases, one A little test actions repeat, and the operation before each tester will repeat page elements results in the low of efficiency Under.Therefore, will be encapsulated as unit testing movement to the sequence of operation of page elements can be improved the efficiency of test.But to same One test action, different testers have the different operating habits to page elements, correspondingly, the operation to page elements Sequence is also different.As unit testing movement be finally still on the page in the form of the sequence of operation of page elements existing for, because This, for different testers, the unit testing as made of different sequence of operation encapsulation is acted, and affects tester The test process of member.In this case, the sequence of operation is encapsulated as unit testing movement how personalizedly, for improving It has great significance for the efficiency of test.
Summary of the invention
Based on this, how to realize unit testing movement to of tester from technological layer in the related technology for solution The technical issues of propertyization adaptation is faced the present invention provides a kind of method, apparatus of sequence of operation encapsulation, electronic equipment and is deposited Storage media.
In a first aspect, providing a kind of method of sequence of operation encapsulation, comprising:
Determine object element test action;
It determines in predetermined amount of time, the historical operation sequence that tester carries out the object element test action;
Based on the historical operation sequence, the sequence of operation to be packaged to the object element test action is determined;
The sequence of operation to be packaged is encapsulated as the object element test action.
In an exemplary embodiment of the disclosure, object element test action is determined, comprising:
It obtains and the test assignment of test assignment is described;
Obtain the task key word in the test assignment description;
Based on the matching result of the task key word and preset allocation list, object element test action is determined, it is described Store keyword and corresponding unit testing action sequence in allocation list.
In an exemplary embodiment of the disclosure, the task key word in the test assignment description is obtained, comprising: will In the test assignment description input machine learning model that training finishes in advance, obtain by the machine learning model to described The task key word of test assignment description output, the machine learning model are trained in the following manner: will be previously determined pass The sentence of keyword inputs in machine learning model, as sample if the key that the machine learning model exports each sample Word is not inconsistent with corresponding predetermined keyword, then the parameter of machine learning model is adjusted, until the machine learning model The keyword of sample can correctly be exported.
In an exemplary embodiment of the disclosure, the task key word in the test assignment description is obtained, comprising:
Test assignment description is segmented;
Based on the participle to test assignment description, the task key word in the test assignment description is obtained.
In an exemplary embodiment of the disclosure, the matching knot based on the task key word Yu preset allocation list Fruit determines object element test action, and keyword and corresponding unit testing action sequence are store in the allocation list, packet It includes:
Determine the matching degree of each group of keyword in the task key word and the allocation list;
It is dynamic above or equal to unit testing corresponding to the matching degree maximum in predetermined threshold, corresponding keyword Make the unit testing movement in sequence, according to the sequence order in the unit testing action sequence, is successively determined as described Object element test action.
In an exemplary embodiment of the disclosure, each group of key in the task key word and the allocation list is determined The matching degree of word, comprising:
Determine the intersection and union of each group of keyword in the task key word and the allocation list;
To each group of keyword in the allocation list, by the number of members of the corresponding intersection divided by it is corresponding it is described simultaneously The obtained value of the number of members of collection, as the corresponding matching degree.
It in an exemplary embodiment of the disclosure, determines in predetermined amount of time, tester surveys the object element The historical operation sequence that examination movement carries out, comprising:
Obtain the operation log of storage in the database;
It based on the operation log, determines in predetermined amount of time, tester carries out the object element test action Historical operation sequence.
In an exemplary embodiment of the disclosure, it is based on the operation log, is determined in predetermined amount of time, tester The historical operation sequence that the object element test action is carried out, comprising: to the object element test action, if operation Without the record of corresponding historical operation sequence in predetermined amount of time in log, then require user manual to user client transmission Carry out the information of the encapsulation of the sequence of operation.
In an exemplary embodiment of the disclosure, it is based on the historical operation sequence, determines and the object element is surveyed The sequence of operation to be packaged of examination movement, comprising:
To the object element test action, determines corresponding each historical operation sequence, go out within a predetermined period of time Existing number;
By the most historical operation sequence of the frequency of occurrence, it is determined as the sequence of operation to be packaged.
In an exemplary embodiment of the disclosure, the sequence of operation to be packaged is encapsulated as the object element and is tested After movement, comprising: in response to the towing to the object element test action patterned in test page, terminate in towing The corresponding sequence of operation of patterned, the described object element test action is shown at position.
According to the second aspect of the disclosure, a kind of device of sequence of operation encapsulation is provided, comprising:
First determining module, for determining object element test action;
Second determining module, for determining in predetermined amount of time, tester carries out the object element test action Historical operation sequence;
Third determining module, for being based on the historical operation sequence, determine to the object element test action to Encapsulation operation sequence;
Package module, for the sequence of operation to be packaged to be encapsulated as the object element test action.
According to the third aspect of the disclosure, a kind of electronic equipment of sequence of operation encapsulation is provided, comprising:
Memory is configured to storage executable instruction.
Processor is configured to execute the executable instruction stored in the memory, to execute the process described above.
According to the fourth aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored with and refers to It enables, when the computer instruction is computer-executed, computer is made to execute the process described above.
It is to realize that test is dynamic by carrying out fundamental operation step by step to page elements with tester in traditional technology The realization of work is compared, and embodiment of the disclosure is by analyzing the historical operation behavior of tester, by tester Unit testing movement is encapsulated as to the sequence of operation that page elements preference carries out, tester is allowed to call directly unit survey Examination movement realizes unit testing movement and is adapted to the personalization of tester, improve the effect of test to carry out test process Rate.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
Fig. 1 shows the flow chart encapsulated according to the sequence of operation of one example embodiment of the disclosure.
Fig. 2 shows the devices encapsulated according to the sequence of operation of one example embodiment of the disclosure.
Fig. 3 show according to one example embodiment of the disclosure set the goal really unit testing movement detail flowchart.
Fig. 4 shows the matching knot of task based access control keyword and preset allocation list according to one example embodiment of the disclosure Fruit determines the detail flowchart of object element test action.
Fig. 5 is shown in the determination predetermined amount of time according to one example embodiment of the disclosure, and tester is to the target The detail flowchart for the historical operation sequence that unit testing movement carries out.
Fig. 6 is shown according to one example embodiment of the disclosure based on the historical operation sequence, is determined to the target The sequence of operation to be packaged of unit testing movement.
Fig. 7 shows the system architecture diagram encapsulated according to the sequence of operation of one example embodiment of the disclosure.
Fig. 8 shows the electronic equipment figure encapsulated according to the sequence of operation of one example embodiment of the disclosure.
Fig. 9 shows the computer readable storage medium encapsulated according to the sequence of operation of one example embodiment of the disclosure.
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.
The purpose of the disclosure is to realize that unit testing movement is adapted to the personalization of tester from technical aspect, improve The efficiency of test.The method encapsulated according to the sequence of operation of an embodiment of the present disclosure, comprising: determine that object element test is dynamic Make;It determines in predetermined amount of time, the historical operation sequence that tester carries out the object element test action;Based on described Historical operation sequence determines the sequence of operation to be packaged to the object element test action;By the sequence of operation to be packaged It is encapsulated as the object element test action.It is by the base to page elements progress step by step with tester in traditional technology Plinth operate to realize that the realization of test action is compared, embodiment of the disclosure by the historical operation behavior of tester into The sequence of operation that tester carries out page elements preference is encapsulated as unit testing movement, so that tester by row analysis Unit testing movement can be called directly, to carry out test process, realizes personalization of the unit testing movement to tester Adaptation, improves the efficiency of test.
Fig. 1 shows the flow chart encapsulated according to the sequence of operation of one example embodiment of the disclosure:
Step S100: object element test action is determined;
Step S110: determining in predetermined amount of time, and tester grasps the history that the object element test action carries out Make sequence;
Step S120: being based on the historical operation sequence, determines the operation to be packaged to the object element test action Sequence;
Step S130: the sequence of operation to be packaged is encapsulated as the object element test action.
In the following, by detailed solution is carried out to each step that aforesaid operations sequence in this example embodiment encapsulates in conjunction with attached drawing It releases and illustrates.
In the step s 100, object element test action is determined.
Object element test action refers to unit testing movement that is to be generated, can be realized a basic module function.
By determining object element test action, enable the server to carry out the sequence of operation to object element test action Encapsulation.
In one embodiment, as shown in figure 3, step S100 includes:
Step S1001: it obtains and the test assignment of test assignment is described;
Step S1002: the task key word in the test assignment description is obtained;
Step S1003: the matching result based on the task key word and preset allocation list determines that object element is tested It acts, stores keyword and corresponding unit testing action sequence in the allocation list.
Test assignment description refers to that one section to the test assignment progress statement of requirements illustrates text.
Task key word refers to the keyword to test assignment, extracted from the description of corresponding test assignment.
Unit testing action sequence refers to a series of units by realizing the corresponding test assignment of the keyword, being carried out The sequence of test action composition.
In one embodiment, the task key word in the test assignment description is obtained, comprising: retouch the test assignment It states in the input machine learning model that training finishes in advance, acquisition describes the test assignment by the machine learning model defeated Task key word out, the machine learning model are trained in the following manner: will be previously determined the sentence of keyword as Sample inputs in machine learning model, if the machine learning model each sample export keyword, with it is corresponding preparatory Determining keyword is not inconsistent, then adjusts the parameter of machine learning model, until the machine learning model can correctly export sample This keyword.
In one embodiment, the task key word in the test assignment description is obtained, comprising:
Test assignment description is segmented;
Based on the participle to test assignment description, the task key word in the test assignment description is obtained.
In one embodiment, test assignment description is segmented based on dictionary segmentation methods, test assignment is described Each vocabulary it is separated from each other.Further according to the preset function word table of comparisons, will be deleted with identical word in the function word table of comparisons, Retain remaining vocabulary, then the notional word by frequency of occurrence more than predetermined threshold, is determined as task key word.For example, predetermined threshold It is 5, in the vocabulary segmented, frequency of occurrence is more than that 5 words have " block ", " Hash ", " encryption ", then the test assignment The task key word of description are as follows: (" block ", " Hash ", " encryption ").
In one embodiment, as shown in figure 4, step S1003 includes:
Step S10031: the matching degree of each group of keyword in the task key word and the allocation list is determined;
Step S10032: above or equal to corresponding to the matching degree maximum in predetermined threshold, corresponding keyword Unit testing action sequence in unit testing movement, according to the sequence order in the unit testing action sequence, according to It is secondary to be determined as the object element test action.
By the matching of task key word and allocation list, the unit testing action sequence to test assignment is determined, so that clothes Business device acts the encapsulation for carrying out the sequence of operation to the unit testing of each of unit testing action sequence, that is, to object element The encapsulation of the test action progress sequence of operation.
In one embodiment, more than or equal to list corresponding to matching degree maximum in predetermined threshold, corresponding keyword First test action sequence are as follows: [" establishing account ", " send URL ", " storage returned packet ", " establishing account ", " sending URL ", " storage returned packet ", " comparison returned packet "].Then, object element test action is successively are as follows: " establishing account " " sends URL ", " storage returned packet ", " establishing account ", " sending URL ", " storage returned packet ", " comparison returned packet ".
In one embodiment, the matching degree of each group of keyword in the task key word and the allocation list, packet are determined It includes:
Determine the intersection and union of each group of keyword in the task key word and the allocation list;
To each group of keyword in the allocation list, by the number of members of the corresponding intersection divided by it is corresponding it is described simultaneously The obtained value of the number of members of collection, as the corresponding matching degree.
By this method, it is determined that the matching degree of keyword in task key word and allocation list.
In one embodiment, task key word are as follows: (" block ", " Hash ", " encryption ") stores three groups of passes in allocation list Keyword: (" Hash ", " character string ", " threshold value "), (" block ", " encryption ", " key ", " certification "), (" Hash ", " encryption ", "Merkel").Task key word is obtained with the intersection number of members of each group of keyword divided by corresponding union number of members Corresponding matching degree is respectively as follows: 0.2,0.4,0.5.
In step s 110, it determines in predetermined amount of time, tester goes through the object element test action The history sequence of operation.
Historical operation sequence refer to by tester in history, to realize object element test action, to page elements into The sequence of capable sequence of operations composition.
By this method, it enables the server to determine tester to mesh from the historical operation sequence of tester Mark unit testing movement, the operation that preference carries out.
In one embodiment, as shown in figure 5, step S110 includes:
Step S1101: the operation log of storage in the database is obtained;
Step S1102: it is based on the operation log, is determined in predetermined amount of time, tester surveys the object element The historical operation sequence that examination movement carries out.
By determining the historical operation sequence carried out to the object element test action to the record in operation log.
In one embodiment, object element test action are as follows: " storage returned packet ", current time in inquiry operation log In first 48 hours of point, tester realizes each secondary historical operation sequence that " storage returned packet " this test action is carried out.
In one embodiment, it is based on the operation log, is determined in predetermined amount of time, tester is to the object element The historical operation sequence that test action carries out, comprising: to the object element test action, if the predetermined time in operation log Without the record of corresponding historical operation sequence in section, then user is required to carry out the sequence of operation manually to user client transmission The information of encapsulation.If not inquiring the sequence of operation to object element test action in predetermined amount of time, i.e., described in explanation Object element test action is primary completely new unit testing movement, and tester did not carried out realization to it.Therefore it needs to survey Examination personnel voluntarily carry out the encapsulation of the sequence of operation to the object element test action.
In the step s 120, it is based on the historical operation sequence, is determined to the to be packaged of the object element test action The sequence of operation.
Pass through the screening to historical operation sequence, it is determined that tester's progress most frequent to object element test action The sequence of operation.
In one embodiment, as shown in fig. 6, step S120 includes:
Step S1201: to the object element test action, determining corresponding each historical operation sequence, predetermined The number occurred in period;
Step S1202: by the most historical operation sequence of the frequency of occurrence, it is determined as the sequence of operation to be packaged.
In one embodiment, object element test action are as follows: " storage returned packet " determines, tester from log 48 hours before current point in time, realize that " storage returned packet " carried out two different sequences of operation A, B.Wherein, it operates Sequence A are as follows: [" receiving data ", " format data ", " deletion error data ", " storing data "] occurs 4 times;Operate sequence Arrange B are as follows: [" receiving data ", " deletion error data ", " format data ", " storing data "] occurs 6 times.It then will operation Sequence B is determined as, to the sequence of operation to be packaged of " storage returned packet ".
In step s 130, the sequence of operation to be packaged is encapsulated as the object element test action.
By this method, sequence of operations sequence is encapsulated as a unit testing movement, so that tester carries out When test, the unit testing movement can be called directly, corresponding function is realized with the operation of tester's preference, without Carry out cumbersome operation.
In one embodiment, to object element test action " storage returned packet ", the corresponding sequence of operation to be packaged are as follows: [" receiving data ", " deletion error data ", " format data ", " storing data "]." data will be received ", " deletion error number According to ", " format data ", " storing data " be linked in sequence, graphic programming is that " storage returns to report for unit testing movement Text " is shown in the menu bar in test page.
In one embodiment, the sequence of operation to be packaged is encapsulated as after the object element test action, comprising: In response to the towing to the object element test action patterned in test page, figure is shown at towing end position Change, the corresponding sequence of operation of the object element test action.Such as: by patterned unit testing movement, " storage is returned Message " is pulled, and in the position that towing terminates, shows the patterned sequence of operation: [" receiving data ", " deletion error number According to ", " format data ", " storing data "], allow tester to carry out the configuration, dynamic with other unit testings of parameter The connection of work.
The disclosure additionally provides a kind of device of sequence of operation encapsulation.As shown in Fig. 2, the device of the sequence of operation encapsulation Include:
First determining module 210, for determining object element test action;
Second determining module 220, for determining in predetermined amount of time, tester to the object element test action into Capable historical operation sequence;
Third determining module 230 is determined for being based on the historical operation sequence to the object element test action The sequence of operation to be packaged;
Package module 240, for the sequence of operation to be packaged to be encapsulated as the object element test action.
The detail of each module has carried out in corresponding method in detail in the device of aforesaid operations sequence encapsulation Description, 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 according to the particular order by asking or implying, could be real or have to carry out step shown in whole Existing desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, with And/or a step is decomposed into execution of multiple steps etc. by person.
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, and the software product can store non-easy at one In the property lost storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a meter Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is calculated to execute according to disclosure embodiment Method.
Fig. 7 shows the system architecture block diagram encapsulated according to the sequence of operation of one example embodiment of the disclosure.The system Framework includes: tester's client 310, server 320, management end 330, database 340.
In one embodiment, server 320 obtains the test assignment description to test assignment from management end 330, carries out The extraction of task key word determines object element test action.Log is obtained from database 340 again, determines tester visitor Family end 310 is to the historical operation of object element test action, to further determine that the to be packaged of object element test action The sequence of operation to be packaged is encapsulated as object element test action, and the object element after graphic programming is surveyed by the sequence of operation In the page of examination movement display and test macro.Accordingly, in response to tester's client 310 to single in the test macro page The towing of first test action, server 320 can terminate to locate, show that patterned unit testing acts corresponding behaviour in traction position Make sequence, so that tester's client 310 is further operated.
By the way that above to the description of system architecture, those skilled in the art is it can be readily appreciated that system architecture described herein It can be realized the function of modules in the device of sequence of operation encapsulation shown in Fig. 2.
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 400 of this embodiment according to the present invention is described referring to Fig. 8.The electronics that Fig. 8 is shown Equipment 400 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 8, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap It includes but is not limited to: at least one above-mentioned processing unit 410, at least one above-mentioned storage unit 420, the different system components of connection The bus 430 of (including storage unit 420 and processing unit 410).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 410 Row, so that various according to the present invention described in the execution of the processing unit 410 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 410 can execute step S100 as shown in fig. 1: determining target Unit testing movement;Step S110: determining in predetermined amount of time, and tester goes through the object element test action The history sequence of operation;Step S120: being based on the historical operation sequence, determines the behaviour to be packaged to the object element test action Make sequence;Step S130: the sequence of operation to be packaged is encapsulated as the object element test action.
Storage unit 420 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 4201 and/or cache memory unit 4202, it can further include read-only memory unit (ROM) 4203.
Storage unit 420 can also include program/utility with one group of (at least one) program module 4205 4204, such program module 4205 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 430 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 400 can also be with one or more external equipments 500 (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 400 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 400 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 450.Also, electronic equipment 400 can be with By network adapter 460 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 460 is communicated by bus 430 with other modules of electronic equipment 400. 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 400, 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. 9, 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 Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and 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 sequence of operation encapsulation characterized by comprising
Determine object element test action;
It determines in predetermined amount of time, the historical operation sequence that tester carries out the object element test action;
Based on the historical operation sequence, the sequence of operation to be packaged to the object element test action is determined;
The sequence of operation to be packaged is encapsulated as the object element test action.
2. the method according to claim 1, wherein the determining object element test action, comprising:
It obtains and the test assignment of test assignment is described;
Obtain the task key word in the test assignment description;
Based on the matching result of the task key word and preset allocation list, object element test action, the configuration are determined Store keyword and corresponding unit testing action sequence in table.
3. according to the method described in claim 2, it is characterized in that, described be based on the task key word and preset allocation list Matching result, determine object element test action, keyword store in the allocation list and is acted with corresponding unit testing Sequence, comprising:
Determine the matching degree of each group of keyword in the task key word and the allocation list;
Sequence is acted above or equal to unit testing corresponding to the matching degree maximum in predetermined threshold, corresponding keyword Unit testing movement in column, according to the sequence order in the unit testing action sequence, is successively determined as the target Unit testing movement.
4. the method according to claim 1, wherein tester is to described in the determining predetermined amount of time The historical operation sequence that object element test action carries out, comprising:
Obtain the operation log of storage in the database;
It based on the operation log, determines in predetermined amount of time, tester goes through the object element test action The history sequence of operation.
5. according to the method described in claim 4, it is characterized in that, it is described be based on the operation log, determine predetermined amount of time Historical operation sequence interior, that tester carries out the object element test action, comprising: the object element is tested dynamic Make, if sent without the record of corresponding historical operation sequence to user client in predetermined amount of time in operation log It is required that user carries out the information of the encapsulation of the sequence of operation manually.
6. determining the method according to claim 1, wherein described be based on the historical operation sequence to described The sequence of operation to be packaged of object element test action, comprising:
To the object element test action, determines corresponding each historical operation sequence, occur within a predetermined period of time Number;
By the most historical operation sequence of the frequency of occurrence, it is determined as the sequence of operation to be packaged.
7. the method according to claim 1, wherein described be encapsulated as the mesh for the sequence of operation to be packaged After marking unit testing movement, comprising: in response to the towing to the object element test action patterned in test page, The corresponding sequence of operation of patterned, the described object element test action is shown at towing end position.
8. a kind of device of sequence of operation encapsulation characterized by comprising
First determining module, for determining object element test action;
Second determining module, for determining in predetermined amount of time, tester goes through the object element test action The history sequence of operation;
Third determining module is determined for being based on the historical operation sequence to the to be packaged of the object element test action The sequence of operation;
Package module, for the sequence of operation to be packaged to be encapsulated as the object element test action.
9. a kind of electronic equipment of sequence of operation encapsulation characterized by comprising
Memory is configured to storage executable instruction;
Processor is configured to execute the executable instruction stored in memory, to realize any of -7 institute according to claim 1 The method stated.
10. a kind of computer readable storage medium, which is characterized in that it is stored with computer program instructions, when the computer When instruction is computer-executed, computer is made to execute method described in any of -7 according to claim 1.
CN201811534120.4A 2018-12-14 2018-12-14 Method and device for packaging operation sequence, electronic equipment and storage medium Active CN109684207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811534120.4A CN109684207B (en) 2018-12-14 2018-12-14 Method and device for packaging operation sequence, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811534120.4A CN109684207B (en) 2018-12-14 2018-12-14 Method and device for packaging operation sequence, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109684207A true CN109684207A (en) 2019-04-26
CN109684207B CN109684207B (en) 2022-09-02

Family

ID=66186092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811534120.4A Active CN109684207B (en) 2018-12-14 2018-12-14 Method and device for packaging operation sequence, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109684207B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377354A (en) * 2019-06-04 2019-10-25 哈尔滨工业大学(威海) A kind of software sequence of operation automatic generation method
CN111177222A (en) * 2019-12-26 2020-05-19 腾讯云计算(北京)有限责任公司 Model testing method and device, computing equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134673A (en) * 2007-12-03 2009-06-18 Nec Corp Gui screen operation sequence verifying apparatus, method, and program
CN104978314A (en) * 2014-04-01 2015-10-14 深圳市腾讯计算机系统有限公司 Media content recommendation method and device
CN106021374A (en) * 2016-05-11 2016-10-12 百度在线网络技术(北京)有限公司 Underlay recall method and device for query result
CN106815137A (en) * 2015-12-01 2017-06-09 北京奇虎科技有限公司 Ui testing method and apparatus
US20170262297A1 (en) * 2016-03-09 2017-09-14 Wipro Limited Methods and Systems for Determining an Equipment Operation Based on Historical Operation Data
CN107729439A (en) * 2017-09-29 2018-02-23 北京小米移动软件有限公司 Obtain the methods, devices and systems of multi-medium data
CN108073519A (en) * 2018-01-31 2018-05-25 百度在线网络技术(北京)有限公司 Method for generating test case and device
CN108304324A (en) * 2018-01-22 2018-07-20 百度在线网络技术(北京)有限公司 Method for generating test case, device, equipment and storage medium
CN108334439A (en) * 2018-03-14 2018-07-27 百度在线网络技术(北京)有限公司 A kind of method for testing pressure, device, equipment and storage medium
CN108595330A (en) * 2018-04-23 2018-09-28 北京潘达互娱科技有限公司 A kind of application testing method and device
CN108647355A (en) * 2018-05-16 2018-10-12 平安普惠企业管理有限公司 Methods of exhibiting, device, equipment and the storage medium of test case
CN108845930A (en) * 2018-05-23 2018-11-20 深圳市腾讯网络信息技术有限公司 Interface operation test method and device, storage medium and electronic device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009134673A (en) * 2007-12-03 2009-06-18 Nec Corp Gui screen operation sequence verifying apparatus, method, and program
CN104978314A (en) * 2014-04-01 2015-10-14 深圳市腾讯计算机系统有限公司 Media content recommendation method and device
CN106815137A (en) * 2015-12-01 2017-06-09 北京奇虎科技有限公司 Ui testing method and apparatus
US20170262297A1 (en) * 2016-03-09 2017-09-14 Wipro Limited Methods and Systems for Determining an Equipment Operation Based on Historical Operation Data
CN106021374A (en) * 2016-05-11 2016-10-12 百度在线网络技术(北京)有限公司 Underlay recall method and device for query result
CN107729439A (en) * 2017-09-29 2018-02-23 北京小米移动软件有限公司 Obtain the methods, devices and systems of multi-medium data
CN108304324A (en) * 2018-01-22 2018-07-20 百度在线网络技术(北京)有限公司 Method for generating test case, device, equipment and storage medium
CN108073519A (en) * 2018-01-31 2018-05-25 百度在线网络技术(北京)有限公司 Method for generating test case and device
CN108334439A (en) * 2018-03-14 2018-07-27 百度在线网络技术(北京)有限公司 A kind of method for testing pressure, device, equipment and storage medium
CN108595330A (en) * 2018-04-23 2018-09-28 北京潘达互娱科技有限公司 A kind of application testing method and device
CN108647355A (en) * 2018-05-16 2018-10-12 平安普惠企业管理有限公司 Methods of exhibiting, device, equipment and the storage medium of test case
CN108845930A (en) * 2018-05-23 2018-11-20 深圳市腾讯网络信息技术有限公司 Interface operation test method and device, storage medium and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377354A (en) * 2019-06-04 2019-10-25 哈尔滨工业大学(威海) A kind of software sequence of operation automatic generation method
CN111177222A (en) * 2019-12-26 2020-05-19 腾讯云计算(北京)有限责任公司 Model testing method and device, computing equipment and storage medium
CN111177222B (en) * 2019-12-26 2023-03-03 腾讯云计算(北京)有限责任公司 Model testing method and device, computing equipment and storage medium

Also Published As

Publication number Publication date
CN109684207B (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN111814951B (en) Debugging deep neural network
CN103984626B (en) A kind of method and device for generating test case script
US20180024912A1 (en) Application Testing System and Method
CN108228567B (en) Method and device for extracting short names of organizations
CN109495552A (en) Method and apparatus for updating clicking rate prediction model
CN113590776A (en) Text processing method and device based on knowledge graph, electronic equipment and medium
CN108536684A (en) Automatically generate the method and device of English multiple-choice question answer choice
CN109872230A (en) The test method of finance data analysis system, device, medium, electronic equipment
CN112509690A (en) Method, apparatus, device and storage medium for controlling quality
CN109448727A (en) Voice interactive method and device
CN109559239A (en) Generation method, device, electronic equipment, storage medium are suggested in complaint handling
CN110109824A (en) Big data automatic regression test method, apparatus, computer equipment and storage medium
CN109684207A (en) Method, apparatus, electronic equipment and the storage medium of sequence of operation encapsulation
CN110162518B (en) Data grouping method, device, electronic equipment and storage medium
CN112306447A (en) Interface navigation method, device, terminal and storage medium
CN112558966B (en) Depth model visualization data processing method and device and electronic equipment
CN109753437A (en) Method of generating test program and device, storage medium, electronic equipment
CN110348581B (en) User feature optimizing method, device, medium and electronic equipment in user feature group
WO2016114748A1 (en) Data comparison
WO2023115831A1 (en) Application testing method and apparatus, electronic device and storage medium
CN110457318A (en) The update method of data field, device, medium, electronic equipment in block chain
CN110045952A (en) Code call method and device
CN109471792A (en) Test control method and device, electronic equipment, medium
CN109669875A (en) Application crash test method and device, electronic equipment and storage medium
CN109766260A (en) Configure method, apparatus, electronic equipment and the storage medium of test action

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