CN117130881A - Page performance testing method and device, computer equipment and storage medium - Google Patents

Page performance testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117130881A
CN117130881A CN202310991838.0A CN202310991838A CN117130881A CN 117130881 A CN117130881 A CN 117130881A CN 202310991838 A CN202310991838 A CN 202310991838A CN 117130881 A CN117130881 A CN 117130881A
Authority
CN
China
Prior art keywords
performance test
page
performance
tested
report
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310991838.0A
Other languages
Chinese (zh)
Inventor
陈冰
张洁慧
岑笑影
种肇睿
王陪
雷丰如
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310991838.0A priority Critical patent/CN117130881A/en
Publication of CN117130881A publication Critical patent/CN117130881A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/321Display for diagnostics, e.g. diagnostic result display, self-test user interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/865Monitoring of software
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a page performance test method, a page performance test device, a page performance test computer device, a page performance test storage medium and a page performance test program product. The method is applied to the financial field or other fields, and can be used for performance test of the financial platform page. The method comprises the following steps: displaying a performance test interface, and obtaining a page address of a page to be tested, which is input into the performance test interface; performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested; generating a performance test report of the page to be tested based on the performance test result of the page to be tested; and displaying a viewing inlet corresponding to the performance test report. The performance test efficiency can be improved by adopting the method.

Description

