Page test method, computing device, computer storage medium and computer program product

By dynamically generating test addresses and executing test tasks, the problem of insufficient flexibility in static page testing methods is solved, and flexible testing of fast-changing pages is achieved.

CN119938494APending Publication Date: 2025-05-06BEIJING 58 INFORMATION TTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411999527.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The static page testing method has low test flexibility when the website functions are quickly iterated and the pages to be tested are frequently changed, so it cannot adapt to the rapidly changing test needs.

Method used

By obtaining the page test request sent by the user, obtaining the test address template according to the user type, and dynamically generate the target test address according to the page configuration parameters and templates, generating and executing test tasks, testing the page to be tested, obtaining the test results and returning to the user.

Benefits of technology

It realizes dynamically generating target test addresses for the page to be tested without configuring the test addresses in advance, improving the flexibility of page testing and adapting to rapidly changing test needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119938494A_ABST
    Figure CN119938494A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a page testing method, computing equipment, a computer storage medium and a computer program product. The page testing method comprises the steps that a page testing request sent by a user side is obtained, the page testing request is generated based on configuration information of a user, and the configuration information comprises the type of the user side and page configuration parameters; in response to the page test request, obtaining a corresponding test address template according to the user side type; generating a target test address according to the page configuration parameters and the test address template; generating a first test task based on the target test address; executing the first test task to test the to-be-tested page indexed by the target test address to obtain a first test result; and returning the first test result to the user side. According to the technical scheme provided by the embodiment of the invention, the flexibility of page testing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of testing technology, and in particular to a page testing method, a computing device, a computer storage medium, and a computer program product. Background Art

[0002] In today's digital age, websites and various online platforms play a vital role in people's lives and work. As user needs become increasingly diverse, web page functions are becoming more and more rich and complex, covering many different categories and business scenarios. This makes ensuring the quality and stability of web pages a very challenging task, and comprehensive and effective testing of web pages is particularly critical.

[0003] In the related art, a static test method is usually used for page testing. In the static test method, a large number of page test addresses need to be generated in advance, so as to test each page according to the page test addresses.

[0004] In the process of realizing the concept of this application, the inventors found that when the website functions are rapidly iterated and the pages to be tested are frequently changed, the static page testing method has low testing flexibility and cannot adapt to rapidly changing testing needs. Summary of the invention

[0005] Embodiments of the present application provide a page testing method, a computing device, a computer storage medium, and a computer program product.

[0006] In a first aspect, an embodiment of the present application provides a page testing method, which is applied to a testing server, and the method includes:

[0007] Acquire a page test request sent by a user terminal, wherein the page test request is generated based on configuration information of the user, wherein the configuration information includes a user terminal type and page configuration parameters;

[0008] In response to the page test request, obtaining a corresponding test address template according to the user terminal type;

[0009] Generate a target test address according to the page configuration parameters and the test address template;

[0010] Based on the target test address, generate a first test task;

[0011] Executing the first test task to test the page to be tested indexed by the target test address to obtain a first test result;

[0012] The first test result is returned to the user terminal.

[0013] In a second aspect, an embodiment of the present application provides a page testing method, which is applied to a user end, and the method includes:

[0014] Displaying a test configuration page in a user interface, the test configuration page including user terminal type prompt information and at least one test parameter prompt information;

[0015] In response to a configuration operation triggered by a user in response to the user terminal type prompt information and at least one test parameter prompt information, determining a user terminal type and a page configuration parameter;

[0016] Generate a page test request according to the user terminal type and the page configuration parameters;

[0017] The page test request is sent to the test server, so that the test server responds to the page test request and obtains a corresponding test address template according to the user terminal type; generates a target test address according to the page configuration parameters and the test address template; generates a first test task based on the target test address; executes the test task to test the page to be tested indexed by the target test address and obtains a first test result;

[0018] Receive the first test result sent by the server.

[0019] In a third aspect, an embodiment of the present application provides a page testing device, which is applied to a testing server, and the device includes:

[0020] A request acquisition module, used to acquire a page test request sent by a user terminal, wherein the page test request is generated based on the user's configuration information, wherein the configuration information includes the user terminal type and page configuration parameters;

[0021] A template acquisition module, used to respond to the page test request and acquire a corresponding test address template according to the user terminal type;

[0022] A test address generation module, used to generate a target test address according to the page configuration parameters and the test address template;

[0023] A test task generating module, used for generating a first test task based on the target test address;

[0024] A task execution module, used for executing the first test task to test the page to be tested indexed by the target test address to obtain a first test result;

[0025] A result feedback module is used to return the first test result to the user end.

[0026] In a fourth aspect, an embodiment of the present application provides a page testing device, which is applied to a user end, and the device includes:

[0027] A page display module, used to display a test configuration page in a user interface, wherein the test configuration page includes user terminal type prompt information and at least one test parameter prompt information;

[0028] A parameter determination module, configured to determine a user terminal type and page configuration parameters in response to a configuration operation triggered by a user in response to the user terminal type prompt information and at least one test parameter prompt information;

[0029] A request generation module, used to generate a page test request according to the user terminal type and the page configuration parameters;

[0030] A request sending module, used to send the page test request to the test server, so that the test server responds to the page test request, obtains the corresponding test address template according to the user terminal type; generates a target test address according to the page configuration parameters and the test address template; generates a first test task based on the target test address; executes the test task to test the page to be tested indexed by the target test address to obtain a first test result;

[0031] The result receiving module is used to receive the first test result sent by the server.

[0032] In a fifth aspect, an embodiment of the present application provides a computing device, including a processing component and a storage component;

[0033] The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the page testing method provided in the embodiment of the present application.

[0034] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processing component, the page testing method provided by the embodiment of the present application is implemented.

[0035] In a seventh aspect, a computer program product is provided in an embodiment of the present application, including a computer program / instruction, and when the computer program / instruction is executed by a processing component, the page testing method provided in an embodiment of the present application is implemented.

[0036] The embodiment of the present application provides a page testing method, which obtains a corresponding test address template according to the user terminal type carried in the page test request after obtaining a page test request sent by the user terminal, and then dynamically generates a target test address according to the page configuration parameters and the test address template, generates a first test task based on the target test address, executes the first test task to test the page to be tested indexed by the target test address, obtains a first test result, and returns the first test result to the user terminal. Therefore, when it is necessary to test the page to be tested, there is no need to configure the test address in advance, and the target test address for the page to be tested can be dynamically generated to test the page to be tested, which improves the flexibility of page testing.

[0037] These and other aspects of the present application will become more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0039] Figure 1 A system architecture diagram is shown in which the technical solution of an embodiment of the present application can be applied;

[0040] Figure 2 A flow chart of a page testing method provided by an embodiment of the present application is shown;

[0041] Figure 3 The demand management page provided by the embodiment of the present application is shown;

[0042] Figure 4 A schematic diagram of a page test provided by an embodiment of the present application is shown;

[0043] Figure 5 A flow chart of a page testing method provided by another embodiment of the present application is shown;

[0044] Figure 6 A schematic diagram of a test configuration page provided in an embodiment of the present application is shown;

[0045] Figure 7 A schematic diagram of a task list page provided in an embodiment of the present application is shown;

[0046] Figure 8 A block diagram of a page testing device provided in an embodiment of the present application is shown;

[0047] Fig. 9 A block diagram of a page testing device provided by another embodiment of the present application is shown;

[0048] Fig.10 A block diagram of a computing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0050] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.

[0051] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0052] It should be noted that the technical solution of the embodiment of the present application is applicable to a network virtual environment. The users described generally refer to "virtual users". Real users can register user accounts in the server through registration to obtain user identities in the network environment. In the embodiment of the present application, the same user account can be used to log in to the server through different types of clients, so that the server can identify the same user. Of course, different user accounts can also be used to log in to the server through different types of clients. The server stores binding relationships between different user accounts, so that different user accounts with binding relationships can be considered to be the same user.

[0053] In today's digital age, websites and various online platforms play a vital role in people's lives and work. As user needs become increasingly diverse, web page functions are becoming more and more rich and complex, covering many different categories and business scenarios. This makes ensuring the quality and stability of web pages a very challenging task, and comprehensive and effective testing of web pages is particularly critical.

[0054] In the related art, a static test method is usually used for page testing. In the static test method, a large number of page test addresses need to be generated in advance, so as to test each page according to the page test addresses.

[0055] In the process of realizing the concept of this application, the inventors found that when the website functions are rapidly iterated and the pages to be tested are frequently changed, the static page testing method has low testing flexibility and cannot adapt to rapidly changing testing needs.

[0056] In order to solve the technical problems existing in the related art, the embodiment of the present application provides a page testing method, which obtains the corresponding test address template according to the user terminal type carried in the page test request after obtaining the page test request sent by the user terminal, and then dynamically generates the target test address according to the page configuration parameters and the test address template, generates a first test task based on the target test address, executes the first test task to test the page to be tested indexed by the target test address, obtains the first test result, and returns the first test result to the user terminal. Therefore, when it is necessary to test the page to be tested, there is no need to configure the test address in advance, and the target test address for the page to be tested can be dynamically generated to test the page to be tested, which improves the flexibility of page testing.

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0058] Figure 1 A system architecture diagram is shown in which the technical solution of an embodiment of the present application can be applied. The system architecture may include a user end 101 and a server end 102.

[0059] The user terminal 101 and the server terminal 102 are connected via a network. The network provides a medium for the communication link between the user terminal 101 and the server terminal 102. The network may include various connection types, such as wired or wireless communication links or optical fiber cables. Optionally, the server terminal may be connected to the user terminal via a mobile network. Optionally, the user terminal may also establish a communication connection with the server terminal via Bluetooth, WiFi (Wireless Fidelity), infrared, etc.

[0060] The client 101 can interact with the test server 102 through the network to receive or send messages.

[0061] Among them, the user terminal 101 can be a browser, an APP (Application), or a web application such as an H5 (HyperText Markup Language 5, Hypertext Markup Language Version 5) application, or a light application (also known as a mini-program, a lightweight application) or a cloud application, etc. The user terminal 101 can be deployed in an electronic device and needs to rely on the device to run or some apps in the device to run, etc. The electronic device can, for example, have a display screen and support information browsing, such as a personal mobile terminal such as a mobile phone, a tablet computer, a personal computer, a desktop computer, a smart speaker, a smart watch, etc. For ease of understanding, Figure 1 The user end is mainly represented by a device image. Various other types of applications can usually be configured in electronic devices, such as human-computer dialogue applications, model training applications, text processing applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc. Electronic devices can refer to devices used by users, which have the functions of computing, surfing the Internet, communicating, etc. required by users, such as mobile phones, tablet computers, personal computers, wearable devices, etc. Electronic devices can usually include at least one processing component and at least one storage component. Electronic devices may also include basic configurations such as network card chips, IO buses, audio and video components, which are not limited in this application. Optionally, according to the implementation form of the electronic device, some peripheral devices may also be included, such as keyboards, mice, input pens, printers, etc., which are not limited in this application.

[0062] The test server 102 may include a server that provides a test service.

[0063] It should be noted that the test server 102 can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. The server can also be a server of a distributed system, or a server combined with a blockchain. The server can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology.

[0064] It should be understood that Figure 1 The number of the user terminals and the server terminals in the figure is only for illustration. Any number of the user terminals and the server terminals may be provided according to the implementation requirements.

[0065] The implementation details of the technical solution of the embodiment of the present application are elaborated in detail below.

[0066] Figure 2 A flow chart of a page testing method provided by an embodiment of the present application is shown. The page testing method can be applied to a testing server, such as Figure 2 As shown, the method may specifically include the following steps:

[0067] 201: Obtain a page test request sent by a user terminal. The page test request is generated based on the user's configuration information. The configuration information includes the user terminal type and page configuration parameters.

[0068] Among them, the test user can perform test configuration operations on the test configuration page provided on the user side according to specific test requirements. The user side type and page configuration parameters can be determined through the test configuration operation. Thus, a page test request can be generated according to the user side type and page configuration parameters, and the page test request can be sent to the test server.

[0069] The test server can be a multi-category test server corresponding to the multi-category service platform, which is used to meet the testing needs of different requirements and scenarios of the multi-category service platform. Among them, multi-category can mean that the service platform covers multiple different types of classification projects, and these categories can usually be divided according to factors such as function, service content, and product type. For example, a multi-category service platform can provide business services, housekeeping services, car services, pet services, ticketing services and other service types, then business services, housekeeping services, car services, pet services, and ticketing services can each be a category.

[0070] The category can also present a tree-like hierarchical structure, for example, it can be divided into primary categories, secondary categories, tertiary categories, etc. The primary category can be a macro and broad classification summary, the secondary category can be a further refinement and decomposition of the primary category, and the tertiary category can be further subdivided on the basis of the secondary category. Taking the above-mentioned primary category of pet services as an example, the primary category can include secondary categories such as pet beauty care and pet training, and the secondary category of pet beauty care can also include tertiary categories such as pet bathing and pet beauty styling.

[0071] The multi-category service platform covers multiple different types of service categories, and each category is further subdivided into many specific service contents. However, since different service areas have their own unique market demands, consumption habits and regional characteristics, the multi-category service platform will introduce more complexity when providing services to different service areas. In addition, users can use different types of client terminals, such as personal computers (PC), mobile terminals, and applications to access the multi-category service platform. These different types of client terminals also have differences in screen size, resolution, operation mode, etc., resulting in different display methods of service pages.

[0072] In such a complex service scenario, in order to provide consistent user experience to users in different service areas and different types of client terminals, it is necessary to use a test server to perform page testing.

[0073] The page configuration parameters may include category parameters, service area parameters, and page type parameters, through which the page to be tested can be determined from a large number of service pages provided by the multi-category service platform. In addition, the page configuration parameters may also include the user terminal type, thereby testing the service provision of the page to be tested under the user terminal type.

[0074] 202: In response to the page test request, obtain a corresponding test address template according to the user terminal type.

[0075] 203: Generate a target test address according to the page configuration parameters and the test address template.

[0076] As mentioned above, the display of the service page on different types of client terminals is often different. In order to accurately test the actual situation when users actually use these different types of client terminals to access the service page, the corresponding test address template can be obtained according to the client type.

[0077] Among them, the test address template can be a pre-designed URL (Uniform Resource Locator) framework with a specific format and structure. In a possible implementation of the present application, the test address template may include a fixed part and a dynamic parameter placeholder. Among them, the fixed part may include information such as the domain name of the multi-category service platform, the basic page path structure, etc., so as to determine key information such as the approximate page level; the dynamic parameter placeholder can be used to flexibly insert different values ​​according to specific test requirements to accurately point to the specific page to be tested.

[0078] In an embodiment of the present application, the test server may store an address template library, in which a plurality of test address templates may be stored according to different types of user terminals. After receiving a page test request and parsing the user terminal type, the address template library may be checked to find the test address template corresponding to the user terminal type.

[0079] In some embodiments, generating a target test address according to the page configuration parameters and the test address template may be specifically implemented as follows: mapping the page configuration parameters to dynamic parameter placeholders to generate the target test address.

[0080] After determining the test address template, the test server can match the page configuration parameters with the dynamic parameter placeholders in the test address template according to pre-set rules, and fill the parameters into the corresponding dynamic parameter placeholders to generate a target test address. The target test address can point to the page to be tested in the multi-category service platform that meets the user's testing requirements.

[0081] Among them, the test server can maintain a category library, and the category library can store parameters related to each category in the multi-category service platform. When it is necessary to generate a target test address, the test server can obtain parameters related to the user's test needs from the category library. For example, if the user wants to test the product list page of a certain brand (brand) under the "clothing" category, the category library stores the logos of each brand under the category, and the test server obtains the corresponding brand parameters (such as {brand} = "brand1") from it, and fills it into the corresponding dynamic parameter placeholder in the test address template.

[0082] 204: Generate a first test task based on the target test address.

[0083] 205: Execute a first test task to test the page to be tested indexed by the target test address to obtain a first test result.

[0084] 206: Return the first test result to the user end.

[0085] After the target test address is generated, a first test task for the page to be tested may be generated according to the target test address, so as to execute the first test task to perform a page test on the page to be tested.

[0086] After the first test task is executed and the first test result is obtained, the first test result may be returned to the user end.

[0087] The embodiment of the present application provides a page testing method, which obtains a corresponding test address template according to the user terminal type carried in the page test request after obtaining a page test request sent by the user terminal, and then dynamically generates a target test address according to the page configuration parameters and the test address template, generates a first test task based on the target test address, executes the first test task to test the page to be tested indexed by the target test address, obtains a first test result, and returns the first test result to the user terminal. Therefore, when it is necessary to test the page to be tested, there is no need to configure the test address in advance, and the target test address for the page to be tested can be dynamically generated to test the page to be tested, which improves the flexibility of page testing.

[0088] In some embodiments, executing a first test task to test a page to be tested indexed by a target test address and obtaining a first test result can be specifically implemented as follows: obtaining multiple page elements in the page to be tested; identifying whether the multiple page elements include at least one preset page element to obtain an identification result; and obtaining a first test result based on the identification result.

[0089] In an embodiment of the present application, when executing the first test task, the page to be tested can be accessed based on the target test address, and then the page to be tested can be parsed to extract multiple page elements contained in the page to be tested. In some embodiments, obtaining multiple page elements in the page to be tested can be specifically implemented as follows: determining an element parsing method corresponding to the user terminal type; parsing the page to be tested using the element parsing method to obtain multiple page elements.

[0090] In a possible implementation of the present application, for example, element parsing methods such as page source code parsing, JSON (JavaScript Object Notation) parsing, and XML (Extensible Markup Language) parsing may be provided.

[0091] As mentioned above, the user terminal types may include, for example, personal computer (PC), mobile terminal, and application. For the PC terminal, the page source code parsing method may be used. The web pages on the PC terminal are usually constructed based on HTML (Hypertext Markup Language), CSS (Cascading Style Sheets), and JavaScript, and their page structure is clearly reflected in the HTML source code. HTML defines various page elements in the form of tags, such as Used to divide page areas, Represents paragraph text, Display pictures, Represents links, etc. By parsing the HTML source code, you can get the page elements. Among them, CSS determines the style of the page elements, including appearance attributes such as color, font, size, and position. When parsing the source code, you can refer to the CSS style sheet to fully understand the presentation effect of the elements. JavaScript is used to implement the dynamic interactive functions of the page, such as events triggered by clicking buttons, form validation, etc. By analyzing the JavaScript code, you can get the interactive behavior of the elements. Mobile browser pages are also based on HTML and other web technologies, but in order to adapt to the characteristics of mobile devices, on the one hand, it is still necessary to parse the HTML source code to determine the basic structure of the page elements, such as obtaining text, image and other element information by finding the corresponding tags. On the other hand, page elements often have specific mobile CSS class names or attributes, and page elements can be located and parsed by identifying these identifiers. In addition, since the mobile terminal mainly relies on touch operations, when parsing page elements, you can also determine the touch events bound to the page elements (such as touchstart, touchmove, touchend, etc.) and related attribute settings, so as to determine the interactive functions of the elements. In an application, the page layout is usually defined through a layout file in XML format. The layout file specifies the position, size, attributes, and other information of each page element. Therefore, the page elements can be parsed and obtained through XML parsing methods.

[0092] On the basis of obtaining the page elements on the page to be tested through the above-mentioned parsing method, for some visual elements that are difficult to accurately obtain through conventional methods, such as images, special fonts, or dynamically generated text elements that cannot be directly located through source code, OCR (optical character recognition) technology can also be used for parsing.

[0093] The at least one preset page element may be a page element that is preset according to test requirements and is expected to exist in the page to be tested.

[0094] After identifying and obtaining multiple page elements on the page to be tested, it can be determined whether the multiple page elements include at least one preset page element. If the identification result shows that the multiple page elements include at least one preset page element, it can be said that the page to be tested meets expectations in terms of basic functions and presentation, and thus a first test result indicating a successful test can be generated; if the identification result shows that the preset page element is not found from the multiple page elements, then it can be determined that there is a lack of page function or an abnormal presentation, which may affect the user's normal use of the page to be tested, and then a first test result indicating a failed test can be generated.

[0095] In some embodiments, identifying whether multiple page elements include at least one preset page element and obtaining the identification result may be specifically implemented as follows:

[0096] The artificial intelligence large model is used to identify whether multiple page elements contain at least one preset page element to obtain a recognition result.

[0097] Among them, the artificial intelligence big model refers to a machine learning model with a large number of parameters and complex structure, which can process massive data and complete various complex tasks, such as natural language processing, computer vision, speech recognition, etc. It is an AI (Artificial Intelligence, artificial intelligence) model. Among them, the artificial intelligence big model can be implemented by a large language model (Large Language Model, LLM) or a multimodal large model (Multimodal Large Model, MLM), etc., for example, GPT-3 (Generative Pre-Trained Transformer-3, the third generation of generative pre-training model), GPT-4 (Generative Pre-Trained Transforme-4, the fourth generation of generative pre-training model), BERT (Bidirectional Encoder Representation from Transformers, a bidirectional encoder model based on Transformers), Turing NLG (Turing Natural language Generation, Turing Natural Language Generation), etc. This application does not limit this. This type of artificial intelligence big model can perform well in various natural language processing tasks, such as text generation, text translation, question-answering system, etc. Of course, in addition to large language models, there are many other types of large models.

[0098] In some embodiments, the artificial intelligence model is used to identify whether multiple page elements include at least one preset page element, and obtaining the identification result can be specifically implemented as follows:

[0099] Acquire a template matching rule for matching a page template according to a page address, and a mapping relationship between the page template and at least one preset page element;

[0100] Generate a first prompt word according to the first prompt template using the target test address, template matching rule and mapping relationship;

[0101] The first prompt word is input into the artificial intelligence big model so that the artificial intelligence big model determines the target page template corresponding to the target test address based on the template matching rule, and determines at least one preset page element according to the target page template corresponding to the target mapping, so as to identify whether at least one preset page element is included in multiple page elements to obtain a recognition result.

[0102] Among them, in complex systems such as multi-category service platforms, there are often many service pages of different types, functions and layouts. In order to facilitate the management of these service pages, pages with similar characteristics can be summarized into specific page templates. Template matching rules can be the standards and logic used to determine the correspondence between page addresses and corresponding page templates. For example, all product detail pages in an e-commerce platform may follow a common page template, which includes fixed layout modules such as product image display area, product description text area, price display area, purchase button, etc. Although different product detail pages display different specific product information, the overall structure conforms to this template. The template matching rule can determine which established page template the page belongs to based on the specific information in the page address.

[0103] Each page template has its own specific functions and display requirements, and correspondingly, it needs to contain some key page elements to realize these functions, which can form a mapping relationship between page templates and preset page elements. This mapping relationship can make it clear which specific preset page elements should exist under a specific page template, so as to judge whether the page meets the expected design and functional requirements. For example, for the product list page template of an e-commerce platform, its preset page elements may include product pictures, product names, price tags, "add to cart" buttons, etc., because these elements are the key parts of the product list page to display product information normally and support user preliminary operations.

[0104] The first prompt is a form of input used to prompt or guide the large model to give an expected output. The first prompt is a natural language input, similar to a command or instruction, to let the large model know what it needs to do.

[0105] In the embodiment of the present application, in order to facilitate the generation of prompt information, a first prompt template can be pre-configured, and the target test address, template matching rules and mapping relationship can be added to the prompt template, so that the corresponding prompt information can be generated.

[0106] A possible first prompt template structure is as follows: "Please determine what page template corresponds to the target test address [target test address content] according to the following template matching rule [specific rule content]. Then, based on the mapping relationship between the page template and the preset page element [specific mapping relationship content], determine the preset page elements that should be included in the page template, and check whether the elements in the actual page contain these preset page elements, and finally give the recognition result (yes / no)."

[0107] Such a prompt template, through clear instructions and reference positions to key information, facilitates accurate embedding of the target test address, template matching rules, mapping relationships and other contents therein, thereby generating a first prompt word that meets the requirements.

[0108] According to the format requirements of the first prompt template, the acquired target test address, detailed template matching rules, and the mapping relationship between the page template and the preset page elements and other specific contents can be filled into the corresponding positions in sequence. For example, if the target test address is "https: / / www.example.com / product / details?id=12345", the template matching rules mention specific rule statements such as "If the address path contains ' / product / details', it may correspond to the product details page template", and the mapping relationship clarifies the preset page element list corresponding to the product details page template. After accurately filling these contents into the prompt template, the generated first prompt word may be similar to this: "Please judge the target test according to the following template matching rules: If the address path contains ' / product / details', it may correspond to the product details page template. What is the page template corresponding to the test address 'https: / / www.example.com / product / details? id=12345'? Then, based on the mapping relationship between the page template and the preset page elements (the preset page elements corresponding to the product details page template are the product main image, product detailed description text, price display area, 'Add to Cart' button, 'Buy Now' button), determine the preset page elements that should be included in the page template, and check whether the elements in the actual page contain these preset page elements, and finally give the recognition result (yes / no). "Through such integrated generation, the first prompt word fully and clearly conveys the task requirements and related information.

[0109] After the first prompt word is input into the artificial intelligence big model, the artificial intelligence big model can first understand and analyze the prompt word, and process the target test address according to the template matching rules clearly stated therein. For example, according to the judgment logic of the domain name, path, parameters and other aspects involved in the rule, the target test address is parsed and compared to determine the target page template corresponding to the address. After determining the target page template, the artificial intelligence big model can search and determine at least one preset page element that should be included in the target page template based on the mapping relationship between the page template given in the first prompt word and the preset page element. And analyze the multiple page elements actually contained in the target page to determine whether there is at least one preset page element among them.

[0110] By leveraging the processing power of the artificial intelligence big model, based on pre-set template matching rules and mapping relationships, it is possible to more accurately and efficiently determine whether the page to be tested corresponding to the target test address contains at least one preset page element.

[0111] In some embodiments, the method may further include: accessing the page to be tested based on the target test address to obtain an access result; and obtaining a first test result according to the access result.

[0112] After receiving the access request, the platform server corresponding to the multi-category service platform can return the response information to the test server. The response information can include an HTTP status code. When the access is successful, the HTTP status code can be status code 200; when the platform server cannot find the corresponding page resource according to the target test address, the HTTP status code can be status code 404.

[0113] Therefore, the access result can be obtained according to the HTTP status code returned by the platform server. For example, when the HTTP status code is status code 200, it indicates that the access is successful, and when the HTTP status code is status code 404, it indicates that the access fails.

[0114] If the page to be tested is successfully accessed, it means that there is a basis for further detailed testing of the page function, thereby generating a first test result indicating a successful test. If the page to be tested is not accessed, a first test result indicating a failed test can be generated.

[0115] In an embodiment of the present application, the test of the page to be tested may include a test of whether the access is successful and a test of the page elements. When the page to be tested is successfully accessed, a further step of page element testing may be performed. Moreover, only when the page to be tested is successfully accessed and the page element test is also successful, a first test result of successful testing is output.

[0116] For a complex service platform such as a multi-category service platform, there may be multiple different access entrances when users access the service page. When accessing the service page from different access intersections, different access paths are often formed. For example, taking the service page as a product details page, the user can use the search function on the homepage as the access entrance, search for products by keywords, and then click on the product link to access the product details page, thereby forming an access path; in addition, the user can also select the product category through the classification navigation bar, and then click on the specific product from the category list to access the product details page, thereby forming another access path; the user can also find the previously collected product link from the personal favorites to access the product details page, thereby forming another access path. When performing page testing, these different access entrances correspond to different page jump situations, and all need to be tested as different access paths. In some embodiments, based on the target test address, generating the first test task can be specifically implemented as: determining multiple access paths pointing to the target test address; generating test cases corresponding to each access path; and forming the first test task with multiple test cases.

[0117] Each test case can be used to initiate access to the page to be tested according to its corresponding access path. By forming the first test task with multiple test cases, the first test task can comprehensively test the response of the page to be tested under various access paths.

[0118] In some embodiments, executing a first test task to test a page to be tested indexed by a target test address and obtaining a first test result can be specifically implemented as follows: executing multiple test cases to access the test page based on access paths corresponding to the multiple test cases to obtain multiple access results; and obtaining the first test result based on the multiple access results.

[0119] After generating multiple test cases, these test cases can be executed one by one, so that the test cases can access the page to be tested through their corresponding access paths and generate their corresponding access results, which may be success, failure or exception. Then these access results can be comprehensively analyzed to finally obtain the first test result.

[0120] In actual testing scenarios, users often configure a large number of test tasks, and each test task usually covers many different access paths. If such a large number of complex access paths are tested in sequence without distinction, it will bring huge operating pressure to the test server, which may lead to problems such as excessive resource consumption and low testing efficiency. In some embodiments, executing multiple test cases to access the test page based on the access paths corresponding to the multiple test cases, and obtaining multiple access results can be specifically implemented as follows: using an artificial intelligence large model to determine the priorities corresponding to the multiple test cases; executing multiple test cases according to the priorities corresponding to the multiple test cases, so as to access the test page based on the access paths corresponding to the multiple test cases, and obtaining multiple access results.

[0121] As mentioned above, the artificial intelligence big model refers to a machine learning model with a large number of parameters and complex structure, which can process massive data and complete various complex tasks, such as natural language processing, computer vision, speech recognition, etc. It is an AI (Artificial Intelligence, artificial intelligence) model. Among them, the artificial intelligence big model can be implemented by a large language model (Large Language Model, LLM) or a multimodal large model (Multimodal Large Model, MLM), etc., for example, GPT-3 (Generative Pre-Trained Transformer-3, the third generation of generative pre-training model), GPT-4 (Generative Pre-Trained Transforme-4, the fourth generation of generative pre-training model), BERT (Bidirectional Encoder Representation from Transformers, a bidirectional encoder model based on Transformers), Turing NLG (Turing Natural language Generation, Turing Natural Language Generation) and the like. This application does not limit this. This type of artificial intelligence big model can perform well in various natural language processing tasks, such as text generation, text translation, question-answering systems, etc. Of course, in addition to large language models, there are many other types of artificial intelligence big models.

[0122] The AI ​​big model has shown unique advantages in processing large-scale data with its powerful data analysis and pattern recognition capabilities. It can conduct in-depth mining of massive data to discover hidden laws, patterns, correlations and other information. When faced with numerous test tasks and their complex access path-related data, the AI ​​big model can determine the priority of each test case by learning and analyzing various related data features.

[0123] In some embodiments, using an artificial intelligence big model to determine the priorities corresponding to multiple test cases can be specifically implemented as follows: obtaining historical access logs and analysis requirements for the historical access logs, the analysis requirements are used to instruct the artificial intelligence big model to determine the access path of each test record in the historical access logs, and to count the number of visits to each access path; generating a second prompt word according to a second prompt template for multiple test cases, historical access logs, and analysis requirements; inputting the first prompt word into the artificial intelligence big model to use the artificial intelligence big model to determine the number of visits to the access paths corresponding to the multiple test cases; and determining the priority of the corresponding test case based on the number of visits.

[0124] Among them, the historical access log can be an access log of the page to be tested recorded within a preset historical period, which can be automatically generated each time the page to be tested is accessed, and records the access path information each time the page to be tested is accessed. The analysis requirements can be used to guide the artificial intelligence big model to process the historical access log in the desired direction, so as to obtain key information that helps to determine the priority of test cases. Specifically, the analysis requirements can be used to instruct the artificial intelligence big model to determine the access path of each test record in the historical test log, and to count the number of visits to each access path, that is, to statistically summarize the frequency of the same access path appearing in the entire historical access process.

[0125] A possible second prompt template structure is as follows:

[0126] "Please analyze according to the historical access log content [specific historical test log text content] and analysis requirements [specific analysis requirements content] provided below. The analysis requirements clearly state that you need to determine the access path of each access record in the log and count the number of visits for each access path. At the same time, refer to the multiple test cases given below [specific test case list, including detailed descriptions of each test case], match the access paths corresponding to these test cases with the access paths counted from the historical test logs, and then obtain the number of visits for the access paths corresponding to each test case."

[0127] According to the format of the second prompt template, the actually obtained historical test log content, analysis requirements and detailed information of multiple test cases are filled in sequentially to generate a complete second prompt word.

[0128] When the second prompt word is input into the AI ​​big model, the AI ​​big model can first perform text parsing and analysis on the historical access log according to the instructions in the second prompt word. It uses its powerful natural language processing capabilities to identify the access path described in each test record as required, and then classifies and counts the same access paths through data statistics and matching algorithms, so as to accurately count the number of times each access path appears in the entire historical test log. Then, the AI ​​big model will match and associate the access counts of these access paths with the input test cases, and find the corresponding access counts based on the access path descriptions involved in the test case operation steps.

[0129] The more times the access path corresponding to a test case is accessed, the more common and representative the operation scenario involved in the test case is in past tests and actual use, and the higher its importance is. Therefore, a higher priority can be set for access paths with more access tests.

[0130] In some embodiments, the method may also include: receiving development requirement information sent by the development server; parsing the development requirement information to determine the page address of the target page associated with the development requirement; generating a second test task based on the page address; executing the second test task to test the target page indexed by the page address to obtain a second test result; and sending the second test result to the development server.

[0131] The development server can be the backend environment used by the development team during the development of a multi-category service platform, and is used to carry out operations related to page development. Before the actual development or after a certain stage of development work is completed, the development server can send development requirement information to the test server. The development requirement information can include information such as the service pages involved in the development operation and the update status of the pages. The test server can automatically create a second test task based on the development requirement information, and when the second test task needs to be executed, it can be executed with one click to perform functional testing on the target page involved in the development process of the development server.

[0132] Figure 3 The demand management page provided by the embodiment of the present application is shown.

[0133] On the requirement management page, the requirement ID, requirement name, status, requirement information, and the execution controls corresponding to the requirement can be displayed.

[0134] After receiving the requirement information sent by the development server, the test server can record the corresponding requirements in the requirement management page. For each requirement, the corresponding execution control can be configured. By triggering the execution control, the corresponding second test task can be executed with one click.

[0135] Figure 4 A schematic diagram of a page test provided in an embodiment of the present application is shown.

[0136] like Figure 4 As shown, after receiving the page test request sent by the client 402, the test server 401 can parse the page test request to obtain the client type and at least one page configuration parameter.

[0137] Then, the test server 401 may read the test task configuration from the test task configuration component 4011 , and the task generation component 4012 may generate a first test task according to the test task configuration, the user terminal type, and at least one page configuration parameter.

[0138] The test task configuration may include, for example, a test address template configuration, a test item configuration, a test strategy configuration, a test method configuration, and a task execution strategy configuration.

[0139] Among them, the information related to the test address template configuration can refer to the above description. In the test item configuration, after generating the target test address according to the test address template, the page template corresponding to the page to be tested can be determined according to the target test address, thereby determining at least one preset page element according to the page template. The test policy configuration can be used to configure the configuration of access testing and / or page element testing of the page to be tested. The test method configuration can be used to configure configurations such as page parsing methods, test methods, etc. The task execution policy configuration can be used to configure the priority strategy for the execution of test cases.

[0140] After reading the test task configuration, the first test task may be generated. The first test task may include multiple test cases to form a case center. Each test case may correspond to an access path to the page to be tested.

[0141] An artificial intelligence big model can be deployed in the task scheduling component 4013, and the artificial intelligence big model can determine the priorities of multiple test cases according to the configured priority strategy, and schedule the execution of the test cases according to the priorities.

[0142] After the test case is executed, the page to be tested can be parsed according to a preset page parsing method to obtain multiple page elements, and the multiple page elements can be sent to the test component 4014 for testing. Among them, an artificial intelligence big model can also be deployed in the test component, and the artificial intelligence big model can identify at least one page element based on multiple page elements, and obtain a first test result according to the identification result.

[0143] After obtaining the first test result, the first test result may be sent to the user terminal 402 .

[0144] Figure 5 A flow chart of a page testing method provided by another embodiment of the present application is shown. The page testing method can be applied to a user terminal, such as Figure 5 As shown, the method may specifically include the following steps:

[0145] 501: Displaying a test configuration page in a user interface, the test configuration page including user terminal type prompt information and at least one test parameter prompt information.

[0146] Figure 6 A schematic diagram of a test configuration page provided in an embodiment of the present application is shown.

[0147] The test configuration page 601 may display user terminal type prompt information 6011 and at least one test parameter prompt information 6012. The user terminal type prompt information 601 may be presented in the form of a drop-down menu or radio button, with a concise text description next to it to inform the user of the different types that can be selected, such as "Please select the user terminal type: PC, mobile, APP", etc., to facilitate the user to make a selection based on actual test needs. For the test parameter prompt information 6012, multiple different parameter items can be set according to specific test scenarios and requirements. These parameter items may include but are not limited to page type, category level, service area, category selection, etc. Each parameter item can be accompanied by a clear text description to explain its meaning and function, to help users accurately understand and perform configuration operations.

[0148] 502: In response to a configuration operation triggered by a user in response to the user terminal type prompt information and at least one test parameter prompt information, determine the user terminal type and page configuration parameters.

[0149] When the user operates on the test configuration page, the user terminal can capture the user's actions triggered by the user terminal type prompt information and each test parameter prompt information in real time to obtain the information selected by the user.

[0150] 503: Generate a page test request based on the client type and page configuration parameters.

[0151] 504: Send the page test request to the test server so that the test server responds to the page test request and obtains the corresponding test address template according to the user type; generates a target test address according to the page configuration parameters and the test address template; generates a first test task based on the target test address; executes the test task to test the page to be tested indexed by the target test address to obtain a first test result.

[0152] 505: Receive the first test result sent by the server.

[0153] The test server performs a test according to the page test request to generate the first test result. The specific implementation process can be referred to Figure 2 The page testing method shown will not be repeated here.

[0154] In some embodiments, in response to a configuration operation triggered by a user in response to the user terminal type prompt information and at least one test parameter prompt information, after determining the user terminal type and the page configuration parameter, the method further includes:

[0155] Display the task list page in the user interface;

[0156] Generate a third test task according to the user terminal type and page configuration parameters;

[0157] The third test task is displayed on the task list page.

[0158] Among them, the task list page can provide users with an interface for displaying test tasks, so that users can manage, view and perform related operations on test tasks.

[0159] Figure 7 A schematic diagram of a task list page provided in an embodiment of the present application is shown.

[0160] like Figure 7 As shown, there may be a title bar 701 at the top of the task list page 701, which clearly marks the words "task list page" so that users can quickly know the functional positioning of the page. In the main part, if it is in the form of a table, it may contain multiple columns, each corresponding to a different key information field, such as "task number" (used to uniquely identify each test task, which is convenient for users to quickly locate and reference, and can be presented in a digital serial number or a specific coding format), "task name" (concisely summarizes the core content of the test task, such as "product details page mobile terminal test task"), "creation time" (records the specific time point of task creation, which is convenient for users to sort tasks in chronological order and view the timeliness of tasks), "task status" (used to show the current stage of the task, such as "not started", "in progress", "completed", etc., so that users can understand the execution progress of the task at a glance), etc. For each task in the task list, a corresponding operation control can also be configured, and the task details page can be viewed by triggering the operation control.

[0161] The task details page can display the page configuration parameters of the test task, which can include the Figure 6 The page configuration parameters configured in the test configuration page are shown.

[0162] In some embodiments, the method further comprises:

[0163] receiving a trigger operation for a third test task;

[0164] Generating a page test request based on the client type and page configuration parameters includes:

[0165] In response to the triggering operation, a page test request is generated.

[0166] The "Start Test" control of the third test task can also be displayed on the task list page. When the user terminal detects that the user has triggered the "Start Test" control, a page test request can be generated.

[0167] In some embodiments, the method further comprises:

[0168] The first test result is displayed in the user interface.

[0169] Figure 8 A block diagram of a page testing device provided in an embodiment of the present application is shown. The page testing device can be applied to a testing server, and the device may specifically include:

[0170] The request acquisition module 801 is used to acquire a page test request sent by a user terminal, where the page test request is generated based on the user's configuration information, and the configuration information includes the user terminal type and page configuration parameters;

[0171] The template acquisition module 802 is used to respond to the page test request and acquire the corresponding test address template according to the user terminal type;

[0172] A test address generation module 803 is used to generate a target test address according to page configuration parameters and a test address template;

[0173] A test task generating module 504, configured to generate a first test task based on a target test address;

[0174] The task execution module 805 is used to execute the first test task to test the page to be tested indexed by the target test address to obtain a first test result;

[0175] The result feedback module 806 is used to return the first test result to the user end.

[0176] In some embodiments, the task execution module 805 includes:

[0177] The page element acquisition submodule is used to obtain multiple page elements in the page to be tested;

[0178] The identification submodule is used to identify whether the multiple page elements include at least one preset page element, and obtain an identification result;

[0179] The test result generating submodule is used to obtain a first test result according to the recognition result.

[0180] In some embodiments, the identification submodule includes:

[0181] The recognition unit is used to use the artificial intelligence large model to recognize whether multiple page elements contain at least one preset page element to obtain a recognition result.

[0182] In some embodiments, the identification unit is specifically used to:

[0183] Acquire a template matching rule for matching a page template according to a page address, and a mapping relationship between the page template and at least one preset page element;

[0184] Generate a first prompt word according to the first prompt template using the target test address, template matching rule and mapping relationship;

[0185] The first prompt word is input into the artificial intelligence big model so that the artificial intelligence big model determines the target page template corresponding to the target test address based on the template matching rule, and determines at least one preset page element according to the target page template corresponding to the target mapping, so as to identify whether at least one preset page element is included in multiple page elements to obtain a recognition result.

[0186] In some embodiments, the page testing device further includes:

[0187] An access module is used to access the page to be tested based on the target test address to obtain the access result;

[0188] The result generating module is used to obtain a first test result according to the access result.

[0189] In some embodiments, the test task generation module 804 includes:

[0190] A path determination submodule, used to determine multiple access paths pointing to a target test address;

[0191] A test case generation submodule is used to generate test cases corresponding to each access path;

[0192] A task generation submodule, used for forming a first test task from a plurality of test cases;

[0193] In some embodiments, the task execution module 805 includes:

[0194] The test case execution submodule is used to execute multiple test cases so as to access the test page based on the access paths respectively corresponding to the multiple test cases to obtain multiple access results;

[0195] The result generation submodule is used to obtain a first test result according to the multiple access results.

[0196] In some embodiments, the use case execution submodule includes:

[0197] A priority determination unit, used to determine the priorities corresponding to multiple test cases using a large artificial intelligence model;

[0198] The case execution unit is used to execute multiple test cases according to the priorities corresponding to the multiple test cases, so as to access the test page based on the access paths corresponding to the multiple test cases respectively, and obtain multiple access results.

[0199] In some embodiments, the priority determination unit is specifically configured to:

[0200] Obtain historical access logs and analysis requirements for the historical access logs, where the analysis requirements are used to instruct the artificial intelligence model to determine the access path of each test record in the historical access logs and to count the number of accesses to each access path;

[0201] Generate a second prompt word according to a second prompt template based on multiple test cases, historical access logs, and analysis requirements;

[0202] Inputting the first prompt word into the artificial intelligence big model, so as to determine the number of accesses of the access paths respectively corresponding to the plurality of test cases by using the artificial intelligence big model;

[0203] Determine the priority of the corresponding test cases based on the number of visits.

[0204] In some embodiments, the page element acquisition submodule is specifically used to:

[0205] Determine the element parsing method corresponding to the user end type;

[0206] The element parsing method is used to parse the page to be tested to obtain multiple page elements.

[0207] In some embodiments, the test address template includes a fixed part and a dynamic parameter placeholder; the test address generation module 803 is specifically used to:

[0208] Map page configuration parameters to dynamic parameter placeholders and generate target test addresses.

[0209] In some embodiments, the device may further include:

[0210] The demand receiving module is used to receive the development demand information sent by the development server;

[0211] The requirement parsing module is used to parse the development requirement information and determine the page address of the target page associated with the development requirement;

[0212] A second test task generating module, used to generate a second test task according to the page address;

[0213] A second test task execution module, used to execute the second test task to test the target page indexed by the page address to obtain a second test result;

[0214] The second test result sending module is used to send the second test result to the development server.

[0215] Fig. 9 A block diagram of a page testing device provided by another embodiment of the present application is shown. The device can be applied to a user end, such as Fig. 9 As shown, the device may specifically include:

[0216] The page display module 901 is used to display a test configuration page in the user interface, where the test configuration page includes user terminal type prompt information and at least one test parameter prompt information;

[0217] The parameter determination module 902 is used to determine the client type and the page configuration parameters in response to the configuration operation triggered by the user in response to the client type prompt information and the at least one test parameter prompt information;

[0218] The request generation module 903 is used to generate a page test request according to the user terminal type and page configuration parameters;

[0219] The request sending module 904 is used to send the page test request to the test server, so that the test server responds to the page test request and obtains the corresponding test address template according to the user type; generates a target test address according to the page configuration parameters and the test address template; generates a first test task based on the target test address; executes the test task to test the page to be tested indexed by the target test address and obtains a first test result;

[0220] The result receiving module 905 is used to receive the first test result sent by the server.

[0221] In some embodiments, the device may further include:

[0222] List page display module, used to display the task list page in the user interface;

[0223] A third test task generating module, used to generate a third test task according to the user terminal type and page configuration parameters;

[0224] The third test task display module is used to display the third test task on the task list page.

[0225] In some embodiments, the device may further include:

[0226] An operation receiving module, used for receiving a trigger operation for a third test task;

[0227] In some embodiments, the request generation module 903 is specifically used to:

[0228] In response to the triggering operation, a page test request is generated.

[0229] In some embodiments, the device may further include:

[0230] The result display module is used to display the first test result in the user interface.

[0231] Fig. 9 The page testing device can execute Figure 2 The implementation principle and technical effect of the page test method described in the embodiment are not described in detail. The specific way in which each module and unit performs operations in the page test device in the above embodiment has been described in detail in the embodiment of the method, and will not be described in detail here.

[0232] The present application also provides a computing device, such as Fig.10 As shown, the device may include a storage component 1001 and a processing component 1002;

[0233] The storage component 1001 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 1002 to implement the page testing method provided in the embodiment of the present application.

[0234] Of course, the computing device may also include other components, such as input / output interfaces, display components, communication components, etc.

[0235] The input / output interface provides an interface between the processing component and the peripheral interface module, which may be an output device, an input device, etc. The communication component is configured to facilitate wired or wireless communication between the computing device and other devices.

[0236] The processing component may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0237] The storage component is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0238] The display component may be an electroluminescent (EL) element, a liquid crystal display or a micro display having a similar structure, or a retinal direct display or a similar laser scanning display.

[0239] It should be noted that the above computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. It can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device.

[0240] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 2 The page testing method of the illustrated embodiment. The computer readable medium may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device.

[0241] The present application also provides a computer program product, which includes a computer program carried on a computer-readable storage medium. When the computer program is executed by a computer, the computer program can achieve the above-mentioned Figure 2 The page testing method of the illustrated embodiment. In such an embodiment, the computer program can be downloaded and installed from a network, and / or installed from a removable medium. When the computer program is executed by a processor, various functions defined in the system of the present application are executed.

[0242] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described herein within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).

[0243] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0244] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0245] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0246] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A page testing method, characterized in that: Applied to the test server, the method includes: Acquire a page test request sent by a user terminal, wherein the page test request is generated based on configuration information of the user, wherein the configuration information includes a user terminal type and page configuration parameters; In response to the page test request, obtaining a corresponding test address template according to the user terminal type; Generate a target test address according to the page configuration parameters and the test address template; Based on the target test address, generate a first test task; Executing the first test task to test the page to be tested indexed by the target test address to obtain a first test result; The first test result is returned to the user terminal.

2. The method according to claim 1, characterized in that The executing the first test task to test the page to be tested indexed by the target test address to obtain a first test result includes: Acquire multiple page elements in the page to be tested; Identify whether the multiple page elements include at least one preset page element, and obtain an identification result; The first test result is obtained according to the recognition result.

3. The method according to claim 2, characterized in that The step of identifying whether the plurality of page elements include at least one preset page element and obtaining the identification result comprises: The artificial intelligence large model is used to identify whether the multiple page elements include at least one preset page element to obtain a recognition result.

4. The method according to claim 3, characterized in that The using of the artificial intelligence large model to identify whether the plurality of page elements include at least one preset page element, and obtaining the identification result includes: Acquire a template matching rule for matching a page template according to a page address, and a mapping relationship between the page template and at least one preset page element; Generate a first prompt word according to the first prompt template using the target test address, the template matching rule and the mapping relationship; The first prompt word is input into the artificial intelligence big model so that the artificial intelligence big model determines the target page template corresponding to the target test address based on the template matching rule, and determines the at least one preset page element according to the target page template corresponding to the target mapping, so as to identify whether at least one preset page element is included in the multiple page elements to obtain the recognition result.

5. The method according to claim 2, characterized in that: Also includes: Access the page to be tested based on the target test address to obtain an access result; The first test result is obtained according to the access result.

6. The method according to claim 1, characterized in that The generating a first test task based on the target test address includes: Determining multiple access paths pointing to the target test address; Generate test cases corresponding to each access path; The first test task is composed of a plurality of the test cases; The executing the first test task to test the page to be tested indexed by the target test address to obtain a first test result includes: Execute the plurality of test cases so as to access the test page based on the access paths respectively corresponding to the plurality of test cases to obtain a plurality of access results; The first test result is obtained according to the multiple access results.

7. The method according to claim 6, characterized in that The executing of the plurality of test cases so as to access the test page based on the access paths respectively corresponding to the plurality of test cases and obtaining the plurality of access results comprises: Determine the priorities corresponding to the plurality of test cases respectively by using the artificial intelligence big model; The multiple test cases are executed according to the priorities respectively corresponding to the multiple test cases, so as to access the test page based on the access paths respectively corresponding to the multiple test cases, and obtain multiple access results.

8. The method according to claim 7, characterized in that The method of using the artificial intelligence big model to determine the priorities corresponding to the plurality of test cases includes: Obtaining historical access logs and analysis requirements for the historical access logs, wherein the analysis requirements are used to instruct the artificial intelligence big model to determine the access path of each test record in the historical access logs and to count the number of accesses to each access path; Generate a second prompt word according to a second prompt template based on the plurality of test cases, the historical access logs and the analysis requirements; Inputting the first prompt word into the artificial intelligence big model, so as to use the artificial intelligence big model to determine the number of accesses of the access paths respectively corresponding to the plurality of the test cases; The priority of the corresponding test case is determined based on the number of accesses.

9. The method according to claim 2, characterized in that: The obtaining of multiple page elements in the page to be tested comprises: Determine an element parsing method corresponding to the test end type; The page to be tested is parsed using the element parsing method to obtain the multiple page elements.

10. The method according to claim 1, characterized in that The test address template includes a fixed part and a dynamic parameter placeholder; Generating a target test address according to the page configuration parameters and the test address template comprises: The page configuration parameters are mapped to the dynamic parameter placeholders to generate the target test address.

11. The method according to claim 1, characterized in that: Also includes: Receive development requirement information sent by the development server; Parsing the development requirement information to determine the page address of the target page associated with the development requirement; Generate a second test task according to the page address; executing the second test task to test the target page indexed by the page address to obtain a second test result; The second test result is sent to the development server.

12. A page testing method, characterized in that: Applied to a user terminal, the method includes: Displaying a test configuration page in a user interface, the test configuration page including user terminal type prompt information and at least one test parameter prompt information; In response to a configuration operation triggered by a user in response to the user terminal type prompt information and at least one test parameter prompt information, determining a user terminal type and a page configuration parameter; Generate a page test request according to the user terminal type and the page configuration parameters; The page test request is sent to the test server, so that the test server responds to the page test request and obtains a corresponding test address template according to the user terminal type; generates a target test address according to the page configuration parameters and the test address template; generates a first test task based on the target test address; executes the test task to test the page to be tested indexed by the target test address and obtains a first test result; Receive the first test result sent by the server.

13. The method according to claim 12, characterized in that After determining the user terminal type and the page configuration parameter in response to the configuration operation triggered by the user according to the user terminal type prompt information and at least one test parameter prompt information, the method further includes: Displaying a task list page in the user interface; Generate a third test task according to the user terminal type and the page configuration parameters; The third test task is displayed on the task list page.

14. The method according to claim 13, characterized in that Also includes: Receiving a trigger operation for the third test task; Generating a page test request according to the user terminal type and the page configuration parameters includes: In response to the triggering operation, the page test request is generated.

15. The method according to claim 12, characterized in that Also includes: The first test result is displayed in the user interface.

16. A computing device, characterized in that: including a processing component and a storage component; The storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the page testing method as described in claims 1 to 11, or to implement the page testing method as described in claims 12 to 14.

17. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by the processing component, the page testing method according to claims 1 to 11 is implemented, or the page testing method according to claims 12 to 14 is implemented.

18. A computer program product, characterized in that It comprises a computer program / instruction, which, when executed by a processing component, implements the page testing method according to claims 1 to 11, or implements the page testing method according to claims 12 to 14.