A page detection method and device, electronic equipment and storage medium

By coordinating the operation of terminal devices and servers and utilizing page identifiers and event capture function sets, efficient and accurate detection of accessed pages on the cloud platform is achieved, solving the problem of low efficiency and accuracy of page detection on the cloud platform and improving the reliability and security of the cloud platform.

CN122633962APending Publication Date: 2026-08-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510210675.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2026-08-25

AI Technical Summary

Technical Problem

In cloud platforms, existing technologies cannot effectively improve the accuracy and efficiency of page detection, especially when there are many cloud services. It is difficult for operations and maintenance personnel to comprehensively detect the functions of all accessed pages, resulting in potential vulnerabilities going undiscovered, affecting the normal use of the cloud platform, and causing low detection efficiency.

Method used

The terminal device responds to the page selection operation of the target object, generates a page detection request and sends it to the server. The server constructs an access address based on the page identifier, calls the event capture function set to obtain the events in the accessed page, thereby obtaining the detection result, and returns the result to the terminal device for display.

Benefits of technology

The target object can complete the page detection with just a simple selection operation, which reduces the detection time and complexity, improves the detection efficiency and accuracy, and ensures the availability of cloud services and the reliability of the cloud platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122633962A_ABST
    Figure CN122633962A_ABST
Patent Text Reader

Abstract

The application relates to the computer technical field, and in particular to a page detection method and device, electronic equipment and storage medium, to improve the page detection efficiency and accuracy. The method comprises the following steps: in response to a page selection operation triggered by a target object, obtaining at least one target access page selected by the target object from access page sets corresponding to each cloud service; generating a page detection request based on the page identifier corresponding to the at least one target access page, and sending the page detection request to a server; when the server accesses the target access page based on the access address constructed based on the page identifier, calling an event capture function set, obtaining events triggered in the target access page, and obtaining a detection result of the target access page based on the obtained events. In the application, the target object only needs to perform a simple operation, selects the target access page, and obtains the detection result through the server based on the events triggered by the page, so that the detection efficiency and accuracy can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a page detection method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the development of cloud technology, cloud platforms are increasingly being used by organizations and individuals due to their flexibility, security, and high availability. In private cloud scenarios, to ensure the stable and reliable operation of the cloud platform, the access pages corresponding to all cloud services supporting the platform are typically tested periodically to ensure that the functions on each access page are working properly.

[0003] In related technologies, when testing each access page in a cloud platform, operations and maintenance personnel need to access each access page sequentially and use the functions on the access page to verify whether the functions on the access page can be used normally.

[0004] However, when using the above method for detection, the number of access pages that need to be detected will increase when there are many cloud services on the cloud platform. Due to the professional ability and experience of the operation and maintenance personnel, it may not be possible to comprehensively detect every function of all access pages, resulting in a vulnerability on a certain access page going undetected, which in turn affects the normal use of the cloud platform. Furthermore, the above steps need to be repeated every time a detection is performed, resulting in low detection efficiency.

[0005] In summary, improving the accuracy and efficiency of page detection on cloud platforms has become an urgent problem to be solved. Summary of the Invention

[0006] This application provides a page detection method, apparatus, electronic device, and storage medium to improve the accuracy and efficiency of page detection.

[0007] The first page detection method provided in this application includes:

[0008] In response to a page selection operation triggered by a target object, obtain at least one target access page selected by the target object from the access page set corresponding to each cloud service;

[0009] Based on the page identifier corresponding to the at least one target access page, a page detection request is generated and sent to the server; wherein, each page identifier is used to construct an access address pointing to the corresponding target access page on the server, so that when the server accesses the target access page based on the access address, it calls an event capture function set to obtain the events triggered in the target access page, and obtains the detection result of the target access page based on the obtained events;

[0010] Receive the detection results corresponding to the at least one target access page returned by the server;

[0011] At least one detection result received is presented to the target object.

[0012] The second page detection method provided in this application includes:

[0013] The terminal device receives a page detection request, which includes a page identifier corresponding to at least one target access page. The at least one target access page is selected by the target object from the set of access pages corresponding to each cloud service.

[0014] Based on each page identifier, construct an access address pointing to the corresponding target page;

[0015] For each constructed access address, when accessing the corresponding target access page based on an access address, the event capture function set is called to obtain the events triggered on the target access page, and the detection result of the target access page is obtained based on the obtained events.

[0016] The detection results corresponding to the at least one target access page are returned to the terminal device.

[0017] The first type of page detection device provided in this application includes:

[0018] The acquisition unit is used to acquire at least one target access page selected by the target object from the access page set corresponding to each cloud service in response to the page selection operation triggered by the target object.

[0019] The generation unit is used to generate a page detection request based on the page identifier corresponding to the at least one target access page, and send the page detection request to the server; wherein, each page identifier is used to construct an access address pointing to the corresponding target access page on the server, so that when the server accesses the target access page based on the access address, it calls an event capture function set to obtain the events triggered in the target access page, and obtains the detection result of the target access page based on the obtained events;

[0020] A receiving unit is configured to receive the detection results corresponding to the at least one target access page returned by the server;

[0021] A presentation unit is used to present at least one received detection result to the target object.

[0022] Optionally, the apparatus further includes a transmitting unit for:

[0023] The system periodically sends result retrieval requests to the server, so that after receiving the result retrieval request, the server returns the detection results corresponding to each detected target access page to the terminal device.

[0024] Optionally, the apparatus further includes a construction unit for:

[0025] In response to a page retrieval operation triggered by the target object, a page retrieval request is sent to the server;

[0026] Receive the access page set corresponding to each cloud service returned by the server, where each access page set contains at least one access page;

[0027] Based on the affiliation relationship between each access page and each cloud service, a page selection interface is constructed, wherein the page selection interface is used for the target object to select each access page.

[0028] Optionally, the page selection interface includes a page selection area and a result overview area. The page selection area displays the name control corresponding to each cloud service, as well as the name control corresponding to each access page of each cloud service. The positional relationship between the name control of each access page and the name control of the corresponding cloud service is determined based on the affiliation relationship between the access page and the cloud service.

[0029] The presentation unit is specifically used for:

[0030] The at least one detection result is statistically analyzed according to at least one data statistical dimension to obtain statistical results under each data statistical dimension, and the obtained at least one statistical result is displayed in the result overview area.

[0031] Optionally, in the page selection interface, the target object can view each name control by sliding, and the name control of each accessed page is located below the name control of the corresponding cloud service.

[0032] The second page detection device provided in this application embodiment includes:

[0033] The receiving unit is used to receive a page detection request sent by the terminal device. The page detection request includes a page identifier corresponding to at least one target access page. The at least one target access page is selected by the target object from the set of access pages corresponding to each cloud service.

[0034] The building unit is used to construct access addresses pointing to the corresponding target access pages based on each page identifier;

[0035] The calling unit is used to call the event capturing function set for each constructed access address when accessing the corresponding target access page based on an access address, to obtain the events triggered in the target access page, and to obtain the detection result of the target access page based on the obtained events.

[0036] The sending unit is used to return the detection result corresponding to the at least one target access page to the terminal device.

[0037] Optionally, the event capturing function set includes error event capturing functions;

[0038] The calling unit is specifically used for:

[0039] When an error event obtained through the error event capture function is included in the events, the detection result is determined to be a failure.

[0040] Optionally, the event capturing function set includes response event capturing functions;

[0041] The calling unit is specifically used for:

[0042] When the events include response events but do not include error events, the detection result is determined to be passed. The response events are obtained by the response event capture function after receiving response data from the target network request.

[0043] Optionally, the device further includes a setting unit for:

[0044] Set the detection status of the target access page to "detection complete";

[0045] The sending unit is specifically used for:

