CN110442510A - A kind of page properties acquisition methods, device and computer equipment, storage medium - Google Patents

A kind of page properties acquisition methods, device and computer equipment, storage medium Download PDF

Info

Publication number
CN110442510A
CN110442510A CN201910529171.6A CN201910529171A CN110442510A CN 110442510 A CN110442510 A CN 110442510A CN 201910529171 A CN201910529171 A CN 201910529171A CN 110442510 A CN110442510 A CN 110442510A
Authority
CN
China
Prior art keywords
control
page
information
attribute information
displayed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910529171.6A
Other languages
Chinese (zh)
Other versions
CN110442510B (en
Inventor
禹祥瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910529171.6A priority Critical patent/CN110442510B/en
Publication of CN110442510A publication Critical patent/CN110442510A/en
Application granted granted Critical
Publication of CN110442510B publication Critical patent/CN110442510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3438Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment monitoring of user actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention belongs to field of artificial intelligence, it is related to a kind of page properties acquisition methods, device and computer equipment, storage medium, the described method includes: the user's operation in the page that monitoring is shown on a terminal screen, when detecting user's operation, intercept the event that the user's operation is formed, it determines the page control that the user's operation will trigger in the page, and determines the current operating mode of the page;Configuration information corresponding with the operating mode is read, the control property information of the page control is obtained according to the configuration information;Information displaying control is created in the page shown on the terminal screen, the control property information is shown by the information displaying control, and so that the page control is responded the user's operation and completed corresponding operation.Scheme provided by the invention can completely disengage compiler, can effectively improve application development efficiency in the control property information of real-time automation display page control by the page.

Description

Page attribute obtaining method and device, computer equipment and storage medium
Technical Field
The invention belongs to the technical field of artificial intelligence, and particularly relates to a page attribute acquisition method and device, computer equipment and a storage medium.
Background
In the current development process of the application program, some information of a page of the application program needs to be acquired to debug the application program, for example, a developer needs to know memory information of a certain page control when the application program runs in the development process, or a tester and a designer need to know layout information of the page control related to a certain area of a terminal screen when the application program runs in a test acceptance process, and whether the program needs to be modified is judged by judging whether the information meets requirements, so that the effect of displaying the application program at the terminal is ensured, and less system resources can be occupied while the application program runs stably.
In the prior art, the layout information is generally obtained by converting configured coordinates into layout information of each terminal by a developer through looking at coordinate configuration in a code and through resolution size ratios of different terminal screens, and memory information is obtained through console or debug output information, and is compiled once every time the memory information is obtained, so that the process is complicated and error is easy to occur, and when various page information needs to be obtained for a large number of page controls, a large amount of time is wasted by independently debugging each page control, and the program development efficiency is affected.
Disclosure of Invention
In view of this, the present invention provides a page attribute obtaining method and apparatus, a computer device, and a storage medium, so as to solve the problem that, in the development process of an application program, when page information of a large number of pages in the application program needs to be obtained for debugging or testing the application program, the obtaining process is complicated, and the program development efficiency is affected.
Specifically, the embodiment of the present invention adopts the following technical solutions.
In a first aspect, an embodiment of the present invention provides a method for obtaining page attributes, where a page attribute includes control attribute information of at least one page control, and the method includes:
monitoring user operation in a page displayed on a terminal screen, intercepting an event formed by the user operation when the user operation is detected, determining a page control to be triggered in the page by the user operation, and determining a current working mode of the page;
reading configuration information corresponding to the working mode, and acquiring control attribute information of the page control according to the configuration information;
and creating an information display control in a page displayed on the terminal screen, displaying the control attribute information through the information display control, and enabling the page control to respond to the user operation to complete the corresponding operation.
As a practical mode of the present invention, before the monitoring a user operation in a page displayed on a terminal screen, the method further includes:
adding a state identifier to an application program to which the page belongs, wherein the state identifier is used for configuring a current working mode of the page displayed on the terminal screen, and the working mode comprises a test mode and a development mode;
and respectively configuring the content types of the page attributes to be displayed aiming at the test mode and the development mode based on the state identification to obtain the corresponding configuration information.
As an implementable manner of the present invention, after the obtaining the control attribute information of the page control according to the configuration information, the method further includes:
extracting subclass identification parameters from the control attribute information, and determining whether the page control contains a child control, wherein when the subclass identification parameters are null, no child control is determined;
if the subclass identification parameter is not null, circularly traversing parameter values contained in the subclass identification parameter to obtain at least one sub-control existing in the page control, and correspondingly obtaining sub-control information; the sub-control information comprises the number information and the type information of the sub-controls and the control attribute information of the sub-controls.
As an implementable manner of the present invention, creating an information presentation control in a page displayed on the terminal screen includes:
and creating at least one first information display control for the page control, and creating at least one second information display control for the sub-control.
As a practical mode of the present invention, before the displaying the control attribute information through the information display control, the method further includes:
and determining the information types contained in the control attribute information, and when the control attribute information comprises at least two information types, respectively creating at least one information display control for each information type.
As a practical mode of the present invention, before the displaying the control attribute information through the information display control, the method further includes:
and determining whether the content needing to be processed exists in the control attribute information, and if so, processing the content needing to be processed in the control attribute information according to a preset processing rule to obtain the processed control attribute information.
In a second aspect, an embodiment of the present invention provides a page attribute obtaining apparatus, configured to obtain control attribute information of at least one page control in a page, where the apparatus includes:
the control determining module is used for monitoring user operation in a page displayed on a terminal screen, intercepting an event formed by the user operation when the user operation is detected, determining a page control to be triggered in the page by the user operation, and determining the current working mode of the page;
the attribute acquisition module is used for reading the configuration information corresponding to the working mode and acquiring the control attribute information of the page control according to the configuration information;
and the attribute display control module is used for creating an information display control in a page displayed on the terminal screen, displaying the control attribute information through the information display control, and enabling the page control to respond to the user operation to complete the corresponding operation.
As an implementable manner of the present invention, the apparatus further includes a configuration module, configured to add a state identifier to an application to which the page belongs, where the state identifier is used to configure a current working mode of the page displayed on the terminal screen, where the working mode includes a test mode and a development mode; and the content category display module is used for respectively configuring the content categories of the page attributes to be displayed aiming at the test mode and the development mode based on the state identification to obtain the corresponding configuration information.
In a third aspect, an embodiment of the present invention provides a computer device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, which when executed by the at least one processor, enable the at least one processor to perform the steps of the page property acquisition method as described above.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by at least one processor, the steps of the page attribute obtaining method are implemented.
According to the page attribute acquisition method and device, the computer equipment and the storage medium provided by the embodiment of the invention, the user operation is intercepted when the operation of touching the page is detected, the control attribute information of the page control corresponding to the user operation is acquired and displayed based on the interception operation, the information is visual, and the control attribute information of the page control in the page can be automatically displayed in real time by clicking the page, so that the control attribute information can be completely separated from a compiler when being checked, the operation and the checking can be carried out on an interface of an application program, the development of developers can be facilitated, meanwhile, when the tests or the tests of designers are carried out, the developers can be completely separated from the self-related tests and acceptance processing, and the development efficiency of the application program can be greatly improved.
Drawings
In order to illustrate the solution of the invention more clearly, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are some embodiments of the invention, and that other drawings may be derived from these drawings by a person skilled in the art without inventive effort.
Fig. 1 is a flowchart of a page attribute obtaining method according to an embodiment of the present invention;
fig. 2 is another structural block diagram of the page attribute obtaining apparatus according to the embodiment of the present invention;
fig. 3 is a block diagram of a structure of a page attribute obtaining apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a structure of an attribute obtaining module according to an embodiment of the present invention;
fig. 5 is a block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The appearances of the phrase "an embodiment" in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the present invention provides a method for acquiring page attributes, where the page attributes include control attribute information of at least one page control, and the method for acquiring page attributes can be used to acquire and display control attribute information of each control in an application page, and is applied in program development to improve program development efficiency, and specifically, as shown in fig. 1, the method for acquiring page attributes includes:
s1, monitoring user operation in a page displayed on a terminal screen, intercepting an event formed by the user operation when the user operation is detected, determining a page control to be triggered in the page by the user operation, and determining the current working mode of the page;
s2, reading configuration information corresponding to the working mode, and acquiring control attribute information of the page control according to the configuration information;
s3, creating an information display control in a page displayed on the terminal screen, displaying the control attribute information through the information display control, and enabling the page control to respond to the user operation to complete the corresponding operation.
For step S1, in the embodiment of the present invention, the user operation may be a touch operation or a click operation, for example, a touch operation or a click operation implemented by a touch medium such as a human hand or a touch pen on a screen of a mobile terminal such as a mobile phone or a tablet computer, or a touch operation or a click operation implemented by a cursor of a mouse on a display screen of a PC terminal, for the touch screen, when the user touches the screen, a finger action or a touch pen action for triggering a page operation may include "press down", "lift up", "press down + drag", or "press down + drag + lift up", and for the interface operated by the mouse, the mouse action for triggering the page operation may include "hover", "touch up", "touch down", "touch up", or the like, The terms "press", "lift", "press + drag + lift", and the like, may be any one of the mouse actions with respect to the user operation on the interface operated by the mouse, and in an actual implementation, the user operation is specifically what action, which is not limited in this embodiment, and for convenience of description, the following description mainly takes a mobile terminal with a touch screen, such as a mobile phone and a tablet computer, as an example.
After user operation occurs, the position of the user operation on the terminal screen can be acquired through a sensor in a user screen, a page control of a click position in a page can be determined through the position of the user operation, in the running process of an application program, the page control corresponding to the click position can directly respond to the user operation, such as skipping or outputting specific content, however, in the embodiment of the invention, after the user operation occurs, an event is intercepted, and the page control corresponding to the click position cannot directly respond to the user operation, which is the basis for acquiring page attributes in the embodiment of the invention. In the embodiment of the present invention, the determined page control may be of various types, such as a button control (UIButton), a text label control (UILabel), a scrollable text display control (UITextView), a picture display control (UIImageView), a text input box control (UITextField), and the like.
For step S2, for obtaining the control attribute information of the page control, the obtaining is specifically realized by obtaining an object created by the page control in the memory, and when an object corresponding to the page control is created, information of the object may be obtained. In this embodiment of the present invention, for different page controls, the obtained control attribute information may be different, for example, for a button control, the obtained control attribute information may include memory information and layout information, and for a picture display control, the obtained control attribute information may include picture information (picture format, size, path, and the like) in addition to the memory information and the layout information, that is, the content included in the control attribute information of each page control may be divided into a plurality of information categories, and in some embodiments, the control attribute information at least includes the memory information and the layout information of the page control.
In an actual implementation manner, the control attribute information has different uses for developers, testers and acceptance staff, and specific contents included in the acquired control attribute information also have differences, for example, in a development mode, the developers generally only need to acquire control attribute information of a currently-being-developed page control to verify whether the currently-developed page control can normally run, and therefore only need to acquire partial information of partial page controls or page controls, and in a test mode, the testers need to test all the controls in each page of an application program to test whether each page control meets project requirements, so that the most complete control attribute information needs to be acquired.
In this embodiment, the configuration information includes an obtaining rule of control attribute information, the obtaining rule defines at least one page control that needs to obtain the control attribute information and content included in the control attribute information that needs to be obtained by each page control, and the obtaining rule corresponding to each working mode is different. In an actual situation, control attribute information that needs to be acquired for different types of page controls may be preconfigured to meet different user requirements, that is, the configuration information may be preset, and the content of the control attribute information to be specifically acquired is configured correspondingly by configuring a working mode of an application program runtime page, so in some embodiments, before the monitoring user operation in the page displayed on the terminal screen, the method further includes: adding a state identifier to an application program to which the page belongs, wherein the state identifier is used for configuring a current working mode of the page displayed on the terminal screen, and the working mode can comprise a test mode and a development mode; and based on the state identification, obtaining corresponding configuration information aiming at the content types of the page attributes which need to be displayed respectively in the test mode and the development mode, and correspondingly configuring different control attribute information obtaining rules aiming at the characteristics of the development mode and the test mode so as to obtain the control attribute information with different purposes.
In the embodiment of the present invention, a plurality of page controls may be included in one page, and there may be a containment relationship between the plurality of page controls, that is, there are a parent control and a child control, and one parent control may contain at least one child control. In some embodiments, after the obtaining the control attribute information of the page control according to the configuration information, the method further includes: extracting subclass identification parameters from the control attribute information to determine whether the page control comprises a child control or not, and determining whether the page control comprises the child control or not, wherein when the subclass identification parameters are null, no child control is determined, and if the subclass identification parameters are not null, parameter values contained in the subclass identification parameters are circularly traversed to obtain at least one child control existing in the page control, and child control information is correspondingly obtained; the child control information may include quantity information and type information of the child controls, and control attribute information of the child controls themselves.
For the case that the page control includes a child control, when the control attribute information obtained in step S2 includes control attribute information of the parent control and control attribute information of the child control, in some embodiments, the control attribute information of the parent control and the control attribute information of the child control may be displayed in the same information display control.
In other embodiments, for the presentation of the control attribute information of one or more page controls, multiple information presentation controls may be created, that is, the control attribute information of a parent control and a child control may be displayed in different information presentation controls, and the creating of the information presentation control in the page displayed on the terminal screen includes: and creating a first information display control for the page control serving as a parent control, and creating a second information display control for the child control. In an implementable scheme, the control attribute information of the parent control may also be displayed in two or more information display controls, and the control attribute information of the child control may also be displayed in two or more information display controls, so that when creating the information display controls, at least one first information display control may be created for the page control serving as the parent control, and/or at least one second information display control may be created for the child control.
For step S3, the created information display control is suspended on the page, and control configuration parameters need to be obtained when creating the information display control, where the control configuration parameters include the shape, size, position, background, transparency, and the like of the information display control, and the text size, font type, text color, and the like of the control attribute information to be displayed. The shape of the information display control can be in a form of a suspension text box or a suspension ball, the attribute information of the control can be directly displayed in the suspension text box, or a display box of the attribute information of the control is popped up in a form of clicking the suspension ball, namely the attribute information of the control is initially in a hidden state and is displayed after clicking the suspension ball, and the situation is suitable for the situation that more control attribute information needs to be displayed, and a user can click and view the information as required; the position of the information display control may be close to one side of the displayed page control, or may be at any blank of a parent control corresponding to the displayed page control, where generally one page includes two-level controls, the parent control and a plurality of child controls arranged in the parent control, and in a specific page, there may also be a multi-level control, such as a three-level control, and the information display control may be located in the parent control directly subordinate to the displayed page control, or may also be located in a parent control at a next level.
Since the control property information may be displayed in a plurality of information presentation controls, in some embodiments, prior to the presenting the control property information by the information presentation control, the method further comprises: and determining the information types contained in the control attribute information, and when the control attribute information comprises at least two information types, respectively creating at least one information display control for each information type. For example, the control attribute information includes memory information and layout information, information display controls may be created for the memory information and the layout information, and the information display controls corresponding to different information categories may have different configuration parameters, that is, a plurality of the information display controls have different shapes, sizes, positions, backgrounds, transparencies, and the like, for example, the memory information is displayed in the form of a floating ball, and the layout information is displayed in the form of a floating frame, and meanwhile, the control attribute information displayed in each of the information display controls has different text sizes, font types, text colors, and the like, for example, the memory information is displayed in red text, and the layout information is displayed in green text.
As a practical mode of the present invention, before the displaying the control attribute information through the information display control, the method further includes: and determining whether the content needing to be processed exists in the control attribute information, and if so, processing the content needing to be processed in the control attribute information according to a preset processing rule to obtain the processed control attribute information. For example, the layout information of the page control, the layout information originally obtained in step S3 is the position information obtained from the code file, and needs to be converted into the position information (screen relative position) of the page control relative to the terminal screen coordinates based on the original position information, and for the child control, needs to be converted into the position information (parent control relative position) relative to the parent control coordinates.
It should be noted that, in the above embodiment, for the touch screen, there may be a case of multi-point touch, and at this time, a position where a user operates on the terminal screen corresponds to a plurality of positions. The falling points of the multiple positions are located in the area possibly located in the same page control, the obtained page control corresponds to one page control at the moment, and only the control attribute information of one page control needs to be obtained; and the acquired page controls are corresponding to a plurality of page controls, and the control attribute information of the plurality of page controls can be correspondingly acquired.
In the above embodiment of the present invention, the process of obtaining the control attribute information of the page control may be to obtain the control attribute information in real time, and when the control attribute information of the page control changes, for example, the memory information changes, if the information display control that displays the control attribute information is not closed, the information display control that is created may be updated and displayed in real time.
According to the page attribute acquisition method provided by the embodiment of the invention, the user operation is intercepted when the operation of touching the page is detected, the control attribute information of the page control corresponding to the user operation is acquired and displayed based on the interception operation, the information is visual, and the control attribute information of the page control in the page can be automatically displayed in real time by clicking the page, so that the compiler can be completely separated when the control attribute information is checked, the debugging in the development process can be operated and checked at the interface of the application program, the development of a developer is facilitated, meanwhile, when the test of a tester or the verification of a designer is carried out, the developer can be completely separated to carry out the relevant test and acceptance processing, and the development efficiency of the application program can be greatly improved.
The embodiment of the present invention provides a page attribute obtaining apparatus, configured to obtain control attribute information of at least one page control in a page, as shown in fig. 2, the apparatus includes a control determining module 31, an attribute obtaining module 32, and an attribute display control module 33, where:
the control determining module 31 is configured to monitor a user operation in a page displayed on a terminal screen, intercept an event formed by the user operation when the user operation is detected, determine a page control to be triggered in the page by the user operation, and determine a current working mode of the page; the attribute obtaining module 32 is configured to read configuration information corresponding to the working mode, and obtain control attribute information of the page control according to the configuration information; the attribute display control module 33 is configured to create an information display control in a page displayed on the terminal screen, display attribute information of the control through the information display control, and enable the page control to respond to the user operation to complete a corresponding user operation. The description of the above method embodiments can be referred to for the user operation, the control attribute information, and the related content of the information presentation control, which are not expanded herein.
In an actual situation, control attribute information required to be obtained for different types of page controls may be preconfigured to meet different user requirements, in some embodiments, as shown in fig. 3, the apparatus further includes a configuration module 34, before the control determining module 31 monitors user operation in a page displayed on a terminal screen, the configuration module 34 is configured to add a state identifier to an application to which the page belongs, where the state identifier is used to configure a current working mode of the page displayed on the terminal screen, where the working mode includes a test mode and a development mode; and the content category display module is used for respectively configuring the content categories of the page attributes to be displayed aiming at the test mode and the development mode based on the state identification to obtain the corresponding configuration information.
In an actual implementation manner, the control attribute information has different uses for developers, testers and acceptance staff, and specific contents included in the acquired control attribute information also have differences, in some embodiments of the present invention, as shown in fig. 4, the attribute acquisition module 32 includes a working mode determination unit 321, a configuration information acquisition unit 322, and an attribute acquisition unit 323, where the working mode determination unit 321 is configured to determine a current working mode of a page displayed on a current terminal screen; the configuration information obtaining unit 322 is configured to read configuration information corresponding to the working mode, where the configuration information defines a content range included in the control attribute information to be obtained; the attribute obtaining unit 323 is configured to obtain the control attribute information according to the configuration information. In this embodiment, the configuration information includes an obtaining rule of control attribute information, the obtaining rule defines at least one page control that needs to obtain the control attribute information and content included in the control attribute information that needs to be obtained by each page control, and the obtaining rule corresponding to each working mode is different.
In some embodiments, after the attribute obtaining module 32 obtains the control attribute information of the page control according to the configuration information, the control determining module 31 is further configured to extract a subclass identification parameter from the control attribute information, and determine whether the page control includes a child control, where, when the subclass identification parameter is empty, it is determined that there is no child control; if the subclass identification parameter is not null, the control determining module 31 is further configured to cycle through parameter values included in the subclass identification parameter to obtain at least one child control existing in the page control, and the attribute obtaining module 32 is further configured to correspondingly obtain child control information, where the child control information may include number information and type information of the child controls, and control attribute information of the child controls themselves.
For the situation that the page control contains the child control, the control attribute information of the parent control and the child control can be displayed in the same information display control, and can also be displayed in different information display controls. As an implementable manner of the present invention, when the attribute display control module 33 creates an information display control in a page displayed on the terminal screen, the attribute display control module is specifically configured to create at least one first information display control for the page control, and/or create at least one second information display control for the sub-control.
Since the control attribute information can be displayed in a plurality of information presentation controls, in some embodiments, the attribute presentation control module 33 is further configured to determine information categories included in the control attribute information before the control attribute information is presented by the information presentation controls, and when the control attribute information includes at least two information categories, create at least one information presentation control for each information category.
In other embodiments, before the information display control displays the control attribute information, the attribute display control module 33 is further configured to determine whether content that needs to be processed exists in the control attribute information, and if the content that needs to be processed exists in the control attribute information, process the content that needs to be processed in the control attribute information according to a preset processing rule to obtain the processed control attribute information.
According to the page attribute acquisition device provided by the embodiment of the invention, the user operation is intercepted when the operation of the user page is detected, the control attribute information of the page control corresponding to the user operation is acquired and displayed based on the interception operation, the information is visual, and the control attribute information of the page control in the page can be automatically displayed in real time by clicking the page, so that the compiler can be completely separated when the control attribute information is checked, the debugging in the development process can be operated and checked at the interface of an application program, the development efficiency of the application program can be greatly improved.
An embodiment of the present invention further provides a computer device, as shown in fig. 5, where the computer device includes at least one processor 61, and a memory 62 communicatively connected to the at least one processor 61, and in fig. 5, there is shown one processor 61, where the memory 62 stores instructions executable by the at least one processor 61, and the instructions are executed by the at least one processor 61, so that the at least one processor 61 can execute the steps of the page attribute obtaining method described above.
Specifically, the memory 62 in the embodiment of the present invention is a nonvolatile computer-readable storage medium, and may be used to store a nonvolatile software program, a nonvolatile computer-executable program, and modules, such as program instructions/modules corresponding to the page attribute obtaining method in the foregoing embodiment of the present application; the processor 61 executes various functional applications and performs data processing by running the nonvolatile software programs, instructions and modules stored in the memory 62, that is, the page attribute acquisition method described in the above method embodiment is implemented.
In some embodiments, the memory 62 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the data storage area may store data created during the processing of the page attribute acquisition method, and the like. Further, the memory 62 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device;
in some embodiments, memory 62 may optionally include a remote memory located remotely from processor 61 and connectable to a computer device performing domain name filtering processing via a network, examples of which include, but are not limited to, the internet, an intranet, a local area network, a mobile communications network, and combinations thereof.
In the embodiment of the present invention, the computer device for executing the page attribute obtaining method may further include an input device 63 and an output device 64; the input device 63 may obtain operation information of a user on the computer device, and the output device 64 may include a display device such as a display screen. In the embodiment of the present invention, the processor 61, the memory 62, the input device 63, and the output device 64 may be connected by a bus or other means, and fig. 5 illustrates the connection by the bus as an example.
According to the computer device provided by the embodiment of the present invention, when the processor 61 executes the code in the memory 62, the steps of the page attribute obtaining method in the above embodiment can be executed, and the technical effects of the above method embodiment are achieved, and the technical details not described in detail in the embodiment can be referred to the technical contents provided in the method embodiment of the present application.
Embodiments of the present invention further provide a computer-readable storage medium, where computer-readable instructions are stored on the computer-readable storage medium, and when the computer-readable instructions are executed by at least one processor, the steps of the page attribute obtaining method described above can be implemented, and when the steps of the method are executed, the technical effects of the above method embodiments are achieved, and for technical details not described in detail in this embodiment, reference may be made to technical contents provided in the method embodiments of the present application.
The embodiment of the invention also provides a computer program product which can execute the page attribute acquisition method provided by the embodiment of the method and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the technical contents provided in the method embodiments of the present application.
It should be noted that, in the above embodiments of the present invention, each functional module may be integrated into one processing unit, or each functional module may exist alone physically, or two or more functional modules may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or an intelligent terminal device or a Processor (Processor) to execute some steps of the methods 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.
In the above embodiments provided by the present invention, it should be understood that the disclosed 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 modules is merely a logical division, and an actual implementation may have another division, for example, at least two modules or components may be combined or integrated into another system, or some features may be omitted, or not executed.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on at least two network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention without limiting its scope. This invention may be embodied in many different forms and, on the contrary, these embodiments are provided so that this disclosure will be thorough and complete. Although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that various changes in the embodiments and modifications can be made, and equivalents may be substituted for elements thereof. All equivalent structures made by using the contents of the specification and the attached drawings of the invention can be directly or indirectly applied to other related technical fields, and are also within the protection scope of the patent of the invention.

Claims (10)

1. A method for obtaining page attributes, wherein the page attributes comprise control attribute information of at least one page control, is characterized by comprising the following steps:
monitoring user operation in a page displayed on a terminal screen, intercepting an event formed by the user operation when the user operation is detected, determining a page control to be triggered in the page by the user operation, and determining a current working mode of the page;
reading configuration information corresponding to the working mode, and acquiring control attribute information of the page control according to the configuration information;
and creating an information display control in a page displayed on the terminal screen, displaying the control attribute information through the information display control, and enabling the page control to respond to the user operation to complete the corresponding operation.
2. The page attribute acquisition method according to claim 1, wherein before said monitoring user operations in a page displayed on a terminal screen, the method further comprises:
adding a state identifier to an application program to which the page belongs, wherein the state identifier is used for configuring a current working mode of the page displayed on the terminal screen, and the working mode comprises a test mode and a development mode;
and respectively configuring the content types of the page attributes to be displayed aiming at the test mode and the development mode based on the state identification to obtain the corresponding configuration information.
3. The method according to claim 1 or 2, wherein after the obtaining the control attribute information of the page control according to the configuration information, the method further comprises:
extracting subclass identification parameters from the control attribute information to determine whether the page control contains a child control, wherein when the subclass identification parameters are null, no child control is determined;
if the subclass identification parameter is not null, circularly traversing parameter values contained in the subclass identification parameter to obtain at least one sub-control existing in the page control, and correspondingly obtaining sub-control information; the sub-control information comprises the number information and the type information of the sub-controls and the control attribute information of the sub-controls.
4. The method for acquiring the page attribute of claim 3, wherein the step of creating an information presentation control in the page displayed on the terminal screen comprises the steps of:
and creating at least one first information display control for the page control, and creating at least one second information display control for the sub-control.
5. The method for acquiring page attributes according to claim 1 or 2, wherein before the displaying the control attribute information through the information display control, the method further comprises:
and determining the information types contained in the control attribute information, and when the control attribute information comprises at least two information types, respectively creating at least one information display control for each information type.
6. The method for acquiring page attributes according to claim 1 or 2, wherein before the displaying the control attribute information through the information display control, the method further comprises:
and determining whether the content needing to be processed exists in the control attribute information, and if so, processing the content needing to be processed in the control attribute information according to a preset processing rule to obtain the processed control attribute information.
7. A page attribute obtaining device is used for obtaining control attribute information of at least one page control in a page, and is characterized by comprising:
the control determining module is used for monitoring user operation in a page displayed on a terminal screen, intercepting an event formed by the user operation when the user operation is detected, determining a page control to be triggered in the page by the user operation, and determining the current working mode of the page;
the attribute acquisition module is used for reading the configuration information corresponding to the working mode and acquiring the control attribute information of the page control according to the configuration information;
and the attribute display control module is used for creating an information display control in a page displayed on the terminal screen, displaying the control attribute information through the information display control, and enabling the page control to respond to the user operation to complete the corresponding operation.
8. The device for obtaining page attributes according to claim 7, further comprising a configuration module, configured to add a status identifier to an application to which the page belongs, where the status identifier is used to configure a current working mode of the page displayed on the terminal screen, where the working mode includes a test mode and a development mode; and the content category display module is used for respectively configuring the content categories of the page attributes to be displayed aiming at the test mode and the development mode based on the state identification to obtain the corresponding configuration information.
9. A computer device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, which when executed by the at least one processor, cause the at least one processor to perform the steps of the page property acquisition method of any one of claims 1 to 6.
10. A computer-readable storage medium, having computer-readable instructions stored thereon, which, when executed by at least one processor, implement the steps of the page property acquisition method according to any one of claims 1 to 6.
CN201910529171.6A 2019-06-19 2019-06-19 Page attribute acquisition method and device, computer equipment and storage medium Active CN110442510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910529171.6A CN110442510B (en) 2019-06-19 2019-06-19 Page attribute acquisition method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910529171.6A CN110442510B (en) 2019-06-19 2019-06-19 Page attribute acquisition method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110442510A true CN110442510A (en) 2019-11-12
CN110442510B CN110442510B (en) 2024-09-13

Family

ID=68428271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910529171.6A Active CN110442510B (en) 2019-06-19 2019-06-19 Page attribute acquisition method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110442510B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328492A (en) * 2020-11-19 2021-02-05 腾讯科技(深圳)有限公司 Interaction control method and device between anchor and electronic equipment
CN112328347A (en) * 2020-11-05 2021-02-05 杭州大搜车汽车服务有限公司 Application rule configuration method and device and page processing method
CN113110772A (en) * 2021-04-15 2021-07-13 网易(杭州)网络有限公司 Display method and device for display unit control and electronic equipment
CN113704655A (en) * 2021-08-05 2021-11-26 上海硬通网络科技有限公司 Page operation control setting method and device and storage medium
CN113836465A (en) * 2021-09-17 2021-12-24 深圳追一科技有限公司 Control display method, system, computer equipment and storage medium
CN113963580A (en) * 2021-10-19 2022-01-21 创盛视联数码科技(北京)有限公司 Courseware playing method and teaching system
CN114090125A (en) * 2021-11-23 2022-02-25 金蝶软件(中国)有限公司 Interface configuration method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017118329A1 (en) * 2016-01-07 2017-07-13 阿里巴巴集团控股有限公司 Method and apparatus for controlling tab bar
CN107066377A (en) * 2017-01-18 2017-08-18 青岛海信电器股份有限公司 Page elements acquisition methods and terminal device based on android system
CN107729072A (en) * 2017-08-25 2018-02-23 上海壹账通金融科技有限公司 Control property read method, device, terminal and readable storage medium storing program for executing
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium
WO2019104478A1 (en) * 2017-11-28 2019-06-06 华为技术有限公司 Method and terminal for recognizing screenshot text

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017118329A1 (en) * 2016-01-07 2017-07-13 阿里巴巴集团控股有限公司 Method and apparatus for controlling tab bar
CN107066377A (en) * 2017-01-18 2017-08-18 青岛海信电器股份有限公司 Page elements acquisition methods and terminal device based on android system
CN107729072A (en) * 2017-08-25 2018-02-23 上海壹账通金融科技有限公司 Control property read method, device, terminal and readable storage medium storing program for executing
CN107861655A (en) * 2017-11-01 2018-03-30 平安科技(深圳)有限公司 Control matching process, device, computer equipment and storage medium
WO2019104478A1 (en) * 2017-11-28 2019-06-06 华为技术有限公司 Method and terminal for recognizing screenshot text

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭嘉喜: "基于ActiveX的Office操作自动阅卷控件的设计", 《煤炭技术》, vol. 29, no. 04, 30 April 2010 (2010-04-30), pages 45 - 47 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112328347A (en) * 2020-11-05 2021-02-05 杭州大搜车汽车服务有限公司 Application rule configuration method and device and page processing method
CN112328492A (en) * 2020-11-19 2021-02-05 腾讯科技(深圳)有限公司 Interaction control method and device between anchor and electronic equipment
CN112328492B (en) * 2020-11-19 2022-10-14 腾讯科技(深圳)有限公司 Interaction control method and device between anchor and electronic equipment
CN113110772A (en) * 2021-04-15 2021-07-13 网易(杭州)网络有限公司 Display method and device for display unit control and electronic equipment
CN113110772B (en) * 2021-04-15 2022-06-14 网易(杭州)网络有限公司 Display method and device for display unit control and electronic equipment
CN113704655A (en) * 2021-08-05 2021-11-26 上海硬通网络科技有限公司 Page operation control setting method and device and storage medium
CN113836465A (en) * 2021-09-17 2021-12-24 深圳追一科技有限公司 Control display method, system, computer equipment and storage medium
CN113963580A (en) * 2021-10-19 2022-01-21 创盛视联数码科技(北京)有限公司 Courseware playing method and teaching system
CN114090125A (en) * 2021-11-23 2022-02-25 金蝶软件(中国)有限公司 Interface configuration method and related equipment

Also Published As

Publication number Publication date
CN110442510B (en) 2024-09-13

Similar Documents

Publication Publication Date Title
CN110442510A (en) A kind of page properties acquisition methods, device and computer equipment, storage medium
AU2017206394B2 (en) Method, system and device for testing and readable storage medium
US9274742B2 (en) Visual-symbolic control of remote devices having display-based user interfaces
US9021428B2 (en) Troubleshooting visuals and transient expressions in executing applications
US7650574B2 (en) Visually indicating problems found during programmatic analysis of a graphical program
US10810113B2 (en) Method and apparatus for creating reference images for an automated test of software with a graphical user interface
US20110173589A1 (en) Cross-Browser Interactivity Testing
Walsh et al. Automated layout failure detection for responsive web pages without an explicit oracle
US20160259773A1 (en) System and method for identifying web elements present on a web-page
WO2016111952A2 (en) Performance state machine control with aggregation insertion
US9053241B2 (en) Scripting application with role identification
EP2555109A2 (en) Search utility program for software developers
US10474887B2 (en) Identifying a layout error
JP2013084259A (en) Gradual visual comparison of web browser screen
US20050268173A1 (en) Programmatically analyzing a graphical program by traversing objects in the graphical program
CN104407779A (en) Arrangement display method and device for graphical interface
US20190057485A1 (en) Frame Invalidation Control with Causality Attribution
WO2016075552A1 (en) Method of testing webpage layout
WO2020050907A1 (en) Rendering oversized glyphs to a monospace grid
CN106445802A (en) A method, software and processing unit for verifying properties of interactive components
Yang et al. UIS-hunter: Detecting UI design smells in Android apps
US9678718B1 (en) Analyzing information associated with logic
US9214136B1 (en) Highlighting an object in a display using a dynamically generated highlight object
Xue et al. [Retracted] Visual Identification of Mobile App GUI Elements for Automated Robotic Testing
US10445290B1 (en) System and method for a smart configurable high performance interactive log file viewer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant