CN109684207B - Method and device for packaging operation sequence, electronic equipment and storage medium - Google Patents

Method and device for packaging operation sequence, electronic equipment and storage medium Download PDF

Info

Publication number
CN109684207B
CN109684207B CN201811534120.4A CN201811534120A CN109684207B CN 109684207 B CN109684207 B CN 109684207B CN 201811534120 A CN201811534120 A CN 201811534120A CN 109684207 B CN109684207 B CN 109684207B
Authority
CN
China
Prior art keywords
operation sequence
determining
target unit
unit 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.)
Active
Application number
CN201811534120.4A
Other languages
Chinese (zh)
Other versions
CN109684207A (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for packaging an operation sequence, electronic equipment and a storage medium, which relate to the field of software testing, and the method comprises the following steps: determining a target unit test action; determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period; determining an operation sequence to be packaged for the target unit test action based on the historical operation sequence; and packaging the operation sequence to be packaged into the target unit test action. The method realizes the personalized adaptation of the unit test action to the tester, and improves the test efficiency.

Description

Method and device for packaging operation sequence, electronic equipment and storage medium
Technical Field
The present invention relates to the field of software testing, and in particular, to a method and an apparatus for packaging an operation sequence, an electronic device, and a storage medium.
Background
In a test system which needs to operate the graphical programming page elements to complete a test task, a tester needs to manually drag and combine each page element to realize the test action. In many cases, some of the testing actions are repeated, each time the tester repeats the previous operation on a page element, resulting in inefficiencies. Therefore, packaging the sequence of operations on the page elements as a unit test action can improve the efficiency of the test. However, different testers have different operation habits on page elements for the same test action, and accordingly, the operation sequences of the page elements are different. Since the unit test actions finally exist on the page in the form of the operation sequence of the page elements, for different testers, the unit test actions packaged by different operation sequences also affect the test process of the testers. In this case, how to package the operation sequence into the unit test action individually is significant for improving the efficiency of the test.
Disclosure of Invention
Based on this, in order to solve the technical problem in the related art how to implement personalized adaptation of unit test actions to testers from a technical level, the invention provides a method, a device, electronic equipment and a storage medium for packaging an operation sequence.
In a first aspect, a method for encapsulation of an operation sequence is provided, including:
determining a target unit test action;
determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period;
determining an operation sequence to be packaged for the target unit test action based on the historical operation sequence;
and packaging the operation sequence to be packaged into the target unit test action.
In an exemplary embodiment of the present disclosure, determining a target unit test action includes:
acquiring a test task description of a test task;
acquiring a task keyword in the test task description;
and determining a target unit test action based on a matching result of the task keyword and a preset configuration table, wherein the keyword and a corresponding unit test action sequence are stored in the configuration table.
In an exemplary embodiment of the present disclosure, obtaining the task keyword in the test task description includes: inputting the test task description into a machine learning model trained in advance, and acquiring a task keyword output by the machine learning model for the test task description, wherein the machine learning model is trained in the following way: and inputting a sentence with a predetermined keyword into the machine learning model as a sample, and if the keyword output by the machine learning model for each sample does not accord with the corresponding predetermined keyword, adjusting parameters of the machine learning model until the machine learning model can correctly output the keyword of the sample.
In an exemplary embodiment of the present disclosure, obtaining the task keyword in the test task description includes:
performing word segmentation on the test task description;
and acquiring task keywords in the test task description based on the word segmentation of the test task description.
In an exemplary embodiment of the present disclosure, determining a target unit test action based on a matching result of the task keyword and a preset configuration table, where the configuration table stores a keyword and a corresponding unit test action sequence, includes:
determining the matching degree of the task keywords and each group of keywords in the configuration table;
and sequentially determining the unit test actions in the unit test action sequence corresponding to the keyword and the matching degree which is greater than or equal to the maximum matching degree in the preset threshold values as the target unit test actions according to the sequence in the unit test action sequence.
In an exemplary embodiment of the present disclosure, determining a matching degree between the task keyword and each group of keywords in the configuration table includes:
determining the intersection and union of the task keywords and each group of keywords in the configuration table;
and for each group of keywords in the configuration table, dividing the corresponding intersection member number by the corresponding union member number to obtain a value, and taking the value as the corresponding matching degree.
In an exemplary embodiment of the disclosure, determining a historical sequence of operations performed by a tester on the target unit test action within a predetermined time period includes:
acquiring an operation log stored in a database;
and determining a historical operation sequence of the testing action of the tester on the target unit in a preset time period based on the operation log.
In an exemplary embodiment of the disclosure, determining a historical operation sequence of the target unit test action performed by the tester in a predetermined time period based on the operation log includes: and for the target unit test action, if no corresponding historical operation sequence record exists in the operation log within a preset time period, sending packaged information which requires the user to manually perform the operation sequence to the user client.
In an exemplary embodiment of the disclosure, determining a sequence of operations to package for the target unit test action based on the historical sequence of operations includes:
determining the times of occurrence of each corresponding historical operation sequence in a preset time period for the target unit test action;
and determining the historical operation sequence with the most occurrence times as the operation sequence to be packaged.
In an exemplary embodiment of the disclosure, after packaging the operation sequence to be packaged as the target unit test action, the method includes: and responding to the dragging of the graphical target unit test action in the test page, and displaying an operation sequence corresponding to the graphical target unit test action at a dragging ending position.
According to a second aspect of the present disclosure, there is provided an apparatus of operation sequence encapsulation, comprising:
the first determination module is used for determining a target unit test action;
the second determination module is used for determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period;
a third determining module, configured to determine, based on the historical operation sequence, an operation sequence to be packaged for the target unit test action;
and the packaging module is used for packaging the operation sequence to be packaged into the target unit test action.
According to a third aspect of the present disclosure, there is provided an electronic device of an operation sequence package, comprising:
a memory configured to store executable instructions.
A processor configured to execute executable instructions stored in the memory to perform the above-described method.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium storing computer program instructions which, when executed by a computer, cause the computer to perform the method described above.
Compared with the realization that the testing action is realized by performing step-by-step basic operation on the page elements by the tester in the traditional technology, the embodiment of the disclosure packages the operation sequence which is preferably performed by the tester on the page elements into the unit testing action by analyzing the historical operation behavior of the tester, so that the tester can directly call the unit testing action to perform the testing process, thereby realizing the personalized adaptation of the unit testing action to the tester and improving the testing efficiency.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Fig. 1 shows a flowchart of an operational sequence encapsulation according to an example embodiment of the present disclosure.
Fig. 2 illustrates an apparatus packaged in an operational sequence according to an example embodiment of the present disclosure.
FIG. 3 illustrates a detailed flow chart for determining a target unit test action according to an example embodiment of the present disclosure.
FIG. 4 illustrates a detailed flowchart for determining a target unit test action based on a matching result of a task keyword with a preset configuration table according to an example embodiment of the present disclosure.
FIG. 5 illustrates a detailed flow chart of a historical sequence of operations performed by a tester on the target unit test action within a determined predetermined time period according to an example embodiment of the present disclosure.
FIG. 6 illustrates a sequence of operations to package for determining a test action for the target unit based on the historical sequence of operations, according to an example embodiment of the present disclosure.
FIG. 7 illustrates a system architecture diagram of an operational sequence package according to an example embodiment of the present disclosure.
Fig. 8 illustrates a diagram of an electronic device encapsulated by an operational sequence according to an example embodiment of the present disclosure.
FIG. 9 illustrates a computer-readable storage medium encapsulated by an operational sequence according to an example embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The purpose of the disclosure is to realize the personalized adaptation of the unit test action to the tester from the technical aspect and improve the test efficiency. The method for packaging the operation sequence comprises the following steps: determining a target unit test action; determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period; determining an operation sequence to be packaged for the target unit test action based on the historical operation sequence; and packaging the operation sequence to be packaged into the target unit test action. Compared with the realization that the testing action is realized by performing step-by-step basic operation on the page elements by the tester in the traditional technology, the embodiment of the disclosure packages the operation sequence which is preferably performed by the tester on the page elements into the unit testing action by analyzing the historical operation behavior of the tester, so that the tester can directly call the unit testing action to perform the testing process, thereby realizing the personalized adaptation of the unit testing action to the tester and improving the testing efficiency.
Fig. 1 shows a flowchart of the operational sequence encapsulation according to an example embodiment of the present disclosure:
step S100: determining a target unit test action;
step S110: determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period;
step S120: determining an operation sequence to be packaged for the target unit test action based on the historical operation sequence;
step S130: and packaging the operation sequence to be packaged into the target unit test action.
Hereinafter, each step of the above-described operation sequence encapsulation in the present exemplary embodiment will be explained and explained in detail with reference to the drawings.
In step S100, a target unit test action is determined.
The target unit test action refers to a unit test action to be generated, which can realize a basic module function.
By determining the target unit test action, the server is enabled to package the sequence of operations on the target unit test action.
In one embodiment, as shown in fig. 3, step S100 includes:
step S1001: acquiring a test task description of a test task;
step S1002: acquiring a task keyword in the test task description;
step S1003: and determining a target unit test action based on a matching result of the task keyword and a preset configuration table, wherein the keyword and a corresponding unit test action sequence are stored in the configuration table.
The test task description refers to a piece of explanatory text for explaining the requirements of the test task.
The task keywords refer to keywords extracted from the corresponding test task description for the test task.
The unit test action sequence is a sequence formed by a series of unit test actions performed to realize the test task corresponding to the keyword.
In an embodiment, the obtaining of the task keyword in the test task description includes: inputting the test task description into a machine learning model trained in advance, and acquiring a task keyword output by the machine learning model to the test task description, wherein the machine learning model is trained in the following way: and inputting a sentence with a predetermined keyword into the machine learning model as a sample, and if the keyword output by the machine learning model for each sample does not accord with the corresponding predetermined keyword, adjusting parameters of the machine learning model until the machine learning model can correctly output the keyword of the sample.
In an embodiment, the obtaining of the task keyword in the test task description includes:
performing word segmentation on the test task description;
and acquiring task keywords in the test task description based on the word segmentation of the test task description.
In one embodiment, the test task description is segmented based on a dictionary segmentation algorithm, and all words in the test task description are separated from each other. And deleting the words same as the words in the virtual word comparison table according to a preset virtual word comparison table, reserving the rest words, and determining the real words with the occurrence frequency exceeding a preset threshold value as the task keywords. For example, the predetermined threshold is 5, and in the vocabulary obtained by word segmentation, words with the occurrence frequency exceeding 5 times include "block", "hash", and "encryption", then the task keywords described by the test task are: ("chunk", "hash", "encryption").
In one embodiment, as shown in fig. 4, step S1003 includes:
step S10031: determining the matching degree of the task keywords and each group of keywords in the configuration table;
step S10032: and sequentially determining the unit test actions in the unit test action sequence corresponding to the keyword and the matching degree which is greater than or equal to the maximum matching degree in the preset threshold values as the target unit test actions according to the sequence in the unit test action sequence.
And determining a unit test action sequence of the test task through matching the task keyword with the configuration table, so that the server packages an operation sequence for each unit test action in the unit test action sequence, namely packages an operation sequence for the target unit test action.
In one embodiment, the unit test action sequence corresponding to the corresponding keyword, which is greater than or equal to the maximum matching degree in the predetermined threshold, is: [ create account "," send URL "," store return message "," compare return message ]. Then, the target unit test actions are sequentially: the method comprises the steps of establishing an account, sending a URL, storing a return message, establishing the account, sending the URL, storing the return message and comparing the return message.
In one embodiment, determining the matching degree of the task keyword and each group of keywords in the configuration table comprises:
determining the intersection and union of the task keywords and each group of keywords in the configuration table;
and for each group of keywords in the configuration table, dividing the corresponding intersection member number by the corresponding union member number to obtain a value, and taking the value as the corresponding matching degree.
By the method, the matching degree of the task keywords and the keywords in the configuration table is determined.
In one embodiment, the task keywords are: ("chunk", "hash", and "encryption"), the configuration table stores three sets of keys: ("hash", "string", "threshold"), ("chunk", "encryption", "key", "authentication"), ("hash", "encryption", "Merkel"). Dividing the number of intersection members of the task keywords and each group of keywords by the number of corresponding union members to obtain corresponding matching degrees which are respectively as follows: 0.2, 0.4, 0.5.
In step S110, a historical operation sequence of the target unit test actions performed by the tester in a predetermined time period is determined.
The historical operation sequence refers to a sequence formed by a series of operations performed on page elements by a tester historically in order to implement a target unit test action.
By the method, the server can determine the operation of the tester on the test action and the preference of the target unit from the historical operation sequence of the tester.
In one embodiment, as shown in fig. 5, step S110 includes:
step S1101: acquiring an operation log stored in a database;
step S1102: and determining a historical operation sequence of the testing action of the tester on the target unit in a preset time period based on the operation log.
And determining a historical operation sequence of the target unit test action through records in the operation log.
In one embodiment, the target unit test action is: and the storage return message inquires each historical operation sequence of the test action of storing the return message by the tester within 48 hours before the current time point in the operation log.
In one embodiment, determining a historical sequence of operations performed by a tester on the target unit test action within a predetermined time period based on the operation log comprises: and testing the action on the target unit, and if the operation log does not have a record of a corresponding historical operation sequence within a preset time period, sending information for requesting a user to manually package the operation sequence to the user client. If the operation sequence of the target unit test action is not inquired in the preset time period, the target unit test action is a brand new unit test action, and the target unit test action is not realized by a tester. Therefore, the test personnel is required to package the operation sequence of the target unit test action by themselves.
In step S120, a sequence of operations to be packaged for the target unit test action is determined based on the historical sequence of operations.
And determining the operation sequence which is most frequently performed by the testing personnel on the testing action of the target unit by screening the historical operation sequence.
In one embodiment, as shown in fig. 6, step S120 includes:
step S1201: determining the frequency of occurrence of each corresponding historical operation sequence in a preset time period for the target unit test action;
step S1202: and determining the historical operation sequence with the most occurrence times as the operation sequence to be packaged.
In one embodiment, the target unit test action is: "store return message" determines from the log that the tester performed two different sequences of operations A, B48 hours prior to the current point in time. Wherein, the operation sequence A is as follows: [ receive data, "" format data, "" delete error data, "" store data ], occurred 4 times; the operation sequence B is as follows: [ receive data "," delete error data "," format data ", and" store data ] appear 6 times. Determining the operation sequence B as an operation sequence to be encapsulated of the storage return message.
In step S130, the sequence of operations to be packaged is packaged as the target unit test action.
By the method, a series of operation sequences are packaged into a unit test action, so that when a tester tests, the unit test action can be directly called, and the corresponding function is realized by the operation preferred by the tester without performing complicated operation.
In an embodiment, for a target unit test action "store return message", the corresponding operation sequence to be encapsulated is: [ RECEIVE DATA, DELETE ERROR DATA, FORMAT DATA, STORE DATA ]. The data receiving, error data deleting, formatted data and data storing are connected in sequence, and the graphical programming is that the unit testing action 'storing return message' is displayed in a menu bar in a testing page.
In one embodiment, after packaging the sequence of operations to be packaged as the target unit test action, the method includes: and responding to the dragging of the graphical target unit test action in the test page, and displaying the graphical operation sequence corresponding to the target unit test action at the dragging ending position. For example: dragging the graphical unit test action 'storage return message', and displaying a graphical operation sequence at the position of the end of dragging: [ RECEIVE DATA, DEFERROUS DATA, FORMAT DATA, STORAGE DATA ] so that the tester can perform parameter configuration and connection with other unit test actions.
The present disclosure also provides an apparatus for operation sequence encapsulation. As shown in fig. 2, the apparatus for packing the operation sequence includes:
a first determination module 210 for determining a target unit test action;
a second determining module 220, configured to determine a historical operation sequence performed by a tester on the target unit test action within a predetermined time period;
a third determining module 230, configured to determine a sequence of operations to be packaged for the target unit test action based on the historical sequence of operations;
and an encapsulating module 240, configured to encapsulate the operation sequence to be encapsulated as the target unit test action.
The specific details of each module in the device for packaging operation sequences have been described in detail in the corresponding method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in the particular order shown or that all of the depicted steps must be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Fig. 7 illustrates a system architecture block diagram of an operational sequence package according to an example embodiment of the present disclosure. The system architecture includes: the tester client 310, the server 320, the management end 330 and the database 340.
In one embodiment, the server 320 obtains the test task description of the test task from the management end 330, performs extraction of the task key words, and determines the target unit test action. And then obtaining the log from the database 340, determining the historical operation of the tester client 310 on the target unit test action, further determining an operation sequence to be packaged on the target unit test action, packaging the operation sequence to be packaged into the target unit test action, and displaying the graphically programmed target unit test action in a page of the test system. Accordingly, in response to the tester client 310 dragging the unit test action in the test system page, the server 320 displays an operation sequence corresponding to the graphical unit test action at the end of the dragging position, so that the tester client 310 can perform further operations.
From the above description of the system architecture, those skilled in the art will readily understand that the system architecture described herein can implement the functions of the various modules in the apparatus packaged by the operation sequence shown in fig. 2.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 400 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 400 shown in fig. 8 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, electronic device 400 is embodied in the form of a general purpose computing device. The components of electronic device 400 may include, but are not limited to: the at least one processing unit 410, the at least one memory unit 420, and a bus 430 that couples various system components including the memory unit 420 and the processing unit 410.
Wherein the memory unit stores program code that may be executed by the processing unit 410 to cause the processing unit 410 to perform the steps according to various exemplary embodiments of the present invention as described in the above section "exemplary method" of this specification. For example, the processing unit 410 may perform step S100 as shown in fig. 1: determining a target unit test action; step S110: determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period; step S120: determining an operation sequence to be packaged for the target unit test action based on the historical operation sequence; step S130: and packaging the operation sequence to be packaged into the target unit test action.
The storage unit 420 may include readable media in the form of volatile storage units, such as a random access memory unit (RAM)4201 and/or a cache memory unit 4202, and may further include a read only memory unit (ROM) 4203.
The storage unit 420 may also include a program/utility 4204 having a set (at least one) of program modules 4205, such program modules 4205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 430 may be any bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 400 may also communicate with one or more external devices 500 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 400, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 400 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 450. Also, the electronic device 400 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 460. As shown, the network adapter 460 communicates with the other modules of the electronic device 400 over the bus 430. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
Referring to fig. 9, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (6)

1. A method of operation sequence encapsulation, comprising:
acquiring a test task description of a test task;
performing word segmentation on the test task description, deleting the virtual words in the word segmentation of the test task description according to a preset virtual word comparison table, and determining the real words with the occurrence frequency exceeding a preset threshold value in the word segmentation of the test task description as task keywords in the test task description;
determining the intersection and union of the task keywords and each group of keywords in a configuration table; the configuration table stores keywords and corresponding unit test action sequences;
for each group of keywords in the configuration table, dividing the number of the corresponding intersection members by the number of the corresponding union members to obtain a value, and taking the value as the matching degree of the task keywords and each group of keywords in the configuration table;
sequentially determining the unit test actions in the unit test action sequence corresponding to the keyword and the matching degree which is greater than or equal to the maximum matching degree in the preset threshold values as target unit test actions according to the sequence in the unit test action sequence;
determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period;
determining an operation sequence to be packaged for the target unit test action based on the historical operation sequence;
packaging the operation sequence to be packaged into the target unit test action;
the process of determining the historical operation sequence of the target unit test action performed by the tester in the preset time period comprises the following steps:
acquiring an operation log stored in a database; the operation log is used for recording an operation sequence carried out by the unit test action;
determining a historical operation sequence of the testing action of the tester on the target unit in a preset time period based on the operation log;
and testing the action on the target unit, and if the operation log does not have a record of a corresponding historical operation sequence within a preset time period, sending information for requesting a user to manually package the operation sequence to the user client.
2. The method of claim 1, wherein determining a sequence of operations to package for the target unit test action based on the historical sequence of operations comprises:
determining the frequency of occurrence of each corresponding historical operation sequence in a preset time period for the target unit test action;
and determining the historical operation sequence with the most occurrence times as the operation sequence to be packaged.
3. The method of claim 1, wherein said encapsulating the sequence of operations to be encapsulated as the target unit test action comprises: and responding to the dragging of the graphical target unit test action in the test page, and displaying the graphical operation sequence corresponding to the target unit test action at the dragging ending position.
4. An apparatus for operation sequence encapsulation, comprising:
the first determining module is used for acquiring the test task description of the test task; segmenting words according to the test task description, deleting the null words in the segmented words of the test task description according to a preset null word comparison table, and determining the real words with the occurrence frequency exceeding a preset threshold value in the segmented words of the test task description as task keywords so as to obtain the task keywords in the test task description; determining the intersection and union of the task keywords and each group of keywords in a configuration table; the configuration table stores keywords and corresponding unit test action sequences; for each group of keywords in the configuration table, dividing the corresponding member number of the intersection by the corresponding member number of the union to obtain a value serving as a corresponding matching degree so as to determine the matching degree of the task keywords and each group of keywords in the configuration table; sequentially determining the maximum matching degree in a preset threshold value and the unit test action in the unit test action sequence corresponding to the corresponding keyword as a target unit test action according to the sequence in the unit test action sequence, and determining the target unit test action based on the matching result of the task keyword and a preset configuration table;
the second determination module is used for determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period;
a third determining module, configured to determine, based on the historical operation sequence, an operation sequence to be packaged for the target unit test action;
the packaging module is used for packaging the operation sequence to be packaged into the target unit test action;
the process of determining the historical operation sequence of the target unit test action performed by the tester in the preset time period comprises the following steps:
acquiring an operation log stored in a database; the operation log is used for recording an operation sequence performed by a unit test action;
determining a historical operation sequence of the testing action of the target unit performed by the tester in a preset time period based on the operation log;
and testing the action on the target unit, and if the operation log does not have a record of a corresponding historical operation sequence within a preset time period, sending information for requesting a user to manually package the operation sequence to the user client.
5. An electronic device encapsulated by an operation sequence, comprising:
a memory configured to store executable instructions;
a processor configured to execute executable instructions stored in the memory to implement the method of any one of claims 1-3.
6. A computer-readable storage medium, characterized in that it stores computer program instructions which, when executed by a computer, cause the computer to perform the method according to any one of claims 1-3.
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 CN109684207A (en) 2019-04-26
CN109684207B true 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)

Families Citing this family (2)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107729439A (en) * 2017-09-29 2018-02-23 北京小米移动软件有限公司 Obtain the methods, devices and systems of multi-medium data

Family Cites Families (9)

* 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
CN106815137A (en) * 2015-12-01 2017-06-09 北京奇虎科技有限公司 Ui testing method and apparatus
US10102093B2 (en) * 2016-03-09 2018-10-16 Wipro Limited Methods and systems for determining an equipment operation based on historical operation data
CN108304324B (en) * 2018-01-22 2022-07-19 百度在线网络技术(北京)有限公司 Test case generation method, device, equipment and storage medium
CN108073519B (en) * 2018-01-31 2021-02-12 百度在线网络技术(北京)有限公司 Test case generation method and device
CN108334439B (en) * 2018-03-14 2021-06-04 百度在线网络技术(北京)有限公司 Pressure testing method, 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
CN108845930B (en) * 2018-05-23 2022-12-30 深圳市腾讯网络信息技术有限公司 Interface operation test method and device, storage medium and electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN107729439A (en) * 2017-09-29 2018-02-23 北京小米移动软件有限公司 Obtain the methods, devices and systems of multi-medium data

Also Published As

Publication number Publication date
CN109684207A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
CN109144695B (en) Method, device, equipment and medium for processing task topological relation
US20210241893A1 (en) Dashboard Usage Tracking and Generation of Dashboard Recommendations
CN108415826B (en) Application testing method, terminal device and computer readable storage medium
US11144437B2 (en) Pre-populating continuous delivery test cases
CN109872230B (en) Test method and device of financial data analysis system, medium and electronic equipment
CN109684207B (en) Method and device for packaging operation sequence, electronic equipment and storage medium
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
US11429317B2 (en) Method, apparatus and computer program product for storing data
CN112035401A (en) Model data processing method and device, electronic equipment and readable medium
CN112748930B (en) Compilation detection method, device, equipment and storage medium
CN110554892A (en) Information acquisition method and device
CN109783745B (en) Method, device and computer equipment for personalized typesetting of pages
CN109948251B (en) CAD-based data processing method, device, equipment and storage medium
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN114547106A (en) Data query method and device, storage medium and computer system
CN114238128A (en) Test case generation method and device, electronic equipment and computer readable medium
CN113724115A (en) Data processing method and server based on online education
CN111444161A (en) Data processing method and device, electronic equipment and storage medium
CN108628909B (en) Information pushing method and device
CN111753548A (en) Information acquisition method and device, computer storage medium and electronic equipment
CN110795338A (en) Automatic testing method and device based on front-end and back-end interaction and electronic equipment
CN110795424A (en) Feature engineering variable data request processing method and device and electronic equipment
CN113760765B (en) Code testing method and device, electronic equipment and storage medium
US20230177032A1 (en) Performing automated semantic feature discovery
CN113238796A (en) Code reconstruction method, device, equipment and storage medium

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