[0046] Receive the result retrieval request sent by the terminal device;

[0047] The detection result of the target access page with the corresponding detection status of "detection completed" is returned to the terminal device.

[0048] Optionally, the device further includes an inspection unit for:

[0049] Call the element detection function to check the elements contained in the target access page, obtain the element detection results, and take a screenshot of the target access page;

[0050] The calling unit is specifically used for:

[0051] Based on the obtained element detection results, screenshots, and the events, the detection results of the target access page are obtained.

[0052] An electronic device provided in this application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of any of the page detection methods described above.

[0053] This application provides a computer-readable storage medium including a computer program. When the computer program is run on an electronic device, the computer program is used to cause the electronic device to perform the steps of any of the above-described page detection methods.

[0054] This application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. When the processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the steps of any of the above-described page detection methods.

[0055] The beneficial effects of this application are as follows:

[0056] This application provides a page detection method, apparatus, electronic device, and storage medium. In response to a page selection operation triggered by a target object, the terminal device generates a page detection request and sends it to the server based on the page identifier corresponding to each target access page selected by the target object. The target object only needs to perform a simple selection operation to complete the page detection through the terminal device and the server, which greatly reduces the operations that the target object needs to perform when performing page detection, reduces the complexity of page detection, thereby reducing the time spent on page detection and improving the efficiency of page detection.

[0057] When the server accesses the target page using the access address constructed based on the page identifier, it calls a set of event capture functions to obtain the events triggered on the target page and obtains the detection results of the target page based on the obtained events. By obtaining the detection results through detecting the events triggered on the target page, the loading status of the target page can be comprehensively and accurately determined, improving the accuracy of page detection.

[0058] Based on the above approach, the target object only needs to perform simple interactive operations to trigger the page detection process, reducing the time spent on page detection, improving page detection efficiency, and allowing the target object to freely choose which pages to detect, providing high flexibility. Furthermore, by detecting the events triggered when the target accesses the page through server detection, the page loading status can be detected more comprehensively, improving the accuracy of page detection, thereby ensuring the availability of cloud services and enhancing the reliability and security of the cloud platform.

[0059] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0060] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0061] Figure 1 This is an optional schematic diagram of an application scenario in an embodiment of this application;

[0062] Figure 2 This is a schematic diagram of a configuration management interface in an embodiment of this application;

[0063] Figure 3 This is a schematic diagram of a pop-up window on the configuration management interface in an embodiment of this application;

[0064] Figure 4 This is an interactive flowchart of the configuration management process in the embodiments of this application;

[0065] Figure 5A This is a schematic diagram of the page inspection interface in the embodiments of this application;

[0066] Figure 5B This is a schematic diagram of the page selection interface in an embodiment of this application;

[0067] Figure 6 This is a flowchart illustrating the implementation of a page detection method in an embodiment of this application.

[0068] Figure 7 This is a schematic diagram illustrating the selection of a target access page in an embodiment of this application;

[0069] Figure 8 This is a schematic diagram of a result overview area in one embodiment of this application;

[0070] Figure 9A This is a schematic diagram of another page selection interface in an embodiment of this application;

[0071] Figure 9B This is a schematic diagram of the page summary area and error message area in an embodiment of this application;

[0072] Figure 9C This is a flowchart illustrating the implementation of another page detection method in this application.

[0073] Figure 10AThis is a schematic diagram of the interaction process of the page detection method in the embodiments of this application;

[0074] Figure 10B This is a logical schematic diagram of the page detection method in the embodiments of this application;

[0075] Figure 11 This is a schematic diagram of the structure of a page detection device according to an embodiment of this application;

[0076] Figure 12 This is a schematic diagram of another page detection device in an embodiment of this application;

[0077] Figure 13 This is a schematic diagram of the hardware structure of an electronic device using an embodiment of this application;

[0078] Figure 14 This is a schematic diagram of the hardware structure of another electronic device using an embodiment of this application. Detailed Implementation

[0079] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments of this application. Obviously, the described embodiments are only some embodiments of the technical solutions of this application, and not all embodiments. Based on the embodiments recorded in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the technical solutions of this application.

[0080] The following describes some of the concepts involved in the embodiments of this application.

[0081] Cloud computing is a computing model that distributes computing tasks across a resource pool consisting of a large number of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, resources in the "cloud" appear infinitely scalable, readily available, on-demand, and expandable, with payment based on usage.

[0082] As a provider of fundamental cloud computing capabilities, a cloud resource pool (referred to as a cloud platform, generally called an Infrastructure as a Service (IaaS) platform) is established. Various types of virtual resources are deployed within the resource pool for external customers to choose from. The cloud resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, and network devices.

[0083] Based on logical function, a Platform as a Service (PaaS) layer can be deployed on top of the IaaS layer, followed by a Software as a Service (SaaS) layer. Alternatively, SaaS can be deployed directly on top of IaaS. PaaS is the platform for running software, such as databases and web containers. SaaS refers to various types of business software, such as web portals and bulk SMS senders. Generally, SaaS and PaaS are upper layers compared to IaaS.

[0084] Cloud services, also known as cloud products, refer to various services provided to users based on cloud computing technology. These products offer dynamic, scalable, and often virtualized resources via the internet. Users can create, start, stop, and restart servers in the cloud, and are charged based on usage. Common cloud products include cloud servers, cloud storage services, cloud database services, and cloud network services.

[0085] Private cloud: This refers to creating cloud infrastructure and hardware / software resources within a firewall, allowing various departments within an organization or enterprise to share resources within a data center. In addition to hardware resources, creating a private cloud typically involves IaaS software.

[0086] Private cloud computing also comprises three layers: cloud hardware, cloud platform, and cloud services. The difference is that cloud hardware consists of the user's own personal computer or server, rather than the cloud computing provider's data center. Cloud computing providers build data centers to provide public cloud services to millions of users, thus requiring hundreds of thousands or even millions of servers. Private cloud computing, for individuals, serves only family and friends; for businesses, it serves only their own employees, customers, and suppliers. Therefore, an individual's or business's own personal computer or server is sufficient to provide cloud services.

[0087] The design concept of this application is briefly introduced below:

[0088] With the development of cloud technology, cloud platforms are increasingly being used by organizations and individuals due to their flexibility, security, and high availability. In private cloud scenarios, to ensure the stable and reliable operation of the cloud platform, the access pages of all cloud services supporting the platform are typically tested periodically to ensure that the functions on each access page are working properly.

[0089] In related technologies, because cloud platforms in private cloud scenarios generally use intranet environments with high security requirements, the testing of each access page on the cloud platform must comply with internal security policies. Furthermore, unlike users in public cloud scenarios who only need to ensure their own data can be used normally on the cloud platform, the functions on a private cloud platform are customized according to the user's needs, including network configuration, security policies, and resource allocation. Therefore, page testing must be performed on all personalized functions, making it impossible to use general testing tools. Thus, operations and maintenance personnel need to access each access page sequentially and use the functions on each page to verify whether the functions on the access pages can be used normally. For example, if a customer upgrades a cloud platform from version v1 to version v3, after the upgrade, on-site operations and maintenance personnel need to log in, access the console, and even access each route of each cloud product to ensure that the functions are working properly.

[0090] However, when using the above method for testing, the number of access pages that need to be tested increases when there are many cloud services on the cloud platform. Due to the limitations of the professional capabilities and experience of the operations and maintenance personnel, it may be impossible to comprehensively test every function of all access pages. This could lead to vulnerabilities on certain access pages going undetected, thus affecting the normal use of the cloud platform. Furthermore, the above steps need to be repeated every time a test is performed, resulting in low testing efficiency. The overhead on operations and maintenance personnel is enormous. Assuming there are more than 1,000 pages on the cloud platform, and an upgrade requires access to all 1,000+ pages, a team would be needed to handle this task. If some pages malfunction, these pages need to be statistically analyzed and summarized, and then relevant R&D personnel need to be consulted for troubleshooting.

[0091] In summary, improving the accuracy and efficiency of page detection on cloud platforms has become an urgent problem to be solved.

[0092] In view of this, embodiments of this application provide a page detection method, apparatus, electronic device, and storage medium. In response to a page selection operation triggered by a target object, a terminal device generates a page detection request based on the page identifier of each target access page selected by the target object and sends it to the server. The target object only needs to perform a simple selection operation to complete the page detection through the terminal device and the server, which greatly reduces the operations that the target object needs to perform when performing page detection, reduces the complexity of page detection, thereby reducing the time spent on page detection and improving the efficiency of page detection.

[0093] When the server accesses the target page using the access address constructed based on the page identifier, it calls a set of event capture functions to obtain the events triggered on the target page and obtains the detection results of the target page based on the obtained events. By obtaining the detection results through detecting the events triggered on the target page, the loading status of the target page can be comprehensively and accurately determined, improving the accuracy of page detection.

[0094] Based on the above approach, the target object only needs to perform simple interactive operations to trigger the page detection process, reducing the time spent on page detection, improving page detection efficiency, and allowing the target object to freely choose which pages to detect, providing high flexibility. Furthermore, by detecting the events triggered when the target accesses the page through server detection, the page loading status can be detected more comprehensively, improving the accuracy of page detection, thereby ensuring the availability of cloud services and enhancing the reliability and security of the cloud platform.

[0095] The preferred embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit this application. Furthermore, the embodiments and features in the embodiments of this application can be combined with each other without conflict.

[0096] like Figure 1 The diagram shown is an application scenario illustration of an embodiment of this application. The application scenario diagram includes two terminal devices 110 and one server 120.

[0097] In this application embodiment, the terminal device includes, but is not limited to, mobile phones, tablets, laptops, desktop computers, e-book readers, smart voice interaction devices, smart home appliances, and in-vehicle terminals. The terminal device may have a client installed related to page detection. This client can be software (such as a browser, page detection software, etc.), or a webpage, mini-program, etc. The server is the backend server corresponding to the software, webpage, mini-program, etc., or a server specifically used for page detection; this application does not impose specific limitations. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0098] It should be noted that the page detection method in this application embodiment can be executed by an electronic device, which can be a server or a terminal device. That is, the method can be executed by the server or the terminal device alone, or by both the server and the terminal device. For example, when executed by both the server and the terminal device, the terminal device responds to the page selection operation triggered by the target object, obtains at least one target access page selected by the target object from the respective access page sets of each cloud service, generates a page detection request based on the page identifier of each of the at least one target access page, and sends the page detection request to the server; the server constructs access addresses pointing to the corresponding target access pages based on each page identifier; for each constructed access address, when accessing the corresponding target access page based on an access address, it calls the event capture function set to obtain the events triggered in the target access page, and obtains the detection result of the target access page based on the obtained events, and returns the detection result of each of the at least one target access page to the terminal device. The terminal device presents the received detection results to the target object.

[0099] In one alternative implementation, the terminal device and the server can communicate via a communication network.

[0100] In one alternative implementation, the communication network is a wired network or a wireless network.

[0101] It should be noted that, Figure 1 The examples shown are merely illustrative; in reality, the number of terminal devices and servers is unlimited and is not specifically limited in the embodiments of this application.

[0102] In this embodiment of the application, when there are multiple servers, the multiple servers can form a blockchain, and the servers are nodes on the blockchain; as disclosed in the page detection method of this embodiment, the detection results of the accessed pages can be stored on the blockchain.

[0103] Furthermore, the embodiments of this application can be applied to various scenarios, including not only page detection scenarios, but also scenarios such as cloud technology, artificial intelligence, smart transportation, and assisted driving.

[0104] The page detection method provided by the exemplary embodiments of this application will be described below with reference to the accompanying drawings and the application scenarios described above. It should be noted that the application scenarios described above are only shown to facilitate understanding of the spirit and principles of this application, and the embodiments of this application are not limited in any way in this respect.

[0105] The page detection method in this application embodiment can be constructed as a page inspection system built into a cloud platform for page detection (inspection), or it can be applied to a dedicated page detection system. When built into a cloud platform, such as... Figure 2The diagram shown is a schematic of a configuration management interface in an embodiment of this application, including "Tenant Configuration," "Operation Configuration," "Creation Time," "Update Time," and "Operation." Both the tenant and operation sides can log in to the system to perform page inspections (patrols). Typically, the tenant side has more permissions than the operation side, allowing for CRUD operations on inspection accounts. When the target object clicks the "Inspection Item Configuration" control, the terminal device displays the following on the configuration management interface: Figure 3 The pop-up window shown allows the target user to configure the username and password for both the tenant and the operator.

[0106] like Figure 4 The diagram shown is an interactive flowchart of the configuration management process in this embodiment of the application, used to illustrate the interaction process between the target object, the browser in the terminal device, the server, and the database deployed in the server:

[0107] S401: Configure the username and password for the target object and click Save;

[0108] S402: In response to the save operation, the browser sends a login request to the server carrying the username and password;

[0109] S403: The server uses an automation tool to simulate browser behavior, opens the system and enters a username and password, simulates a user clicking the login button, and waits for the page to redirect;

[0110] S404: If the login is successful, the server will save the configured username and password to the database;

[0111] S405: The server returns a login success message to the browser;

[0112] S406: The browser displays a successful login message to the target user.

[0113] S407: If login fails, the server will take a screenshot of the login failure page and convert it into an image of the specified format;

[0114] S408: The server returns a message to the browser containing an image indicating that the login failed;

[0115] S409: The browser displays an image indicating that login failed.

[0116] The automation tool can be either Playwright or Puppeteer, and the specified format is Base64, which is a 64-based encoding format.

[0117] After the target user successfully logs in, the terminal device needs to obtain the set of operation pages for each cloud service from the server in order to construct a page selection interface for the target user to choose from. Optionally, the page selection interface can be constructed through the following steps:

[0118] S51: In response to a page retrieval operation triggered by the target object, send a page retrieval request to the server;

[0119] S52: Receive the set of access pages corresponding to each cloud service returned by the server;

[0120] S53: Based on the affiliation between each access page and each cloud service, construct a page selection interface.

[0121] Specifically, click on the target object Figure 2 After selecting the "Page Inspection" control in the configuration management interface, switch to the page inspection interface from the configuration management interface, such as... Figure 5A As shown, the page inspection interface contains a control called "Initialize Product". The page acquisition operation triggered by the target object can be a single click, double click, long press, or other operation on the control "Initialize Product".

[0122] Cloud platform providers typically offer a management console based on a World Wide Web (Web) browser, serving as a web-based interface for centralized management of cloud services. Objects can use the console to manage resources, costs, security, and permissions, among other functions. Various cloud services on the platform can be managed by a unified console, or separate consoles can be used to manage different cloud services. This embodiment primarily illustrates the centralized management of multiple cloud services through a single console.

[0123] Taking a click on the "Initialize Product" control as an example, when the target object clicks the "Initialize Product" control, the terminal device sends a page retrieval request to the server. The server uses an automated testing tool to simulate browser behavior, logs into the system, and calls the waitForFunction to read the access page sets of all cloud services from the console (the access page sets of all cloud services are stored in the window.g_config_data variable). The server then constructs a tree structure from these access page sets and returns it to the terminal device. Each cloud service's access page set contains all the functional pages provided by the cloud service. The target object manages and operates the cloud service by accessing these functional pages; therefore, these functional pages can also be called access pages. Each access page set contains at least one access page, such as a login page, virtual machine management page, data recovery page, resource usage details page, etc. The access pages included in each access page set are configured according to the specific functions provided by the cloud service, and are not specifically limited here.

