CN115185839A - Page detection method, device, equipment and medium - Google Patents

Page detection method, device, equipment and medium Download PDF

Info

Publication number
CN115185839A
CN115185839A CN202210798640.6A CN202210798640A CN115185839A CN 115185839 A CN115185839 A CN 115185839A CN 202210798640 A CN202210798640 A CN 202210798640A CN 115185839 A CN115185839 A CN 115185839A
Authority
CN
China
Prior art keywords
information
control
target
page
detection
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
CN202210798640.6A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210798640.6A priority Critical patent/CN115185839A/en
Publication of CN115185839A publication Critical patent/CN115185839A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3692Test management for test results analysis

Abstract

The disclosure provides a page detection method, a page detection device, page detection equipment and a page detection medium, which can be applied to the technical field of detection and the technical field of finance. The page detection method comprises the following steps: the method comprises the steps that a target page of an application program is scanned, and functional control information is obtained from a root view of the target page, wherein the functional control information comprises position information of a functional control in the target page and attribute information of the functional control; the method comprises the steps that under the condition that position information meets a first preset condition, detection result information is obtained by detecting attribute information of a function control, under the condition that the detection result information meets a second preset condition, a control icon is generated according to the target position of the function control in a target page, and the detection result information is displayed on the target page through a floating window in response to clicking operation of the control icon.

Description

Page detection method, device, equipment and medium
Technical Field
The present disclosure relates to the field of detection technologies and financial technologies, and in particular, to a page detection method, apparatus, device, medium, and program product.
Background
With the increasing aging of the population, the proportion of the elderly people in the population using the electronic device is gradually increasing, so that when detecting page components of an application program, increasing aging detection is particularly important.
However, in the process of implementing the present disclosure, the inventor finds that, currently, the detection method for the page component of the application program is generally a manual walking mode, which depends on the sensory experience of the tester, and has low test efficiency and accuracy.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a page detection method, apparatus, device, medium, and program product.
According to an aspect of the present disclosure, there is provided a page detection method, including:
the method comprises the steps that a target page of an application program is scanned, and functional control information is obtained from a root view of the target page, wherein the functional control information comprises position information of a functional control in the target page and attribute information of the functional control;
under the condition that the position information meets a first preset condition, detecting attribute information of the function control to obtain detection result information;
under the condition that the detection result information meets a second preset condition, generating a control icon according to the target position of the functional control in the target page; and
and responding to the clicking operation of the control icon, and displaying the detection result information on the target page through the floating window.
According to the embodiment of the disclosure, under the condition that the detection result meets the second preset condition, generating a control icon according to the target position of the functional control in the target page includes:
under the condition that the detection result meets a second preset condition, determining the position information of the target position according to the position information of the function control;
and generating a control icon at the target position.
According to an embodiment of the present disclosure, the position information of the target position includes boundary coordinate information of the target position and center coordinate information of the target position, and the generating of the control icon at the target position includes:
and determining the center coordinate information of the target position as the center coordinate information of the control icon, and generating the control icon at the target position.
According to an embodiment of the present disclosure, the position information of the target position includes boundary coordinate information of the target position and center coordinate information of the target position, and the generating of the control icon at the target position further includes:
and determining the boundary coordinate information of the target position as the mark frame coordinate information of the control icon, and displaying a mark frame by using a target color on the target page to identify the functional control.
According to the embodiment of the disclosure, under the condition that the position information satisfies the first preset condition, the detecting result information is obtained by detecting the attribute information of the function control, and the detecting result information includes:
determining attribute type information according to the attribute information of the function control under the condition that the position information meets a first preset condition;
determining a target preset threshold according to the attribute type information;
and obtaining detection result information by comparing the attribute information with a target preset threshold value.
According to an embodiment of the present disclosure, in the case that the position information satisfies the first preset condition, the detecting result information is obtained by detecting the attribute information of the function control, and the method further includes:
generating detection problem information under the condition that the detection result information meets a second preset condition;
generating modification opinion information according to the detection problem information and a target preset threshold;
storing the detected problem information, the modification opinion information and the identification of the functionality control in a database.
According to the embodiment of the disclosure, in response to the click operation on the control icon, the detection result information is displayed on the target page through the floating window, and the method comprises the following steps:
responding to the clicking operation of the control icon, and acquiring detection problem information and modification opinion information from a database by identifying the identification information of the functional control corresponding to the control icon;
and displaying the detected problem information and the modified opinion information on the target page through the floating window.
Another aspect of the present disclosure provides a page detecting apparatus, including: the device comprises an acquisition module, a detection module, a first generation module and a display module. The obtaining module is used for obtaining the function control information from the root view of the target page by scanning the target page of the application program, wherein the function control information comprises position information of the function control in the target page and attribute information of the function control. And the detection module is used for obtaining detection result information by detecting the attribute information of the functional control under the condition that the position information meets the first preset condition. And the first generation module is used for generating a control icon according to the target position of the functional control in the target page under the condition that the detection result information meets a second preset condition. And the display module is used for responding to the clicking operation of the control icon and displaying the detection result information on the target page through the floating window.
According to an embodiment of the present disclosure, a first generation module includes a first determination unit and a first generation unit. And the first determining unit is used for determining the position information of the target position according to the position information of the function control under the condition that the detection result meets a second preset condition. And the first generation unit is used for generating a control icon at the target position.
According to an embodiment of the present disclosure, the first generation unit includes a generation subunit. The generation subunit is configured to determine the center coordinate information of the target position as the center coordinate information of the control icon, and generate the control icon at the target position.
According to an embodiment of the present disclosure, the first generating unit further comprises a determining subunit. The determining subunit is configured to determine boundary coordinate information of the target position as mark frame coordinate information of the control icon, and display a mark frame on the target page by using a target color to identify the functional control.
According to an embodiment of the present disclosure, a detection module includes a second determination unit, a third determination unit, and a detection unit. And the second determining unit is used for determining the attribute type information according to the attribute information of the function control under the condition that the position information meets the first preset condition. And the third determining unit is used for determining a target preset threshold according to the attribute type information. And the detection unit is used for obtaining detection result information by comparing the attribute information with a target preset threshold value.
According to an embodiment of the present disclosure, the detection module further includes a second generation unit, a third generation unit, and a storage unit. And the second generating unit is used for generating the detection problem information under the condition that the detection result information meets a second preset condition. And the third generation unit is used for generating modification opinion information according to the detection problem information and the target preset threshold value. And the storage unit is used for storing the detected problem information, the modification opinion information and the identification of the functional control in a database.
According to an embodiment of the present disclosure, a display module includes an acquisition unit and a display unit. The acquisition unit is used for responding to the clicking operation of the control icon and acquiring the detection problem information and the modification opinion information from the database by identifying the identification information of the functional control corresponding to the control icon. And the display unit is used for displaying the detected problem information and the modified opinion information on the target page through the floating window.
Another aspect of the present disclosure provides an electronic device including: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the page detection method described above.
Another aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described page detection method.
Another aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the page detection method described above.
According to the embodiment of the disclosure, the method includes the steps of scanning a target page of an application program, obtaining function control information from a root view of the target page, detecting attribute information of a function control to obtain detection result information under the condition that the position information meets a first preset condition, generating a control icon according to a target position of the function control in the target page under the condition that the detection result information meets a second preset condition, responding to clicking operation of the control icon, and displaying the detection result information on the target page through a floating window. The functional control attribute information of all the functional control information of the target page can be obtained by scanning the root view of the target page, and the detection result obtained by detecting the functional control attribute information can be visually displayed on the target page through clicking the control icon, so that the efficiency of page testing is improved. Meanwhile, the detection result is obtained by detecting the attribute information of the function control, so that the accuracy of page testing is improved.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a page detection method, apparatus, device, medium and program product according to embodiments of the disclosure;
FIG. 2 schematically shows a flow diagram of a page detection method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a method of generating a control icon according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a target page presentation diagram with control icons according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a target page presentation diagram with a markup box according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of a method of displaying detection result information through a floating window according to an embodiment of the disclosure;
FIG. 7 schematically illustrates a target page display with a floating window according to an embodiment of the disclosure;
fig. 8 schematically shows a block diagram of a structure of a page detection apparatus according to an embodiment of the present disclosure; and
fig. 9 schematically shows a block diagram of an electronic device adapted to implement a page detection method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including 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, unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B, and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B, and C" would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.).
It should be noted that the page detection method and apparatus of the present disclosure may be used in the financial field and the detection technology field, and may also be used in any field other than the financial field.
The embodiment of the disclosure provides a page detection method, which includes the steps of scanning a target page of an application program, obtaining functional control information from a root view of the target page, detecting attribute information of a functional control under the condition that the position information meets a first preset condition to obtain detection result information, generating a control icon according to the target position of the functional control in the target page under the condition that the detection result information meets a second preset condition, and displaying the detection result information on the target page through a floating window in response to clicking operation of the control icon. The functional control attribute information of all the functional control information of the target page can be obtained by scanning the root view of the target page, and the detection result obtained by detecting the functional control attribute information can be visually displayed on the target page through clicking the control icon, so that the efficiency of page testing is improved. Meanwhile, the detection result is obtained by detecting the attribute information of the function control, so that the accuracy of page testing is improved.
Fig. 1 schematically shows an application scenario diagram of a page detection method according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the page detection method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the page detection apparatus provided by the embodiment of the present disclosure may be generally disposed in the server 105. The page detection method provided by the embodiment of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the page detection apparatus provided in the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
The page detection method of the disclosed embodiment will be described in detail below with reference to fig. 2 to 7 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a page detection method according to an embodiment of the present disclosure.
As shown in fig. 2, the page detection method of this embodiment includes operations S210 to S240.
In operation S210, by scanning a target page of an application, obtaining functionality control information from a root view of the target page, where the functionality control information includes position information of a functionality control in the target page and attribute information of the functionality control.
According to the embodiment of the disclosure, the function control information in the application page is generally stored in a tree structure, and all the function control information of the target page can be obtained by scanning the root view of the target page of the application. The functionality control may be a UI component of the target page. The position information of the functionality control in the page may be coordinate information. The property information of the functionality control may include a functionality control label of the target page, a functionality control type, operations supported by the functionality control, a page font size, a line spacing, a contrast, and the like.
In operation S220, in a case that the position information satisfies a first preset condition, detection result information is obtained by detecting attribute information of the function control.
According to the embodiment of the disclosure, the first preset condition may be that all the function controls in the target page may be completely displayed in the screen of the detection terminal device. For example: the content displayed by the target page in the screen of the detection terminal device comprises a navigation bar and a control bar besides the display content of the function control. Therefore, a pixel coordinate system can be established according to the screen size of the detection terminal device, and the navigation bar area and the control bar area are classified in the pixel coordinate system according to the size of the navigation bar area and the size of the control bar area, wherein the navigation bar area is generally arranged at the uppermost part of the pixel coordinate system, and the control bar area is generally arranged at the lowermost part of the pixel coordinate system. Under the condition that the coordinates of the function control fall in the pixel coordinate system and do not coincide with the navigation bar area and the control bar area, it can be determined that the position information of the function control meets a first preset condition.
According to the embodiment of the disclosure, by detecting the attribute information of the function control, for example: whether the function control supports clicking in the supporting operation, whether the text size of the function control meets a preset threshold value, whether a function control label is set to be an obstacle-free voice label, and the like.
In operation S230, in a case that the detection result information satisfies a second preset condition, a control icon is generated according to a target position of the functional control in the target page.
According to an embodiment of the present disclosure, the second preset condition may be that the detection result is not qualified, for example: the labels of the function controls are not set to be barrier-free voice labels, the size of the click area of the controls does not meet a preset threshold value, and the like.
According to an embodiment of the present disclosure, the target position of the functionality control in the target page may be a center position, a rightmost position, or the like of the functionality control in the target page. The target position may be set according to actual needs, and the embodiment of the present disclosure is not particularly limited. The function control that generates the control icon may represent a problem control or an unqualified control.
In operation S240, in response to a click operation on the control icon, the detection result information is displayed on the target page through the floating window.
According to the embodiment of the disclosure, a tester can click the control icon on the target page, and the detection result information is displayed on the target page through the floating window, so that the detection result can be directly displayed on the target page visually. The detection result may include problem detection items, such as: unqualified labels of the functional controls and the like, so that a tester can adjust the attribute information of the functional controls directly according to the detection result.
According to the embodiment of the disclosure, the method includes the steps of scanning a target page of an application program, obtaining function control information from a root view of the target page, detecting attribute information of a function control to obtain detection result information under the condition that the position information meets a first preset condition, generating a control icon according to a target position of the function control in the target page under the condition that the detection result information meets a second preset condition, responding to clicking operation of the control icon, and displaying the detection result information on the target page through a floating window. The functional control attribute information of all the functional control information of the target page can be obtained by scanning the root view of the target page, and the detection result obtained by detecting the functional control attribute information can be visually displayed on the target page through clicking the control icon, so that the efficiency of page testing is improved. Meanwhile, the detection result is obtained by detecting the attribute information of the function control, so that the accuracy of page testing is improved.
FIG. 3 schematically illustrates a flowchart of a method of generating a control icon according to an embodiment of the present disclosure.
According to an embodiment of the present disclosure, the method of generating a control icon includes operations S310 to S320.
In operation S310, in a case where the detection result satisfies a second preset condition, position information of the target position is determined according to the position information of the function control.
According to an embodiment of the present disclosure, the position information of the function control may include coordinate information of four vertices of the function control display area, and the function control display area may be a rectangle. For example: the coordinate information of the four vertices of the functionality control display area may be a 1 (x 1 ,y 1 )、A2(x 2 ,y 2 )、A 3 (x 3 ,y 3 )、A 4 (x 4 ,y 4 )。
In operation S320, a control icon is generated at the target position.
According to the embodiment of the disclosure, the target position may be any point in the function control display area, or may be any point in four vertexes of the function control display area, and may be set according to actual needs. The control icons may be circular, triangular, etc.
According to an embodiment of the present disclosure, the position information of the target position includes boundary coordinate information of the target position and center coordinate information of the target position, and the generating of the control icon at the target position includes:
and determining the central coordinate information of the target position as the central coordinate information of the control icon, and generating the control icon at the target position.
According to an embodiment of the present disclosure, the target position may be a center point O (x) of the rectangle 5 ,y 5 ) Can be at the target position O (x) 5 ,y 5 ) And generating a control icon.
According to the embodiment of the disclosure, the target position of the display area of the function control which is detected to be unqualified is marked through the control icon, the problem control and the display position of the problem control on the target page can be visually displayed, and the page detection efficiency is improved.
FIG. 4 schematically illustrates a target page presentation diagram with control icons according to an embodiment of the disclosure.
As shown in fig. 4, the target page display diagram includes a function control a display area, a function control B display area, a function control C display area, and a function control D display area. And displaying a control icon P in display areas of the function control A and the function control D, wherein the control icon P indicates that the function control A and the function control D do not pass the detection and belong to the problem control which is unqualified in detection.
According to an embodiment of the present disclosure, the page detection method further includes:
and determining the boundary coordinate information of the target position as the mark frame coordinate information of the control icon, and displaying a mark frame by using a target color on the target page to identify the functional control.
According to the embodiment of the disclosure, the boundary coordinate information of the target position may be vertex information of the function control display area, and the function control display area may be a rectangle. For example: the coordinate information of the four vertices of the functionality control display area may be a 1 (x 1 ,y 1 )、A 2 (x 2 ,y 2 )、A 3 (x 3 ,y 3 )、A 4 (x 4 ,y 4 ) The coordinate information of the mark frame may be A 1 (x 1 ,y 1 )、A 2 (x 2 ,y 2 )、A 3 (x 3 ,y 3 )、A 4 (x 4 ,y 4 )。
According to an embodiment of the present disclosure, the target color may be a color that is clearly distinct from the primary color of the functionality control display area, such as: the primary color of the display area of the functionality control is blue, and the target color may be red, yellow, or the like.
According to the embodiment of the disclosure, the functional control is identified by the mark frame, so that the problem component is displayed on the target page more prominently, a tester can find the control icon in the problem component display area conveniently, the detection result is searched in time, and the detection efficiency is improved.
FIG. 5 schematically shows a target page presentation diagram with a markup box according to an embodiment of the present disclosure.
As shown in fig. 5, the target page display diagram includes a function control a display area, a function control B display area, a function control C display area, and a function control D display area, where a mark frame is displayed in a boundary area of the function control B to indicate that the detection fails and the target page display diagram belongs to a problem control that is not detected.
According to the embodiment of the disclosure, under the condition that the position information satisfies the first preset condition, the detecting result information is obtained by detecting the attribute information of the function control, and the detecting result information includes:
determining attribute type information according to the attribute information of the function control under the condition that the position information meets a first preset condition;
determining a target preset threshold according to the attribute type information;
and obtaining detection result information by comparing the attribute information with a target preset threshold value.
According to an embodiment of the present disclosure, for example: and if the contrast ratio of the text of the functional control A to the background is m, the target preset threshold value is n, and the contrast ratio of the text of the functional control A to the background m to the target preset threshold value n is compared, wherein m is less than n, the detection result with the detection result information of the functional control A is unqualified.
According to an embodiment of the present disclosure, for example: the text size of the functional control B is XX dp or XX pt, the target preset threshold value is YY dp or XX pt, and the detection result information obtained by comparing the font size is that the detection result of the functional control B is qualified or unqualified.
According to the embodiment of the disclosure, the detection result obtained by directly comparing the attribute value of the function control with the target preset threshold value corresponding to different attribute types is more accurate compared with the traditional manual walk-through mode.
According to an embodiment of the present disclosure, the page detection method further includes:
generating detection problem information under the condition that the detection result information meets a second preset condition;
generating modification opinion information according to the detection problem information and a target preset threshold;
storing the detected problem information, the modification opinion information and the identification of the functionality control in a database.
According to an embodiment of the present disclosure, the detection problem information may be determined according to detection items, for example: the unqualified detection items are the page line spacing of the function control, and the detection problem information can be that the page line spacing of the function control A is unqualified.
According to the embodiment of the disclosure, the problem opinion detection and opinion modification information can be preset character strings, and the problem opinion detection character strings comprise character information of detection items and variable information of actual detection values of the detection items. The modification opinion character string comprises character information of modification opinions and variable information of modification values in the modification opinions. Wherein the modification value in the modification opinions is determined according to the detection value and a target preset threshold value. For example: the detection item is the page line spacing, the detection value of the function control A is 1.0 time, and the target preset threshold value is 1.3 times. The generated detection question opinion string may be "the detection value of the page line spacing of the function control a is 1.0 times". The modification of the comment string may be "suggesting to modify the page line spacing of the function control a by 1.3 times or more" or "suggesting to increase the page line spacing of the function control a by 0.3 times or more".
According to an embodiment of the present disclosure, the detection problem information, the modification opinion information, and the identification of the functionality control are stored in a database. For example: the identification of the function control can be a unique ID code of the function control in the target page, so that corresponding problem detection information and opinion modification information can be obtained by searching the ID code of the function control.
According to the embodiment of the disclosure, the detection problem opinions and the modification opinion information are automatically generated through the preset character strings, and the detection problem information, the modification opinion information and the identification of the function control are stored in the database, so that the corresponding detection problem information and the modification opinion information can be obtained by searching the ID code of the function control, and the detection efficiency is improved.
Fig. 6 schematically shows a flowchart of a method for displaying detection result information through a floating window according to an embodiment of the present disclosure.
As shown in fig. 6, the method of displaying the detection result information through the floating window of the embodiment includes operations S610 to S620.
In operation S610, in response to the click operation on the control icon, the identification information of the function control corresponding to the control icon is identified, and the problem detection information and the opinion modification information are obtained from the database.
According to the embodiment of the disclosure, the database can also store the functional control identification information and the position information of the control icon corresponding to the functional control identification information. And responding to the clicking operation of the control icon, and acquiring the position information of the control icon so as to determine the identification information of the functional control corresponding to the control icon. And acquiring the detection problem information and the modification opinion information from the database according to the identification information of the function control.
In operation S620, the detected problem information and the modified opinion information are displayed through the floating window on the target page.
According to the embodiment of the disclosure, the detection problem information and the modification opinion information can be displayed on the target page through the floating window.
FIG. 7 schematically illustrates a target page presentation diagram with a floating window, according to an embodiment of the disclosure.
As shown in fig. 7, a control icon P is displayed in the display area of the function control a in the target page, and in response to a click operation on the control icon P, detection problem information XXX is displayed in a floating window at the bottom of the target page, for example: the page line spacing for functionality control A may be measured as 20 pounds. The modification opinion information XXX, for example, may be "suggest to modify the page line spacing of functionality control a to 25 pounds and above".
According to the embodiment of the disclosure, the detection problem information and the modification suggestion information of the target page are displayed through the floating window, and the detection result can be visually displayed, so that a tester can timely adjust the attribute information of the functional control according to the modification suggestion.
Based on the page detection method, the disclosure also provides a page detection device. The apparatus will be described in detail below with reference to fig. 8.
Fig. 8 schematically shows a block diagram of a structure of a page detection apparatus according to an embodiment of the present disclosure.
As shown in fig. 8, the page detecting apparatus 800 of this embodiment includes an obtaining module 810, a detecting module 820, a first generating module 830, and a displaying module 840.
The obtaining module 810 is configured to obtain, by scanning a target page of an application, functionality control information from a root view of the target page, where the functionality control information includes position information of a functionality control in the target page and attribute information of the functionality control. In an embodiment, the obtaining module 810 may be configured to perform the operation S210 described above, which is not described herein again.
The detection module 820 is configured to obtain detection result information by detecting attribute information of the function control when the position information satisfies a first preset condition. In an embodiment, the detecting module 820 may be configured to perform the operation S220 described above, which is not described herein again.
The first generating module 830 is configured to generate a control icon according to a target position of the functional control in the target page when the detection result information meets a second preset condition. In an embodiment, the first generating module 830 may be configured to perform the operation S230 described above, and is not described herein again.
The display module 840 is configured to display, in response to a click operation on a control icon, detection result information on a target page through a floating window. In an embodiment, the display module 840 may be configured to perform the operation S240 described above, which is not described herein again.
According to an embodiment of the present disclosure, the first generation module includes a first determination unit and a first generation unit. And the first determining unit is used for determining the position information of the target position according to the position information of the function control under the condition that the detection result meets a second preset condition. And the first generating unit is used for generating a control icon at the target position.
According to an embodiment of the present disclosure, the first generation unit includes a generation subunit. The generation subunit is configured to determine the center coordinate information of the target position as the center coordinate information of the control icon, and generate the control icon at the target position.
According to an embodiment of the present disclosure, the first generating unit further comprises a determining subunit. The determining subunit is configured to determine boundary coordinate information of the target position as mark frame coordinate information of the control icon, and display a mark frame on the target page by using a target color to identify the functional control.
According to an embodiment of the present disclosure, a detection module includes a second determination unit, a third determination unit, and a detection unit. The second determining unit is used for determining attribute type information according to the attribute information of the function control under the condition that the position information meets the first preset condition. And the third determining unit is used for determining a target preset threshold according to the attribute type information. And the detection unit is used for obtaining detection result information by comparing the attribute information with a target preset threshold value.
According to an embodiment of the present disclosure, the detection module further includes a second generation unit, a third generation unit, and a storage unit. And the second generating unit is used for generating the detection problem information under the condition that the detection result information meets a second preset condition. And the third generation unit is used for generating modification opinion information according to the detection problem information and the target preset threshold value. And the storage unit is used for storing the detection problem information, the modification opinion information and the identification of the function control in a database.
According to an embodiment of the present disclosure, a display module includes an acquisition unit and a display unit. The acquisition unit is used for responding to the clicking operation of the control icon and acquiring the detection problem information and the modification opinion information from the database by identifying the identification information of the functional control corresponding to the control icon. And the display unit is used for displaying the detected problem information and the modified opinion information on the target page through the floating window.
According to an embodiment of the present disclosure, any plurality of the obtaining module 810, the detecting module 820, the first generating module 830, and the displaying module 840 may be combined into one module to be implemented, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 810, the detecting module 820, the first generating module 830 and the displaying module 840 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three implementations of software, hardware and firmware, or implemented by a suitable combination of any several of them. Alternatively, at least one of the obtaining module 810, the detecting module 820, the first generating module 830 and the displaying module 840 may be at least partly implemented as a computer program module, which when executed may perform a corresponding function.
Fig. 9 schematically shows a block diagram of an electronic device adapted to implement a page detection method according to an embodiment of the present disclosure.
As shown in fig. 9, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 can include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or related chipset(s) and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, the ROM902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 900 may also include input/output (I/O) interface 905, input/output (I/O) interface 905 also connected to bus 904, according to an embodiment of the present disclosure. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. A drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be embodied in the device/apparatus/system described in the above embodiments; or may exist alone without being assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM902 and/or the RAM 903 described above and/or one or more memories other than the ROM902 and the RAM 903.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 901. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal over a network medium, distributed, and downloaded and installed via the communication section 909 and/or installed from the removable medium 911. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 909 and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be appreciated by a person skilled in the art that various combinations or/and combinations of features recited in the various embodiments of the disclosure and/or in the claims may be made, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (11)

1. A page detection method comprises the following steps:
the method comprises the steps that functional control information is obtained from a root view of a target page through scanning the target page of an application program, wherein the functional control information comprises position information of a functional control in the target page and attribute information of the functional control;
under the condition that the position information meets a first preset condition, detecting attribute information of the function control to obtain detection result information;
under the condition that the detection result information meets a second preset condition, generating a control icon according to the target position of the functional control in the target page; and
and responding to the clicking operation of the control icon, and displaying the detection result information on the target page through a floating window.
2. The method according to claim 1, wherein, in a case that the detection result satisfies a second preset condition, generating a control icon according to a target position of the functional control in the target page includes:
under the condition that the detection result meets a second preset condition, determining the position information of the target position according to the position information of the function control;
and generating the control icon at the target position.
3. The method of claim 2, wherein the location information of the target location includes boundary coordinate information of the target location and center coordinate information of the target location, the generating the control icon at the target location includes:
and determining the central coordinate information of the target position as the central coordinate information of the control icon, and generating the control icon at the target position.
4. The method of claim 3, further comprising:
and determining the boundary coordinate information of the target position as the mark frame coordinate information of the control icon, and displaying the mark frame by using a target color on the target page so as to identify the functional control.
5. The method according to claim 1, wherein the obtaining of the detection result information by detecting the attribute information of the function control when the position information satisfies a first preset condition includes:
determining attribute type information according to the attribute information of the function control under the condition that the position information meets a first preset condition;
determining a target preset threshold according to the attribute type information;
and obtaining the detection result information by comparing the attribute information with the target preset threshold value.
6. The method of claim 5, further comprising:
generating detection problem information under the condition that the detection result information meets the second preset condition;
generating modification opinion information according to the detection problem information and the target preset threshold;
and storing the detection problem information, the modification opinion information and the identification of the function control in a database.
7. The method of claim 6, wherein the displaying the detection result information on the target page through a floating window in response to the clicking operation on the control icon comprises:
responding to the clicking operation of the control icon, and acquiring the detection problem information and the modification opinion information from the database by identifying the identification information of the functional control corresponding to the control icon;
and displaying the detection problem information and the modification opinion information on the target page through a floating window.
8. A page detection apparatus, comprising:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring function control information from a root view of a target page by scanning the target page of an application program, and the function control information comprises position information of a function control in the target page and attribute information of the function control;
the detection module is used for detecting the attribute information of the functional control to obtain detection result information under the condition that the position information meets a first preset condition;
the first generation module is used for generating a control icon according to the target position of the functional control in the target page under the condition that the detection result information meets a second preset condition; and
and the display module is used for responding to the clicking operation of the control icon and displaying the detection result information on the target page through a floating window.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202210798640.6A 2022-07-11 2022-07-11 Page detection method, device, equipment and medium Pending CN115185839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210798640.6A CN115185839A (en) 2022-07-11 2022-07-11 Page detection method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210798640.6A CN115185839A (en) 2022-07-11 2022-07-11 Page detection method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115185839A true CN115185839A (en) 2022-10-14

Family

ID=83517504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210798640.6A Pending CN115185839A (en) 2022-07-11 2022-07-11 Page detection method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115185839A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578438A (en) * 2023-07-13 2023-08-11 建信金融科技有限责任公司 Automatic detection method and device suitable for aging transformation
CN117785369A (en) * 2024-02-26 2024-03-29 珠海芯烨电子科技有限公司 Screen display method, system, equipment and medium for scanning information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116578438A (en) * 2023-07-13 2023-08-11 建信金融科技有限责任公司 Automatic detection method and device suitable for aging transformation
CN116578438B (en) * 2023-07-13 2023-09-08 建信金融科技有限责任公司 Automatic detection method and device suitable for aging transformation
CN117785369A (en) * 2024-02-26 2024-03-29 珠海芯烨电子科技有限公司 Screen display method, system, equipment and medium for scanning information

Similar Documents

Publication Publication Date Title
CN115185839A (en) Page detection method, device, equipment and medium
JP2013084259A (en) Gradual visual comparison of web browser screen
WO2020118485A1 (en) Method of Detecting User Interface Layout Issues for Web Applications
US11599726B1 (en) System and method for detecting portability of sentiment analysis system based on changes in a sentiment confidence score distribution
US9699247B2 (en) User experience monitoring for application remoting
US9292611B1 (en) Accessing information from a firmware using two-dimensional barcodes
CN115587575A (en) Data table creation method, target data query method, device and equipment
CN111857674A (en) Business product generation method and device, electronic equipment and readable storage medium
CN113535577B (en) Application testing method and device based on knowledge graph, electronic equipment and medium
CN113515399A (en) Data anomaly detection method and device
CN112965916A (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN112954056A (en) Monitoring data processing method and device, electronic equipment and storage medium
CN116594683A (en) Code annotation information generation method, device, equipment and storage medium
CN115756461A (en) Annotation template generation method, image identification method and device and electronic equipment
CN115292187A (en) Method and device for automatically testing code-free page, electronic equipment and medium
US20170097991A1 (en) Automatically branding topics using color
CN110888583B (en) Page display method, system and device and electronic equipment
CN114281704A (en) Website testing method and device, electronic equipment and medium
CN114219601A (en) Information processing method, device, equipment and storage medium
US20150339751A1 (en) Dynamic pricing model
CN115527211A (en) Label positioning model training method and device, electronic equipment and storage medium
CN115098391A (en) Page detection method, device, equipment and medium
CN117033188A (en) Interface designer testing method and device, storage medium and computer equipment
CN115576553A (en) Table cell layout method, apparatus, electronic device, medium, and program product
CN114065049A (en) Resource recommendation method, device, equipment and storage medium

Legal Events

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