Page performance testing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to a page performance testing method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of internet technology, more and more enterprises provide services through online platforms, for example, banks may provide business handling services to clients through online platforms. In order to reduce problems of unresponsiveness of pages or longer loading time and the like so as to improve user experience, performance tests are required to be conducted on each page of the online platform before the online platform is online, and optimization is conducted according to performance test results.
In the conventional technology, a performance test script for a page is usually manually executed to obtain performance information of the page, and then the performance information is manually analyzed, so that performance problems of the page are located.
However, the method of manually executing the performance test script for the page to obtain the performance information of the page and then manually analyzing the performance information is long in time consumption, so that the performance test efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a page performance testing method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve performance testing efficiency.
In a first aspect, the present application provides a method for testing page performance. The method comprises the following steps: displaying a performance test interface, and obtaining a page address of a page to be tested, which is input into the performance test interface; performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested; generating a performance test report of the page to be tested based on the performance test result of the page to be tested; and displaying a viewing inlet corresponding to the performance test report.
In a second aspect, the application further provides a page performance testing device. The device comprises: the address acquisition module is used for displaying a performance test interface and acquiring a page address of a page to be tested, which is input into the performance test interface; the performance test module is used for performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested; the report generation module is used for generating a performance test report of the page to be tested based on the performance test result of the page to be tested; and the report display module is used for displaying a viewing inlet corresponding to the performance test report.
In some embodiments, the performance test result includes performance test results corresponding to a plurality of performance indicators, respectively; the report generation module is further configured to: aiming at each performance index, determining a preset processing method corresponding to the performance index under the condition that a performance test result corresponding to the performance index does not accord with the preset performance requirement of the performance index; generating a performance test report of the page to be tested based on the performance test results of the performance indexes and a preset processing method corresponding to the target performance indexes; the target performance index refers to a performance index of which the performance test result does not meet the corresponding preset performance requirement.
In some embodiments, the report generation module is further to: acquiring a performance report template; and combining the performance test results of the performance indexes and the preset processing methods corresponding to the target performance indexes with the performance report template to obtain a performance test report of the page to be tested.
In some embodiments, the address acquisition module is further to: obtaining page addresses of a plurality of pages to be tested, which are input into the performance test interface; the performance test module is further configured to: and carrying out performance test on the pages to be tested through a preset performance test program in parallel aiming at each page to be tested to obtain respective performance test results of each page to be tested.
In some embodiments, the report presentation module is further to: responding to triggering operation of a viewing inlet corresponding to the performance test report of the page to be tested, and displaying a report viewing interface; and displaying the performance test report of the page to be tested in the report viewing interface.
In some embodiments, the page performance testing apparatus further comprises a login verification module, the login verification module further configured to: and under the condition that the performance test platform is successfully logged in through the login interface, displaying the performance test interface of the performance test platform.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps in the page performance testing method when executing the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the page performance test method described above.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the page performance testing method described above.
The page performance testing method, the device, the computer equipment, the storage medium and the computer program product are used for obtaining the page address of the page to be tested, which is input into the performance testing interface, by displaying the performance testing interface; performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested; generating a performance test report of the page to be tested based on the performance test result of the page to be tested; and displaying a viewing entry corresponding to the performance test report, namely, a user can automatically execute the performance test and generate a corresponding performance test report only by inputting a page address into a performance test interface, so that the time consumption for manually executing the performance test is reduced, and the performance test efficiency is improved.
Drawings
FIG. 1 is an application environment diagram of a page performance test method in one embodiment;
FIG. 2 is a flow chart of a method of testing page performance in one embodiment;
FIG. 3 is an interactive schematic diagram of page performance testing in one embodiment;
FIG. 4 is a flow chart of a method for testing page performance in another embodiment;
FIG. 5 is a block diagram of a page performance testing apparatus in one embodiment;
FIG. 6 is an internal block diagram of a computer device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The page performance testing method provided by the embodiment of the application can be applied to an application environment shown in figure 1. The application environment includes a terminal 102 and a server 104, where the terminal 102 may be a terminal of a user, and the user may be an employee of an enterprise, such as an employee of a bank; the server 104 may be a server of an enterprise, such as a server of a bank. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
Specifically, the terminal 102 displays a performance test interface, and obtains a page address of a page to be tested input in the performance test interface; then, performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested; generating a performance test report of the page to be tested based on the performance test result of the page to be tested; and displaying a viewing entry corresponding to the performance test report. The terminal 102 may save the performance test report and may also send the performance test report to the server 104. The server 104 receives and saves the performance test report.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
Those skilled in the art will appreciate that the application environment shown in fig. 1 is only a partial scenario related to the present application, and does not constitute a limitation on the application environment of the present application.
In some embodiments, as shown in fig. 2, a method for testing page performance is provided, and the method is applied to the terminal 102 in fig. 1 for illustration, and includes the following steps:
step 202, displaying a performance test interface, and obtaining a page address of a page to be tested, which is input into the performance test interface.
The performance test interface is an interface in a performance test platform and is used for performing performance test on a page to be tested. In the development stage of the online platform, in order to reduce the problems of page loading failure, long response time and the like of the online platform, the performance test platform can be utilized to perform performance test on the page to be tested, so that the performance problem of the page to be tested is solved. The page to be tested can be a page of a financial platform in a development stage and can be an html5 page. The financial platform may be an online platform provided by any financial institution, which may be a bank. The page address is the url (Uniform Resource Locator ) link of the page.
Specifically, the terminal displays a performance test interface of the performance test platform, wherein the performance test interface comprises a page address input area and a test information input area, the page address input area is used for inputting at least one page address of a page to be tested, the test information input area is used for inputting test information, and the test information refers to record information related to performance test, such as report names, testers and the like. And the terminal responds to the test starting operation triggered by the performance test interface, acquires the input page address of the page to be tested from the page address input area, and acquires the test information from the test information input area. Wherein at least one means one or more, and a plurality means at least two.
And 204, performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested.
The performance test program is a pre-packaged program script, the performance test program is preset, and a plurality of acquisition instructions respectively corresponding to performance indexes are packaged in the performance test program, for example, the performance test program can be a performance script, and the performance is a function method for performance monitoring. The performance test result comprises performance test results of a plurality of performance indexes, and the performance test results can be index values of the performance indexes, wherein the index values can be a numerical value or a numerical range, and the performance indexes are preset indexes representing the performance of the page, and can be response time, memory occupation and the like.
Specifically, in the whole process from the terminal sending an access request to the server of the page to be tested to the terminal receiving response information returned by the server of the page to be tested, the terminal can perform performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested.
And 206, generating a performance test report of the page to be tested based on the performance test result of the page to be tested.
The performance test report is generated based on the performance test result of the page to be tested, and can be stored in a file format.
Specifically, the terminal can analyze the performance test result of the page to be tested to obtain a page performance analysis result, then acquire a performance report template, and fill the performance test result of the page to be tested and the page performance analysis result into corresponding areas in the performance report template respectively to obtain a performance test report of the page to be tested. The page performance analysis result is obtained by analyzing a performance test result, and can comprise performance problems existing in a page to be tested and suggestions for solving the performance problems. For example, the page performance analysis results may include: at least one of uncompressed picture, uncompressed js resource, uncompressed css resource, more than 3 times picture resolution, stretched picture, oversized js file, excessive interface request, unused buffer, 100 k-1M volume optimization of single app, GB level bandwidth optimization during conversion peak access and the like.
Step 208, displaying a viewing entry corresponding to the performance test report.
Wherein the viewing portal may be displayed in the form of a button.
Specifically, the terminal displays, in the performance test interface, a view entry corresponding to the performance test report of the page to be tested, for example, the view entry of the performance test report may be displayed in a vicinity of the page address input area. The terminal responds to the view operation triggered by the view entrance, displays a report view interface, and displays a performance test report in the report view interface.
In the page performance testing method, the page address of the page to be tested, which is input into the performance testing interface, is obtained by displaying the performance testing interface; performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested; generating a performance test report of the page to be tested based on the performance test result of the page to be tested; and displaying a viewing entry corresponding to the performance test report, namely, a user can automatically execute the performance test and generate the corresponding performance test report only by inputting a page address into the performance test interface, so that the time consumption for manually executing the performance test and analyzing the test result is reduced, and the performance test efficiency is improved.
In some embodiments, the performance test results include performance test results corresponding to a plurality of performance indicators, respectively; generating a performance test report of the page to be tested based on the performance test result of the page to be tested, including: aiming at each performance index, determining a preset processing method corresponding to the performance index under the condition that a performance test result corresponding to the performance index does not meet the preset performance requirement of the performance index; generating a performance test report of the page to be tested based on the performance test results of the performance indexes and a preset processing method corresponding to the target performance indexes; the target performance index refers to a performance index of which the performance test result does not meet the corresponding preset performance requirement.
The preset performance requirement is preset, for example, if the performance test result of the performance index is an index value, the preset performance requirement may be that the index value belongs to a preset range. The preset processing method is preset and is used for solving the performance problems corresponding to the performance indexes, and different preset processing methods corresponding to different performance problems.
Specifically, for each performance index, the terminal may determine whether the performance test result of the performance index meets the preset performance requirement, and if not, determine the performance index as a target performance index, and determine a performance problem corresponding to the target performance index according to the identification of the target performance index, for example: and (3) the picture A is not compressed, and then a preset processing method corresponding to the performance problem is determined from the preset processing method set, so that the preset processing method corresponding to the target performance index is obtained. And then the terminal can generate a performance test report of the page to be tested based on the performance test results corresponding to the performance indexes and a preset processing method corresponding to the target performance indexes.
In this embodiment, by determining, for each performance indicator, a preset processing method corresponding to the performance indicator when the performance test results of the performance indicators do not meet the preset performance requirement of the performance indicators, and generating a performance test report of the to-be-tested page based on the performance test results of the performance indicators of the to-be-tested page and the preset processing method corresponding to the target performance indicator, a user can directly obtain a solution to the performance problem from the performance test report, so as to reduce the time consumption of manual analysis, and thereby improve the efficiency of performance test.
In some embodiments, generating the performance test report of the page to be tested based on the performance test result of each performance index and the preset processing method corresponding to the target performance index includes: acquiring a performance report template; and combining the performance test results of the performance indexes, the preset processing method corresponding to the target performance indexes and the performance report template to obtain a performance test report of the page to be tested.
The performance report template is preset, and comprises a test information area, a performance index area and an analysis result area, wherein the test information area is used for filling test information, such as report names and testers; the performance index area is used for filling performance test results of a plurality of performance indexes of the page to be tested; the analysis result area is used for filling performance problems of the page to be tested and corresponding preset processing methods.
Specifically, the terminal acquires a pre-stored performance report template, fills the test information acquired before into a test information area of the performance report template, fills performance test results of each performance index into a performance index area of the performance report template, and fills a performance problem corresponding to a target performance index and a preset processing method into an analysis result area of the performance report template, thereby generating a performance test report of a page to be tested.
In this embodiment, by combining the performance test result of each performance index and the preset processing method corresponding to the target performance index with the performance report template, a performance test report of the page to be tested is quickly generated, and the efficiency of performance test is improved.
In some embodiments, obtaining the page address of the page to be tested input in the performance testing interface includes: obtaining respective page addresses of a plurality of pages to be tested, which are input in an orientation performance test interface; performing performance test on the page to be tested through a preset performance test program, wherein the performance test result of the page to be tested comprises the following steps: and carrying out performance test on the pages to be tested by a preset performance test program in parallel aiming at each page to be tested, so as to obtain respective performance test results of each page to be tested.
Specifically, since a plurality of pages to be tested can be input to the performance test page, for each page to be tested, the terminal can create performance test tasks corresponding to the page to be tested, and then can execute the performance test tasks in parallel, that is, the performance test tasks call a preset performance test program in parallel, and perform performance test on the interface to be tested corresponding to the performance test task, so as to obtain respective performance test results of each page to be tested. For example, as shown in fig. 3, for each page to be tested, the terminal may create a JOB corresponding to the page to be tested, that is, a performance test task, by using a Jenkins api, and call a preset performance test program, such as a performance script, through each JOB, so as to perform a performance test on the page to be tested.
In this embodiment, for each page to be tested, performance test is performed on the page to be tested through a preset performance test program in parallel, so as to obtain respective performance test results of each page to be tested, thereby implementing performance test on multiple pages to be tested simultaneously, and improving performance test efficiency.
In some embodiments, the page performance test method further comprises: responding to triggering operation of a viewing inlet corresponding to a performance test report of a page to be tested, and displaying a report viewing interface; and displaying the performance test report of the page to be tested in the report viewing interface.
Wherein the triggering operation of viewing the portal may be a click operation.
Specifically, the terminal displays a viewing entry corresponding to each performance test report of each page to be tested in the performance test interface, responds to the triggering operation of the viewing entry corresponding to the performance test report of any page to be tested, displays the report viewing interface, and displays the corresponding performance test report in the report viewing interface.
In the embodiment, the report viewing interface is displayed by responding to the triggering operation of the viewing entrance corresponding to the performance test report of the page to be tested, and the performance test report is intuitively and clearly displayed in the report viewing interface, so that relevant information is provided for solving the performance problem of the page.
In some embodiments, prior to exposing the performance test interface, exposing the performance test interface comprises: displaying a login interface of the performance test platform; and under the condition that the performance test platform is successfully logged in through the login interface, displaying the performance test interface of the performance test platform.
The performance test platform may be an online platform used by a financial institution to perform performance tests on the financial platform pages. The login interface is an interface for staff login of a financial institution.
Specifically, the terminal displays a login interface of the performance test platform, responds to login operation triggered by the login interface, and sends a login request carrying login information to the server. The server responds to the login request to verify the login information, and confirms whether the account information has performance test permission or not under the condition that the account information in the login information is consistent with any one of the candidate account information and the password information is correct, if so, the login verification result is verification pass, and if not, the login verification result is permission deficiency. And under the condition that the account information is inconsistent with any one of the plurality of candidate account information or the password information is wrong, the login verification result is verification failure. The terminal receives a login verification result returned by the server, and displays a performance test interface of the performance test platform under the condition that the login verification result is verification passing. Wherein the server may be a server of a financial institution. The login information is obtained from a login interface and includes account information and password information, wherein the account information may be account information of an EHR (Electronic Human Resource, electronic human resource management) system used by an employee to login a financial institution, such as a job number. The login verification result is generated by the server and can be any one of verification passing, verification failure and authority deficiency.
In the embodiment, the performance test interface of the performance test platform is displayed through the login interface of the performance test platform, and under the condition that the performance test platform is successfully logged in through the login interface, so that only a user who logs in successfully can use the performance test platform to perform performance test, the risk of information leakage is reduced, and the data security is improved.
In some embodiments, as shown in fig. 4, a method for testing page performance is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step 402, displaying a performance test interface, and obtaining page addresses of a plurality of pages to be tested, which are input into the performance test interface.
Step 404, performing performance test on the pages to be tested through a preset performance test program for each page to be tested, so as to obtain performance test results of a plurality of performance indexes of the pages to be tested.
Step 406, determining the performance index as a target performance index, and determining a performance problem and a preset processing method corresponding to the target performance index, aiming at each performance index, under the condition that the performance test result of the performance index does not meet the preset performance requirement of the performance index.
Step 408, a performance report template is obtained, and the performance test results of the performance indexes, the performance problems corresponding to the target performance indexes, the preset processing method and the performance report template are combined to generate a performance test report of the page to be tested.
Step 410, in the performance test interface, a viewing entry corresponding to each performance test report of each page to be tested is displayed.
Step 412, responding to the triggering operation of the view entry corresponding to the performance test report of any one of the pages to be tested, displaying a report view interface, and displaying the performance test report in the report view interface.
In this embodiment, since the page addresses of the multiple pages to be tested are input into the performance test interface, performance test is performed on the pages to be tested through a preset performance test program according to each page to be tested, so as to obtain performance test results of multiple performance indexes of the pages to be tested, and for each performance index, under the condition that the performance test results of the performance indexes do not meet the preset performance requirements of the performance indexes, the performance problem corresponding to the performance indexes and the preset processing method are determined, a performance report template is obtained, and the performance test results of the multiple performance indexes of the pages to be tested, the performance problem corresponding to at least one performance index and the preset processing method and the performance report template are combined to generate a performance test report of the pages to be tested, so that performance test is performed on the multiple pages simultaneously, and the performance test report is automatically generated, thereby improving the efficiency of the performance test of the pages.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a page performance testing device for realizing the above-mentioned page performance testing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the device for testing the performance of the page of the financial platform provided below may be referred to the limitation of the method for testing the performance of the page of the financial platform hereinabove, and will not be repeated here.
In some embodiments, as shown in fig. 5, there is provided a page performance testing apparatus, including: an address acquisition module 502, a performance test module 504, a report generation module 506, and a report presentation module 508, wherein:
the address obtaining module 502 is configured to display a performance test interface, and obtain a page address of a page to be tested input into the performance test interface.
And the performance test module 504 is configured to perform performance test on the page to be tested by using a preset performance test program, so as to obtain a performance test result of the page to be tested.
The report generating module 506 is configured to generate a performance test report of the page to be tested based on the performance test result of the page to be tested.
And the report display module 508 is used for displaying the viewing entrance corresponding to the performance test report.
In some embodiments, the performance test result includes performance test results corresponding to a plurality of performance indicators, respectively; the report generation module 506 is further configured to: aiming at each performance index, determining a preset processing method corresponding to the performance index under the condition that a performance test result corresponding to the performance index does not accord with the preset performance requirement of the performance index; generating a performance test report of the page to be tested based on the performance test results of the performance indexes and a preset processing method corresponding to the target performance indexes; the target performance index refers to a performance index of which the performance test result does not meet the corresponding preset performance requirement.
In some embodiments, the report generation module 506 is further to: acquiring a performance report template; and combining the performance test results of the performance indexes and the preset processing methods corresponding to the target performance indexes with the performance report template to obtain a performance test report of the page to be tested.
In some embodiments, the address acquisition module 502 is further configured to: obtaining page addresses of a plurality of pages to be tested, which are input into the performance test interface; the performance test module is further configured to: and carrying out performance test on the pages to be tested through a preset performance test program in parallel aiming at each page to be tested to obtain respective performance test results of each page to be tested.
In some embodiments, the report presentation module 508 is further to: responding to triggering operation of a viewing inlet corresponding to the performance test report of the page to be tested, and displaying a report viewing interface; and displaying the performance test report of the page to be tested in the report viewing interface.
In some embodiments, the page performance testing apparatus further comprises a login verification module, the login verification module further configured to: and under the condition that the performance test platform is successfully logged in through the login interface, displaying the performance test interface of the performance test platform.
The above-described respective modules in the page performance test apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing relevant data related to the page performance test method. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of page performance testing.
In some embodiments, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a method of page performance testing. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the structures shown in fig. 6 and 7 are block diagrams of only portions of structures associated with the present inventive arrangements and are not limiting of the computer device to which the present inventive arrangements are applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, a computer device is provided that includes a memory having a computer program stored therein and a processor that when executing the computer program performs the steps of the page performance test method described above.
In some embodiments, a computer readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the page performance test method described above.
In some embodiments, a computer program product is provided comprising a computer program which, when executed by a processor, implements the steps of the page performance testing method described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for testing page performance, the method comprising:
displaying a performance test interface, and obtaining a page address of a page to be tested, which is input into the performance test interface;
performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested;
generating a performance test report of the page to be tested based on the performance test result of the page to be tested;
and displaying a viewing inlet corresponding to the performance test report.
2. The method of claim 1, wherein the performance test results comprise performance test results corresponding to a plurality of performance indicators, respectively;
the generating the performance test report of the page to be tested based on the performance test result of the page to be tested includes:
aiming at each performance index, determining a preset processing method corresponding to the performance index under the condition that a performance test result corresponding to the performance index does not accord with the preset performance requirement of the performance index;
generating a performance test report of the page to be tested based on the performance test results of the performance indexes and a preset processing method corresponding to the target performance indexes; the target performance index refers to a performance index of which the performance test result does not meet the corresponding preset performance requirement.
3. The method of claim 2, wherein the generating the performance test report of the page to be tested based on the performance test result of each performance indicator and the preset processing method corresponding to the target performance indicator comprises:
acquiring a performance report template;
and combining the performance test results of the performance indexes and the preset processing methods corresponding to the target performance indexes with the performance report template to obtain a performance test report of the page to be tested.
4. The method of claim 1, wherein the obtaining the page address of the page to be tested entered into the performance test interface comprises:
obtaining page addresses of a plurality of pages to be tested, which are input into the performance test interface;
performing performance test on the page to be tested through a preset performance test program, and obtaining a performance test result of the page to be tested includes:
and carrying out performance test on the pages to be tested through a preset performance test program in parallel aiming at each page to be tested, so as to obtain respective performance test results of the pages to be tested.
5. The method according to claim 1, wherein the method further comprises:
responding to triggering operation of a viewing inlet corresponding to the performance test report of the page to be tested, and displaying a report viewing interface;
and displaying the performance test report of the page to be tested in the report viewing interface.
6. The method of claim 1, wherein the presenting a performance test interface comprises:
displaying a login interface of the performance test platform;
and under the condition that the performance test platform is successfully logged in through the login interface, displaying the performance test interface of the performance test platform.
7. A page performance testing apparatus, the apparatus comprising:
the address acquisition module is used for displaying a performance test interface and acquiring a page address of a page to be tested, which is input into the performance test interface;
the performance test module is used for performing performance test on the page to be tested through a preset performance test program to obtain a performance test result of the page to be tested;
the report generation module is used for generating a performance test report of the page to be tested based on the performance test result of the page to be tested;
and the report display module is used for displaying a viewing inlet corresponding to the performance test report.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310991838.0A 2023-08-08 2023-08-08 Page performance testing method and device, computer equipment and storage medium Pending CN117130881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310991838.0A CN117130881A (en) 2023-08-08 2023-08-08 Page performance testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310991838.0A CN117130881A (en) 2023-08-08 2023-08-08 Page performance testing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117130881A true CN117130881A (en) 2023-11-28