[0124] The page selection interface is used by the target object to select from the accessed pages. That is, in the page selection interface, the target object can select the page to be detected. For example, if access page set 1 of cloud service 1 contains access page 1 and access page 2, access page set 2 of cloud service 2 contains access page 3, access page 4 and access page 5, and access page set 3 of cloud service 3 contains access page 6 and access page 7, then the page selection interface will display access pages 1-7. The target object can select access pages 1-7, or it can select access page 1 from access page set 1, access page 4 from access page set 2, and access page 6 from access page set 3. There is no specific limitation here.

[0125] The terminal device constructs a page selection interface based on the attribution relationship between the accessed page and the cloud service. The attribution relationship indicates which cloud service the accessed page belongs to. For example, if the access page set 1 of cloud service 1 contains access page 1 and access page 2, then access page 1 has an attribution relationship with cloud service 1, and access page 2 also has an attribution relationship with cloud service 1. Taking the cloud service "Elastic Computing Service" as an example, the access page set of Elastic Computing Service contains the login page, instance management page, and storage management page. Therefore, the login page, instance management page, and storage management page all have an attribution relationship with Elastic Computing Service.

[0126] Based on the above approach, and the affiliation between each access page and each cloud service, a page selection interface is constructed. The target object can intuitively understand all the access pages that can be detected and freely select the access pages that need to be detected, reducing the time spent selecting access pages and thus improving page detection efficiency.

[0127] Furthermore, in order to improve the efficiency of the target object in selecting access pages and reduce the time spent by the target object in selecting access pages, optionally, when it is detected that the number of access pages selected by the target object is greater than a preset number threshold, a select all control is displayed on the page selection interface. In response to the target object's trigger operation on the select all control, the access pages contained in each access page set are obtained as the target access pages.

[0128] Specifically, it can be set to trigger a one-click selection function when the target object selects N access pages, helping the target object to automatically select all access pages. For example, if the preset number threshold is 20, i.e. N is 20, then when it is detected that the number of access pages selected by the target object is greater than 20, the select all control is displayed. The target object clicks the select all control to select all access pages with one click, and all access pages are used as target access pages.

[0129] Optionally, the page selection interface includes a page selection area, which displays the name controls for each cloud service and the name controls for each access page corresponding to each cloud service. The positional relationship between the name controls of each access page and the name controls of the corresponding cloud service is determined based on the affiliation relationship between the access page and the cloud service. In addition, in the page selection interface, the target object can view each name control by sliding.

[0130] Specifically, such as Figure 5B The diagram shown is a schematic of the page selection interface in this application embodiment. The page selection interface displays the set of access pages for all cloud services in a tree structure. The target object can click on the name control of any access page to select the corresponding access page, or click on the name control of a cloud service to select all access pages under the corresponding cloud service, or click on the name control "Cloud Platform" to select all access pages under all cloud services for detection with one click.

[0131] Among them, tree structure refers to organizing data in a hierarchical manner, such as... Figure 5B In the tree structure shown, the name control of each cloud service is the parent node, and the name controls of each access page below the cloud service's name control are the child nodes. Each access page's name control is located below the name control of its parent cloud service. This hierarchical data organization allows the target user to intuitively view each cloud service and its corresponding access page.

[0132] Since the access page sets of each cloud service are stored in a flat data structure: Cloud Service 1, Access Page 1, Access Page 2, Cloud Service 2, Access Page 3, Access Page 4, Access Page 5, Cloud Service 3, Access Page 6, Access Page 7, when constructing the page selection interface, in order to construct a tree structure to display the access page sets, each storage element (each storage element is the name of a cloud service or access page) is read sequentially. When a stored data is a cloud service, this cloud service is used as the parent node of the tree structure. When a stored data is an access page, this access page is used as the child node of the previous cloud service. Based on the constructed parent nodes and child nodes, the tree structure is obtained.

[0133] Optionally, in response to the target object's trigger action on the name control of the access page, a preview image of the access page corresponding to the name control is displayed.

[0134] Since the number of access pages to be inspected is usually quite large, directly displaying the access pages in the page selection interface would cause the target audience to need to check the page. To avoid the target audience only seeing the name control of the access page and not being able to determine whether to inspect the page, a preview image of the access page can be displayed. This allows the target audience to understand the specific content of the access page. The trigger operation for the name control can be a single click, double click, long press, etc., to trigger the display of the preview image. It should be noted that the operation of the target audience selecting the name control and the operation that triggers the display of the preview image need to be different. For example, if the target audience clicks the name control to select an access page, the operation that triggers the display of the preview image cannot be a single click of the name control, but can be a double click, long press, etc.

[0135] When a large number of pages are accessed, it may be impossible to display all name controls on the page selection screen at once. In this case, the target user can view all name controls by swiping up and down. Figure 5B The control S51 can be dragged up and down. Additionally, the target object can collapse or expand the displayed access page using the triangle symbol to the left of each name control; for example, clicking... Figure 5B Control S52 can collapse all the name controls of the access pages under the cloud service "Virtual Machine" and only show "Virtual Machine". This allows as many cloud service name controls as possible to be displayed in the page selection interface. Clicking control S53 can expand the set of access pages under the cloud service "Cloud Load Balancer".

[0136] To further facilitate the selection of target access pages by target users, the access pages in the access page set of each cloud service can be grouped, and access pages with the same function can be divided into the same page group. The name control of each page group can be displayed in the page selection interface. In response to the target user's trigger operation on the page group, each access page in the page group can be used as the target access page.

[0137] The name control for a page group is determined based on the function of the page group. For example, if all the access pages in page group 1 are login pages for cloud services, then the name control for page group 1 is "Login Page". When the target object clicks the name control for page group 1, it can select all the login pages for inspection with one click, improving page selection efficiency.

[0138] After selecting the interface on the terminal device display page, refer to... Figure 6 The diagram shown is a flowchart of an implementation of a page detection method provided in this application. Taking a terminal device as the executing entity, the specific implementation process of this method includes the following steps S61-S64:

[0139] S61: In response to the page selection operation triggered by the target object, the terminal device obtains at least one target access page selected by the target object from the access page set corresponding to each cloud service;

[0140] Specifically, page selection operations can be actions such as clicking, double-clicking, or long-pressing the name control on the page selection interface; no specific limitations are made here. Figure 7 As shown, the target device selected the access pages for "Image" and "Cloud Disk" under the "Virtual Machine" cloud service in the page selection interface, and clicked "Initiate Inspection". The terminal device then obtained two target access pages, the access page for "Image" and the access page for "Cloud Disk".

[0141] It should be noted that the target object can select the target access page from the same cloud service access page set, or it can select the target access page from multiple cloud service access pages set separately; no specific limitation is made here.

[0142] S62: The terminal device generates a page detection request based on the page identifier corresponding to at least one target access page, and sends the page detection request to the server;

[0143] The page detection request contains the page identifier of each target page. After receiving the page detection request, the server performs the following steps:

[0144] S71: Construct access addresses pointing to the corresponding target access pages based on each page identifier;

[0145] S72: For each constructed access address, when accessing the corresponding target access page based on an access address, call the event capture function set to obtain the events triggered in the target access page, and obtain the detection result of the target access page based on the obtained events;

[0146] S73: Return the detection results of at least one target access page to the terminal device.

[0147] Specifically, the page identifier of the target access page is a unique identifier for the page, namely a Universally Unique Identifier (UUID). The server uses the UUID to retrieve the detailed information of the corresponding target access page from the database. The detailed information includes the hypertext reference (href), name, status, etc. of the target access page.

