Adaptability Testing Method, Device, Storage Medium and Equipment for Banking Business Page
Through automated banking business page testing methods, page data and screen parameters are obtained, the test process is executed and the results are compared, and the problems of low efficiency and poor accuracy in the existing technology are solved, and efficient and accurate adaptability testing is achieved.
Patent Information
- Application Number
- CN202211248677.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-12
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2042-10-12
AI Technical Summary
The adaptability test of existing banking business pages is inefficient and the test results are inaccurate, so multiple test parameters and manual screenshot analysis are required.
Through automated means, obtain the data and screen parameters of the page to be tested, execute the page test process, record the consumption time and resource usage, take screenshots and compare preset standard pages, and determine the adaptability test results.
Improve the efficiency and accuracy of adaptability testing, reduce manual intervention, and improve the automation and accuracy of test results.
Smart Images

Figure CN115481045B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the financial field, and particularly to a method, device, storage medium and equipment for adaptability testing of banking business pages. Background Art
[0002] With the development of computer technology, the types of terminal devices are increasing. When banking services face the promotion of advertising pages, the promoted advertising pages also need to be adaptively displayed on various terminal devices. Among them, the advertising pages include credit card application optimization advertisements of banks, bank deposit interest advertisements, bank financial service advertisements, etc. Such advertising pages are generally presented in the form of web pages and are interactive web pages.
[0003] Before a bank publishes an advertising page, to avoid the situation that the advertising page cannot be displayed or has a poor display effect on different terminal devices, it is generally necessary to first perform adaptability testing on the advertising page. During the testing, multiple test parameters need to be manually set, and the advertising page is run based on each test parameter. Then, when the advertising page is displayed, it is saved by manually taking screenshots and setting screenshot names, so as to analyze the display effect based on the saved screenshots and then determine whether the adaptability testing passes. Obviously, this method will affect the efficiency of the adaptability testing of banking business pages. Summary of the Invention
[0004] The embodiments of this application provide a method, device, storage medium and equipment for adaptability testing of banking business pages, which can improve the efficiency of adaptability testing.
[0005] In a first aspect, the embodiments of this application provide a method for adaptability testing of banking business pages, and the method includes:
[0006] Obtain the page data of the banking business page to be tested that needs to perform page adaptability testing, and multiple screen parameters pre-configured for detecting page adaptability;
[0007] For each page window corresponding to a screen parameter, execute a page testing process based on the page data within each page window to obtain a test page corresponding to each screen parameter;
[0008] Obtain a preset standard page corresponding to each screen parameter, compare the test page corresponding to each screen parameter with the preset standard page, and obtain a comparison result corresponding to each screen parameter;
[0009] Determine the adaptability test result of the banking business page to be tested according to the comparison result corresponding to each screen parameter.
[0010] As an implementation, for each page window corresponding to a screen parameter, executing a page testing process based on the page data within each page window to obtain a test page corresponding to each screen parameter includes:
[0011] For each page window corresponding to the screen parameters, execute a page test process based on the page data within the page window, and record the elapsed time and resource consumption for executing the page test process.
[0012] When the page rendering event in the page test process is completed, take a screenshot of the rendered page to obtain a test page corresponding to each screen parameter.
[0013] As an implementation, determine the adaptability test result of the banking business page to be tested according to the comparison result corresponding to each screen parameter, including:
[0014] Determine the page test metrics corresponding to each screen parameter according to the elapsed time and resource consumption corresponding to each screen parameter.
[0015] Determine the adaptability test result of the banking business page to be tested according to the comparison result and page test metrics corresponding to each screen parameter.
[0016] As an implementation, the page test process includes a data download event, a page rendering event, and a page loading event. The elapsed time includes the download time for executing the data download event, the rendering time for executing the page rendering event, and the loading time for executing the page loading event. Determine the page test metrics corresponding to each screen parameter according to the elapsed time and resource consumption corresponding to each screen parameter, including:
[0017] Determine the first metric corresponding to each screen parameter according to the download time, rendering time, and loading time corresponding to each screen parameter.
[0018] Determine the second metric corresponding to each screen parameter according to the resource consumption corresponding to each screen parameter.
[0019] Determine the page test metrics for the corresponding screen parameter based on the first metric and the second metric.
[0020] As an implementation, after executing the page test process based on the page data within each page window corresponding to each screen parameter to obtain a test page corresponding to each screen parameter, the method further includes:
[0021] Obtain a preset naming rule and a preset storage path.
[0022] Name the test page according to the preset naming rule and store the named test page at the specified location according to the preset storage path.
[0023] As an implementation, before determining the adaptability test result of the banking business page to be tested according to the comparison result corresponding to each screen parameter, the method further includes:
[0024] If the page data contains the object to be tested, determine the click events for the object to be tested within each page window.
[0025] Execute the click events corresponding to each screen parameter and obtain the click results corresponding to each screen parameter.
[0026] Determine the adaptability test result of the banking business page to be tested according to the comparison results corresponding to each screen parameter, including:
[0027] Determine the adaptability test result of the banking business page to be tested according to the comparison results and click results corresponding to each screen parameter.
[0028] As an implementation, the screen parameter includes the screen width, and the banking business page to be tested includes a multimedia advertisement page in an interactive form.
[0029] In a second aspect, an embodiment of the present application further provides an adaptability test device for a banking business page, including:
[0030] A data acquisition module, configured to acquire the page data of the banking business page to be tested that needs to perform page adaptability testing, and a plurality of screen parameters pre-configured for detecting page adaptability.
[0031] A page testing module, configured to execute a page testing process within each page window based on the page data for each page window corresponding to a screen parameter, and obtain a test page corresponding to each screen parameter.
[0032] A comparison and analysis module, configured to obtain a preset standard page corresponding to each screen parameter, compare the test page corresponding to each screen parameter with the preset standard page, and obtain a comparison result corresponding to each screen parameter.
[0033] A result output module, configured to determine the adaptability test result of the banking business page to be tested according to the comparison results corresponding to each screen parameter.
[0034] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program runs on a computer, it causes the computer to execute the adaptability test method for a banking business page provided in any embodiment of the present application.
[0035] In a fourth aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory. The memory has a computer program, and the processor is configured to execute the adaptability test method for a banking business page provided in any embodiment of the present application by calling the computer program.
[0036] The technical solution provided by the embodiments of the present application executes a page test process in the page window corresponding to each of the multiple pre-configured screen parameters according to the page data of the banking business page to be tested, so as to obtain a test page corresponding to each screen parameter. Subsequently, by automatically loading the page windows corresponding to the multiple screen parameters to execute the page test process, the page test efficiency is improved. In addition, by comparing the preset standard page corresponding to each screen parameter with the tested test page, a comparison result is obtained, and then the adaptability test result of the banking business page to be tested is determined according to the comparison result. Compared with the prior art, it avoids the need for manual screenshotting and naming of the test page, improves the efficiency of the adaptability test, and can automatically analyze the differences between the preset standard page and the test page, improving the accuracy of the comparison result, and thus also improving the accuracy of the adaptability test result. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those skilled in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.
[0038] Figure 1 FIG. is a schematic diagram of the application scenario of the adaptability test method for the banking business page provided by the embodiments of the present application.
[0039] Figure 2 FIG. is a schematic flowchart of the adaptability test method for the banking business page provided by the embodiments of the present application.
[0040] Figure 3 FIG. is a schematic structural diagram of the adaptability test device for the banking business page provided by the embodiments of the present application.
[0041] Figure 4 FIG. is a schematic structural diagram of the electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the protection scope of the present application.
[0043] Reference to "embodiment" in this document means that the specific features, structures, or characteristics described in connection with the embodiment may be included in at least one embodiment of this application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.
[0044] An embodiment of this application provides a method for testing the adaptability of a banking business page. The execution subject of the method for testing the adaptability of the banking business page may be the device for testing the adaptability of the banking business page provided in the embodiment of this application, or an electronic device integrated with the device for testing the adaptability of the banking business page. Among them, the device for testing the adaptability of the banking business page may be implemented in a hardware or software manner, and the electronic device may be a smart phone, a tablet computer, a handheld computer, a desktop computer, or other devices.
[0045] To better understand the solution provided in the embodiment of this application, a corresponding application scenario is first provided for explanation. Please refer to Figure 1 , Figure 1 which is a schematic diagram of the application scenario of the method for testing the adaptability of the banking business page provided in the embodiment of this application. Taking the advertisement page of XX Bank's interest on the banking business page to be tested as an example, the advertisement page is an H5 page. When performing adaptability testing, it is to test whether it can be normally displayed on different terminal devices. Here, taking the mobile phone as the terminal to be tested, the H5 page can be displayed on the mobile phone to determine whether the H5 page can be adapted to the mobile phone screen. The adaptation standard is that it can be normally displayed on the mobile phone. If it cannot be normally displayed, it means it is not adapted to the mobile phone.
[0046] Please refer to Figure 2 , Figure 2 which is a schematic flowchart of the method for testing the adaptability of the banking business page provided in the embodiment of this application. The specific process of the method for testing the adaptability of the banking business page provided in the embodiment of this application can be as follows:
[0047] 101. Obtain the page data of the banking business page to be tested that needs to perform page adaptability testing, and multiple screen parameters pre-configured for detecting page adaptability.
[0048] Exemplarily, the banking business page to be tested that needs to perform page adaptability testing may be an interactive multimedia advertisement page, such as an H5 page. Among them, any page related to banking business can be called the banking business page to be tested in this embodiment. The carrier of such a banking business page to be tested may be a public account page, a browser page, a mini-program page, an application program page, or the like.
[0049] Among them, the page data of the banking business page to be tested includes page layout parameters, page elements, page text content, page picture content, etc.
[0050] Among them, the screen parameters include screen width, screen resolution, portrait / landscape display, etc. When configuring the screen parameters, the screen width, screen resolution, and portrait / landscape display included in the screen parameters can be set separately, or multiple of them can be set in combination. Among them, a relatively large number of screen widths and screen resolutions can be configured. For example, the screen width can be configured with reference to the screen widths of electronic devices such as mobile phones, tablets, TVs, computers, and foldable mobile phones.
[0051] 102. For each page window corresponding to a screen parameter, execute a page test process based on the page data within each page window to obtain a test page corresponding to each screen parameter.
[0052] In this embodiment, a script file is preset. By running this script file, a real browser can be run. After running the real browser, the corresponding page window can be loaded in the real browser according to the screen parameters, where the page window refers to a browser page.
[0053] Among them, the page test process sequentially includes: downloading page data, performing a rendering operation based on the page data to render the banking business page to be tested based on the real browser, and loading the rendered banking business page to be tested in the page window, etc.
[0054] Among them, each screen parameter corresponds to a page window, and at least one of the screen width, screen resolution, and portrait / landscape display of the page window is different. For each page window, after executing the page test process according to the page data, a corresponding test page can be obtained.
[0055] 103. Obtain a preset standard page corresponding to each screen parameter, compare the test page corresponding to each screen parameter with the preset standard page, and obtain a comparison result corresponding to each screen parameter.
[0056] Among them, each screen parameter corresponds to a preset standard page, and the preset standard page can indicate content such as page size, resolution of pictures and texts in the page, page layout, page text format, etc. By comparing the test page corresponding to each screen parameter with the preset standard page, at least one of the page size, resolution of pictures and texts in the page, page layout, page text format, etc. of the two can be compared to obtain a comparison result corresponding to each screen parameter.
[0057] The comparison result describes whether the test page corresponding to each screen parameter is the same as the preset standard page. Specifically, the comparison result describes whether at least one of the page size, the resolution of the graphics and text in the page, the page layout, the page text format, etc. in the test page and the preset standard page is the same, as well as the number of identical items or different items.
[0058] 104. Determine the adaptability test result of the banking business page to be tested according to the comparison result corresponding to each screen parameter.
[0059] Among them, the passing conditions for the adaptability test can be set in advance. For example, set the passing condition as: when the comparison results corresponding to all screen parameters indicate that the test page and the preset standard page are exactly the same, it is determined that the adaptability test passes. For another example, when the number of comparison results corresponding to the screen parameters indicating that the test page and the preset standard page are exactly the same exceeds a preset threshold, it is determined that the adaptability test passes. For yet another example, when the number of comparison results corresponding to the screen parameters indicating that the screen widths in the test page and the preset standard page are exactly the same exceeds a preset threshold, it is determined that the adaptability test passes. It can be understood that the comparison results of one or more important items (such as screen width) in the screen parameters can be used as the passing conditions, and the specific implementation manner can be set according to actual needs.
[0060] In specific implementation, the present application is not limited by the execution order of the described steps. Without conflict, some steps can also be performed in other orders or simultaneously.
[0061] In some embodiments, for the page window corresponding to each screen parameter, a page test process is executed based on the page data within each page window to obtain the test page corresponding to each screen parameter, including:
[0062] For the page window corresponding to each screen parameter, execute the page test process based on the page data within the page window, and record the elapsed time and resource occupancy of executing the page test process;
[0063] When the page rendering event in the page test process is completed, take a screenshot of the rendered page to obtain the test page corresponding to each screen parameter.
[0064] In this embodiment, for each link of the page test process, the elapsed time it consumes is recorded, and the elapsed time of executing a complete page test process is referred to as the elapsed time mentioned in this embodiment. Among them, when accumulating the elapsed time, the resource occupancy during the execution of the page test process is also recorded. Among them, the resource occupancy can be described by memory, or byte count, or power consumption. The specific implementation manner can be selected according to actual needs.
[0065] When the page rendering event is executed, a rendering operation can be performed according to the page data to render the banking business page to be tested based on a real browser. Among them, according to the page rendering event, the banking business page to be tested can be split into multiple current pages according to the screen size. For example, if the banking business page to be tested is a scrollable page, each time a sliding and switching operation is performed, a new page can be displayed. Therefore, each time a page rendering event is completed, a screenshot is taken of the page obtained through this page rendering event, and the screenshot can be called a test page. It can be understood that when the banking business page to be tested is scrollable, its corresponding test page can include multiple screenshots.
[0066] In some embodiments, determining the adaptability test result of the banking business page to be tested according to the comparison result corresponding to each screen parameter includes:
[0067] Determining the page test index corresponding to each screen parameter according to the elapsed time and resource occupancy corresponding to each screen parameter;
[0068] Determining the adaptability test result of the banking business page to be tested according to the comparison result and page test index corresponding to each screen parameter.
[0069] In this embodiment, the elapsed time and resource occupancy are added on the basis of the passing condition of the above adaptability test for comprehensive analysis.
[0070] Among them, the longer the elapsed time, the worse the adaptability test effect, and vice versa. The larger the resource occupancy, the worse the adaptability test effect, and vice versa. Therefore, in this embodiment, the corresponding page test index is first determined according to the elapsed time and resource occupancy corresponding to each screen parameter, and then the corresponding comparison result is combined to comprehensively determine the adaptability test result of the banking business page to be tested.
[0071] Exemplarily, the elapsed time and resource occupancy can be respectively numerically converted with reference to a preset time and a preset occupancy to make the numerical formats of the two unified, and then at least one of the sum, average value, product, etc. of the two is used as the page test index.
[0072] Alternatively, scores can be respectively given according to the elapsed time and resource occupancy, and the two are sorted according to the scores, and then the sorting result is used as the page test index.
[0073] Exemplarily, when determining the adaptability test result based on the comparison result corresponding to each screen parameter and the page test metrics, a comprehensive analysis of the two can be performed, or the importance levels of the two can be distinguished to determine the adaptability test result. For example, the adaptability test is determined to pass only when both the comparison result and the page test metrics indicate that the adaptability test passes. Among them, the comparison result indicating that the adaptability test passes means that when all or more than a preset threshold number of screen parameter corresponding test pages and all items or all important items of the preset standard page are the same, the comparison result indicates that the adaptability test passes. The page test metrics both indicating that the adaptability test passes means that when the elapsed time corresponding to all or more than a preset threshold number of screen parameters is less than the preset time and the resource occupancy is less than the preset occupancy, the comparison result indicates that the adaptability test passes.
[0074] For another example, if the importance level of the comparison result is set to be greater than that of the page test metrics, when the comparison result indicates that the adaptability test passes while the page test metrics indicate that the adaptability test fails, it can be analyzed whether the page test metrics are far from the expected metrics. If so, it is determined that the adaptability test fails; if not, it is determined that the adaptability test passes. Among them, the expected metrics indicate the ideal metrics for this screen parameter, and the ideal metrics are also determined based on the elapsed time and the resource occupancy.
[0075] In some embodiments, the page test process includes a data download event, a page rendering event, and a page loading event. The elapsed time includes the download time for executing the data download event, the rendering time for executing the page rendering event, and the loading time for executing the page loading event; according to the elapsed time and the resource occupancy corresponding to each screen parameter, the page test metrics corresponding to each screen parameter are determined, including:
[0076] According to the download time, the rendering time, and the loading time corresponding to each screen parameter, the first metric corresponding to each screen parameter is determined;
[0077] According to the resource occupancy corresponding to each screen parameter, the second metric corresponding to each screen parameter is determined;
[0078] Based on the first metric and the second metric, the page test metrics for the corresponding screen parameter are determined.
[0079] Among them, when the data download event is executed, it is used to download page data. When the page loading event is executed, it is used to load and render the to-be-tested banking business page in the page window.
[0080] In this embodiment, by analyzing the download time, the rendering time, and the loading time respectively to obtain a first metric, and by analyzing the resource occupancy to obtain a second metric, and then determining the page test metrics for the corresponding screen parameter based on the first metric and the second metric.
[0081] Among them, the first index can be the above-mentioned consumption duration, or by setting different weights for at least one of the download duration, rendering duration, and loading duration respectively, and then performing weighted processing on them to obtain the first index. Of course, the first index can also be any one of the average value, mean value, and median value of these three.
[0082] Among them, the evaluation criteria for the first index and the second index can be the same or different. When they are the same, the first index and the second index are not obtained by assigning weights. When they are different, weights can be assigned respectively to obtain the first index and the second index. In this embodiment, the first index and the second index can be represented in numerical form.
[0083] In some embodiments, for each page window corresponding to a screen parameter, after performing a page test process on the page data within each page window to obtain a test page corresponding to each screen parameter, the method further includes:
[0084] Obtain a preset naming rule and a preset storage path;
[0085] Name the test page according to the preset naming rule, and store the named test page at a specified location according to the preset storage path.
[0086] In this embodiment, by presetting the naming rule and storage path, after obtaining the test page, the test page can be automatically named, and its naming is regular, which is convenient for searching. When saving, it can also be stored at a specified location according to the preset storage path. Compared with the prior art, it is not necessary to manually name the test page, which can improve the naming efficiency on the premise of reducing naming errors.
[0087] Among them, the test page can be saved as a binary screenshot file. And it can be saved by calling the operating system interface method.
[0088] In some embodiments, before determining the adaptability test result of the to-be-tested banking business page according to the comparison result corresponding to each screen parameter, the method further includes:
[0089] If the page data contains the to-be-tested object, determine the click event for the to-be-tested object within each page window;
[0090] Execute the click event corresponding to each screen parameter, and obtain the click result corresponding to each screen parameter;
[0091] Determining the adaptability test result of the to-be-tested banking business page according to the comparison result corresponding to each screen parameter includes:
[0092] Determine the adaptability test result of the banking business page to be tested according to the comparison result and click result corresponding to each screen parameter.
[0093] Exemplarily, the object to be tested included in the page data may be a trigger button, such as a virtual operation button, a scroll bar, a function trigger button (such as playing audio, playing video, etc.). When executing a click event for the object to be tested, for example, click the trigger button to control the display or playback of the corresponding content according to the trigger button. For example, clicking the operation button will display a pop-up window, clicking the scroll bar will control the text in the text container to scroll and display, and clicking the audio playback button will control the audio playback, etc.
[0094] Among them, the click result corresponding to the click event includes whether the click event can be executed or whether it can be successfully executed. For example, when clicking the audio playback button, if the audio is played normally, the click result indicates that the click event can be executed or can be successfully executed. If the audio cannot be played, the click result indicates that the click event cannot be executed or cannot be successfully executed.
[0095] Exemplarily, the object to be tested may also be a link. The click event is to open the website page corresponding to the link, and the click result indicates the jump result of the website page. If it can jump normally, the click result indicates that the click event can be executed or can be successfully executed. If it cannot jump normally, the click result indicates that the click event cannot be executed or cannot be successfully executed.
[0096] In this embodiment, by simulating click events to automatically test the objects to be tested included in the page data, compared with the prior art where manual testing requires manual execution of click events, this method liberates human hands and greatly improves the efficiency of page adaptability testing.
[0097] As can be seen from the above, the adaptability testing method for banking business pages proposed in the embodiments of the present invention can avoid various drawbacks such as low efficiency and inaccurate test results caused by manual testing during the testing process, and can automatically simulate the execution of click events on interactive bank page test pages, improving the accuracy of test results. In addition, the adaptability test result of the banking business page to be tested is analyzed through the comparison result corresponding to each screen parameter, which is convenient for outputting a test analysis report, and targeted improvements can be made to the banking business page to be tested that does not meet the expected goals, greatly improving the efficiency of developing banking business pages.
[0098] In an embodiment, an adaptability testing device for banking business pages is also provided. Please refer to Figure 3 , Figure 3 which is a schematic structural diagram of the adaptability testing device 200 for banking business pages provided in the embodiments of the present application.
[0099] The adaptability testing device 200 for the banking business page is applied to an electronic device. The adaptability testing device 200 for the banking business page includes:
[0100] A data acquisition module 201, configured to acquire page data of a to-be-tested banking business page that needs to perform page adaptability testing, and a plurality of screen parameters pre-configured for detecting page adaptability;
[0101] A page testing module 202, configured to perform a page testing process based on the page data in each page window for each page window corresponding to a screen parameter, and obtain a tested page corresponding to each screen parameter;
[0102] A comparison and analysis module 203, configured to obtain a preset standard page corresponding to each screen parameter, compare the tested page corresponding to each screen parameter with the preset standard page, and obtain a comparison result corresponding to each screen parameter;
[0103] A result output module 204, configured to determine an adaptability test result of the to-be-tested banking business page according to the comparison result corresponding to each screen parameter.
[0104] In some embodiments, the page testing module 202 is further configured to:
[0105] For each page window corresponding to a screen parameter, perform a page testing process based on the page data in the page window, and record the elapsed time and resource occupancy for executing the page testing process;
[0106] When the page rendering event in the page testing process is completed, take a screenshot of the rendered page to obtain a tested page corresponding to each screen parameter.
[0107] In some embodiments, the result output module 204 is further configured to:
[0108] Determine a page testing index corresponding to each screen parameter according to the elapsed time and resource occupancy corresponding to each screen parameter;
[0109] Determine an adaptability test result of the to-be-tested banking business page according to the comparison result and page testing index corresponding to each screen parameter.
[0110] In some embodiments, the page testing process includes a data download event, a page rendering event, and a page loading event. The elapsed time includes the download time for executing the data download event, the rendering time for executing the page rendering event, and the loading time for executing the page loading event. The result output module 204 is further configured to:
[0111] Determine the first metric corresponding to each screen parameter according to the download duration, rendering duration, and loading duration corresponding to each screen parameter;
[0112] Determine the second metric corresponding to each screen parameter according to the resource occupancy corresponding to each screen parameter;
[0113] Based on the first metric and the second metric, determine the page test metric corresponding to the screen parameter.
[0114] In some embodiments, for each page window corresponding to each screen parameter, after performing a page test process on the page data within each page window to obtain a test page corresponding to each screen parameter, the comparison and analysis module 203 is further configured to:
[0115] Obtain a preset naming rule and a preset storage path;
[0116] Name the test page according to the preset naming rule, and store the named test page at a specified location according to the preset storage path.
[0117] In some embodiments, before determining the adaptability test result of the banking business page to be tested according to the comparison result corresponding to each screen parameter, the page test module 202 is further configured to:
[0118] If the page data contains the object to be tested, determine the click event for the object to be tested within each page window;
[0119] Execute the click event corresponding to each screen parameter, and obtain the click result corresponding to each screen parameter;
[0120] The result output module 204 is further configured to:
[0121] Determine the adaptability test result of the banking business page to be tested according to the comparison result and the click result corresponding to each screen parameter.
[0122] It should be noted that the adaptability test device 200 for the banking business page provided in the embodiments of the present application belongs to the same concept as the adaptability test method for the banking business page in the above embodiments. Through the adaptability test device 200 for the banking business page, any method provided in the embodiments of the adaptability test method for the banking business page can be implemented. The specific implementation process is detailed in the embodiments of the adaptability test method for the banking business page, and will not be elaborated here.
[0123] As can be seen from the above, the adaptability testing device for banking business pages proposed in the embodiments of the present application can avoid various drawbacks such as low efficiency and inaccurate test results brought by manual testing during the testing process, and can automatically simulate click events on the interactive bank page test page, improving the accuracy of the test results. In addition, the adaptability test results of the banking business pages to be tested are analyzed through the comparison results corresponding to each screen parameter, and then it is convenient to output a test analysis report, and targeted improvements can be made to the banking business pages to be tested that do not meet the expected goals, greatly improving the efficiency of developing banking business pages.
[0124] The embodiments of the present application also provide an electronic device, which can be a smart phone, a tablet computer, a handheld computer, a desktop computer and other devices. As Figure 4 shown, Figure 4 is a schematic structural diagram of the electronic device provided by the embodiments of the present application. The electronic device 300 includes a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, and a computer program stored on the memory 302 and executable on the processor. Among them, the processor 301 is electrically connected to the memory 302. Those skilled in the art can understand that the structure of the electronic device shown in the figure does not constitute a limitation on the electronic device, and it may include more or fewer components than shown in the figure, or combine some components, or arrange different components.
[0125] The processor 301 is the control center of the electronic device 300, connects various parts of the entire electronic device 300 through various interfaces and lines, and by running or loading software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, executes various functions of the electronic device 300 and processes data, so as to monitor the electronic device 300 as a whole.
[0126] In the embodiments of the present application, the processor 301 in the electronic device 300 will load the instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions:
[0127] Obtain the page data of the banking business pages to be tested that need to perform page adaptability testing, and a plurality of screen parameters pre-configured for detecting page adaptability;
[0128] For each page window corresponding to each screen parameter, execute a page test process based on the page data within each page window to obtain a test page corresponding to each screen parameter;
[0129] Obtain the preset standard page corresponding to each screen parameter, compare the test page corresponding to each screen parameter with the preset standard page, and obtain the comparison result corresponding to each screen parameter;
[0130] Determine the adaptability test result of the banking business page to be tested according to the comparison result corresponding to each screen parameter.
[0131] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated here.
[0132] In the above embodiments, the descriptions of the various embodiments have their own focuses. For the parts not elaborated in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0133] As can be seen from the above, the electronic device provided in this embodiment can avoid the various drawbacks such as low efficiency and inaccurate test results brought by manual testing during the testing process, and can automatically simulate and execute click events on the interactive banking page test page, improving the accuracy of the test results. In addition, the adaptability test result of the banking business page to be tested is analyzed through the comparison result corresponding to each screen parameter, which is convenient for outputting a test analysis report, and targeted improvements can be made to the banking business page to be tested that does not meet the expected goals, greatly improving the efficiency of developing the banking business page.
[0134] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0135] Therefore, the embodiments of the present application provide a computer-readable storage medium. Those of ordinary skill in the art can understand that all or part of the steps in implementing the methods of the above embodiments can be completed by a program instructing related hardware. The program can be stored in a computer-readable storage medium. When the program is executed, it includes the following steps:
[0136] Obtain the page data of the banking business page to be tested that needs to perform page adaptability testing, and multiple screen parameters pre-configured for detecting page adaptability;
[0137] For the page window corresponding to each screen parameter, execute a page test process based on the page data within each page window to obtain a test page corresponding to each screen parameter;
[0138] Obtain the preset standard page corresponding to each screen parameter, compare the test page corresponding to each screen parameter with the preset standard page, and obtain the comparison result corresponding to each screen parameter;
[0139] Determine the adaptability test result of the banking business page to be tested according to the comparison results corresponding to each screen parameter.
[0140] For the specific implementation of each of the above operations, reference may be made to the foregoing embodiments, which will not be elaborated herein.
[0141] The above storage medium may be ROM / RAM, magnetic disk, optical disk, etc. Since the computer program stored in the storage medium can execute the steps in any one of the adaptability test methods for banking business pages provided in the embodiments of the present application, the beneficial effects achievable by any one of the adaptability test methods for banking business pages provided in the embodiments of the present application can be realized. For details, refer to the foregoing embodiments, which will not be elaborated herein.
[0142] The above has introduced in detail an adaptability test method, device, medium and electronic device for a banking business page provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. An adaptability test method for a banking business page, characterized in that, The method includes: Obtaining page data of a to-be-tested banking business page that needs to undergo page adaptation testing, and multiple screen parameters pre-configured for detecting page adaptability. The page data includes at least one of page layout parameters, page elements, page text content, and page image content. The screen parameters include at least one of screen width, screen resolution, and portrait / landscape display; For each page window corresponding to the screen parameters, performing a page test process within the page window based on the page data, and recording the elapsed time and resource occupancy for executing the page test process; When the page rendering event in the page test process is completed, taking a screenshot of the rendered page to obtain a test page corresponding to each screen parameter; Obtaining a preset standard page corresponding to each screen parameter, comparing the test page corresponding to each screen parameter with the preset standard page, and obtaining a comparison result corresponding to each screen parameter; Determining a page test index corresponding to each screen parameter according to the elapsed time and resource occupancy corresponding to each screen parameter; Determining an adaptability test result of the to-be-tested banking business page according to the comparison result and page test index corresponding to each screen parameter.
2. The method according to claim 1, wherein The page test process includes a data download event, a page rendering event, and a page loading event. The elapsed time includes the download time for executing the data download event, the rendering time for executing the page rendering event, and the loading time for executing the page loading event; The determining a page test index corresponding to each screen parameter according to the elapsed time and resource occupancy corresponding to each screen parameter includes: Determining a first index corresponding to each screen parameter according to the download time, rendering time, and loading time corresponding to each screen parameter; Determining a second index corresponding to each screen parameter according to the resource occupancy corresponding to each screen parameter; Determining a page test index for the corresponding screen parameter according to the first index and the second index.
3. The method according to claim 1, characterized in that, After taking a screenshot of the rendered page when the page rendering event in the page test process is completed to obtain a test page corresponding to each screen parameter, the method further includes: Obtaining a preset naming rule and a preset storage path; Naming the test page according to the preset naming rule and storing the named test page at a specified location according to the preset storage path.
4. The method according to any one of claims 1 to 3, characterized in that, Before determining the adaptability test result of the to-be-tested banking business page according to the comparison result and page test index corresponding to each screen parameter, the method further includes: If the page data contains an object to be tested, determining a click event for the object to be tested within each page window; Executing the click event corresponding to each screen parameter and obtaining a click result corresponding to each screen parameter; The determining an adaptability test result of the to-be-tested banking business page according to the comparison result and page test index corresponding to each screen parameter includes: Determine the adaptability test result of the to-be-tested banking business page according to the comparison result and click result corresponding to each of the screen parameters.
5. The method according to claim 4, wherein The screen parameters include the screen width, and the to-be-tested banking business page includes a multimedia advertisement page in an interactive form.
6. An adaptability testing device for a banking business page, characterized in that It includes: A data acquisition module, configured to acquire the page data of the to-be-tested banking business page that needs to perform page adaptability testing, and multiple screen parameters pre-configured for detecting page adaptability. The page data includes at least one of page layout parameters, page elements, page text content, and page picture content. The screen parameters include at least one of screen width, screen resolution, and portrait / landscape display. A page testing module, configured to, for the page window corresponding to each of the screen parameters, execute a page testing process based on the page data within the page window, record the elapsed time and resource occupancy for executing the page testing process, and capture a screenshot of the rendered page when the page rendering event in the page testing process is completed, so as to obtain a test page corresponding to each of the screen parameters. A comparison and analysis module, configured to obtain a preset standard page corresponding to each of the screen parameters, compare the test page corresponding to each of the screen parameters with the preset standard page, and obtain a comparison result corresponding to each of the screen parameters. A result output module, configured to determine the page testing index corresponding to each of the screen parameters according to the elapsed time and resource occupancy corresponding to each of the screen parameters, and determine the adaptability test result of the to-be-tested banking business page according to the comparison result and page testing index corresponding to each of the screen parameters.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program runs on a computer, the computer is caused to execute the adaptability test method for the banking business page according to any one of claims 1 to 5.
8. An electronic device, comprising a processor and a memory, the memory storing a computer program, characterized in that, The processor is configured to execute the adaptability test method for the banking business page according to any one of claims 1 to 5 by calling the computer program.
Citation Information
Patent Citations
Page adaptation test method and device, electronic equipment and storage medium
CN110597584A
Page layout compatibility test method, device and apparatus and readable storage medium
CN112306838A