CN113076728A - Data filling method of dialog box and related equipment - Google Patents

Data filling method of dialog box and related equipment Download PDF

Info

Publication number
CN113076728A
CN113076728A CN202110268307.XA CN202110268307A CN113076728A CN 113076728 A CN113076728 A CN 113076728A CN 202110268307 A CN202110268307 A CN 202110268307A CN 113076728 A CN113076728 A CN 113076728A
Authority
CN
China
Prior art keywords
target
dialog box
data
matching
matching result
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.)
Pending
Application number
CN202110268307.XA
Other languages
Chinese (zh)
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.)
Wuhan Mucang Technology Co Ltd
Original Assignee
Wuhan Mucang Technology 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 Wuhan Mucang Technology Co Ltd filed Critical Wuhan Mucang Technology Co Ltd
Priority to CN202110268307.XA priority Critical patent/CN113076728A/en
Publication of CN113076728A publication Critical patent/CN113076728A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Abstract

The embodiment of the invention provides a data filling method of a dialog box and related equipment, which can automatically and quickly fill data in the dialog box and reduce time consumption in the process of testing the legality of the dialog box. The method comprises the following steps: monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page; selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1; determining a data generation rule configuration table; matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one dialog box in the N dialog boxes; generating target data corresponding to the target dialog box according to the matching result; and backfilling the target data to the target dialog box.

Description

Data filling method of dialog box and related equipment
Technical Field
The present invention relates to the field of communications, and in particular, to a data filling method for a dialog box and a related device.
Background
The B/S architecture, i.e., browser and server architecture mode, is a network architecture mode after the World Wide Web (Web) has emerged, and the Web browser is the most main application software of the client. The mode unifies the client, centralizes the core part of the system function realization to the server, and simplifies the development, maintenance and use of the system.
In the current project of the B/S architecture mode, a large amount of form data are input, in the project development and test stage, legality verification needs to be carried out on each input box in the project, and in the traditional test method, corresponding data, such as identity numbers, mobile phone numbers and the like, need to be manually input, and then whether the input boxes are subjected to legality verification or not is judged.
Therefore, the method of inputting corresponding data manually has the problems of long time consumption, low efficiency, high repeatability and the like, and reduces the testing efficiency.
Disclosure of Invention
The embodiment of the invention provides a data filling method of a dialog box and related equipment, which improve the data filling speed of the dialog box and reduce the time consumption of the dialog box in the validity test.
A first aspect of an embodiment of the present invention provides a method for filling in data of a dialog box, where the method includes:
monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page;
selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1;
determining a data generation rule configuration table;
matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one dialog box in the N dialog boxes;
generating target data corresponding to the target dialog box according to the matching result;
and backfilling the target data to the target dialog box.
Optionally, the method further comprises:
carrying out validity check on the target dialog box based on the target data;
and sending prompt information when the target dialog box is not verified to be legal.
Optionally, the generating target data corresponding to the target dialog box according to the matching result includes:
when the matching result is that the matching is successful, determining a target rule corresponding to the target dialog box;
generating the target data according to the target rule;
when the matching result is that the matching is unsuccessful, generating irregular random data;
and determining the irregular random data as the target data.
Optionally, before the listening plug-in based on the injection target page listens to an operation instruction of a user, the method includes:
determining an initial plug-in;
and injecting the obtained at least one JS into the initial plug-in to obtain the monitoring plug-in.
Optionally, the method further comprises:
and displaying the target dialog box after backfilling the target data.
A second aspect of the present invention provides a data filling apparatus for a dialog box, including:
the monitoring unit is used for monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page;
the selection unit is used for selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1;
the determining unit is used for determining a data generation rule configuration table;
the matching unit is used for matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one of the N dialog boxes;
the generating unit is used for generating target data corresponding to the target dialog box according to the matching result;
and the backfilling unit is used for backfilling the target data into the target dialog box.
Optionally, the determining unit is further configured to:
carrying out validity check on the target dialog box based on the target data;
and sending prompt information when the target dialog box is not verified to be legal.
Optionally, the matching unit is specifically configured to:
when the matching result is that the matching is successful, determining a target rule corresponding to the target dialog box;
generating the target data according to the target rule;
when the matching result is that the matching is unsuccessful, generating irregular random data;
and determining the irregular random data as the target data.
Optionally, the determining unit is further configured to:
determining an initial plug-in;
and injecting the obtained at least one JS into the initial plug-in to obtain the monitoring plug-in.
Optionally, the backfill unit is further configured to:
and displaying the target dialog box after backfilling the target data.
A third aspect of embodiments of the present invention provides an electronic device, including a memory and a processor, where the processor is configured to implement the steps of the data filling method for a dialog box according to the first aspect when executing a computer management class program stored in the memory.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer management class program is stored, the computer management class program, when being executed by a processor, implementing the steps of the data filling method for a dialog box according to the first aspect.
In summary, in the embodiment provided by the present invention, the data filling device of the dialog box monitors the operation instruction of the user on the dialog box in the target page through the monitoring plug-in, selects the corresponding dialog box according to the instruction, configures the corresponding data generation rule configuration table, matches the title of the dialog box with the rule in the data generation rule configuration table to obtain the corresponding matching result, produces the corresponding target data according to the matching result, and finally fills the target data into the corresponding dialog box. Therefore, the type of each input box can be quickly identified according to different forms, and the input boxes are matched with a preset data generation rule configuration table to generate corresponding data, so that the quick writing of the dialog box data is realized, the data filling speed of the dialog box is improved, and the time consumption in the dialog box validity test is reduced.
Drawings
Fig. 1 is a schematic flowchart of a data filling method for a dialog box according to an embodiment of the present invention;
fig. 2 is a schematic view of a virtual structure of a data filling apparatus for a dialog box according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of a data filling device of a dialog box according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an embodiment of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The following describes a data filling method for a dialog box from the perspective of a data filling device for a dialog box, which may be a server or a service unit in a server.
Referring to fig. 1, fig. 1 is a schematic diagram of an embodiment of a data filling method for a dialog box according to an embodiment of the present invention, where the data filling method for the dialog box includes:
101. and monitoring the operation instruction of the user based on the monitoring plug-in injected into the target page.
In this embodiment, when data is required to be filled in a dialog box in a target page, an initial plug-in may be determined first, then the obtained at least one JS is injected into the initial plug-in to obtain a monitoring plug-in, and the monitoring plug-in is injected into the target page, and after the monitoring plug-in is injected into the target page, an operation instruction of a user on the dialog box of the target page may be monitored through the monitoring plug-in. It is understood that the listening plug-in is a software for increasing the browser function by using WEB development technology, and is a compressed package composed of resources such as HTML, CSS, JS and the like, and a suffix of crx. The monitoring plug-in is based on a browser environment, a browser of any kernel (WEBKIT, GECKO and the like) has a self framework and an Application Program Interface (API) for constructing an extension plug-in, and according to the provided API, the monitoring plug-in can acquire DOM elements of a website and interact with the website by injecting JS and the like. The monitoring plug-in core is realized by injecting JS by using acquired DOM elements of the target page, and the detailed information of JS in which plug-ins can be injected is described in combination with table 1:
TABLE 1
Figure BDA0002972985620000051
Figure BDA0002972985620000061
It should be noted that, because the listening plug-in runs in the background of the browser in a silent manner and needs to call the API provided by the browser, backsgroupjs is needed, and cannot access the page DOM, the listening plug-in is a combination of the content script and the backsgroupjs.
102. And selecting N dialog boxes corresponding to the target page according to the operation instruction of the user.
In this embodiment, after the data filling device of the dialog box monitors and obtains the operation instruction of the user, N dialog boxes corresponding to the target page may be selected according to the operation instruction of the user, where N is a positive integer greater than or equal to 1. That is to say, after the monitoring plug-in js is injected into the target page, the monitoring plug-in js monitors the user operation instruction and responds, when the user can actively trigger a data generation request by a shortcut key, a plug-in icon click and a browser right-click menu, the data generation request is sent out by a chrome.
In one embodiment, the operation for generating the operation instruction of the user at least includes one of a gesture operation, a sliding operation, a clicking operation and a voice control operation, for example, when the user performs the clicking operation in the target page, the data filling device of the dialog box may receive the clicking operation, and at this time, the clicking operation generates the operation instruction of the user, that is, the operation instruction may be defined in advance, for example, the sliding operation is defined in advance as an operation for triggering a data generation request (e.g., a left-sliding operation, a right-sliding operation, a top-sliding operation, a bottom-sliding operation, etc.), the clicking operation is defined as an operation for triggering a data generation request (e.g., a double-click operation, a mouse-sliding operation, a long-pressing operation, a clicking operation, a simultaneous pressing operation of left and right keys of a mouse, a middle key of a roller mouse, etc.), or the gesture operation is defined, for example, the above is merely an example and does not represent a limitation on the operation of generating the operation instruction of the user, such as a wrist or an arm is swung to the right, for example, a four-finger pinch operation or a three-finger slide-up operation, etc.), or a voice control operation is defined as an operation of triggering a data generation request (for example, a voice corresponding to the display image display area and/or the feature display area of the analysis interface is received). Of course, the operation instruction of the user may also be generated by setting a corresponding shortcut key on the input device, for example, the input device is a keyboard, and the operation of triggering the data generation request is performed by setting a "CTRL + a key" on the keyboard, which is not limited specifically.
103. And determining a data generation rule configuration table.
In this embodiment, the data filling device of the dialog box may determine the data generation rule configuration table, and due to the diversity of each system service, the generated rule may not cover all of the system services, so that the user may customize the data generation rule to meet the service requirements. Specifically, a user may change a rule in a data generation rule configuration table through plug-in configuration or through an editor, where the data generation rule configuration table is as follows:
Figure BDA0002972985620000071
it should be noted that the data generation rule configuration table is in a json format, and the data generation rule configuration table includes three types of rule configurations, 1, a built-in rule, and when the monitoring plug-in is installed on the target page, the rule is covered, and the rule mainly includes the rule of common data such as an identity card, a mobile phone number, a mailbox, a name and the like; 2. according to the fake js rule, generating data by configuring template names which accord with fake js library rules; 3. the user can write the code by himself to generate the required data.
It should be further noted that N dialog boxes corresponding to the target page may be obtained through steps 101 to 102, and the data generation rule configuration may be determined through step 103, however, there is no sequential execution order limitation between steps 101 to 102 and step 103, and steps 101 to 102 may be executed first, or step 103 may be executed first, or executed simultaneously, which is not limited specifically.
104. And matching the title of the target dialog box with the rule in the data generation rule configuration table to obtain a matching result.
In this embodiment, after selecting N dialog boxes corresponding to the target page, the data filling apparatus of the dialog box may match the title of the target dialog box with the rule in the data generation rule configuration table to obtain a matching result, where the target dialog box is any one of the N dialog boxes. That is, the data filling device of the dialog box may perform fuzzy matching on the external title or the internal title of the target dialog box in the data generation rule configuration table to obtain the matching result.
105. And generating target data corresponding to the target dialog box according to the matching result.
In this embodiment, after the data filling device of the dialog box obtains the matching result, the data filling device may generate target data corresponding to the target dialog box according to the matching result. The matching result comprises two types, wherein one type is successful matching, namely, a rule corresponding to the title of the target dialog box exists in the data generation rule configuration table; one is that the matching is not successful, namely, the rule corresponding to the title of the target dialog box does not exist in the data generation rule configuration table; when the matching is successful, a target rule corresponding to the target dialog box can be determined, corresponding target data are generated according to the target rule, and when the matching is not successful, irregular random data are generated and determined as the target data.
106. And backfilling the target data to the target dialog box.
In this embodiment, after the data filling device of the dialog box obtains the target data, the data filling device may backfill the target data into the corresponding target dialog box.
It should be noted that, the data filling device of the dialog box may also perform validity check on the target dialog box according to the target data, that is, determine whether the format of the target data conforms to the rule of the target dialog box, where the different target data may be obtained according to the different matching results, when the matching result is a successful matching, the target data is data generated according to the target rule corresponding to the target dialog box, and when the target dialog box is backfilled to perform validity check, the target dialog box may pass the validity check because the target dialog box is obtained according to the target rule of the target dialog box; and when the matching result is that the matching is not successful, the target data is the generated irregular random data, and when the irregular random data is backfilled into the target dialog box for validity check, the validity check cannot be passed. For example, if the target dialog box is filled with a mobile phone number, the validity of the target dialog box can be checked by judging whether the length of the number is 11 digits, whether the first digit of the number is 1, and the like; and when the target dialog box is not verified to be legal, sending prompt information to prompt the user that the target dialog box is not verified to be legal, and prompting the user to revise the target dialog box.
It should be noted that, after the target data is backfilled into the target dialog box, the target dialog box with the backfilled target data may be displayed, so that the user can visually check the data filled in the target dialog box.
In summary, in the embodiment provided by the present invention, the data filling device of the dialog box monitors the operation instruction of the user on the dialog box in the target page through the monitoring plug-in, selects the corresponding dialog box according to the instruction, configures the corresponding data generation rule configuration table, matches the title of the dialog box with the rule in the data generation rule configuration table to obtain the corresponding matching result, produces the corresponding target data according to the matching result, and finally fills the target data into the corresponding dialog box. Therefore, the type of each input box can be quickly identified according to different forms, and the input boxes are matched with a preset data generation rule configuration table to generate corresponding data, so that the quick writing of the dialog box data is realized, the data filling speed of the dialog box is improved, and the time consumption in the dialog box validity test is reduced.
The embodiments of the present invention are described above with reference to the data filling method of the dialog, and are described below with reference to the data filling apparatus of the dialog.
Referring to fig. 2, a schematic diagram of a virtual structure of a data filling apparatus of a dialog box according to an embodiment of the present invention includes:
a monitoring unit 201, configured to monitor an operation instruction of a user based on a monitoring plug-in injected into a target page;
a selecting unit 202, configured to select N dialog boxes corresponding to the target page according to the operation instruction of the user, where N is a positive integer greater than or equal to 1;
a determining unit 203, configured to determine a data generation rule configuration table;
a matching unit 204, configured to match a title of a target dialog box with a rule in the data generation rule configuration table to obtain a matching result, where the target dialog box is any one of the N dialog boxes;
a generating unit 205, configured to generate target data corresponding to the target dialog box according to the matching result;
a backfill unit 206, configured to backfill the target data into the target dialog.
Optionally, the determining unit 203 is further configured to:
carrying out validity check on the target dialog box based on the target data;
and sending prompt information when the target dialog box is not verified to be legal.
Optionally, the matching unit 204 is specifically configured to:
when the matching result is that the matching is successful, determining a target rule corresponding to the target dialog box;
generating the target data according to the target rule;
when the matching result is that the matching is unsuccessful, generating irregular random data;
and determining the irregular random data as the target data.
Optionally, the determining unit 203 is further configured to:
determining an initial plug-in;
and injecting the obtained at least one JS into the initial plug-in to obtain the monitoring plug-in.
Optionally, the backfill unit 206 is further configured to:
and displaying the target dialog box after backfilling the target data.
Fig. 2 above describes the data filling apparatus of the dialog box in the embodiment of the present invention from the perspective of the modular functional entity, and the data filling device of the dialog box in the embodiment of the present invention is described in detail below from the perspective of the hardware processing, referring to fig. 3, an embodiment of a data filling device 300 of the dialog box in the embodiment of the present invention is schematically illustrated, and the data filling device 300 of the dialog box includes:
an input device 301, an output device 302, a processor 303 and a memory 304 (wherein the number of the processor 303 may be one or more, and one processor 303 is taken as an example in fig. 3). In some embodiments of the present invention, the input device 301, the output device 302, the processor 303 and the memory 304 may be connected through a communication bus or other means, wherein fig. 3 illustrates the communication bus connection as an example.
Wherein, by calling the operation instruction stored in the memory 304, the processor 303 is configured to perform the following steps:
monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page;
selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1;
determining a data generation rule configuration table;
matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one dialog box in the N dialog boxes;
generating target data corresponding to the target dialog box according to the matching result;
and backfilling the target data to the target dialog box.
The processor 303 is also configured to perform any of the methods in the corresponding embodiments of fig. 1 by calling the operation instructions stored in the memory 304.
Referring to fig. 4, fig. 4 is a schematic view of an embodiment of an electronic device according to an embodiment of the invention.
As shown in fig. 4, an embodiment of the present invention provides an electronic device, which includes a memory 410, a processor 420, and a computer program 411 stored in the memory 420 and running on the processor 420, and when the processor 420 executes the computer program 411, the following steps are implemented:
monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page;
selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1;
determining a data generation rule configuration table;
matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one dialog box in the N dialog boxes;
generating target data corresponding to the target dialog box according to the matching result;
and backfilling the target data to the target dialog box.
In a specific implementation, when the processor 420 executes the computer program 411, any of the embodiments corresponding to fig. 1 may be implemented.
Since the electronic device described in this embodiment is a device used for implementing a data filling apparatus of a dialog box in the embodiment of the present invention, based on the method described in the embodiment of the present invention, those skilled in the art can understand the specific implementation manner of the electronic device of this embodiment and various variations thereof, so that how to implement the method in the embodiment of the present invention by the electronic device is not described in detail herein, and as long as the device used for implementing the method in the embodiment of the present invention by the person skilled in the art belongs to the intended scope of the present invention.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating an embodiment of a computer-readable storage medium according to the present invention.
As shown in fig. 5, an embodiment of the present invention further provides a computer-readable storage medium 500, on which a computer program 511 is stored, and when being executed by a processor, the computer program 511 implements the following steps:
monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page;
selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1;
determining a data generation rule configuration table;
matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one dialog box in the N dialog boxes;
generating target data corresponding to the target dialog box according to the matching result;
and backfilling the target data to the target dialog box.
In specific implementation, the computer program 511 is executed by a processor to implement any of the embodiments corresponding to fig. 1.
It should be noted that, in the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to relevant descriptions of other embodiments for parts that are not described in detail in a certain embodiment.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Embodiments of the present invention further provide a computer program product, where the computer program product includes computer software instructions, and when the computer software instructions are run on a processing device, the processing device is caused to execute a flow in a data filling method of a dialog box in the embodiment corresponding to fig. 1.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is merely a logical division, and the actual implementation may be in other divisions, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data filling method for a dialog box, comprising:
monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page;
selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1;
determining a data generation rule configuration table;
matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one dialog box in the N dialog boxes;
generating target data corresponding to the target dialog box according to the matching result;
and backfilling the target data to the target dialog box.
2. The method of claim 1, further comprising:
carrying out validity check on the target dialog box based on the target data;
and sending prompt information when the target dialog box is not verified to be legal.
3. The method of claim 1, wherein generating target data corresponding to the target dialog box according to the matching result comprises:
when the matching result is that the matching is successful, determining a target rule corresponding to the target dialog box;
generating the target data according to the target rule;
when the matching result is that the matching is unsuccessful, generating irregular random data;
and determining the irregular random data as the target data.
4. The method according to any one of claims 1 to 3, wherein before the listening plug-in based on the injection target page listens for the operation instruction of the user, the method comprises:
determining an initial plug-in;
and injecting the obtained at least one JS into the initial plug-in to obtain the monitoring plug-in.
5. The method according to any one of claims 1 to 3, further comprising:
and displaying the target dialog box after backfilling the target data.
6. A data filling apparatus for a dialog box, comprising:
the monitoring unit is used for monitoring an operation instruction of a user based on a monitoring plug-in injected into a target page;
the selection unit is used for selecting N dialog boxes corresponding to the target page according to the operation instruction of the user, wherein N is a positive integer greater than or equal to 1;
the determining unit is used for determining a data generation rule configuration table;
the matching unit is used for matching the title of a target dialog box with the rule in the data generation rule configuration table to obtain a matching result, wherein the target dialog box is any one of the N dialog boxes;
the generating unit is used for generating target data corresponding to the target dialog box according to the matching result;
and the backfilling unit is used for backfilling the target data into the target dialog box.
7. The apparatus of claim 6, wherein the determining unit is further configured to:
carrying out validity check on the target dialog box based on the target data;
and sending prompt information when the target dialog box is not verified to be legal.
8. The apparatus according to claim 6, wherein the matching unit is specifically configured to:
when the matching result is that the matching is successful, determining a target rule corresponding to the target dialog box;
generating the target data according to the target rule;
when the matching result is that the matching is unsuccessful, generating irregular random data;
and determining the irregular random data as the target data.
9. An electronic device comprising a memory, a processor, wherein the processor is configured to implement the steps of the data filling method of the dialog box according to any one of claims 1 to 5 when executing a computer management class program stored in the memory.
10. A computer-readable storage medium having stored thereon a computer management-like program, characterized in that: the computer management class program, when executed by a processor, implements the steps of a data filling method for a dialog box according to any of claims 1 to 5.
CN202110268307.XA 2021-03-12 2021-03-12 Data filling method of dialog box and related equipment Pending CN113076728A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110268307.XA CN113076728A (en) 2021-03-12 2021-03-12 Data filling method of dialog box and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110268307.XA CN113076728A (en) 2021-03-12 2021-03-12 Data filling method of dialog box and related equipment

Publications (1)

Publication Number Publication Date
CN113076728A true CN113076728A (en) 2021-07-06

Family

ID=76612652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110268307.XA Pending CN113076728A (en) 2021-03-12 2021-03-12 Data filling method of dialog box and related equipment

Country Status (1)

Country Link
CN (1) CN113076728A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114385054A (en) * 2021-12-08 2022-04-22 北京云测信息技术有限公司 Form filling method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158746A1 (en) * 2003-02-07 2004-08-12 Limin Hu Automatic log-in processing and password management system for multiple target web sites
CN106681973A (en) * 2016-12-20 2017-05-17 北京奇虎科技有限公司 Method and device for achieving automatically filling browser sheet in test
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium
CN109710527A (en) * 2018-12-25 2019-05-03 北京云测信息技术有限公司 A kind of bullet frame processing method and processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040158746A1 (en) * 2003-02-07 2004-08-12 Limin Hu Automatic log-in processing and password management system for multiple target web sites
CN106681973A (en) * 2016-12-20 2017-05-17 北京奇虎科技有限公司 Method and device for achieving automatically filling browser sheet in test
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium
CN109710527A (en) * 2018-12-25 2019-05-03 北京云测信息技术有限公司 A kind of bullet frame processing method and processing device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
YOMUA: "Chrome扩展学习", 《HTTPS://BLOG.CSDN.NET/WANWUJINTOU/ARTICLE/DETAILS/112588647》 *
YOMUA: "Chrome扩展学习", 《HTTPS://SEGMENTFAULT.COM/A/1190000038973002?UTM_SOURCE=SF-SIMILAR-ARTICLE》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114385054A (en) * 2021-12-08 2022-04-22 北京云测信息技术有限公司 Form filling method and device, electronic equipment and storage medium
CN114385054B (en) * 2021-12-08 2023-12-19 北京云测信息技术有限公司 Form filling method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108459964B (en) Test case selection method, device, equipment and computer readable storage medium
CN110286897A (en) API Visual Dynamic configuration method, device, equipment and storage medium
CN110096429A (en) Test report generation method, device, equipment and storage medium
CN106649084A (en) Function call information obtaining method and apparatus, and test device
CN103984626B (en) A kind of method and device for generating test case script
CN107066188B (en) A kind of method and terminal sending screenshot picture
CN107086984A (en) A kind of method, terminal and server for obtaining and generating identifying code
CN110099130B (en) Configuration updating method and device and server
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN110166276A (en) A kind of localization method, device, terminal device and the medium of frame synchronization exception
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN110244899A (en) Electronic contract on-line processing method, Online Processing System and terminal
CN111045653A (en) System generation method and device, computer readable medium and electronic equipment
CN114238948A (en) Application program detection method and device, electronic equipment and storage medium
CN109947624A (en) Method for monitoring state and device
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN113076728A (en) Data filling method of dialog box and related equipment
CN112527416A (en) Task processing method and device, computer equipment and storage medium
CN111427737B (en) Method and device for modifying exception log and electronic equipment
CN114780330A (en) Code monitoring method and device
CN111813407B (en) Game development method, game running device and electronic equipment
CN109447806B (en) Front-end control method and device, storage medium and electronic equipment
CN112800741A (en) Task execution method, electronic device and storage medium
CN107665045B (en) Safety keyboard configuration method, device, terminal 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210706

RJ01 Rejection of invention patent application after publication