A method and device for testing task wizard

By automatically loading wizard steps in the browser and generating event objects, the problem of mismatching software product pages and task wizards is solved, improving testing efficiency and automation.

CN113326180BActive Publication Date: 2025-05-06HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010132599.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-29
Publication Date
2025-05-06
Estimated Expiration
2040-02-29

AI Technical Summary

Technical Problem

In the prior art, the problem of the software product page not matching the task wizard leads to low manual testing efficiency.

Method used

Through the automatic loading wizard step, the terminal generates event objects corresponding to the operation, causing the browser to refresh the page, thereby realizing the automatic loading of the wizard step if the user does not operate.

Benefits of technology

It improves the efficiency of the test task wizard, reduces the need for manual operations, and improves the degree of automation of tests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113326180B_ABST
    Figure CN113326180B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method and device for a test task wizard, which is used to automatically load wizard steps, thereby improving the efficiency of the test task wizard. In the embodiment of the present application, the task wizard includes M wizard steps, and the M wizard steps include a first wizard step and a second wizard step, wherein the second wizard step is the next wizard step of the first wizard step; based on the task wizard, the method includes: first, the terminal loads the first wizard step in the first page of the browser, the first wizard step indicates that a first operation is performed on the first page, and the event object corresponding to the first operation is used to make the browser refresh the second page; then the terminal generates an event object corresponding to the first operation according to the first wizard step, so that the browser refreshes the second page; finally, the terminal loads the second wizard step in the second page, so that the terminal can automatically load the second wizard step without the user performing the first operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for testing a task wizard. Background Art

[0002] With the development of software technology, many software products have powerful functions, which leads to more and more complex software product logic. Many software products have some barriers to entry, so before using the software product, users need to explore and understand how to use the software product. Based on this situation, technicians develop task wizards based on software products to guide users to learn how to use software products.

[0003] However, since software products are updated frequently, the browser page corresponding to the software products will also change frequently, which may cause the software product page in the browser to not match the task wizard. For this reason, the task wizard needs to be tested. The current testing method is manual, that is, the user operates on the software product page of the browser, triggering the browser to load the wizard steps of the task wizard in sequence. The user can analyze the degree of matching between the wizard steps and the software product page of the browser, thereby realizing the testing of the task wizard.

[0004] Since this manual testing method requires users to operate the software product page, the testing efficiency is low. Summary of the invention

[0005] The embodiments of the present application provide a method and device for a test task wizard, which can automatically load wizard steps, thereby improving the efficiency of the test task wizard.

[0006] A first aspect of an embodiment of the present application provides a method for testing a task wizard, in which the task wizard includes M wizard steps, the M wizard steps include a first wizard step and a second wizard step, the second wizard step is a next wizard step of the first wizard step, and M is an integer greater than 1;

[0007] Methods include:

[0008] First, the browser is controlled to load a first page, and then the terminal loads a first wizard step in the first page of the browser, wherein the first page is loaded with a software product, the first wizard step indicates to perform a first operation on the first page, and the event object corresponding to the first operation is used to make the browser refresh a second page;

[0009] The terminal may generate an event object corresponding to the first operation according to the first wizard step, so that the browser refreshes the second page;

[0010] Finally, the terminal loads the second wizard step in the second page.

[0011] After loading the first wizard step, the terminal generates an event object corresponding to the first operation, which causes the terminal to refresh the second page, and then the terminal loads the second wizard step in the second page. In this way, the second wizard step is automatically loaded without the user performing the first operation on the first page, thereby improving the testing efficiency.

[0012] Based on the first aspect, the embodiment of the present application provides a first implementation of the first aspect, in which M is an integer greater than 2, and the second page corresponds to the first URL;

[0013] After the terminal loads the second wizard step in the second page, the method further includes:

[0014] Based on the abnormality in loading the second wizard step, the terminal cannot generate a corresponding event object according to the second wizard step, so the browser cannot refresh the next page, and further cannot automatically load the wizard step in the next page; based on this, the terminal determines a third wizard step corresponding to the first uniform resource locator URL from the M wizard steps, wherein the second URL is one of the preset N URLs and is different from the first URL, wherein N is a positive integer, and the third wizard step is after the second wizard step. As a feasible way, there may be no wizard step between the third wizard step and the second wizard step, that is, the third wizard step is the next wizard step of the second wizard step, and there may also be at least one wizard step between the third wizard step and the second wizard step;

[0015] Then, the terminal controls the browser to load the third page according to the second URL;

[0016] Finally, the terminal loads the third wizard step in the third page.

[0017] In this embodiment, N URLs are preset for M wizard steps. In this way, if the terminal cannot continue to load the wizard step due to an exception in loading the second wizard step, the terminal can control the browser to load a third page according to the preset URL, and then load the third wizard step in the third page, so that other wizard steps after the third wizard step can be automatically loaded to test the third wizard step and other wizard steps thereafter.

[0018] Based on the first aspect, or the first implementation of the first aspect, the embodiment of the present application provides a second implementation of the first aspect, before the terminal loads the first wizard step in the first page of the browser, the method further includes:

[0019] The terminal determines a third URL corresponding to the first wizard step from among N preset URLs, where N is a positive integer;

[0020] The terminal controls the browser to load the first page according to the third URL.

[0021] The terminal loads the first page according to the preset third URL, thereby realizing automatic loading of the first page.

[0022] Based on the first aspect, or the first implementation of the first aspect, or the second implementation of the first aspect, the embodiment of the present application provides a third implementation of the first aspect, and the method further includes:

[0023] The terminal collects test data of the task wizard, wherein the test data includes one or more of the following: the loading order of wizard steps, the running status of at least one wizard step among M wizard steps, a screenshot of a page loaded with at least one wizard step among M wizard steps, or the degree of match between the metadata of an element selector and a focused element in the page.

[0024] In this implementation, the terminal implements automatic testing of the task wizard by collecting test data.

[0025] Based on the third implementation of the first aspect, the embodiment of the present application provides a fourth implementation of the first aspect. After the terminal collects test data of the task wizard, the method further includes:

[0026] The terminal analyzes the task wizard according to the test data and the preset test baseline to obtain an analysis result, wherein the test baseline can be obtained from the process of previewing the task wizard, and the dimension of the test baseline can be the same as the dimension of the test data.

[0027] Based on the fourth implementation of the first aspect, the embodiment of the present application provides a fifth implementation of the first aspect. Based on the change of the software product, the page of the browser will also change, which will cause the test data to differ from the test baseline. Therefore, after the terminal analyzes the task wizard according to the test data and the preset test baseline to obtain the analysis result, the method also includes:

[0028] Based on the analysis result indicating that the difference between the test data and the preset test baseline is less than or equal to the preset difference, the terminal updates the metadata of the test baseline and / or the task wizard according to the test data.

[0029] In this implementation, when there is a difference between the test data and the test baseline but the degree of the difference is small, the terminal can automatically update the task wizard and the test baseline according to the test data.

[0030] Based on the fourth implementation of the first aspect, the embodiment of the present application provides a sixth implementation of the first aspect, where the terminal analyzes the task wizard according to the test data and the preset test baseline to obtain the analysis result, and the method further includes:

[0031] Based on the analysis result indicating that the difference between the test data and the test baseline is greater than a preset difference, the terminal generates a warning message.

[0032] In this implementation, when there is a difference between the test data and the test baseline but the degree of the difference is large, the terminal generates an early warning message to notify the user in time.

[0033] A second aspect of an embodiment of the present application provides a terminal for testing a task wizard, wherein the task wizard includes M wizard steps, the M wizard steps include a first wizard step and a second wizard step, the second wizard step is a next wizard step of the first wizard step, and M is an integer greater than 1;

[0034] The terminal includes:

[0035] A loading unit, used to load a first wizard step in a first page of the browser, the first wizard step indicates to perform a first operation on the first page, and the event object corresponding to the first operation is used to make the browser refresh a second page;

[0036] A generating unit, configured to generate an event object corresponding to the first operation according to the first wizard step, so as to enable the browser to refresh the second page;

[0037] The loading unit is further used to load the second wizard step in the second page.

[0038] Based on the second aspect, the embodiment of the present application provides a first implementation of the second aspect, wherein M is an integer greater than 2, the second page corresponds to the first URL; and the terminal further includes:

[0039] a determining unit, configured to determine, based on an exception in loading the second wizard step, a third wizard step corresponding to the second URL from the M wizard steps, wherein the third wizard step is after the second wizard step, and the second URL is one of N preset URLs and is different from the first URL, wherein N is a positive integer;

[0040] The loading unit is further used to control the browser to load a third page according to the second URL;

[0041] The loading unit is further used to load the third wizard step in the third page.

[0042] Based on the second aspect, or the first implementation of the second aspect, the embodiment of the present application provides a second implementation of the second aspect, and the terminal further includes:

[0043] A determining unit, configured to determine a third URL corresponding to the first wizard step from among N preset URLs, where N is a positive integer;

[0044] The loading unit is further used to control the browser to load the first page according to the third URL.

[0045] Based on the second aspect, or the first implementation of the second aspect, or the second implementation of the second aspect, the embodiment of the present application provides a third implementation of the second aspect, and the terminal further includes:

[0046] A collection unit, used for collecting test data of the task wizard;

[0047] The test data includes one or more of the following: the loading order of wizard steps, the running status of at least one wizard step among the M wizard steps, a screenshot of a page loaded with at least one wizard step among the M wizard steps, or the matching degree between the metadata of an element selector and a focused element in the page.

[0048] Based on the third implementation of the second aspect, the embodiment of the present application provides a fourth implementation of the second aspect, and the terminal further includes:

[0049] The analysis unit is used to analyze the task wizard according to the test data and the preset test baseline to obtain the analysis result.

[0050] Based on the fourth implementation of the second aspect, the embodiment of the present application provides a fifth implementation of the second aspect, and the terminal further includes:

[0051] The updating unit is used to update the metadata of the test baseline and / or the task wizard according to the test data based on the analysis result indicating that the difference between the test data and the preset test baseline is less than or equal to the preset difference.

[0052] Based on the fourth implementation of the second aspect, the embodiment of the present application provides a sixth implementation of the second aspect, and the generation unit is also used to generate early warning information based on the analysis result indicating that the difference between the test data and the test baseline is greater than a preset difference.

[0053] A third aspect of an embodiment of the present application provides a terminal device, comprising: at least one processor and a memory, the memory storing computer execution instructions that can be run on the processor, when the computer execution instructions are executed by the processor, the terminal device executes the method of the test task wizard as described in any one of the implementations of the first aspect above.

[0054] A fourth aspect of an embodiment of the present application provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and at least one processor are interconnected by lines, and the at least one processor is used to run computer programs or instructions to execute the method of the test task wizard as described in any one of the embodiments of the first aspect above.

[0055] A fifth aspect of the embodiments of the present application provides a computer storage medium, the computer storage medium is used to store computer software instructions used for the above-mentioned terminal device, including a program designed for executing the terminal device or the server;

[0056] The terminal device may be a terminal of the test task wizard as described in the second aspect above.

[0057] A sixth aspect of an embodiment of the present application provides a computer program product, which includes computer software instructions, and the computer software instructions can be loaded by a processor to implement the method of the test task wizard as described in any one of the implementations of the first aspect above.

[0058] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0059] The terminal loads the first wizard step in the first page of the browser, performs a first operation on the first page based on the instruction of the first wizard step, and the event object corresponding to the first operation is used to make the browser refresh the second page. The terminal generates an event object corresponding to the first operation to make the browser refresh the second page. Finally, the terminal loads the second wizard step in the second page, thereby realizing automatic loading of the second wizard step when the user does not perform the first operation on the first page, thereby improving testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 A schematic diagram of the system architecture for the test task wizard;

[0061] Figure 2 A schematic diagram of an embodiment of a method for testing a task wizard in an embodiment of the present application;

[0062] Figure 3 This is a schematic diagram of an embodiment in which a terminal automatically loads a first page in an embodiment of the present application;

[0063] Figure 4 This is a schematic diagram of an embodiment of the first page in the embodiment of the present application;

[0064] Figure 5 is a schematic diagram of an embodiment of a first page loaded with a first wizard step;

[0065] Figure 6 This is a schematic diagram of an embodiment of the second page in the embodiment of the present application;

[0066] Figure 7 A schematic diagram of an embodiment of a second page loaded with a second wizard step;

[0067] Figure 8 This is a schematic diagram of the third page of the embodiment of the present application;

[0068] FIG9( a ) is a schematic diagram of an embodiment of a third page loaded with a third wizard step;

[0069] FIG9( b ) is a schematic diagram of another embodiment of a third page loaded with a third wizard step;

[0070] Fig.10 A schematic diagram of another embodiment of the method for testing a task wizard in an embodiment of the present application;

[0071] Fig.11 This is another embodiment schematic diagram of a second page loaded with a second wizard step in an embodiment of the present application;

[0072] Fig.12 A schematic diagram of an embodiment of a terminal for testing a task wizard in an embodiment of the present application;

[0073] Fig.13 This is a schematic diagram of an embodiment of a terminal device in an embodiment of the present application. DETAILED DESCRIPTION

[0074] The embodiment of the present application provides a method and device for testing a task wizard. The method is used to test a task wizard. Since the wizard steps can be automatically loaded, the efficiency of testing the task wizard can be improved.

[0075] See also Figure 1 , Figure 1 This is a schematic diagram of the system architecture of the test task wizard. The embodiment of the present application can be applied to Figure 1 In the system shown in FIG. , the system includes a terminal device and a server.

[0076] Among them, the terminal device (terminal device), referred to as the terminal, can also be called user equipment (UE), is a device with wireless transceiver function, which can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it can also be deployed on the water surface (such as ships, etc.); it can also be deployed in the air (for example, on airplanes, balloons and satellites, etc.). The terminal device can be a smart phone (mobile phone), a tablet computer (pad), a computer with wireless transceiver function, a laptop computer, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in a smart city (smart city), a wireless terminal in a smart home (smart home), etc. Among them, Figure 1 Only some terminal devices are shown. For the sake of convenience, the following description will be made with the term terminal replacing the terminal device.

[0077] exist Figure 1 In the system architecture shown, first, the terminal or server generates a test file for the task wizard, wherein when the test file is generated by the server, before the test is performed, the terminal obtains the test file from the server; then, the terminal runs the test file to load the wizard steps in the browser page, thereby implementing the test of the task wizard. Although manually operating the browser page can trigger the terminal to load the wizard steps in the browser page, the test efficiency is low. Therefore, an embodiment of the present application provides a method for testing the task wizard, which method does not require manual operation of the browser page, and can automatically load the wizard steps in the browser page, thereby implementing the automatic test of the task wizard.

[0078] For ease of understanding, the following Figure 2 The method of the test task wizard in the embodiment of the present application is introduced. Figure 2As shown, the embodiment of the present application provides an embodiment of a method for testing a task wizard, in which the task wizard includes M wizard steps, wherein any one of the M wizard steps can be a prompt step or a non-prompt step; a prompt step refers to a wizard step that is not related to an interface element, and can also be called a wizard step without a focused element; a non-prompt step refers to a wizard step that is related to an interface element, and can also be called a wizard step with a focused element. In subsequent embodiments, the prompt step and the non-prompt step will be described in conjunction with the accompanying drawings.

[0079] The M wizard steps include a first wizard step and a second wizard step, wherein the first wizard step may be any one of the M wizard steps, the second wizard step is the next wizard step of the first wizard step, and M is an integer greater than 1.

[0080] The second wizard step is the next wizard step of the first wizard step. It can be understood that when the test file runs normally, the first wizard step is first loaded in the browser page, and then based on certain conditions, the second wizard step is loaded in the browser page.

[0081] Based on the above first wizard step and second wizard step, the method includes:

[0082] Operation 101: A terminal loads a first wizard step in a first page of a browser.

[0083] Before executing operation 101, the terminal needs to load the first page in the browser first; it can be understood that in order to make the method in the embodiment of the present application more intelligent, the corresponding test cycle can be set in advance, so that the terminal can determine the first moment of the test task wizard according to the test cycle, and then automatically pull up the browser at the first moment, and then load the first page in the browser.

[0084] In an embodiment of the present application, there are multiple methods for loading the first page. Specifically, the terminal can be manually controlled to load the first page in the browser. For example, the user can input a uniform resource locator URL in the browser of the terminal or search through a search engine to cause the browser to load the first page. The terminal can also automatically load the first page.

[0085] It should also be noted that, under normal circumstances, it is necessary to log in to the software product account before using the software product. The login operation can be performed by manual control or by the terminal; based on the account of the software product automatically logged in by the terminal, before the terminal automatically loads the first page, the terminal can perform an automatic login operation according to relevant configurations, and the relevant configurations may include the account number and password, and may also include the URL of the login page; for example, the terminal loads the login page according to the preset login page URL, and then automatically logs in according to the account number and password.

[0086] Combine the following Figure 3 This section describes the process of automatically loading the first page on the terminal. Figure 3 As shown, the terminal automatically loads the first page including:

[0087] Operation 201: The terminal determines a third URL corresponding to a first wizard step from among N preset URLs.

[0088] It is understandable that N URLs can be pre-configured on the terminal, where N is a positive integer, and a mapping relationship between the first wizard step and the third URL among the N URLs can be established, so that the terminal can determine the third URL corresponding to the first wizard step according to the mapping relationship.

[0089] In operation 202, the terminal controls the browser to load the first page according to the third URL.

[0090] After determining the third URL corresponding to the first wizard step, the terminal controls the browser to automatically load the first page according to the third URL.

[0091] Through the above two methods, the terminal can load the first page in the browser. After loading the first page, the terminal can run the test file of the task wizard. It can be understood that the test file will automatically detect the current page of the browser and then load the corresponding wizard steps according to the current page.

[0092] Based on the terminal loading the first page in the browser, the test file detects that the current page is the first page, and then loads the first wizard step corresponding to the first page. The terminal loading the first wizard step in the first page includes the terminal running the code related to the first wizard step in the first page; specifically, when the first wizard step needs to be manually viewed, the terminal loading the first wizard step in the first page may also include the terminal displaying the first wizard step in the first page; when the first wizard step does not need to be manually viewed, the terminal may not display the first wizard step in the first page.

[0093] Specifically, assuming that the first page is Figure 4 As shown, Figure 4 This is a schematic diagram of an embodiment of the first page in the embodiment of the present application. Figure 4 The first page shown is a page of a game product. In the first page, the circular interface element represents the starting area, the rectangular interface element represents the target area, the four-pointed star interface element located in the upper right corner of the rectangular interface element represents the store, and the game character is located in the starting area.

[0094] At the same time, it is assumed that the first wizard step includes the following contents: right-clicking the mouse in this area to control the game character to move into this area; then the terminal can automatically load the third URL according to the preset URL. Figure 4 The first page shown in FIG. 1 is then loaded with the first wizard step. The first page loaded with the first wizard step can be as follows: Figure 5 As shown, Figure 5 It is a schematic diagram of an embodiment of a first page loaded with a first wizard step.

[0095] In the embodiment of the present application, the first wizard step indicates to perform a first operation on the first page. Figure 5 As an example, the first wizard step instructs the user to right-click the mouse in the target area, that is, the first operation is to right-click the mouse in the target area. Figure 5 In the example, the first wizard step is associated with a rectangular interface element representing a target area, so the rectangular interface element is a focus element of the first wizard step, and the first wizard step is a non-prompt step.

[0096] It should be noted that when a user operates on a page in a browser, multiple events are triggered, such as mouse events, keyboard events, input value change events, and tree change events. Mouse events may include left-click, right-click, left-double-click, right-double-click, mouse move-in, mouse move-out, and mouse wheel, etc. Keyboard events may include key presses and key releases, etc. Tree change events may specifically be Document Object Model (DOM) tree change events, such as DOM tree node addition or reduction, content changes, CSS changes, or attribute changes, etc.

[0097] Each event corresponds to an event object, which is used to indicate the state of the event and can be collected by the terminal. The event object contains attribute information such as the event type of the event object, the interface element that triggers the event object, and the key value of the event object. In an embodiment of the present application, based on a first operation on a first page, a corresponding event object is generated; the event object corresponding to the first operation causes the browser to refresh the second page; specifically, the event object corresponding to the first operation triggers a listener in the browser's page, and then the listener's callback function is executed, causing the browser to refresh the second page; it should be noted that refreshing the second page includes loading the second page or refreshing some interface elements in the first page to form the second page.

[0098] Among them, loading the second page can be understood as the browser loading the second page according to another URL different from the URL of the first page; and when the second page is formed after refreshing some interface elements in the first page, the URL of the second page is the same as the URL of the first page, and some interface elements of the second page are different from those of the first page.

[0099] Specifically, still assuming that the first page is Figure 4 As shown, the first wizard step includes the following contents: right-click the mouse in this area to control the game character to move into this area; the first wizard step indicates that the first operation to be performed on the first page is: right-click the mouse in the target area; based on the first operation, Figure 4 The game character in the starting area will move to the target area, so the browser will refresh as follows Figure 6 The second page is shown.

[0100] exist Figure 6 In the second page shown, the game character is located in the target area represented by the rectangular interface element; therefore, Figure 6 The second page shown is Figure 4 Compared with the first page shown in FIG. 1 , only the position of the game character has changed, while other interface elements have not changed. Therefore, the game character interface element can be refreshed on the first page while maintaining the URL of the first page unchanged, so that the browser refreshes the page as shown in FIG. Figure 6 In addition, the browser can also load another URL different from the URL of the first page. Figure 6 The second page is shown.

[0101] Operation 102: The terminal generates an event object corresponding to the first operation according to the first wizard step, so as to enable the browser to refresh the second page.

[0102] Based on the relevant description of operation 101, it can be known that if the user performs a first operation on the first page, the event object corresponding to the first operation causes the browser to refresh the second page.

[0103] However, in an embodiment of the present application, the terminal generates an event object corresponding to the first operation to simulate the user performing the first operation on the first page, so that when the tester does not perform the first operation on the first page, the browser automatically refreshes the second page, wherein the process of the browser refreshing the second page can be specifically understood by referring to the relevant description of operation 101.

[0104] Operation 103: The terminal loads a second wizard step in a second page.

[0105] Similarly, after running the test file, it will automatically detect that the current page of the browser has changed to the second page, and then load the second wizard step corresponding to the second page in the second page. The process of loading the second wizard step is the same as the process of loading the first wizard step, which will not be repeated here. Figure 6 The page shown is the second page, and assuming that the content of the second wizard step is: click here to buy equipment for the game character; then the second page after loading the second wizard step can be as follows Figure 7 As shown, Figure 7 A schematic diagram of an embodiment of a second page loaded with a second wizard step.

[0106] In an embodiment of the present application, after the terminal loads the first wizard step in the first page of the browser, the terminal automatically refreshes the second page in the browser and then automatically loads the second wizard step in the browser without the user having to operate the first page. The user can compare the wizard steps and the pages where the wizard steps are located to determine the degree of match between the task wizard and the software product page, thereby implementing a test of the task wizard; and since the first wizard step can be any one of the M wizard steps, in an embodiment of the present application, the task wizard can be tested starting from any one of the M wizard steps.

[0107] Based on the above embodiments, another embodiment of the method for the test task wizard provided in the embodiments of the present application, in this embodiment, M is an integer greater than 2, that is, in addition to the first wizard step and the second wizard step, the M wizard steps may also include other wizard steps.

[0108] It is understandable that during a normal test, the terminal will load the first wizard and the second wizard steps in sequence, and then load other wizard steps after the second wizard step; however, due to the abnormality in loading the second wizard step, the terminal may not be able to continue loading other wizard steps after the second wizard step.

[0109] Specifically, the exception in loading the second wizard step may include multiple situations; for example, the inability of the terminal to find the focused element of the second wizard step will cause the loading of the second wizard step to be abnormal; the inability of the terminal to find the target element of the event object sent by the second wizard step will also cause the second wizard step to be abnormal. Usually, the target element is the focused element of the second wizard step.

[0110] Specifically, based on the failure to load the second wizard step, the terminal cannot generate a corresponding event object according to the second wizard step to trigger the browser to refresh another page, and thus cannot load other wizard steps after the second wizard step in the other page, ultimately resulting in the inability to test other wizard steps.

[0111] To this end, in this embodiment, the user selects N wizard steps from M wizard steps, and then configures a URL for each of the N wizard steps on the terminal, that is, a one-to-one mapping relationship between the N URLs and the N wizard steps is established; for example, the URL corresponding to one wizard step is https: / / www.xxx.com / aaa, the URL corresponding to another wizard step is https: / / www.xxx.com / bbb, and the URL corresponding to another wizard step is https: / / www.xxx.com / ccc; wherein N is a positive integer, N can be equal to M, or N can be less than M.

[0112] Based on the mapping relationship between the URL and the wizard step, the terminal may first determine the URL corresponding to the wizard step to be loaded, then load the page according to the URL, and enable the browser to load the wizard step to be loaded in the page.

[0113] It should be noted that there may be at least one wizard step among the M wizard steps that cannot be configured with a URL, which is explained below using an example.

[0114] The example is as follows:

[0115] Based on the relevant instructions of Operation 101, Figure 5 The first wizard step in the first page shown indicates a first operation performed on the first page; based on the event object corresponding to the first operation collected by the browser, the browser can refresh some interface elements in the first page to form a Figure 6 The second page shown, that is, the URL of the first page and the URL of the second page are the same. It is assumed here that the URL of the first page and the URL of the second page are both the third URL.

[0116] However, the terminal can only load the first page or the second page in the browser according to the third URL. It is assumed here that the terminal can only load the first page in the browser according to the third URL.

[0117] Based on this, the terminal cannot load the second page in the browser according to the third URL, and thus cannot load the second wizard step, so the third URL cannot be configured for the second wizard step, that is, the terminal can only load the second page according to the event object corresponding to the first operation collected by the browser.

[0118] Therefore, the user can select N wizard steps from the M wizard steps under the premise of considering whether the wizard steps can be configured with URLs.

[0119] Based on the preconfigured N URLs, in this embodiment, assuming that the second page corresponds to the first URL, after operation 103, the method further includes:

[0120] Operation 104 : Based on the abnormality in loading the second wizard step, the terminal determines a third wizard step corresponding to the second URL from the M wizard steps.

[0121] Among them, the second URL is one of the preset N URLs and is different from the first URL; the third wizard step is after the second wizard step, specifically, the third wizard step can be the next wizard step of the second wizard step, and there can also be one or more wizard steps between the third wizard step and the second wizard step.

[0122] Operation 105: The terminal controls the browser to load a third page according to the second URL.

[0123] After determining that the third wizard step corresponds to the second URL, the terminal may control the browser to automatically load the third page according to the second URL.

[0124] Operation 106: The terminal loads a third wizard step in a third page.

[0125] Similarly, after running, the test file will automatically detect that the current page of the browser has changed to the third page, and then load the third wizard step corresponding to the third page in the third page. The process of loading the third wizard step is the same as the process of loading the first wizard step, which will not be repeated here.

[0126] Combine the following Figure 6 to Figure 9(a) The above process is described with two different examples.

[0127] First example:

[0128] by Figure 6 The page shown takes the second page as an example, assuming that the M wizard steps include a first wizard step, a second wizard step and a third wizard step, where the third wizard step is the next wizard step of the second wizard step; the content of the second wizard step is: Click here to purchase equipment for the game character; the content of the third wizard step is: Click here to purchase auxiliary equipment for the game character.

[0129] In a normal test process, based on the success of loading the second wizard step, the second page can be Figure 7 As shown, the second wizard step instructs the user to perform a second operation on the second page, and the second operation is to click on the store; then, the terminal generates an event object corresponding to the second operation to simulate the user performing the second operation on the second page, and the event object corresponding to the second operation causes the browser to refresh. Figure 8 The third page shown. Among them, Figure 8 The third page shown is used to indicate the purchase of equipment for the game character in the store. Specifically, Figure 8In the example, three rectangular interface elements are used to represent the attack equipment, auxiliary equipment and defense equipment in the store respectively.

[0130] After that, the test file will automatically detect that the current page of the browser has changed to Figure 8 The third page is shown, and then the third wizard step is loaded in the third page, wherein the third wizard step includes the following content: click here to purchase auxiliary equipment for the game character; the third page loaded with the third wizard step is shown in FIG. 9( a).

[0131] However, due to the failure to load the second wizard step, the second wizard step cannot be loaded in the second page, that is, the browser cannot display Figure 7 The second page shown contains the second wizard step, which can only display Figure 6 At this time, the terminal can automatically load the second URL corresponding to the third wizard step as shown in the second page; Figure 8 The third page shown, similarly, the test file will detect the third page, and load the third wizard step in the third page, and finally display the third page including the third wizard step in FIG. 9( a ).

[0132] In FIG. 9( a ), the third wizard step is associated with a rectangular interface element representing an auxiliary device, and specifically guides the user to click on the auxiliary device represented by the rectangular interface element, so the third wizard step in FIG. 9( a ) is a prompt step.

[0133] Second example:

[0134] Still Figure 6 The page shown takes the second page as an example. It is assumed that the M wizard steps include a first wizard step, a second wizard step and a third wizard step, wherein the third wizard step is a prompt step and is the next wizard step of the second wizard step; the content of the second wizard step is: Click here to purchase equipment for the game character; the content of the third wizard step is: What type of equipment do you need to buy?

[0135] Due to the failure to load the second wizard step, the second wizard step cannot be loaded in the second page, that is, it cannot be displayed in the browser Figure 7 The second page shown contains the second wizard step, which can only display Figure 6 At this time, the terminal can automatically load the second URL corresponding to the third wizard step as shown in the second page; Figure 8 The third page shown.

[0136] Similarly, the test file will detect the third page, load the third wizard step in the third page, and finally display the third page including the third wizard step as shown in Figure 9(b). In the third page shown in Figure 9(b), the third wizard step is not associated with any of the three rectangular interface elements, so the third wizard step in Figure 9(b) is a prompt step, specifically guiding the user to click one of the attack equipment, auxiliary equipment, and defense equipment represented by the three rectangular interface elements.

[0137] It can be understood that in order to improve the efficiency of the test task wizard, in an embodiment of the present application, the terminal can simultaneously generate an event object corresponding to the operation of clicking the attack equipment, an event object corresponding to the operation of clicking the auxiliary equipment, and an event object corresponding to the operation of clicking the defense equipment, so that the browser simultaneously refreshes the page corresponding to the attack equipment, the page corresponding to the auxiliary equipment, and the page corresponding to the defense equipment; and then loads the corresponding wizard steps in these three pages respectively, so as to test the wizard steps loaded in the three pages at the same time.

[0138] Based on the above description, it can be seen that in an embodiment of the present application, based on the abnormality in loading the second wizard step, the terminal will not be able to trigger the browser to refresh the third page by generating an event object. At this time, the terminal will automatically load the third page according to the preset second URL, and then load the third wizard step in the third page, thereby realizing automatic loading of the third wizard step to test the third wizard step; and, since the third step can be the next wizard step of the second wizard step, there can also be one or more wizard steps between the third wizard step and the second wizard step, so it is possible to start from any wizard step configured with a URL after the second wizard step and continue to test the task wizard.

[0139] In the above embodiments, when the terminal loads the wizard steps, the user needs to manually compare the wizard steps with the browser page where the wizard steps are located to test the task wizard, so the test efficiency is low, the test time is long, and the accuracy cannot be guaranteed. Fig.10 As shown, in another embodiment of the method for the test task wizard provided in the embodiment of the present application, the method further includes:

[0140] Operation 301: The terminal collects test data of the task wizard.

[0141] The test data includes one or more of the following: the loading order of wizard steps, the running status of at least one wizard step among the M wizard steps, a screenshot of a page loaded with at least one wizard step among the M wizard steps, or the matching degree between the metadata of the element selector and the focused element in the page, where the matching degree can be represented by a numerical value. The test data are described one by one below.

[0142] The loading order of the wizard steps refers to the order in which the terminal loads the wizard steps in the page of the browser.

[0143] The running status of the wizard step may include the wizard step being loaded normally and the wizard step being not loaded, etc. Specifically, the wizard step being not loaded may include the wizard step being skipped due to the absence of a focused element.

[0144] The screenshot of the page loaded with the wizard steps may be a key frame screenshot. For example, the key frame screenshot may include a screenshot of the first page loaded with the first wizard step (eg, Figure 5 ), a screenshot of the second page loaded with the second wizard step (as shown Figure 7 9(a) ) and a screenshot of the third page loaded with the third wizard step (as shown in FIG. 9(a) ).

[0145] The metadata of the element selector is used to indicate the focused element of the wizard step recorded in the test file, which may include the text of the focused element, the position of the focused element, the level of the focused element, the number of the focused element, the attributes of the focused element, and the contextual relationship of the focused element. The focused element in the page refers to the focused element of the wizard step in the actual page. Figure 5 For example, the focus element in the first wizard step on the first page is a rectangular interface element representing the target area; Figure 7 For example, the focus element of the second wizard step in the second page is the four-pointed star interface element representing the store; taking Figure 9(a) as an example, the focus element of the third wizard step in the third page is the rectangular interface element representing the defense equipment.

[0146] It can be understood that when the actual page completely matches the task wizard, the degree of matching between the element selector's metadata and the focused element in the page is 100%; when the interface elements in the actual page change, the degree of matching between the element selector's metadata and the focused element in the page is less than 100%; specifically, the degree of matching between the element selector's metadata and the focused element in the page can be calculated according to a preset algorithm.

[0147] In addition, it should be noted that the terminal may perform operation 301 while performing operations 101 to 106 .

[0148] In the embodiment of the present application, the user can analyze the task wizard according to the test data collected by the terminal, thereby implementing the test of the task wizard.

[0149] In the above embodiment, although the terminal can automatically collect test data, the user is still required to manually analyze the task wizard according to the test data, so there are still problems such as low test efficiency, long time consumption and poor accuracy. Based on this, in another embodiment of the automatic test task wizard provided in the embodiment of the present application, after the terminal collects the test data of the task wizard, the method further includes:

[0150] In operation 302, the terminal analyzes the task guide according to the test data and the preset test baseline to obtain an analysis result.

[0151] The test baseline is reference data for test data, which can be obtained during the preview process of the task wizard. For example, during the preview process of the task wizard, the relevant parameters of the task wizard can be recorded while running the preview file of the task wizard. If the preview process meets the user requirements, the relevant parameters can be saved and used as the test baseline.

[0152] Similar to the dimensions of the test data, the test baseline also includes the loading order of wizard steps, the running status of at least one wizard step among the M wizard steps, a screenshot of the page loaded with at least one wizard step among the M wizard steps, or the matching degree between the metadata of the element selector and the focused element in the page.

[0153] It should be noted that, assuming that the task wizard includes M wizard steps, in the test baseline, the loading order of the wizard steps may only include the loading order of X wizard steps, where X is a positive integer less than M; specifically, assuming that the task wizard includes a first wizard step, a second wizard step, a fourth wizard step and a third wizard step, where the fourth wizard step is a wizard step under abnormal circumstances; so when the task wizard runs normally, the first wizard step, the second wizard step and the third wizard step will be loaded in sequence, and the fourth wizard step will not be loaded, that is, in the test baseline, the loading order of the M wizard steps only includes the loading order of the first wizard step, the second wizard step and the third wizard step.

[0154] There are multiple methods for the terminal to analyze the task wizard according to the test data and the preset test baseline. The analysis methods may be different for test data of different dimensions.

[0155] For example, based on the test data including the loading order of wizard steps, the terminal can analyze the difference between the loading order of wizard steps in the test data and the loading order of wizard steps in the test baseline; based on the test data including the running status of at least one wizard step among M wizard steps, the terminal can analyze the difference between the running status of the wizard step in the test data and the running status of the wizard step in the test baseline; based on the test data including screenshots of pages loaded with at least one wizard step among M wizard steps, the terminal can analyze the difference between the screenshots in the test data and the screenshots in the test baseline based on the position and color of pixels in the screenshots; based on the test data including the degree of matching of metadata of element selectors and the focused element in the page, the terminal can calculate the difference between the degree of matching in the test data and the degree of matching in the test baseline.

[0156] For test data of different dimensions, the terminal uses different analysis methods to analyze the task wizard and obtain analysis results. The analysis results can be in the form of a test report. The specific content of the analysis results may include multiple, for example, it may include: the conclusion of test pass or test fail, wizard steps that do not exist in the test baseline but exist in the test data, wizard steps with abnormal running status, the difference in the degree of matching between the metadata of the element selector and the focused element in the page, and processing suggestions, etc.

[0157] For example, after a software product is updated, the focus element of a wizard step is deleted in the browser page, causing the test file to skip the wizard step when running, but does not affect the loading of other wizard steps. At this time, the processing suggestion in the analysis result can be: after confirming that the focus element of the wizard step does not exist in the browser page, delete the wizard step from the task wizard.

[0158] In an embodiment of the present application, the analysis result may indicate the degree of difference between the test data and a preset test baseline. For example, the analysis result may include the difference between the metadata of the element selector and the degree of matching of the focused element in the page, and the difference between the screenshot of the page loaded with the wizard steps. Based on the fact that the difference between the metadata of the element selector and the degree of matching of the focused element in the page is less than a first threshold, and the difference between the screenshot of the page loaded with the wizard steps is less than a second threshold, it can be considered that the degree of difference between the test data and the preset test baseline is less than the preset degree of difference.

[0159] In an embodiment of the present application, the terminal can perform intelligent analysis on the task wizard based on the test data and the test baseline to obtain analysis results with high test efficiency, short test time and high accuracy, and the analysis results can be displayed in the form of a test report for users to view.

[0160] In another embodiment of the method for testing a task wizard provided in an embodiment of the present application, after the terminal analyzes the task wizard according to the test data and the preset test baseline to obtain the analysis result, the method further includes:

[0161] Operation 303 : Based on the analysis result indicating that the difference between the test data and the preset test baseline is less than or equal to a preset difference, the terminal updates metadata of the test baseline and / or the task wizard according to the test data.

[0162] It is understandable that when the difference between the test data and the preset test baseline is less than or equal to the preset difference, the terminal may update the metadata of the test baseline and / or the task wizard according to the test data.

[0163] In addition, it should be noted that in the above embodiments,

[0164] For example, see Fig.11 , another embodiment schematic diagram of a second page loaded with a second wizard step in an embodiment of the present application. Assuming that the software product is updated, Figure 7 The four-pointed star interface element representing the store in the second page shown in FIG. 1 is changed into a six-pointed star interface element, that is, the second page loaded with the second wizard step is as shown in FIG. Fig.11 shown.

[0165] Then in the test data, the focus element of the second wizard step is a six-pointed star interface element, and in the test baseline, the focus element of the second wizard step is a four-pointed star interface element. Based on this, assuming that the analysis results indicate that the difference between the test data and the preset test baseline is less than the preset difference, the terminal can update the focus element of the second wizard step in the test baseline to a six-pointed star interface element according to the test data. Similarly, the terminal can also update the focus element of the second wizard step in the metadata of the task wizard to a six-pointed star interface element according to the test data.

[0166] It is understandable that in order to avoid confusion between the task wizard and the test baseline caused by the terminal automatically updating the metadata and the test baseline of the task wizard without the knowledge of the user, based on the analysis result indicating that the difference between the test data and the preset test baseline is less than or equal to the preset difference, the terminal updating the metadata of the test baseline and / or the task wizard according to the test data may include:

[0167] Based on the analysis result indicating that the difference between the test data and the preset test baseline is less than or equal to the preset difference, and receiving an update instruction input by the user, the terminal updates the metadata of the test baseline and / or the task wizard according to the test data.

[0168] In an embodiment of the present application, based on the analysis results indicating that the degree of difference between the test data and the preset test baseline is less than or equal to the preset degree of difference, the terminal can automatically update the metadata of the test baseline and / or the task wizard, saving manpower and improving efficiency; in addition, the terminal can also update the simulation interaction tutorial according to the analysis results, wherein the simulation interaction tutorial is generated by the terminal based on a screenshot of the page loaded with wizard steps.

[0169] In another embodiment of the method for testing a task wizard provided in an embodiment of the present application, after the terminal analyzes the task wizard according to the test data and the preset test baseline to obtain the analysis result, the method further includes:

[0170] Operation 304 : Based on the analysis result indicating that the difference between the test data and the test baseline is greater than a preset difference, the terminal generates warning information.

[0171] Among them, the warning information can be in various forms, which are not limited in the embodiments of the present application. For example, the warning information can include logos and sounds.

[0172] It is understandable that, based on the fact that the degree of difference between the test data and the test baseline is greater than the preset degree of difference, the metadata of the test baseline and the task wizard cannot be updated directly based on the test data. Therefore, the terminal generates an early warning message, which can instruct the user to find the cause of the difference based on the analysis results, so as to update the metadata of the test baseline and the task wizard as soon as possible so that the pages of the task wizard and the software product match.

[0173] See also Fig.12 , a schematic diagram of an embodiment of a terminal for testing a task wizard in an embodiment of the present application, such as Fig.12 As shown, an embodiment of the present application provides a terminal for generating a task wizard, wherein the task wizard includes M wizard steps, the M wizard steps include a first wizard step and a second wizard step, the second wizard step is the next wizard step of the first wizard step, and M is an integer greater than 1;

[0174] The terminal includes: a loading unit 401, which is used to load a first wizard step in a first page of a browser, the first wizard step indicates to perform a first operation on the first page, and the event object corresponding to the first operation is used to make the browser refresh a second page;

[0175] A generating unit 402, configured to generate an event object corresponding to the first operation according to the first wizard step, so as to enable the browser to refresh the second page;

[0176] The loading unit 401 is further configured to load the second wizard step in the second page.

[0177] The embodiment of the present application provides another embodiment of a terminal of a test task wizard. In this embodiment, M is an integer greater than 2, and the second page corresponds to the first URL; the terminal further includes:

[0178] A determining unit 403 is configured to determine, based on the exception in loading the second wizard step, a third wizard step corresponding to the second URL from the M wizard steps, wherein the third wizard step is after the second wizard step, and the second URL is one of N preset URLs and is different from the first URL, wherein N is a positive integer;

[0179] The loading unit 401 is further used to control the browser to load a third page according to the second URL;

[0180] The loading unit 401 is further configured to load the third wizard step in the third page.

[0181] The present application embodiment provides another embodiment of a terminal for testing a task wizard. In this embodiment, the terminal further includes:

[0182] A determining unit 403 is used to determine a third URL corresponding to the first wizard step from preset N URLs, where N is a positive integer;

[0183] The loading unit 401 is further configured to control the browser to load the first page according to the third URL.

[0184] The embodiment of the present application provides another embodiment of a terminal for testing a task wizard. In this embodiment, the terminal further includes: a collection unit 404, which is used to collect test data of the task wizard;

[0185] The test data includes one or more of the following: the loading order of wizard steps, the running status of at least one wizard step among the M wizard steps, a screenshot of a page loaded with at least one wizard step among the M wizard steps, or the matching degree between the metadata of an element selector and a focused element in the page.

