CN110888573A - Method and device for identifying control and storage medium - Google Patents

Method and device for identifying control and storage medium Download PDF

Info

Publication number
CN110888573A
CN110888573A CN201911089336.9A CN201911089336A CN110888573A CN 110888573 A CN110888573 A CN 110888573A CN 201911089336 A CN201911089336 A CN 201911089336A CN 110888573 A CN110888573 A CN 110888573A
Authority
CN
China
Prior art keywords
control
determining
identification information
application program
level
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
CN201911089336.9A
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.)
Aiqianjin Beijing Information Technology Co Ltd
Original Assignee
Aiqianjin Beijing Information 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 Aiqianjin Beijing Information Technology Co Ltd filed Critical Aiqianjin Beijing Information Technology Co Ltd
Priority to CN201911089336.9A priority Critical patent/CN110888573A/en
Publication of CN110888573A publication Critical patent/CN110888573A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The application discloses a method and a device for identifying a control and a storage medium. Wherein, the method comprises the following steps: displaying an application program interface of an application program; responding to a trigger operation of clicking a control of the application program interface by a user, and determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and according to the determined control identification information, sending event information associated with the control clicked by the user to a server. Therefore, the application program of the terminal equipment can determine the control identification information of the control only by determining the hierarchy of the control in the program interface and the position information in the hierarchy.

Description