[0148] Furthermore, to improve the efficiency of obtaining detection results, the server can create a detection task for each target access page. The data structure of each detection task is {href: "", name: "", status: ""}. The task set containing all detection tasks is stored in the database. The server retrieves a preset number of detection tasks from the database periodically according to its processing capacity, processes the retrieved detection tasks in parallel, and obtains the detection results. For example, 10 detection tasks are retrieved and processed in parallel every 10 seconds.

[0149] Here, `href` represents the relative path of the target page. The exact location of the target page cannot be determined solely by the relative path. By concatenating `href` with the domain name of the cloud service to which the target page belongs, we can obtain the access address of the target page, also known as a Uniform Resource Locator (URL). For example, if the domain name is "http: / / www.ABCD.com" and the `href` is " / about", the resulting URL is http: / / www.ABCD.com / about. `name` is used to distinguish different target pages, and `status` indicates the current response status of the target page. For example, 404 indicates that the requested resource does not exist. By using the data structure {href: "", name: "", status: ""} for the detection task, the minimum key information required to execute the detection task is provided. The server can obtain the URL of the target access page through href, thereby accessing the target access page and performing detection. name can be used to distinguish different detection tasks. status can be used to clarify the current response status of the target access page, such as whether resources can be loaded normally, whether data can be sent and received normally, etc. After the detection task is completed, status can also be set to detection completed, so as to accurately identify the detection task that has been completed when returning the detection results to the terminal device.

[0150] Specifically, for a detection task, the server first concatenates the href with the domain name of the cloud service to which the target page belongs to form the access address (i.e., URL). Then, it calls the goto method to jump to the URL, accesses the corresponding target page, and calls various event capture functions in the event capture function set to obtain the events triggered during page loading, thereby obtaining the detection result of the target page. Different event capture functions can be used to obtain different events triggered during page loading. During page loading, when an event is triggered, the server retrieves the event capture function related to the event from memory and executes it. Depending on the event triggered, the corresponding detection result will also be different. For example, when all resources on the page have been loaded, page.on("load") will be triggered, and the detection result will include that the resources have loaded normally. page.on("crash") can detect a page crash event, and page.on("close") can detect a page close event. When these two events are triggered, it indicates that the page loading is abnormal, and the detection result is "failed". During page detection, event capture functions can be set according to requirements; they are not listed here.

[0151] Optionally, the event capturing function set includes error event capturing functions; step S72 can be implemented as follows:

[0152] If an error event obtained through the error event capture function is included in any of the events, the detection result is determined to be a failure.

[0153] Specifically, when an error event is detected on the target access page, the detection result can be determined as failing. For example, the error event capture function page.on('console') can be called to check if there are any errors in the console, and the error event capture function page.on('requestfailed') can be called to check if the network request is faulty.

[0154] By calling the error event capture function, it is possible to comprehensively detect error events triggered when loading the target page, determine whether error events exist, and thus accurately determine whether the function of the target page is normal, thereby improving the accuracy of page detection.

[0155] Optionally, the event capturing function set includes response event capturing functions; step S72 can be implemented as follows:

[0156] If each event includes a response event but no error events, the detection result is determined to be passable.

[0157] The response event is obtained through the response event capture function after receiving the response data of the target network request. For example, calling the response event capture function page.on(“response”) to check the resource loading status, when the response data of the target network request is received, triggers page.on(“response”) to obtain the response data, confirming that the resource can be loaded correctly, i.e., a response event exists.

[0158] Optionally, you can also detect whether the target page is blank by using the following methods:

[0159] The function calls an element detection function to check the elements contained in the target page, obtains the element detection results, and takes a screenshot of the target page.

[0160] Specifically, the element detection function can be called to check whether the target page contains a specified element, thereby determining whether the target page is blank. If the specified element is contained, the element detection result is no blank screen; if the specified element is not contained, the element detection result is a blank screen.

[0161] The element detection function can be page.$$. To take a screenshot of the target page, you can call the screenshot method to generate a screenshot of the target page and convert it into a Base64 format image.

[0162] Then, in step S72, based on the obtained element detection results, screenshots, and events, the detection results of the target access page are obtained.

[0163] Based on the above method, by detecting events triggered on the target page, checking for the existence of specified elements, detecting whether the page is blank, and taking a screenshot of the page, the target can view the page screenshot while viewing the detection results, making it easier for the target to quickly understand the detection results and improving the user experience.

[0164] Optionally, after obtaining the detection results of the target access page, the server sets the detection status of the target access page to "detection complete".

[0165] Specifically, the status of the detection task for the target access page is updated to "detection completed". Then, when a result retrieval request is received from the terminal device, the detection result of the target access page that has been detected is returned to the terminal device.

[0166] Optionally, after the terminal device sends a page detection request to the server, it periodically sends a result retrieval request to the server so that after receiving the result retrieval request, the server returns the detection results of each detected target access page to the terminal device.

[0167] For example, the terminal device sends a result retrieval request to the server every 10 seconds. The server receives the result retrieval request from the terminal device and returns the detection result of the target access page with the corresponding detection status as "detection completed" to the terminal device.

[0168] S63: The terminal device receives the detection result corresponding to at least one target access page returned by the server;

[0169] S64: The terminal device presents at least one received detection result to the target object.

[0170] By periodically requesting data from the terminal device, it can promptly obtain the latest detection results and present them to the target object, reducing the target object's waiting time and improving the user experience. The terminal device can present the target object after receiving partial detection results, or it can present the target object after receiving all detection results; no specific limitation is made here.

[0171] Optionally, the page selection interface includes a results overview area, which performs statistics on at least one detection result according to at least one data statistical dimension, obtains statistical results under each data statistical dimension, and displays at least one obtained statistical result in the results overview area.

[0172] Specifically, the data statistics dimensions can be set according to needs. For example, the data statistics dimensions can be the number of pages that passed the detection and the number of pages that failed the detection. The statistical result could be 1000 pages that passed the detection and 10 pages that failed the detection. By statistically analyzing the detection results, the target audience can quickly and intuitively understand the page detection status. Figure 8 The diagram shown is a schematic of a result overview area in an embodiment of this application. After the target object clicks "Initiate Inspection," the result overview area is displayed in the page selection interface. The result overview area displays an overview of the detection results. The total number of pages indicates the number of pages that need to be detected in the entire system. The number of 404 pages indicates which pages are currently showing 404 errors. Clicking "View Details" will display images of the pages. "Login Failure" indicates which pages failed to log in to the system during the scan. Clicking "View Details" will show the reason for the login failure. "Interface Error" indicates which pages have interface errors.

[0173] like Figure 9AAs shown, this is a schematic diagram of another page selection interface in an embodiment of this application. After the terminal device receives the detection results of "dedicated host" and "image", it displays the icon of the corresponding target access page as completed. The target object clicks the name control of "dedicated host" and displays the detection result of the target access page in the result display area of ​​the page selection interface, including cloud service, detection status, page screenshot and detection completion time.

[0174] You can also view the target object by swiping down in the page selection interface. Figure 9B The page summary area and error message area are shown. The page summary area can display component version and routing information. The component version can also display information such as compilation time, commit ID, branch, product deployment, and time. Figure 9B The error information area, which is not displayed in the text, shows whether the target page failed to load resources, whether there were console errors, or whether there were API errors. If so, it displays the number of pages that failed / reported errors.

[0175] In this embodiment, the terminal device responds to the page selection operation triggered by the target object, generates a page detection request based on the page identifier of each target access page selected by the target object, and sends it to the server. The target object only needs to perform a simple selection operation to complete the page detection through the terminal device and the server, which greatly reduces the operations that the target object needs to perform when performing page detection, reduces the complexity of page detection, thereby reducing the time spent on page detection and improving the efficiency of page detection.

[0176] When the server accesses the target page using the access address constructed based on the page identifier, it calls a set of event capture functions to obtain the events triggered on the target page and obtains the detection results of the target page based on the obtained events. By obtaining the detection results through detecting the events triggered on the target page, the loading status of the target page can be comprehensively and accurately determined, improving the accuracy of page detection.

[0177] Based on the above approach, the target object only needs to perform simple interactive operations to trigger the page detection process, reducing the time spent on page detection, improving page detection efficiency, and allowing the target object to freely choose which pages to detect, providing high flexibility. Furthermore, by detecting the events triggered when the target accesses the page through server detection, the page loading status can be detected more comprehensively, improving the accuracy of page detection, thereby ensuring the availability of cloud services and enhancing the reliability and security of the cloud platform.

[0178] After each test is completed, the terminal device can also generate a summary file of the test results. For pages with abnormal functions, it can generate page screenshots, component names, network requests and resource loading details, and the corresponding R&D personnel of the components. The operation and maintenance personnel can directly use this summary file to troubleshoot the problems detected with the R&D personnel.

[0179] See Figure 9C The diagram shown is an implementation flowchart of another page detection method provided in this application embodiment. Taking the server as the executing entity as an example, the specific implementation process of this method includes the following steps S901-S904:

[0180] S901: The server receives a page detection request sent by the terminal device;

[0181] The page detection request includes at least one page identifier corresponding to the target access page, and the target access page is selected by the target object from the set of access pages corresponding to each cloud service.

[0182] S902: The server constructs an access address pointing to the corresponding target access page based on each page identifier;

[0183] S903: For each constructed access address, when the server accesses the corresponding target access page based on an access address, it calls the event capture function set to obtain the events triggered in the target access page, and obtains the detection result of the target access page based on the obtained events.

[0184] S904: The server returns the detection result corresponding to at least one target access page to the terminal device.

[0185] The steps performed by the server in page inspection are described in the above embodiments and will not be repeated here.

[0186] In this embodiment, the terminal device responds to the page selection operation triggered by the target object, generates a page detection request based on the page identifier of each target access page selected by the target object, and sends it to the server. The target object only needs to perform a simple selection operation to complete the page detection through the terminal device and the server, which greatly reduces the operations that the target object needs to perform when performing page detection, reduces the complexity of page detection, thereby reducing the time spent on page detection and improving the efficiency of page detection.

[0187] When the server accesses the target page using the access address constructed based on the page identifier, it calls a set of event capture functions to obtain the events triggered on the target page and obtains the detection results of the target page based on the obtained events. By obtaining the detection results through detecting the events triggered on the target page, the loading status of the target page can be comprehensively and accurately determined, improving the accuracy of page detection.

[0188] Based on the above approach, the target object only needs to perform simple interactive operations to trigger the page detection process, reducing the time spent on page detection, improving page detection efficiency, and allowing the target object to freely choose which pages to detect, providing high flexibility. Furthermore, by detecting the events triggered when the target accesses the page through server detection, the page loading status can be detected more comprehensively, improving the accuracy of page detection, thereby ensuring the availability of cloud services and enhancing the reliability and security of the cloud platform.

[0189] like Figure 10A The diagram shown is an interactive flow diagram of the page detection method in this application embodiment, used to illustrate the interaction flow between the target object, browser, server and database during the page detection process:

[0190] S1001: The target object selects at least one target access page in the page selection interface and clicks "Initiate Inspection";

[0191] S1002: The browser sends a page detection request containing the page identifier to the server;

[0192] S1003: The server establishes a detection task for each target access page;

[0193] S1004: The server saves the detection task set to the database;

[0194] S1005: The server periodically retrieves a preset number of detection tasks from the database;

[0195] S1006: For each detection task obtained, the server constructs the access address of the corresponding target access page based on the page identifier, jumps to the target access page, calls each event capture function to obtain the triggered events, obtains the detection results based on each event, and updates the detection status to detected.

[0196] S1007: The browser periodically sends result retrieval requests to the server;

[0197] S1008: The server returns the detection result of the target access page with the detection status "detected" to the browser;

[0198] S1009: The browser presents the received detection results to the target object.

[0199] like Figure 10BThe diagram shows a logical schematic of the page detection method in this application embodiment. The target object selects the access page of the "Dedicated Host" in the cloud service "Virtual Machine", the access page of the "Mirror", and all access pages in the cloud service "Cloud Load Balancer" on the page selection interface. The terminal device constructs a page detection request based on the page identifier of the above access page. The server constructs an access address based on the page identifier in the page detection request, accesses the corresponding target access page, and calls the event capture function to detect the events triggered on the page. Taking the access page of the "Mirror" as an example, no error event is detected, but a response event is detected. The access page of the "Mirror" is screenshotted, and the detection result containing the page screenshot is returned to the terminal device. The terminal device updates the name control of the "Mirror" to "Detection Complete". The target object clicks the name control of the "Mirror" and can view the detection result in the result display area on the right.

[0200] Based on the above approach, a configurable white-screen page inspection solution is provided for private cloud scenarios, encompassing both system-wide and cloud product-level dimensions. This solution enables automated, product-level page scanning, providing capabilities to detect whether a page is blank, whether network requests have errors, whether resource loading is successful, and to take screenshots of the page.

[0201] Based on the same inventive concept, embodiments of this application provide a first page detection device. For example... Figure 11 As shown, this is a structural schematic diagram of the page detection device 1100, which may include:

[0202] The acquisition unit 1101 is used to acquire at least one target access page selected by the target object from the access page set corresponding to each cloud service in response to the page selection operation triggered by the target object.

[0203] The generation unit 1102 is used to generate a page detection request based on the page identifier corresponding to at least one target access page, and send the page detection request to the server; wherein, each page identifier is used to construct an access address pointing to the corresponding target access page on the server, so that when the server accesses the target access page based on the access address, it calls the event capture function set to obtain the events triggered in the target access page, and obtains the detection result of the target access page based on the obtained events.

[0204] The receiving unit 1103 is used to receive the detection result corresponding to at least one target access page returned by the server;

[0205] Presentation unit 1104 is used to present at least one received detection result to the target object.

[0206] In this embodiment, the terminal device responds to the page selection operation triggered by the target object, generates a page detection request based on the page identifier corresponding to each target access page selected by the target object, and sends it to the server. The target object only needs to perform a simple selection operation to complete the page detection through the terminal device and the server, which greatly reduces the operations that the target object needs to perform when performing page detection, reduces the complexity of page detection, thereby reducing the time spent on page detection and improving the efficiency of page detection.

[0207] When the server accesses the target page using the access address constructed based on the page identifier, it calls a set of event capture functions to obtain the events triggered on the target page and obtains the detection results of the target page based on the obtained events. By obtaining the detection results through detecting the events triggered on the target page, the loading status of the target page can be comprehensively and accurately determined, improving the accuracy of page detection.

[0208] Based on the above approach, the target object only needs to perform simple interactive operations to trigger the page detection process, reducing the time spent on page detection, improving page detection efficiency, and allowing the target object to freely choose which pages to detect, providing high flexibility. Furthermore, by detecting the events triggered when the target accesses the page through server detection, the page loading status can be detected more comprehensively, improving the accuracy of page detection, thereby ensuring the availability of cloud services and enhancing the reliability and security of the cloud platform.

[0209] Optionally, the device further includes a transmitting unit 1105, used for:

[0210] Periodically send result retrieval requests to the server so that the server, upon receiving the request, returns the detection results corresponding to each target access page to the terminal device.

[0211] Optionally, the device also includes a building unit 1106 for:

[0212] In response to a page retrieval operation triggered by the target object, a page retrieval request is sent to the server;

[0213] Receive the set of access pages corresponding to each cloud service returned by the server, and each set of access pages contains at least one access page;

[0214] Based on the affiliation between each access page and each cloud service, a page selection interface is constructed, which is used by the target object to select each access page.

[0215] Optionally, the page selection interface includes a page selection area and a results overview area. The page selection area displays the name control corresponding to each cloud service, as well as the name control corresponding to each access page of each cloud service. The positional relationship between the name control of each access page and the name control of the corresponding cloud service is determined based on the affiliation relationship between the access page and the cloud service.

[0216] The presentation unit 1104 is specifically used for:

[0217] At least one detection result is statistically analyzed according to at least one data statistical dimension to obtain statistical results under each data statistical dimension, and at least one statistical result is displayed in the results overview area.

[0218] Optionally, in the page selection interface, the target object can view each name control by sliding, with the name control of each accessed page located below the name control of the corresponding cloud service.

[0219] Based on the same inventive concept, embodiments of this application provide a second type of page detection device. For example... Figure 12 As shown, this is a structural schematic diagram of the page detection device 1200, which may include:

[0220] The receiving unit 1201 is used to receive a page detection request sent by the terminal device. The page detection request includes a page identifier corresponding to at least one target access page. The at least one target access page is selected by the target object from the set of access pages corresponding to each cloud service.

[0221] The construction unit 1202 is used to construct access addresses pointing to the corresponding target access pages based on each page identifier;

[0222] Calling unit 1203 is used to call the event capture function set for each constructed access address when accessing the corresponding target access page based on an access address, to obtain the events triggered in the target access page, and to obtain the detection result of the target access page based on the obtained events.

[0223] The sending unit 1204 is used to return the detection result corresponding to at least one target access page to the terminal device.

[0224] Optionally, the event capturing function set includes error event capturing functions;

[0225] Calling unit 1203 is specifically used for:

[0226] If an error event obtained through the error event capture function is included in any of the events, the detection result is determined to be a failure.

[0227] Optionally, the event capturing function set includes response event capturing functions;

[0228] Calling unit 1203 is specifically used for:

[0229] If each event includes a response event but does not include an error event, the detection result is determined to be passed. The response event is obtained by capturing the response data of the target network request through the response event capture function.

[0230] Optionally, the device further includes a setting unit 1205, used for:

[0231] Set the detection status of the target page to "Detection Complete";

[0232] The transmitting unit 1204 is specifically used for:

[0233] Receive a result retrieval request sent by the terminal device;

[0234] The detection results for the target access page with the corresponding detection status of "detection completed" are returned to the terminal device.

[0235] Optionally, the device also includes an inspection unit 1206 for:

[0236] Call the element detection function to check the elements contained in the target page, obtain the element detection results, and take a screenshot of the target page.

[0237] Calling unit 1203 is specifically used for:

[0238] Based on the obtained element detection results, screenshots, and various events, the detection results of the target access page are obtained.

[0239] For ease of description, the above sections are divided into modules (or units) according to their functions and described separately. Of course, in implementing this application, the functions of each module (or unit) can be implemented in one or more software or hardware components.

[0240] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0241] Those skilled in the art will understand that various aspects of this application can be implemented as a system, method, or program product. Therefore, various aspects of this application can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "system."

[0242] Based on the same inventive concept as the above-described method embodiments, this application also provides an electronic device. In one embodiment, the electronic device may be a server, such as... Figure 1 The server is shown. In this embodiment, the structure of the electronic device can be as follows. Figure 13 As shown, it includes a memory 1301, a communication module 1303, and one or more processors 1302.

[0243] The memory 1301 is used to store computer programs executed by the processor 1302. The memory 1301 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and programs required to run instant messaging functions, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.

[0244] Memory 1301 may be volatile memory, such as random-access memory (RAM); memory 1301 may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 1301 may be any other medium capable of carrying or storing a desired computer program having the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 1301 may be a combination of the above-described memories.

[0245] Processor 1302 may include one or more central processing units (CPUs) or digital processing units, etc. Processor 1302 is used to implement the above-described page detection method when calling a computer program stored in memory 1301.

[0246] The communication module 1303 is used to communicate with terminal devices and other servers.

[0247] This application embodiment does not limit the specific connection medium between the memory 1301, communication module 1303, and processor 1302. This application embodiment... Figure 13 The memory 1301 and the processor 1302 are connected via a bus 1304, and the bus 1304 is in Figure 13 The diagram uses thick lines to describe the connections between other components; these are for illustrative purposes only and should not be considered limiting. The 1304 bus can be divided into address bus, data bus, control bus, etc. For ease of description, Figure 13 It is described using only a thick line, but does not indicate that there is only one bus or one type of bus.

[0248] The memory 1301 stores a computer storage medium, which stores computer-executable instructions for implementing the page detection method of this application embodiment. The processor 1302 is used to execute the above-described page detection method, such as... Figure 6 Or as shown in 9C.

[0249] In another embodiment, the electronic device may also be other electronic devices, such as... Figure 1 The terminal device is shown. In this embodiment, the electronic device can be structured as follows. Figure 14 As shown, it includes components such as: communication component 1410, memory 1420, display unit 1430, camera 1440, sensor 1450, audio circuit 1460, Bluetooth module 1470, processor 1480, etc.

[0250] The communication component 1410 is used to communicate with the server. In some embodiments, it may include a Circuit-Based Wireless Fidelity (WiFi) module, which is a short-range wireless transmission technology. Electronic devices can use the WiFi module to help users send and receive information.

[0251] The memory 1420 can be used to store software programs and data. The processor 1480 executes various functions of the terminal device and data processing by running the software programs or data stored in the memory 1420. The memory 1420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. The memory 1420 stores an operating system that enables the terminal device to run. In this application, the memory 1420 may store the operating system and various application programs, and may also store a computer program that executes the page detection method in the embodiments of this application.

[0252] The display unit 1430 can also be used to display information input by the user or information provided to the user, as well as various menus of the terminal device, forming a graphical user interface (GUI). Specifically, the display unit 1430 may include a display screen 1432 disposed on the front of the terminal device. The display screen 1432 may be configured as a liquid crystal display, a light-emitting diode, or the like. The display unit 1430 can be used to display the page detection user interface, etc., as described in the embodiments of this application.

[0253] The display unit 1430 can also be used to receive input digital or character information and generate signal inputs related to user settings and function control of the terminal device. Specifically, the display unit 1430 may include a touch screen 1431 disposed on the front of the terminal device, which can collect touch operations of the user on or near it, such as clicking a button, dragging a scroll box, etc.

[0254] The touchscreen 1431 can be placed over the display screen 1432, or the touchscreen 1431 and the display screen 1432 can be integrated to realize the input and output functions of the terminal device. After integration, it can be referred to as a touch display screen. In this application, the display unit 1430 can display the application program and the corresponding operation steps.

[0255] Camera 1440 can be used to capture still images, which users can then post comments on via the application. There can be one or multiple cameras 1440. An object is projected onto a photosensitive element through a lens, generating an optical image. This photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to the processor 1480 for conversion into a digital image signal.

[0256] The terminal device may also include at least one sensor 1450, such as an accelerometer 1451, a proximity sensor 1452, a fingerprint sensor 1453, and a temperature sensor 1454. The terminal device may also be equipped with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, and motion sensor.

[0257] Audio circuitry 1460, speaker 1461, and microphone 1462 provide an audio interface between the user and the terminal device. Audio circuitry 1460 converts received audio data into electrical signals, which are then transmitted to speaker 1461, where they are converted into sound signals for output. The terminal device can also be equipped with volume buttons for adjusting the volume of the sound signal. Conversely, microphone 1462 converts collected sound signals into electrical signals, which are then received by audio circuitry 1460, converted back into audio data, and output to communication component 1410 for transmission to, for example, another terminal device, or to memory 1420 for further processing.

[0258] The Bluetooth module 1470 is used to interact with other Bluetooth devices that also have a Bluetooth module via the Bluetooth protocol. For example, a terminal device can establish a Bluetooth connection with a wearable electronic device (such as a smartwatch) that also has a Bluetooth module through the Bluetooth module 1470, thereby exchanging data.

[0259] The processor 1480 is the control center of the terminal device, connecting various parts of the terminal through various interfaces and lines. It executes various functions and processes data by running or executing software programs stored in the memory 1420 and calling data stored in the memory 1420. In some embodiments, the processor 1480 may include one or more processing units; the processor 1480 may also integrate an application processor and a baseband processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the baseband processor mainly handles wireless communication. It is understood that the baseband processor may not be integrated into the processor 1480. In this application, the processor 1480 can run the operating system, applications, user interface display and touch response, as well as the page detection method of this embodiment. Furthermore, the processor 1480 is coupled to the display unit 1430.

[0260] In some possible implementations, various aspects of the page detection method provided in this application can also be implemented in the form of a program product, which includes a computer program. When the program product is run on an electronic device, the computer program causes the electronic device to perform the steps in the page detection method according to the various exemplary embodiments of this application described above. For example, the electronic device can perform actions such as... Figure 6 or Figure 9C The steps are shown in the figure.

[0261] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0262] The program product of the embodiments of this application may employ a portable compact disc read-only memory (CD-ROM) and include a computer program, and may run on an electronic device. However, the program product of this application is not limited thereto. In this document, the readable storage medium may be any tangible medium that contains or stores a program that may be used by or in conjunction with a command execution system, apparatus, or device.

[0263] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a readable computer program. This propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting a program for use by or in conjunction with a command execution system, apparatus, or device.

[0264] Computer programs contained on readable media may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0265] Computer programs for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The computer program can execute entirely on the user's electronic device, partially on the user's device, as a standalone software package, partially on the user's electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In cases involving remote electronic devices, the remote electronic device can be connected to the user's electronic device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external electronic device (e.g., via the Internet using an Internet service provider).

[0266] It should be noted that although several units or sub-units of the device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by multiple units.

[0267] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.

[0268] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing a computer-usable computer program.

[0269] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, produce a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0270] These computer program commands may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the commands stored in the computer-readable storage medium produce an article of manufacture including command means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0271] These computer program commands can also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing the commands executed on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0272] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0273] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A page detection method, characterized in that, Applied to a terminal device, the method includes: In response to a page selection operation triggered by a target object, obtain at least one target access page selected by the target object from the access page set corresponding to each cloud service; Based on the page identifier corresponding to the at least one target access page, a page detection request is generated and sent to the server; wherein, each page identifier is used to construct an access address pointing to the corresponding target access page on the server, so that when the server accesses the target access page based on the access address, it calls an event capture function set to obtain the events triggered in the target access page, and obtains the detection result of the target access page based on the obtained events; Receive the detection results corresponding to the at least one target access page returned by the server; At least one detection result received is presented to the target object.

2. The method as described in claim 1, characterized in that, Prior to a page selection action triggered in response to the target object, the method further includes: In response to a page retrieval operation triggered by the target object, a page retrieval request is sent to the server; Receive the access page set corresponding to each cloud service returned by the server, where each access page set contains at least one access page; Based on the affiliation relationship between each access page and each cloud service, a page selection interface is constructed, wherein the page selection interface is used for the target object to select each access page.

3. The method as described in claim 2, characterized in that, The page selection interface includes a page selection area and a result overview area. The page selection area displays the name control corresponding to each cloud service, as well as the name control corresponding to each access page of each cloud service. The positional relationship between the name control of each access page and the name control of the corresponding cloud service is determined based on the affiliation relationship between the access page and the cloud service. Presenting at least one received detection result to the target object includes: The at least one detection result is statistically analyzed according to at least one data statistical dimension to obtain statistical results under each data statistical dimension, and the obtained at least one statistical result is displayed in the result overview area.

4. A page detection method, characterized in that, Applied to a server, the method includes: The terminal device receives a page detection request, which includes a page identifier corresponding to at least one target access page. The at least one target access page is selected by the target object from the set of access pages corresponding to each cloud service. Based on each page identifier, construct an access address pointing to the corresponding target page; For each constructed access address, when accessing the corresponding target access page based on an access address, the event capture function set is called to obtain the events triggered on the target access page, and the detection result of the target access page is obtained based on the obtained events. The detection results corresponding to the at least one target access page are returned to the terminal device.

5. The method as described in claim 4, characterized in that, The event capture function set includes error event capture functions; The detection results of the target access page obtained based on the acquired events include: When an error event obtained through the error event capture function is included in the events, the detection result is determined to be a failure.

6. The method as described in claim 5, characterized in that, The event capture function set includes event capture response functions; The detection results of the target access page obtained based on the acquired events include: When the events include response events but do not include error events, the detection result is determined to be passed. The response events are obtained by the response event capture function after receiving response data from the target network request.

7. The method according to any one of claims 4 to 6, characterized in that, After obtaining the detection result of the target access page, the method further includes: Set the detection status of the target access page to "detection complete"; Returning the detection result corresponding to the at least one target access page to the terminal device includes: Receive the result retrieval request sent by the terminal device; The detection result of the target access page with the corresponding detection status of "detection completed" is returned to the terminal device.

8. The method according to any one of claims 4 to 6, characterized in that, After invoking the event capturing function set to obtain the events triggered on the target access page, the method further includes: Call the element detection function to check the elements contained in the target access page, obtain the element detection results, and take a screenshot of the target access page; The detection results of the target access page obtained based on the acquired events include: Based on the obtained element detection results, screenshots, and the events, the detection results of the target access page are obtained.

9. A page detection device, characterized in that, Applied to terminal devices, including: The acquisition unit is used to acquire at least one target access page selected by the target object from the access page set corresponding to each cloud service in response to the page selection operation triggered by the target object. The generation unit is used to generate a page detection request based on the page identifier corresponding to the at least one target access page, and send the page detection request to the server; wherein, each page identifier is used to construct an access address pointing to the corresponding target access page on the server, so that when the server accesses the target access page based on the access address, it calls an event capture function set to obtain the events triggered in the target access page, and obtains the detection result of the target access page based on the obtained events; A receiving unit is configured to receive the detection results corresponding to the at least one target access page returned by the server; A presentation unit is used to present at least one received detection result to the target object.

10. A page detection device, characterized in that, Applied to servers, including: The receiving unit is used to receive a page detection request sent by the terminal device. The page detection request includes a page identifier corresponding to at least one target access page. The at least one target access page is selected by the target object from the set of access pages corresponding to each cloud service. The building unit is used to construct access addresses pointing to the corresponding target access pages based on each page identifier; The calling unit is used to call the event capturing function set for each constructed access address when accessing the corresponding target access page based on an access address, to obtain the events triggered in the target access page, and to obtain the detection result of the target access page based on the obtained events. The sending unit is used to return the detection result corresponding to the at least one target access page to the terminal device.

11. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of any one of the methods described in claims 1 to 8.

12. A computer-readable storage medium, characterized in that, It includes a computer program that, when run on an electronic device, causes the electronic device to perform the steps of any of the methods described in claims 1 to 8.

13. A computer program product, characterized in that, The method includes a computer program stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, causing the electronic device to perform the steps of any one of claims 1 to 8.