Page test method and device, computer equipment and storage medium

By setting page switching conditions and target test page in the page test method, the problem that random click controls are difficult to accurately click on target test controls is solved, and efficient page testing coverage is achieved.

CN119557197APending Publication Date: 2025-03-04BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311099848.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the existing page testing methods, it is difficult for random click control to accurately click on the target test control, resulting in low test coverage and difficult to meet the testing needs of specific businesses.

Method used

Set page switching conditions, target test page and target test controls in the target test page in the test configuration information, and determine whether to switch to the target test page for testing by judging the page switching conditions.

Benefits of technology

It can not only conduct random automated testing, but also meet the testing needs of specific businesses, improving test coverage and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557197A_ABST
    Figure CN119557197A_ABST
Patent Text Reader

Abstract

The invention discloses a page testing method. The method comprises the following steps: acquiring test configuration information of a target application, wherein the test configuration information comprises a page switching condition and a target test page; testing a control of a page in the target application; and if the page switching condition is met, testing the target test page to obtain a page test result of the target application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a page testing method, device, computer equipment and storage medium. Background Art

[0002] Page testing is to test the controls on the page by randomly clicking on the controls on the page, switching pages or executing the business corresponding to the controls. In this way, for specific test business, it is difficult to click on the target test control because the controls are clicked randomly. Summary of the invention

[0003] In view of this, the present disclosure provides a page testing method, apparatus, computer equipment and storage medium to solve the problem of page testing.

[0004] In a first aspect, the present disclosure provides a page testing method, the method comprising:

[0005] Acquire test configuration information of a target application, wherein the test configuration information includes a page switching condition and a target test page;

[0006] Testing the controls on the pages of the target application;

[0007] If the page switching condition is met, the target test page is tested to obtain a page test result of the target application.

[0008] In a second aspect, the present disclosure provides a page testing device, the device comprising:

[0009] A test configuration information acquisition module, used to acquire test configuration information of a target application, wherein the test configuration information includes a page switching condition and a target test page;

[0010] A control testing module, used to test the controls on the pages of the target application;

[0011] The target test control testing module is used to test the target test page if the page switching condition is met to obtain the page test result of the target application.

[0012] In a third aspect, the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the page testing method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0013] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the page testing method of the first aspect or any corresponding embodiment thereof.

[0014] The page testing method provided by the embodiment of the present disclosure includes a page switching condition, a target test page, and a target test control in the target test page in the test configuration information. During the process of testing the controls of the page in the target application, it is determined whether the page switching condition is currently met. When the page switching condition is met, the target test control in the target test page in the test configuration information is tested to avoid the situation where the target test control of the target test page cannot be tested. Thus, the page testing method can realize random testing of the pages in the target application and meet the testing requirements of specific businesses. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] Figure 1 is a flow chart of a page testing method according to an embodiment of the present disclosure;

[0017] Figure 2 is a flow chart of another page testing method according to an embodiment of the present disclosure;

[0018] Figure 3 is a flow chart of another page testing method according to an embodiment of the present disclosure;

[0019] Figure 4 is a flow chart of another page testing method according to an embodiment of the present disclosure;

[0020] Figure 5a-5d is a page schematic diagram of a page test according to an embodiment of the present disclosure;

[0021] Figure 6 is a structural block diagram of a page testing device according to an embodiment of the present disclosure;

[0022] Figure 7 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0024] In related technologies, testing a page is done by obtaining clickable elements on the page, using artificial intelligence algorithms to calculate the value of each element after it is clicked, and giving priority to clicking the element with the greatest value. This process can also be called optimized random automated testing, but it is still in the state of random testing as a whole.

[0025] If random automated testing is used for secondary businesses or businesses with deeper paths in some APPs, there will be a problem of low coverage, and it is difficult for random automated testing to reach specific businesses. For example, it is necessary to test the shooting page of a short video application. After starting the short video application, the current page of the application is the home page. In this case, it is difficult for random automated testing to click the shooting button at the bottom, and there is a high probability that other elements on the home page, such as comments, favorites, etc., will be clicked.

[0026] This situation is more obvious in deeper paths. For example, you need to perform random automated testing on the release page of a short video application, but the prerequisite for the test process to enter the release page is to click the shooting button on the homepage - shoot a video - click next on the editing page. However, all the above prerequisites will disperse a large amount of random probability, resulting in a very small probability that the test process will enter the release page, or it will take a very long time.

[0027] Based on this, the page testing method provided by the embodiment of the present disclosure sets the page switching conditions, the target test page, and the target test control in the target test page in the test configuration information. Among them, the page switching conditions are used to determine the timing of switching between pages. If the page switching conditions are met, the target test control in the specified target test page is tested. If the page switching conditions are not met, the page in the target application is subjected to random automated testing. This method can not only realize random automated testing, but also meet the needs of specific testing services.

[0028] According to an embodiment of the present disclosure, a page testing method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0029] In this embodiment, a page testing method is provided, which can be used for the above-mentioned computer equipment, such as mobile terminals such as mobile phones and tablet computers. Figure 1 is a flow chart of a page testing method according to an embodiment of the present disclosure. Figure 1 As shown, the process includes the following steps:

[0030] Step S101, obtaining test configuration information of the target application.

[0031] The test configuration information includes page switching conditions and target test pages.

[0032] The test configuration information is configured according to the requirements before the test starts. The page switching condition is used to indicate the scenario in which the target test page is switched to for testing, including but not limited to the test duration, the number of test steps or the test information of the tested page.

[0033] The target test page can be one or more. If there are multiple target test pages, the test sequence between the multiple target test pages can be defined, or they can be defined as a test path. For example, the test configuration information includes 4 target test pages, namely target test page 1 to target test page 4, and the test sequence is target test page 1-target test page 2-…-target test page 4. This link is called a test path. During the test process, each target test page is tested according to the test path.

[0034] Step S102, testing the controls on the page in the target application.

[0035] The purpose of page testing is to simulate the operation of page controls to obtain corresponding test results. For example, control a in the page is used to switch to a new page, control b is used to edit the content displayed on the current page, and control c is used to open the next level page of the current page. Different controls in the page have different functions. Testing the page means randomly clicking on the controls in the page to test the corresponding functions of the controls.

[0036] When testing the target application, due to the randomness of the test, it may be testing different controls on the same page, or testing different pages. During the test, the current test environment is compared with the page switching condition. If the page switching condition is met, the test of the current page is stopped and the test is switched to the target test page; if the page switching condition is not met, the test of the current page continues.

[0037] Step S103: if the page switching condition is met, the target test page is tested to obtain a page test result of the target application.

[0038] When the page switching conditions are met, the target test page needs to be tested. Among them, testing the target test page requires switching from the current test page to the target test page, and the switching method can be based on the jump relationship between pages, or the association relationship between controls. For example, the current test page and the target test page are both entered by clicking different controls from the home page. When switching, you need to return to the home page first, and then enter the target test page through the corresponding control on the home page.

[0039] After entering the target test page, perform random automated testing on the target test page by randomly clicking on the controls on the target test page.

[0040] During the test of the target application page, the current test duration can be recorded. If the maximum test duration or the maximum number of test steps is reached, the test is stopped, and the test data is analyzed to obtain the page test result of the target application. Of course, the condition for stopping the test is set according to actual needs and is not limited here.

[0041] The page testing method provided in this embodiment includes a page switching condition and a target test page in the test configuration information. During the process of testing the controls of the page in the target application, it is determined whether the page switching condition is currently met. When the page switching condition is met, the target test page in the test configuration information is tested to avoid the situation where the target test page cannot be tested. Thus, the page testing method can both realize random testing of the pages in the target application and meet the testing requirements of specific services.

[0042] In this embodiment, a page testing method is provided, which can be used for the above-mentioned computer equipment, such as mobile terminals such as mobile phones and tablet computers. Figure 2 is a flow chart of a page testing method according to an embodiment of the present disclosure. Figure 2 As shown, the process includes the following steps:

[0043] Step S201, obtaining test configuration information of the target application.

[0044] The test configuration information includes page switching conditions and target test pages. Figure 1 The detailed description of step S101 in the illustrated embodiment is not repeated here.

[0045] Step S202: Test the controls on the target application page. Figure 1 The detailed description of step S102 in the illustrated embodiment is not repeated here.

[0046] Step S203: if the page switching condition is met, the target test control in the target test page is tested to obtain a page test result of the target application.

[0047] Specifically, the above step S203 includes:

[0048] Step S2031, obtaining the current test page.

[0049] When the page switching condition is met, the current test page is queried to determine whether it is the target test page. In the target application, different pages are distinguished by different identifiers. By comparing the identifier of the current test page with the identifier of the target test page, it is determined whether the current test page is the target test page.

[0050] For example, the identifiers of each page in the target application are stored in an array form, and the target test page is represented by its corresponding target identifier in the test configuration information. Accordingly, the current test page is matched in the array to determine whether the current test page matches the identifier of the target test page. If they match, it means that the current test page is the target test page, and if they do not match, it means that the current test page is a page other than the target test page.

[0051] Step S2032: if the current test page is a page other than the target test page, switch to the target test page.

[0052] Furthermore, the switching relationship between different pages is also stored, for example, a tree diagram is constructed, the starting node of the tree diagram is the logo corresponding to the corresponding home page, the branch nodes starting from the starting node are the pages entered by clicking different controls on the home page, the child nodes of the branch nodes are the next level pages entered by clicking the controls on the corresponding page, and so on, until the leaf node is reached. In the case that the current test page is another page, by locating the node of the current test page and the node of the target test page in the tree diagram and calculating the shortest path between the two pages, it is possible to obtain a way to switch from the current test page to the target test page.

[0053] In some optional implementations, switching to the target test page in step S2032 includes:

[0054] Step a1, obtaining a current page stack, where the current page stack is used to represent pages with a hierarchical display relationship.

[0055] Step a2: if the target test page exists in the current page stack, switch to the target test page based on the hierarchical display relationship of the pages.

[0056] The current page stack is a number of pages opened in the target application that have an occlusion relationship, for example, Figure 5aThe homepage of a short video application is shown. The homepage includes a recommendation tag. Clicking the recommendation tag enters the recommendation page. The recommendation page also includes a query control. Clicking the query control performs a search page for a target object. Then, according to the order of clicks, the current page stack displays the following from the bottom to the top: homepage - recommendation page - search page, that is, the currently displayed page is the search page.

[0057] Check whether the target test page exists in the current page stack. If it exists, switch to the target test page according to the hierarchical display relationship of the page. The hierarchical display relationship starts from a certain page, clicks the control to go to the next level page, and then clicks the next level page to enter the second level page. The second level page is the currently displayed page, and the second level page covers the first level page, and the first level page covers a certain page.

[0058] For example, Figure 5a The homepage of the short video application is shown. Click the middle tab below the homepage to enter Figure 5b Click the album in the shooting page to enter the album page. If the target test page is the shooting page, you need to switch from the album page to the shooting page. Since the shooting page exists in the current page stack, you can return to the shooting page according to the hierarchical display relationship between the shooting page and the album page.

[0059] If the current test page is another page and there is a target test page in the current page stack, it means that the current test page is a subordinate page of the target test page. Based on this, page switching is performed based on the hierarchical display relationship of the pages to ensure that the target test page can be accurately switched to.

[0060] In some optional implementations, switching to the target test page based on the hierarchical display relationship of the pages in the above step a2 includes:

[0061] Step a21, based on the hierarchical display relationship of the pages, return to the previous page of the current test page.

[0062] Step a22, if the previous page is another page, return to the previous page of the other page to switch to the target test page.

[0063] If the target test page exists in the current page stack, it starts from the current test page of the current page stack and returns to the previous page step by step, and detects the target test page each time it returns until it switches to the target test page. Specifically, based on the hierarchical display relationship of the pages, it first returns to the previous page of the current test page to determine whether the previous page after switching is the target test page. If it is not the target test page, it continues to return to the previous page of other pages until it reaches the target test page.

[0064] By using the hierarchical display relationship to return level by level, and determining whether it is the target test page after each return, it is further ensured that the target test page can be accurately switched to and the switching efficiency is improved.

[0065] In some optional implementations, the target test page includes at least two pages to be tested, and the test configuration information also includes test paths represented by the at least two pages to be tested. Based on this, the above step S203 includes:

[0066] Step b1, obtaining the current test page and the page to be tested that was tested last time.

[0067] Step b2: determining the current page to be tested based on the test path and the page to be tested that was tested last time.

[0068] Step b3: based on the current test page, switch to the current page to be tested.

[0069] If the target test page includes at least two test pages, there are corresponding test paths between these test pages. If the target test page includes 3 test pages, they are test page 1 to test page 3. Based on this, the test path is specifically characterized as: test page 1 - random automated test on test page 1 - meet the page switching condition - switch to test page 1 - click control 1 of test page 1 - enter test page 2 - random automated test on test page 2 - meet the page switching condition - switch to test page 2 - click space 2 of test page 2 - enter test page 3 - random automated test on test page 3 - ... - meet the test cutoff condition - stop the test.

[0070] In the above process, the current page to be tested needs to be determined based on the current test page and the page to be tested that was tested last time. In combination with the above example, if the current test page is a subpage of page to be tested 2, and it is determined that the page switching condition is met, then since page to be tested 2 is the page to be tested that was tested last time, the current page to be tested is determined to be page to be tested 3. Based on this, first return to page to be tested 2, and then click control 2 of page to be tested 2 to enter page to be tested 3, thereby realizing random automated testing of page to be tested 3.

[0071] When the target test page includes at least two pages to be tested, the at least two pages to be tested represent the order of testing, that is, the test path. The testing of the at least two pages to be tested is controlled through the test path to ensure that the page testing is carried out in an orderly manner.

[0072] Step S2033, testing the target test page. The method of testing the target test page is similar to the above step S202, and will not be repeated here.

[0073] The page testing method provided in this embodiment, when the page switching conditions are met, first determines whether the current test page is the target test page. If it is another page, it is necessary to switch to the target test page before the target test page can be tested, further ensuring that the target test page can be tested.

[0074] In this embodiment, a page testing method is provided, which can be used for the above-mentioned computer equipment, such as mobile terminals such as mobile phones and tablet computers. Figure 3 is a flow chart of a page testing method according to an embodiment of the present disclosure. Figure 3 As shown, the process includes the following steps:

[0075] Step S301: Acquire test configuration information of the target application.

[0076] The test configuration information includes page switching conditions and target test pages.

[0077] Specifically, after the target application is started, the dynamic library configuration information in the installation file is read based on the dynamic library to obtain the test configuration information.

[0078] For the target application, it needs to be installed on the device before testing, and the installation is achieved through the installation package. Specifically, the target application has a corresponding initial installation package, and on this basis, a dynamic library and dynamic library configuration information are also encapsulated, wherein the dynamic library is used to determine whether the page switching conditions are currently met during the page test process, and switch to the target test page when the page switching conditions are met. The dynamic library configuration information is set based on actual needs, that is, the above-mentioned test configuration information. The above-mentioned initial installation package, dynamic library and dynamic library configuration information are encapsulated to obtain the target installation package corresponding to the target application.

[0079] Before the test, the target installation package is used for installation. After the installation, the target application is started for testing. During the test, the dynamic library configuration information in the installation file is read based on the dynamic library to obtain the test configuration information. During the test, the dynamic library determines whether the page switching condition is currently met at a preset time interval in order to test the specific business.

[0080] The dynamic library configuration information is read in a dynamic library manner to obtain the test configuration information, thereby achieving accurate reading of the test configuration information.

[0081] Step S302: Test the controls on the target application page. Figure 1 The description of step S102 of the illustrated embodiment will not be repeated here.

[0082] Step S303: if the page switching condition is met, the target test page is tested to obtain a page test result of the target application.

[0083] The page switching condition includes a preset test duration or a preset test step number, based on which, if the current test duration meets the preset test duration, it is determined that the test condition is met. Alternatively, if the current test step number meets the preset test step number, it is determined that the test condition is met.

[0084] Specifically, if the page switching condition includes a preset test duration, the timing is started at the beginning of the test. If the test duration is longer than the preset test duration, it means that the test condition is met and it is necessary to switch to the target test page. Alternatively, after switching to the target test page, the test duration is counted. If the test duration is longer than the preset test duration, the next target test page is switched to for testing. The preset test duration or the preset number of test steps are used to ensure that both random testing of page controls can be achieved and the target test page can be tested.

[0085] The test configuration information also includes the target test control in the target test page and the target operation corresponding to the target test control. Based on this, the above step S303 includes:

[0086] Step S3031, obtaining the identifiers of all controls in the target test page.

[0087] The controls on each page of the target application have a unique identifier, which can be a page identifier-control identifier. After entering the target test page, the controls in the target test page are analyzed, for example, using the control identification network to identify the position of each control, and the position of the control in the page is fixed, so that the identification of the control can be obtained. Alternatively, an image analysis is performed on the page to determine each control, and so on. There is no limitation on the control identification method here, and it is set according to actual needs.

[0088] Step S3032, determining the target test control based on the identification of the control.

[0089] After the identifiers of all controls in the target test page are obtained, the identifiers of the target test controls in the test configuration information are combined to locate the target test controls in the target test page.

[0090] Step S3033, performing the target operation on the target test control.

[0091] The operations performed by different controls are not exactly the same. For example, some controls need to be triggered by a single click, some controls need to be triggered by a slide, and so on. Therefore, the target operation corresponding to the target test control in the test configuration information is used to determine the target operation that currently needs to be performed on the target test control, thereby triggering the action of the target test control.

[0092] The page test method provided by the present embodiment tests the target test page, that is, tests the target test control in the target test page. Accordingly, each control in the page has a unique identifier, and the target test control can be located by using the identifier, thereby improving the efficiency of determining the target test control. At the same time, the test configuration information also includes the target operation performed on the target test control, so as to ensure the effective operation of the target test control during the test process, thereby improving the test efficiency.

[0093] As a specific application embodiment of the disclosed embodiment, the target application is a short video application, and the test requirements for the short video application are: start shooting, click the shooting button on the homepage - perform random automated testing on the shooting page - shoot video - edit page - perform random automated testing on the editing page - click next on the editing page - publish page - perform random automated testing on the publishing page - publish video. Based on this, the target test pages included in the test configuration information include the shooting page - the editing page and the publishing page. The target test control of the shooting page is the upload button, the target test control of the editing page is the next step, and the target test control of the publishing page is publish. The target operations of these three target test controls are all clicks. The specific processing process is as follows: Figure 4 As shown, after the short video APP is started, enter the following Figure 5a As shown in the homepage, random automated testing is performed starting from the homepage, and the test configuration file is read through the dynamic library. The dynamic library determines whether the preset test duration or number of steps is currently met, which is specifically related to the setting of the test configuration information. If not, continue to test the pages in the short video APP. If it is met, determine whether the page to be tested is the current page. According to the above path, the page to be tested at this time is the shooting page. If it is not the shooting page, query it in the page stack. If it is in the page, return step by step until the homepage is reached. The video shooting button in the homepage is the target test control. Click it to enter the following Figure 5b The shooting page shown in the figure performs a random automated test on the shooting page after waiting for 3 seconds. The dynamic library determines the page switching condition again. If it is satisfied, it enters the page switching condition by executing the upload button on the shooting page. Figure 5c The edit page shown in the figure is randomly automated tested. After the page switching condition is met, the page returns to the edit page and the next control in the edit page is executed to enter the following Figure 5dPerform random automated testing on the publishing page shown in the figure. After the page switching conditions are met, return to the publishing page, execute the publish button on the publishing page, and enter the following page again: Figure 5a The home page shown, random automated testing starts again from the home page.

[0094] In this embodiment, a page testing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0095] This embodiment provides a page testing device, such as Figure 6 As shown, including:

[0096] The test configuration information acquisition module 601 is used to acquire the test configuration information of the target application. The test configuration information includes page switching conditions and target test pages.

[0097] The control testing module 602 is used to test the controls of the pages in the target application.

[0098] The target test control testing module 603 is used to test the target test page if the page switching condition is met to obtain the page test result of the target application.

[0099] In some optional implementations, the target test control test module 603 includes:

[0100] The current test page acquisition unit is used to acquire the current test page.

[0101] The target test page switching unit is used to switch to the target test page if the current test page is other than the target test page.

[0102] The target test page testing unit is used to test the target test page.

[0103] In some optional implementations, the target test page switching unit includes:

[0104] The current page stack acquisition subunit is used to acquire the current page stack, and the current page stack is used to represent pages with a hierarchical display relationship.

[0105] The target test page switching subunit is used to switch to the target test page based on the hierarchical display relationship of the pages if the target test page exists in the current page stack.

[0106] In some optional implementations, the target test page switching subunit includes:

[0107] The first page return subunit is used to return to the previous page of the current test page based on the hierarchical display relationship of the pages.

[0108] The second page return subunit is used to return to the previous page of the other page if the previous page is another page, so as to switch to the target test page.

[0109] In some optional implementations, the target test page includes at least two pages to be tested, and the test configuration information also includes test paths represented by the at least two pages to be tested, and the target test page switching unit includes:

[0110] The page to be tested acquisition subunit is used to acquire the current test page and the page to be tested that was tested last time.

[0111] The current page to be tested determining subunit is used to determine the current page to be tested based on the test path and the page to be tested that was tested last time.

[0112] The current page to be tested switching subunit is used to switch to the current page to be tested based on the current test page.

[0113] In some optional implementations, the test configuration information also includes a target test control in a target test page and a target operation corresponding to the target test control. The target test control test module 603 includes:

[0114] The control identification acquisition unit is used to acquire the identifications of all controls in the target test page.

[0115] The target test control determination unit is used to determine the target test control based on the identification of the control.

[0116] The target operation execution unit is used to execute the target operation on the target test control.

[0117] In some optional implementations, the page switching condition includes a preset test duration or a preset number of test steps;

[0118] If the current test duration meets the preset test duration, it is determined that the test condition is met.

[0119] or,

[0120] If the current number of test steps meets the preset number of test steps, it is determined that the test condition is met.

[0121] In some optional implementations, the test configuration information acquisition module 601 includes:

[0122] The test configuration information acquisition unit is used to read the dynamic library configuration information in the installation file based on the dynamic library after the target application is started, so as to obtain the test configuration information.

[0123] The page testing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0124] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0125] The present disclosure also provides a computer device having the above Figure 6 The page shown is testing the device.

[0126] See also Figure 7 , Figure 7 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.

[0127] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0128] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0129] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0130] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0131] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0132] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device can be a touch screen.

[0133] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0134] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0135] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0136] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0137] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0138] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A page testing method, characterized in that: The method comprises: Acquire test configuration information of a target application, wherein the test configuration information includes a page switching condition and a target test page; Testing the controls on the pages of the target application; If the page switching condition is met, the target test page is tested to obtain a page test result of the target application.

2. The method according to claim 1, characterized in that The testing of the target test page includes: Get the current test page; If the current test page is a page other than the target test page, switch to the target test page; The target test page is tested.

3. The method according to claim 2, characterized in that The switching to the target test page includes: Obtaining a current page stack, where the current page stack is used to represent pages having a hierarchical display relationship; If the target test page exists in the current page stack, the target test page is switched to based on the hierarchical display relationship of the pages.

4. The method according to claim 3, characterized in that The step of switching to the target test page based on the hierarchical display relationship of the page includes: Based on the hierarchical display relationship of the pages, return to the previous page of the current test page; If the previous page is the other page, return to the previous page of the other page to switch to the target test page.

5. The method according to claim 2, characterized in that: The target test page includes at least two pages to be tested, and the test configuration information also includes test paths represented by the at least two pages to be tested, and the switching to the target test page includes: Get the current test page and the page to be tested that was tested last time; Determine a current page to be tested based on the test path and the page to be tested that was tested last time; Based on the current test page, switch to the current page to be tested.

6. The method according to claim 1, characterized in that The test configuration information also includes a target test control in the target test page and a target operation corresponding to the target test control. Testing the target test control in the target test page to obtain a page test result of the target application includes: Obtaining the identifiers of all controls in the target test page; Determining the target test control based on the identification of the control; The target operation is performed on the target test control.

7. The method according to claim 1, characterized in that The page switching condition includes a preset test duration or a preset number of test steps; If the current test duration meets the preset test duration, it is determined that the test condition is met; or, If the current number of test steps meets the preset number of test steps, it is determined that the test condition is met.

8. The method according to any one of claims 1 to 7, characterized in that The step of obtaining the test configuration information of the target application includes: After the target application is started, the dynamic library configuration information in the installation file is read based on the dynamic library to obtain the test configuration information.

9. A page testing device, characterized in that: The device comprises: A test configuration information acquisition module, used to acquire test configuration information of a target application, wherein the test configuration information includes a page switching condition and a target test page; A control testing module, used to test the controls on the pages of the target application; The target test control testing module is used to test the target test page if the page switching condition is met to obtain the page test result of the target application.

10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the page testing method according to any one of claims 1 to 8 by executing the computer instructions.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the page testing method according to any one of claims 1 to 8.