Method and device for identifying control and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, an apparatus, and a storage medium for identifying a control.
Background
At present, embedded points are involved in the APP development process, where the embedded points need to identify events operated by users, and behavior operations corresponding to the users are identified through the identifications. The existing embedded point is characterized in that a character string with certain meaning is defined for each event in advance to serve as a unique identifier, and then a developer writes logic codes for uploading the unique identifier in an implementation method of the corresponding event. However, in this way, a section of buried point code is doped in the original service code, which brings intrusiveness to the existing service code, and may increase the complexity of the original logic and destroy the original logic.
Aiming at the technical problems that in the prior art, point burying is realized by doping point burying codes in original service codes, the existing service codes are invasive, the complexity of the original logic is possibly increased, and the original logic is damaged, an effective solution is not provided at present.
Disclosure of Invention
Embodiments of the present disclosure provide a method, an apparatus, and a storage medium for identifying a control, so as to at least solve technical problems in the prior art that a point is embedded by doping a point-embedded code in an original service code, which brings intrusiveness to the existing service code, and may increase complexity of an original logic and destroy the original logic.
According to an aspect of the embodiments of the present disclosure, there is provided a method for identifying a control, including: displaying an application program interface of an application program; responding to a triggering operation of clicking a control of an application program interface by a user, and determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and sending event information associated with the user clicking the control to a server according to the determined control identification information.
According to another aspect of the embodiments of the present disclosure, there is also provided a storage medium including a stored program, wherein the method of any one of the above is performed by a processor when the program is executed.
According to another aspect of the embodiments of the present disclosure, there is also provided an apparatus for identifying a control, including: the display module is used for displaying an application program interface of an application program; the determining module is used for responding to the triggering operation of clicking the control of the application program interface by a user, and determining the control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and the sending module is used for sending the event information associated with the user clicking the control to the server according to the determined control identification information.
According to another aspect of the embodiments of the present disclosure, there is also provided an apparatus for identifying a control, including: a processor; and a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: displaying an application program interface of an application program; responding to a triggering operation of clicking a control of an application program interface by a user, and determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and sending event information associated with the user clicking the control to a server according to the determined control identification information.
In the embodiment of the disclosure, the terminal device displays an application program interface of an application program; determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level, and sending event information associated with the user clicking the control to the server according to the determined control identification information. The application program of the terminal equipment only needs to determine the hierarchy of the control in the program interface and the position information in the hierarchy, and then can determine the control identification information of the control. Therefore, the control triggered by the user can be identified and monitored without adding a buried point code into the original service code. And furthermore, the technical problems that in the prior art, the existing service codes are doped with the embedded point codes to realize embedded points, the existing service codes are invasive, the complexity of the existing logic is possibly increased, and the existing logic is damaged are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile device or a method for implementing the method according to embodiment 1 of the present disclosure;
fig. 2 is a flowchart illustrating a method for identifying a control according to a first aspect of embodiment 1 of the present disclosure;
fig. 3 is a control schematic diagram of a method for identifying a control according to the first aspect of embodiment 1 of the present disclosure;
fig. 4 is a schematic view of a view hierarchy of a method for identifying a control according to the first aspect of embodiment 1 of the present disclosure;
fig. 5 is a schematic view of a view hierarchy of a method for identifying a control according to the first aspect of embodiment 1 of the present disclosure;
fig. 6 is a schematic diagram of content that is not input by a login registration page of a method for identifying a control according to the first aspect of embodiment 1 of the present disclosure;
fig. 7 is a schematic diagram of input content of a login registration page of a method for identifying a control according to the first aspect of embodiment 1 of the present disclosure;
fig. 8 is a schematic diagram of identifying a control according to the first aspect of embodiment 1 of the present disclosure;
fig. 9 is a schematic diagram of an apparatus for identifying a control according to embodiment 2 of the present disclosure; and
fig. 10 is a schematic diagram of an apparatus for identifying a control according to embodiment 3 of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. It is to be understood that the described embodiments are merely exemplary of some, and not all, of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise 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.
Example 1
There is also provided, in accordance with the present embodiment, an embodiment of a method of identifying controls, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
The method embodiments provided by the present embodiment may be executed in a mobile terminal, a computer terminal or a similar computing device. FIG. 1 illustrates a block diagram of a hardware architecture of a computing device for implementing identifying controls. As shown in fig. 1, the computing device may include one or more processors (which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory for storing data, and a transmission device for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computing device may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computing device. As referred to in the disclosed embodiments, the data processing circuit acts as a processor control (e.g., selection of a variable resistance termination path connected to the interface).
The memory may be configured to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the method for identifying a control in the embodiment of the present disclosure, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, implementing the method for identifying a control of an application program. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory located remotely from the processor, which may be connected to the computing device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device is used for receiving or transmitting data via a network. Specific examples of such networks may include wireless networks provided by communication providers of the computing devices. In one example, the transmission device includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computing device.
It should be noted here that in some alternative embodiments, the computing device shown in fig. 1 described above may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that FIG. 1 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in a computing device as described above.
In the above operating environment, according to a first aspect of the present embodiment, a method for identifying a control is provided. Fig. 2 shows a flow diagram of the method, which, with reference to fig. 2, comprises:
s202: displaying an application program interface of an application program;
s204: responding to a triggering operation of clicking a control of an application program interface by a user, and determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and
s206: and sending event information associated with the user clicking the control to a server according to the determined control identification information.
As described in the foregoing background, currently, embedded points are involved in an APP development process, where the embedded points need to identify events operated by users, and identify corresponding behavior operations of the users through the identifications. The existing embedded point is characterized in that a character string with certain meaning is defined for each event in advance to serve as a unique identifier, and then a developer writes logic codes for uploading the unique identifier in an implementation method of the corresponding event. However, in this way, a section of buried point code is doped in the original service code, which brings intrusiveness to the existing service code, and may increase the complexity of the original logic and destroy the original logic. In view of the problems in the background art, with reference to fig. 3 to 7, the present embodiment provides a method for identifying a control. Referring to FIG. 3, for example, the application is an investment financing APP. First, a program interface of the investment finance APP is displayed on the terminal device (corresponding to S202). And then, the user clicks a control of the investment and finance APP, the terminal equipment responds to the triggering operation of the user clicking the control of the application program interface, and the control identification information of the control in the investment and finance APP is determined according to the level of the control in the program interface and the position information of the control in the level. For example, referring to fig. 3, when the user clicks the "immediate investment" control, the terminal device may sense the operation of the user clicking the control, and determine the control identification information of the "immediate investment" control in the investment financing APP according to the hierarchy and the position of the "immediate investment" control in the program interface (corresponding to S204). Finally, the investment financing APP of the terminal device sends event information associated with the user clicking the "immediate investment" control (for example, the "immediate investment" control clicked by the user is specifically which product is invested) to the server according to the control identification information of the "immediate investment" control (corresponding to S206).
For example, fig. 4 and 5 illustrate the hierarchy of the control of the program interface of the investment financing APP and the position relationship in the hierarchy. The position of the control can be determined according to the hierarchies and the position relationship in the hierarchies shown in fig. 4 and 5.
Therefore, by the method, the application program of the terminal equipment can determine the control identification information of the control only by determining the hierarchy of the control in the program interface and the position information in the hierarchy. Therefore, the control triggered by the user can be identified and monitored without adding a buried point code into the original service code. And furthermore, the technical problems that in the prior art, the existing service codes are doped with the embedded point codes to realize embedded points, the existing service codes are invasive, the complexity of the existing logic is possibly increased, and the existing logic is damaged are solved.
Optionally, sending event information associated with the user clicking the control to the server according to the determined control identification information, further comprising: comparing the determined control identification information with identification information contained in preset configuration information; and under the condition that the identification information contained in the configuration information is consistent with the determined control identification information, sending event information associated with the user clicking the control to the server.
Specifically, in the process that the terminal equipment sends event information associated with clicking of the 'immediate investment' control by the user to the server according to the determined identification information of the 'immediate investment' control, the terminal equipment compares the determined identification information of the 'immediate investment' control with identification information contained in preset configuration information; and under the condition that the determined identification information of the 'immediate investment' control is contained in the configuration information, sending event information associated with the 'immediate investment' control clicked by the user to the server. The identification information contained in the preset configuration information refers to that the server can identify controls in the investment financing APP so as to acquire user behavior information and analyze user data. For example, "invest immediately" is a control that needs attention, and if the user clicks the "invest immediately" control, the server obtains the identification information of the control and other information that may need attention, analyzes which product the user has purchased, and analyzes the product again, so as to make a promotion operation activity at a later stage, and the like. And the terminal equipment finds that the identification information contained in the preset configuration information of the 'immediate investment' control is consistent with the identification information determined by clicking of the user, and sends the time information associated with clicking of the 'immediate investment' control by the user to the server. Therefore, the server can conveniently analyze the data of the event information associated with the user clicking the control, analyze the obtained data to judge the market trend and make a proper production and sales plan.
Optionally, determining control identification information of the control in the application program according to the hierarchy of the control in the program interface and the position information in the hierarchy, including: determining the page level of the control in the application program; determining a view level of the control in the page level; and determining the position of the control in the view hierarchy as the position information.
Specifically, referring to fig. 5 to fig. 6, first, the investment financing APP of the terminal device determines the page hierarchy of the control, for example, referring to fig. 5 and fig. 6, the "Button" control is in page a. Then determining a view level of the control in a page level by an investment financing APP of the terminal equipment; for example, the "Button" control is at the "View 1" View level in the page A level; and finally, the position of the control in the view level is determined by the investment financing APP of the terminal equipment and is used as position information. For example, the specific location of the "Button" control is determined.
Therefore, the positions of the controls are determined through the above method, and each control is unique, so that the position and the position information corresponding to each control are also unique, so as to identify the unique identification information for the position information of each control, and further solve the technical problems that in the prior art, the embedding of the points is realized by doping the embedded point codes in the original service codes, the existing service codes are invasive, the complexity of the original logic is increased possibly, and the original logic is damaged.
Optionally, determining a position of the control in the view hierarchy, as an operation of the position information, further includes: classifying the controls according to the control types; numbering controls of the same type by using a class index method; and determining the position of the control in the view level according to the control number.
Specifically, when the application program of the terminal device determines the position of the control in the view level, the control in the page is classified according to the type of the control, and then the position of the control in the view level is determined by numbering the control of the same type by using a class indexing method. For example, as shown with reference to fig. 6 and 7, the page is a login registration page. The page contains an input box control, a next button control, and a hidden cross button control. The "cross" button is displayed after the user inputs the content into the input box.
Further, for example, the investment financing APP of the terminal device classifies the three controls by type. The input box is one type and the button is one type. And then sorting the same type of controls in the three controls according to the class index method index. The index value of the input box control is 0; the index value of the "next" button control is 0; the index value of the "cross" button control is 1. Wherein, ClassName is used for representing the name of the page class, the name of the page class for logging in the registration page is ClassdengluzhuceName, View1 represents that the View level is 1, View1[0] _ represents that the control is in the View of the first level, and the index value of the control is 0. The position information of the "Next" button control is Classden gluzhuchume name _ View1[0] _ ChahaoButton.
Therefore, the position of each control is unique, the identification information identified according to the position information is also unique, and the control can be uniquely identified without adding a buried point code, so that the technical problems that the buried point is realized by doping the buried point code in the original service code, the existing service code is invaded, the complexity of the original logic is possibly increased, and the original logic is damaged in the prior art are solved.
The method of the present embodiment is described in further detail below with reference to the flowchart shown in fig. 8. Referring to fig. 8, the control in the application program is identified by the rule of this embodiment, and after the user opens the application program, the server sends the identification and the configuration information of the identification to the application program of the terminal device for caching. The control clicked by the user is the identified control, the terminal device identifies the clicked control again, if the click operation of the user is just consistent with the cached identification, the application program of the terminal device considers that the click operation of the user is a behavior needing attention, and the application program collects the identification and identification information of the purchased control clicked by the user, so that the control can be collected, analyzed and used at a later period.
Further, referring to fig. 1, according to a second aspect of the present embodiment, there is provided a storage medium. The storage medium comprises a stored program, wherein the method of any of the above is performed by a processor when the program is run.
Thus, according to the present embodiment, the terminal device displays the application interface of the application; determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level, and sending event information associated with the user clicking the control to the server according to the determined control identification information. The application program of the terminal equipment only needs to determine the hierarchy of the control in the program interface and the position information in the hierarchy, and then can determine the control identification information of the control. And furthermore, the technical problems that in the prior art, the existing service codes are doped with the embedded point codes to realize embedded points, the existing service codes are invasive, the complexity of the existing logic is possibly increased, and the existing logic is damaged are solved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
Fig. 9 shows an apparatus 900 for identifying a control according to the present embodiment, where the apparatus 900 corresponds to the method according to the first aspect of embodiment 1. Referring to fig. 9, the apparatus 900 includes: a display module 910, configured to display an application interface of an application; the determining module 920 is configured to determine, in response to a trigger operation of a user clicking a control of an application program interface, control identification information of the control in the application program according to a hierarchy of the control in the program interface and position information of the control in the hierarchy; and a sending module 930, configured to send event information associated with the user click control to the server according to the determined control identification information.
Optionally, the sending module 930 further includes: the comparison submodule is used for comparing the determined control identification information with identification information contained in preset configuration information; and the sending submodule is used for sending the event information associated with the control clicked by the user to the server under the condition that the identification information contained in the configuration information is consistent with the determined control identification information.
Optionally, the determining module 920 includes: the first determining submodule is used for determining the page level of the control in the application program; the second determination submodule is used for determining the view level of the control in the page level; and a third determining sub-module, configured to determine a position of the control in the view hierarchy as position information.
Optionally, the third determining sub-module further includes: the classification unit is used for classifying the control according to the control type; the numbering unit is used for numbering the controls of the same type by using a class indexing method; and the determining unit is used for determining the position of the control in the view level according to the control number.
Therefore, according to this embodiment, through the apparatus 900 for identifying a control, the terminal device displays an application program interface of an application program; determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level, and sending event information associated with the user clicking the control to the server according to the determined control identification information. The application program of the terminal equipment only needs to determine the hierarchy of the control in the program interface and the position information in the hierarchy, and then can determine the control identification information of the control. Therefore, the control triggered by the user can be identified and monitored without adding a buried point code into the original service code. And furthermore, the technical problems that in the prior art, the existing service codes are doped with the embedded point codes to realize embedded points, the existing service codes are invasive, the complexity of the existing logic is possibly increased, and the existing logic is damaged are solved.
Example 3
Fig. 10 shows an apparatus 1000 for identifying a control according to the present embodiment, where the apparatus 1000 corresponds to the method according to the first aspect of embodiment 1. Referring to fig. 10, the apparatus 1000 includes: a processor 1010; and a memory 1020 coupled to the processor 1010 for providing instructions to the processor to process the following process steps: displaying an application program interface of an application program; responding to a triggering operation of clicking a control of an application program interface by a user, and determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and sending event information associated with the user clicking the control to a server according to the determined control identification information.
Optionally, sending event information associated with the user clicking the control to the server according to the determined control identification information, further comprising: comparing the determined control identification information with identification information contained in preset configuration information; and under the condition that the identification information contained in the configuration information is consistent with the determined control identification information, sending event information associated with the user clicking the control to the server.
Optionally, determining control identification information of the control in the application program according to the hierarchy of the control in the program interface and the position information in the hierarchy, including: determining the page level of the control in the application program; determining a view level of the control in the page level; and determining the position of the control in the view hierarchy as the position information.
Optionally, determining a position of the control in the view hierarchy, as an operation of the position information, further includes: classifying the controls according to the control types; numbering controls of the same type by using a class index method; and determining the position of the control in the view level according to the control number.
Therefore, according to the embodiment, through the apparatus 1000 for identifying a control, the terminal device displays an application program interface of an application program; determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level, and sending event information associated with the user clicking the control to the server according to the determined control identification information. The application program of the terminal equipment only needs to determine the hierarchy of the control in the program interface and the position information in the hierarchy, and then can determine the control identification information of the control. Therefore, the control triggered by the user can be identified and monitored without adding a buried point code into the original service code. And furthermore, the technical problems that in the prior art, the existing service codes are doped with the embedded point codes to realize embedded points, the existing service codes are invasive, the complexity of the existing logic is possibly increased, and the existing logic is damaged are solved.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. 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, units or modules, and may be in an electrical 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: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for identifying a control, comprising:
displaying an application program interface of an application program;
responding to a trigger operation of clicking a control of the application program interface by a user, and determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and
and sending event information associated with the control clicked by the user to a server according to the determined control identification information.
2. The method of claim 1, wherein the operation of sending event information associated with the user clicking the control to a server according to the determined control identification information comprises:
comparing the determined control identification information with identification information contained in preset configuration information; and
and under the condition that the identification information contained in the configuration information is consistent with the determined control identification information, sending event information associated with the control clicked by the user to the server.
3. The method of claim 1, wherein the operation of determining control identification information of the control in the application according to the hierarchy of the control in the program interface and the position information in the hierarchy comprises:
determining a page level to which the control belongs in the application program;
determining a view level of the control in the page level; and
determining a position of the control in the view hierarchy as the position information.
4. The method of claim 3, wherein determining the position of the control in the view hierarchy further comprises, as the position information:
classifying the controls according to the control types;
numbering controls of the same type by using a class index method; and
and determining the position of the control in the view level according to the control number.
5. A storage medium comprising a stored program, wherein the method of any one of claims 1 to 4 is performed by a processor when the program is run.
6. An apparatus for identifying a control, comprising:
the display module is used for displaying an application program interface of an application program;
the determining module is used for responding to the triggering operation of clicking the control of the application program interface by a user, and determining the control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and
and the sending module is used for sending the event information associated with the control clicked by the user to the server according to the determined control identification information.
7. The apparatus of claim 6, wherein the sending module further comprises:
the comparison submodule is used for comparing the determined control identification information with identification information contained in preset configuration information; and
and the sending submodule is used for sending the event information associated with the control clicked by the user to the server under the condition that the identification information contained in the configuration information is consistent with the determined control identification information.
8. The apparatus of claim 6, wherein the means for determining comprises:
the first determining submodule is used for determining the page level of the control in the application program;
a second determination submodule, configured to determine a view level of the control in the page level; and
and the third determining sub-module is used for determining the position of the control in the view hierarchy as the position information.
9. The apparatus of claim 8, wherein the third determining sub-module further comprises:
the classification unit is used for classifying the control according to the control type;
the numbering unit is used for numbering the controls of the same type by using a class indexing method; and
and the determining unit is used for determining the position of the control in the view level according to the control number.
10. An apparatus for identifying a control, comprising:
a processor; and
a memory coupled to the processor for providing instructions to the processor for processing the following processing steps:
displaying an application program interface of an application program;
responding to a trigger operation of clicking a control of the application program interface by a user, and determining control identification information of the control in the application program according to the level of the control in the program interface and the position information of the control in the level; and
and sending event information associated with the control clicked by the user to a server according to the determined control identification information.
CN201911089336.9A 2019-11-08 2019-11-08 Method and device for identifying control and storage medium Pending CN110888573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911089336.9A CN110888573A (en) 2019-11-08 2019-11-08 Method and device for identifying control and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911089336.9A CN110888573A (en) 2019-11-08 2019-11-08 Method and device for identifying control and storage medium

Publications (1)

Publication Number Publication Date
CN110888573A true CN110888573A (en) 2020-03-17

Family

ID=69747178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911089336.9A Pending CN110888573A (en) 2019-11-08 2019-11-08 Method and device for identifying control and storage medium

Country Status (1)

Country Link
CN (1) CN110888573A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162735A (en) * 2020-10-28 2021-01-01 北京三快在线科技有限公司 Control identification generation method and device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436133A (en) * 2008-11-20 2009-05-20 腾讯科技(深圳)有限公司 Method and device for generating control object library
US20120030615A1 (en) * 2010-07-28 2012-02-02 Canon Kabushiki Kaisha Information processing apparatus and information processing apparatus control method
CN104615538A (en) * 2015-02-05 2015-05-13 天津市康凯特软件科技有限公司 Mobile phone application testing method based on mobile phone interface control elements
CN107632850A (en) * 2016-07-19 2018-01-26 百度在线网络技术(北京)有限公司 A kind of method and apparatus for obtaining application controls information
CN107818162A (en) * 2017-11-01 2018-03-20 平安科技(深圳)有限公司 Bury a processing method, device, computer equipment and storage medium
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium
CN109445778A (en) * 2018-09-13 2019-03-08 珠海豆饭科技有限公司 A kind of method and apparatus that the interface auxiliary based on SVG file generates

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436133A (en) * 2008-11-20 2009-05-20 腾讯科技(深圳)有限公司 Method and device for generating control object library
US20120030615A1 (en) * 2010-07-28 2012-02-02 Canon Kabushiki Kaisha Information processing apparatus and information processing apparatus control method
CN104615538A (en) * 2015-02-05 2015-05-13 天津市康凯特软件科技有限公司 Mobile phone application testing method based on mobile phone interface control elements
CN107632850A (en) * 2016-07-19 2018-01-26 百度在线网络技术(北京)有限公司 A kind of method and apparatus for obtaining application controls information
CN107818162A (en) * 2017-11-01 2018-03-20 平安科技(深圳)有限公司 Bury a processing method, device, computer equipment and storage medium
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium
CN109445778A (en) * 2018-09-13 2019-03-08 珠海豆饭科技有限公司 A kind of method and apparatus that the interface auxiliary based on SVG file generates

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162735A (en) * 2020-10-28 2021-01-01 北京三快在线科技有限公司 Control identification generation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107786601B (en) Information processing method, terminal and server
CN101206569A (en) Method, system and program product for dynamically identifying components contributing to service degradation
CN105357204A (en) Method and apparatus for generating terminal identifying information
CN104915306A (en) Data operation control method and device manager
CN109636487A (en) Advertisement sending method, server, computer equipment and storage medium
CN111045893A (en) Method, device and system for executing monitoring task, storage medium and electronic device
CN112784155A (en) Method, device and storage medium for matching service side
CN114398672A (en) Authority-based flow creation method and device and storage medium
CN108897592A (en) A kind of software methods of exhibiting and relevant device
CN108737487B (en) Data synchronization method and device, storage medium and electronic device
CN110851334A (en) Flow statistical method, electronic device, system and medium
CN110888573A (en) Method and device for identifying control and storage medium
CN107169005B (en) POI recommendation method, device, equipment and computer readable storage medium
CN105959306A (en) IP address identification method and device
CN107294905A (en) A kind of method and device for recognizing user
CN111340911A (en) Method and device for determining connecting line in k-line graph and storage medium
CN108052252A (en) A kind of score information processing method and processing device
CN115543152B (en) Method and device for determining file state
CN111026995A (en) Method and device for information association between applications and storage medium
CN110618912A (en) Method and device for monitoring equipment and storage medium
CN104536887A (en) Communication data detection method and device
CN110728138A (en) News text recognition method and device and storage medium
CN115037654A (en) Flow statistical method and device, electronic equipment and readable storage medium
CN111026317A (en) Method, device and storage medium for determining user operation
CN110609781A (en) Interface test method, device 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200317