[0186] The embodiment of the present application provides another embodiment of a terminal for testing a task wizard. In this embodiment, the terminal further includes: an analysis unit 405, which is used to analyze the task wizard according to the test data and a preset test baseline to obtain an analysis result.

[0187] An embodiment of the present application provides another embodiment of a terminal of a test task wizard. In this embodiment, the terminal also includes: an update unit 406, which is used to update the metadata of the test baseline and / or the task wizard according to the test data based on the analysis result indicating that the degree of difference between the test data and the preset test baseline is less than or equal to the preset degree of difference.

[0188] The embodiment of the present application provides another embodiment of a terminal of a test task wizard, in which the generation unit 402 is further used to generate warning information based on the analysis result indicating that the difference between the test data and the test baseline is greater than a preset difference.

[0189] See also Fig.13 In an embodiment of the present application, an embodiment of a terminal device may include one or more processors 501, a memory 502, and a communication interface 503.

[0190] The memory 502 may be a temporary storage or a permanent storage. Furthermore, the processor 501 may be configured to communicate with the memory 502 and execute a series of instruction operations in the memory 502 on the terminal device.

[0191] In this embodiment, the processor 501 may execute the aforementioned Fig.12 The operations performed by the terminal of the test task wizard in the illustrated embodiment will not be described in detail here.

[0192] In this embodiment, the specific functional module division in the processor 501 can be the same as the above Fig.12 The functional module division method of the modules described in is similar and will not be repeated here.

[0193] The embodiment of the present application also provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the aforementioned Fig.12 The operations performed by the terminal of the test task wizard in the illustrated embodiment will not be described in detail here.

[0194] The communication interface in the chip may be an input / output interface, a pin or a circuit.

[0195] The embodiment of the present application also provides a first implementation of a chip or a chip system, wherein the chip or chip system described above in the present application further includes at least one memory, and the at least one memory stores instructions. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or may be a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0196] An embodiment of the present application also provides a computer storage medium, which is used to store computer software instructions used for the terminal of the above-mentioned test task wizard, including a program designed for executing the terminal of the test task wizard.

[0197] The terminal of the test task wizard can be as described above Fig.12 The endpoint of the test task wizard described.

[0198] The present application also provides a computer program product, which includes computer software instructions, which can be loaded by a processor to implement the above Figure 2 , Figure 3 and Fig.10 The process of the method.

[0199] 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.

[0200] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0201] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0202] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

Claims

1. A method for testing a task wizard, characterized in that: The task wizard includes M wizard steps, the M wizard steps include a first wizard step and a second wizard step, the second wizard step is the next wizard step of the first wizard step, and M is an integer greater than 1; The method comprises: The terminal determines a third URL corresponding to the first wizard step from N preset resource locators URLs, where N is a positive integer, and the N preset URLs correspond to one wizard step respectively; The terminal controls the browser to load the first page according to the third URL; The terminal loads the first wizard step in a first page of a browser, the first wizard step instructing to perform a first operation on the first page, and the event object corresponding to the first operation is used to enable the browser to refresh a second page; The terminal generates an event object corresponding to the first operation according to the first wizard step, so that the browser refreshes the second page; The terminal loads the second wizard step in the second page.

2. The method according to claim 1, characterized in that M is an integer greater than 2, and the second page corresponds to the first URL; After the terminal loads the second wizard step in the second page, the method further includes: Based on the abnormality in loading the second wizard step, the terminal determines a third wizard step corresponding to the second URL from the M wizard steps, wherein the third wizard step is after the second wizard step, and the second URL is one of N preset URLs and is different from the first URL, wherein N is a positive integer; The terminal controls the browser to load a third page according to the second URL; The terminal loads the third wizard step in the third page.

3. The method according to any one of claims 1 to 2, characterized in that The method further comprises: The terminal collects test data of the task wizard; The test data includes one or more of the following: the loading order of the wizard steps, the running status of at least one wizard step among the M wizard steps, a screenshot of a page loaded with at least one wizard step among the M wizard steps, or the degree of match between the metadata of an element selector and a focused element in the page.

4. The method according to claim 3, characterized in that After the terminal collects the test data of the task wizard, the method further includes: The terminal analyzes the task wizard according to the test data and a preset test baseline to obtain an analysis result.

5. The method according to claim 4, characterized in that After the terminal analyzes the task wizard according to the test data and a preset test baseline to obtain an analysis result, the method further includes: Based on the analysis result indicating that the degree of difference between the test data and a preset test baseline is less than or equal to a preset degree of difference, the terminal updates metadata of the test baseline and / or the task wizard according to the test data.

6. The method according to claim 4, characterized in that After the terminal analyzes the task wizard according to the test data and a preset test baseline to obtain an analysis result, the method further includes: Based on the analysis result indicating that the difference between the test data and the test baseline is greater than a preset difference, the terminal generates warning information.

7. A terminal for testing a task wizard, characterized in that: The task wizard includes M wizard steps, the M wizard steps include a first wizard step and a second wizard step, the second wizard step is the next wizard step of the first wizard step, and M is an integer greater than 1; The terminal comprises: a determining unit, configured to determine a third URL corresponding to the first wizard step from among N preset resource locators URLs, wherein N is a positive integer, and the N preset URLs correspond to one wizard step respectively; A loading unit, configured to control the browser to load the first page according to the third URL; The loading unit is further used to load the first wizard step in a first page of the browser, the first wizard step indicates to perform a first operation on the first page, and the event object corresponding to the first operation is used to make the browser refresh a second page; a generating unit, configured to generate an event object corresponding to the first operation according to the first wizard step, so as to enable the browser to refresh the second page; The loading unit is further used to load the second wizard step in the second page.

8. A terminal device, characterized in that: include: At least one processor and a memory, the memory storing computer executable instructions that can be run on the processor, when the computer executable instructions are executed by the processor, the terminal device executes the method as described in any one of claims 1-6 above.

9. A computer-readable storage medium storing one or more computer-executable instructions, characterized in that: When the computer-executable instructions are executed by a processor, the processor performs the method as described in any one of claims 1 to 6 above.

Citation Information

Patent Citations

  • Method and device for providing help information

    CN102467365A

  • Method and device for testing user interfaces UI of applications

    CN105607993A