Family

ID=88855796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310991838.0A Pending CN117130881A (en) 2023-08-08 2023-08-08 Page performance testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117130881A (en)

Similar Documents

Publication Publication Date Title
CN108875061A (en) A kind of conformance test method and relevant apparatus of distributed file system
US20180308568A1 (en) Method, apparatus, terminal and storage medium of data displaying
CN114356631A (en) Fault positioning method and device, computer equipment and storage medium
CN114925153A (en) Service-based geographic information data quality detection method, device and equipment
CN117130881A (en) Page performance testing method and device, computer equipment and storage medium
CN114327377B (en) Method and device for generating demand tracking matrix, computer equipment and storage medium
CN118035095A (en) Method and device for testing business processing object, computer equipment and storage medium
CN117331812A (en) Service code verification method, device, computer equipment, storage medium and product
CN117435651A (en) Test data processing method, device, computer equipment and storage medium
CN117319022A (en) Vulnerability detection method, vulnerability detection device, computer equipment and storage medium
CN116467208A (en) Interface automatic test method and device and computer equipment
CN116011029A (en) Information verification method, information verification device, computer equipment and storage medium
CN116680750A (en) Interactive data processing method and device and computer equipment
CN117609098A (en) Application testing method and device and computer equipment
CN116956305A (en) Evaluation method, apparatus, device, medium and program product for penetration test
CN116049009A (en) Test method, test device, computer equipment and computer readable storage medium
CN117522296A (en) Auditing flow generation method, auditing flow generation device, computer equipment and storage medium
CN117494105A (en) Software security testing method, device, computer equipment, storage medium and product
CN116661921A (en) Method, device and equipment for determining information display page of financial service system
CN117555521A (en) Business requirement development method, device, computer equipment and storage medium
CN116860576A (en) Method, device, computer equipment and storage medium for recording operation log
CN113568838A (en) Test data generation method, device, equipment, storage medium and program product
CN117473130A (en) Service processing method, device, equipment, medium and program product
CN117314036A (en) Work order distribution method, apparatus, device, storage medium and program product
CN114187089A (en) Business process checking method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination