CN112965914A - Application page testing method, system, device and medium - Google Patents

Application page testing method, system, device and medium Download PDF

Info

Publication number
CN112965914A
CN112965914A CN202110341476.1A CN202110341476A CN112965914A CN 112965914 A CN112965914 A CN 112965914A CN 202110341476 A CN202110341476 A CN 202110341476A CN 112965914 A CN112965914 A CN 112965914A
Authority
CN
China
Prior art keywords
performance data
application page
test
page
performance
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
CN202110341476.1A
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.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai Co 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 Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN202110341476.1A priority Critical patent/CN112965914A/en
Publication of CN112965914A publication Critical patent/CN112965914A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses an application page testing method, system, device and medium. The application page testing method comprises the following steps: responding to the test command, and generating a test case corresponding to the application page; describing at least one performance test service scene according to the test case; running an application page in at least one performance test service scene and collecting performance data; and calculating a test result according to the performance data and generating a performance test chart. The test case is generated according to the test requirement, so that the service scene coverage of the test method in the embodiment is wide, the coverage rate is high, the performance problem is exposed in advance through the continuous integration of the performance test, the test requirement of the application page is met, meanwhile, the source code of the application page is not invaded, the source code structure is not influenced, the coding complexity is not increased, the access cost is low, the performance data is further displayed in a visual mode, the analysis is convenient, and the performance optimization efficiency is greatly improved.

Description

Application page testing method, system, device and medium
Technical Field
The invention relates to the technical field of testing, in particular to a method, a system, equipment and a medium for testing an application page.
Background
The page performance is an important ring of page quality, and the page conversion rate is influenced by the page experience. The page performance will change with the iteration, and is easily affected by various factors such as code quality and network environment, so the page performance needs to be tested. The computer end page and the mobile phone end H5 page in the market at present can use a Lighthouse tool to test and analyze the page performance, the Lighthouse tool is an automatic tool for the Google company to open sources, a certain scene is simulated by a series of tools and rules to operate a page to be audited, and performance data is extracted from the page to obtain a test result.
Disclosure of Invention
The invention provides an application page testing method, system, equipment and medium, aiming at overcoming the defect that the prior art can not test an application page.
The invention solves the technical problems through the following technical scheme:
the invention provides an application page testing method, which comprises the following steps:
responding to the test command, and generating a test case corresponding to the application page;
describing at least one performance test service scene according to the test case;
running the application page in at least one performance test service scene and collecting performance data;
and calculating a test result according to the performance data and generating a performance test chart.
Preferably, the step of collecting performance data comprises:
before the application page is loaded, according to an uploading command, uploading an original code file of the application page through an HTTP (Hypertext Transfer Protocol) request;
implanting an acquisition code into the original code file to obtain a replacement code file;
according to the acquisition command, the application acquires the replacement code file through an HTTP request;
after the application page is loaded, executing the acquisition code to acquire the performance data, simultaneously generating an Identity Document (ID) and uploading the ID and the performance data to a database through a buried point, wherein the ID corresponds to the performance data one by one;
the performance data acquisition comprises at least one of acquisition of rendering duration, timing sequence and times of each component in the application page and acquisition of at least one of request duration, timing sequence and times of each request in the application page.
Preferably, the step of calculating the test result according to the performance data comprises:
acquiring the corresponding performance data in the database according to the session ID;
preprocessing the acquired performance data to obtain page loading duration;
comparing the current page loading time length with the preorder page loading time length, if the current page loading time length is less than or equal to the preorder page loading time length, the performance test is passed, and if the current page loading time length is greater than the preorder page loading time length, the performance test is not passed;
and generating a performance test chart according to the performance data after the test is passed.
Preferably, the step of embedding the acquisition code into the original code file to obtain the replacement code file comprises:
performing lexical analysis on an original code file to analyze a code character string in the original code file into a mark stream;
converting the token stream into a syntax tree form through syntax analysis;
and modifying the nodes of the syntax tree of the original code file and implanting the acquisition codes.
Preferably, the step of preprocessing the acquired performance data to obtain the page loading duration includes:
verifying the performance data based on at least one of data type verification and data time sequence verification;
formatting the performance data into a Trace Event Format (Trace Event Format) Format;
and determining the difference between the page loading completion time and the page loading start time as the page loading duration.
The invention also provides an application page testing system, which comprises:
the generating module is used for responding to the test command and generating a test case corresponding to the application page;
the description module is used for describing at least one performance test service scene according to the test case;
the acquisition module is used for operating the application page in at least one performance test service scene and acquiring performance data;
and the calculation module is used for calculating a test result according to the performance data and generating a performance test chart.
Preferably, the acquisition module comprises:
the uploading unit is used for uploading the original code file of the application page through an HTTP request according to an uploading command before the application page is loaded;
the implantation unit is used for implanting acquisition codes into the original code file to obtain a replacement code file;
the replacing unit is used for acquiring the replacing code file by applying an HTTP request according to the acquisition command;
the execution unit is used for executing the acquisition code to acquire the performance data after the application page is loaded, generating a session ID at the same time, uploading the session ID and the performance data to a database through a buried point, wherein the session ID corresponds to the performance data one by one;
the performance data acquisition comprises at least one of acquisition of rendering duration, timing sequence and times of each component in the application page and acquisition of at least one of request duration, timing sequence and times of each request in the application page.
Preferably, the calculation module comprises:
the acquisition unit is used for acquiring the corresponding performance data in the database according to the session ID;
the preprocessing unit is used for preprocessing the acquired performance data to obtain page loading duration;
the comparison unit is used for comparing the current page loading time length with the preamble page loading time length, if the current page loading time length is less than or equal to the preamble page loading time length, the performance test is passed, and if the current page loading time length is greater than the preamble page loading time length, the performance test is not passed;
and the generating unit is used for generating a performance test chart according to the performance data after the test is passed.
Preferably, the implant unit comprises:
the lexical analysis subunit is used for carrying out lexical analysis on the original code file so as to analyze the code character strings in the original code file into a mark stream; and the number of the first and second groups,
a syntax analysis subunit, configured to convert the token stream into a syntax tree form through syntax analysis;
and the modifying subunit is used for modifying the nodes of the syntax tree of the original code file and implanting the acquisition codes.
Preferably, the preprocessing unit includes:
the checking subunit is used for checking the performance data based on at least one of data type checking and data time sequence checking;
the formatting subunit is used for formatting the performance data into a Trace Event Format Format;
and the determining subunit is configured to determine a difference between the page loading completion time and the page loading start time as the page loading duration.
The invention also provides electronic equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor can realize the application page testing method of any combination when executing the computer program.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the application page testing method in any combination as described above.
The positive progress effects of the invention are as follows: the test case corresponding to the application page is generated according to the test requirement, at least one performance test service scene is described according to the test case, the application page is operated in the at least one performance test service scene, performance data are collected, the test result is calculated and the performance test chart is generated based on the performance data, and the test case is generated according to the test requirement, so that the test method in the embodiment has wide service scene coverage and high coverage rate, the performance problem is exposed in advance through continuous integration of performance test, the test requirement of the application page is met, meanwhile, the source code of the application page is not invaded, the source code structure is not influenced, the coding complexity is not increased, the access cost is low, the performance data is displayed in a visualized mode, the analysis is convenient, and the performance optimization efficiency is greatly improved.
Drawings
Fig. 1 is a flowchart of an application page testing method according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of an application page testing method according to embodiment 2 of the present invention.
Fig. 3 is a schematic structural diagram of an application page test system according to embodiment 3 of the present invention.
Fig. 4 is a schematic structural diagram of an application page test system according to embodiment 4 of the present invention.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to embodiment 5 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The embodiment provides an application page testing method, which is mainly used for performing performance testing and analysis on a page of an application program, and as shown in fig. 1, the application page testing method includes the following steps:
s101, responding to a test command, and generating a test case corresponding to an application page;
s102, describing at least one performance test service scene according to a test case;
s103, running an application page in at least one performance test service scene and collecting performance data;
and S104, calculating a test result according to the performance data and generating a performance test chart.
According to the application page testing method in the embodiment, the test case corresponding to the application page is generated according to the testing requirement, at least one performance testing service scene is described, the application page is operated in the at least one performance testing service scene, performance data is collected, the testing result is calculated and the performance testing graph is generated based on the performance data, and the test case is generated according to the testing requirement.
Example 2
As shown in fig. 2, the application page testing method of the present embodiment is a further improvement of embodiment 1, and specifically:
in this embodiment, step S103 mainly includes:
s10301, before the application page is loaded, uploading an original code file of the application page through an HTTP request according to an uploading command; wherein the original code comprises at least one of a react-native (a cross-platform mobile application development framework) and a request method library.
S10302, implanting an acquisition code into the original code file to obtain a replacement code file;
s10303, according to the acquisition command, the application acquires the replacement code file through the HTTP request;
s10304, after the application page is loaded, collecting codes and collecting performance data, generating a session ID, and uploading the session ID and the performance data to a database through a buried point, wherein the session ID corresponds to the performance data one by one.
The performance data collection comprises at least one of collection of rendering duration, time sequence and times of each component in the application page and collection of at least one of request duration, time sequence and times of each request in the application page.
In a specific example, after the application page is loaded, a session ID is generated, the session ID is taken as a unique identifier of the performance data and is taken in as a parameter when the embedded point is uploaded, and then a specified performance test result and a performance graph can be obtained through the session ID. The generated rendering and request performance data are recorded and uploaded to the server through the buried point after the completion.
In the present embodiment, step S10302 mainly includes:
s103021, performing lexical analysis on the original code file to analyze the code character strings in the original code file into a mark stream;
for example, "var a ═ 2", will be parsed into token streams of "var", "a", "═ 2".
S103022, converting the token stream into a syntax tree form through syntax analysis;
and S103023, modifying the grammar tree nodes of the original code file and implanting acquisition codes.
In a specific example, syntax tree nodes of a react-native core rendering method are modified, and acquisition codes are implanted; and modifying the syntax tree nodes of the request method library and implanting acquisition codes.
In this embodiment, step S104 mainly includes:
s10401, acquiring corresponding performance data in a database according to the session ID;
in a specific example, a performance testing session ID to be checked is input through an interactive interface of the performance testing platform, and all corresponding performance data is searched for in a database.
S10402, preprocessing the acquired performance data to obtain page loading duration;
in this embodiment, the step S1042 mainly includes:
s104021, verifying performance data based on at least one of data type verification and data time sequence verification;
s104022, formatting the performance data into a Trace Event Format Format;
s104023, determining a difference value between the page loading completion time and the page loading start time as a page loading duration; specifically, the method for calculating the page loading duration through the performance data comprises the following steps: page load completion time-page load start time.
S10403, comparing the current page loading time length with the preorder page loading time length, if the current page loading time length is less than or equal to the preorder page loading time length, the performance test is passed, and if the current page loading time length is greater than the preorder page loading time length, the performance test is not passed;
and S10404, generating a performance test chart according to the performance data after the test is passed. Specifically, a performance flame diagram page is rendered by using performance data in a trace event format, so that a user can observe component rendering, service request duration, time sequence and times during the running period of the page through the flame diagram, and can also perform zooming and moving operations on an interface to observe rendering performance and service performance under different time periods and time granularities.
The application page testing method in the embodiment generates the test case according to the testing requirement, so that the service scene coverage of the testing method in the embodiment is wide, the coverage rate is high, meanwhile, the application page source code is not invaded, the source code structure is not influenced, the coding complexity is not increased, the access cost is low, the performance data is further displayed visually, the analysis is convenient, and the performance optimization efficiency is greatly improved.
Example 3
The embodiment provides an application page testing system, which is mainly used for performing performance testing and analysis on a page of an application program, and as shown in fig. 3, the application page testing system includes:
the generating module 1 is used for responding to the test command and generating a test case corresponding to the application page;
the description module 2 is used for describing at least one performance test service scene according to the test case;
the acquisition module 4 is used for running an application page in at least one performance test service scene and acquiring performance data;
and the calculating module 5 is used for calculating the test result according to the performance data and generating a performance test chart.
The application page testing system in the embodiment generates the test case corresponding to the application page according to the testing requirement, describes at least one performance testing service scene according to the test case, further runs the application page in the at least one performance testing service scene, collects performance data, calculates a testing result and generates a performance testing chart based on the performance data, and generates the test case according to the testing requirement, so that the service scene coverage of the testing method in the embodiment is wide, the coverage rate is high, the performance problem is exposed in advance through the continuous integration of performance testing, the testing requirement of the application page is met, and the testing efficiency of the application page is improved.
Example 4
As shown in fig. 4, the application page testing system of the present embodiment is a further improvement of embodiment 3, specifically:
in this embodiment, the acquisition module 4 mainly includes:
an uploading unit 41, configured to upload, according to an upload command, an original code file of an application page through an HTTP request before the application page is loaded;
an implanting unit 42, configured to implant an acquisition code into the original code file to obtain a replacement code file;
a replacement unit 43 for acquiring a replacement code file by an HTTP request according to the acquisition command;
the execution unit 44 is configured to execute collecting codes to collect performance data and generate a session ID after the application page is loaded, and upload the session ID and the performance data to the database through a buried point, where the session ID corresponds to the performance data one to one;
the performance data collection comprises at least one of collection of rendering duration, time sequence and times of each component in the application page and collection of at least one of request duration, time sequence and times of each request in the application page.
In a specific example, after the application page is loaded, a session ID is generated, the session ID is taken as a unique identifier of the performance data and is taken in as a parameter when the embedded point is uploaded, and then a specified performance test result and a performance graph can be obtained through the session ID. The generated rendering and request performance data are recorded and uploaded to the server through the buried point after the completion.
In the present embodiment, the implant unit 42 mainly includes:
a lexical analysis subunit 421, configured to perform lexical analysis on the original code file to analyze the code character strings in the original code file into a token stream; for example, "var a ═ 2", will be parsed into token streams of "var", "a", "═ 2".
A syntax analysis subunit 422 configured to convert the token stream into a syntax tree form through syntax analysis;
and a modifying subunit 423 for modifying the syntax tree nodes of the original code file and implanting the collected code.
In a specific example, the modifying subunit 423 modifies syntax tree nodes of the react-native core rendering method, and embeds the acquisition codes; the modify subunit 423 modifies the syntax tree nodes of the request method library and implants the acquisition code.
In this embodiment, the calculation module 5 includes:
an obtaining unit 51, configured to obtain corresponding performance data in a database according to the session ID;
in a specific example, a performance testing session ID to be checked is input through an interactive interface of the performance testing platform, and all corresponding performance data is searched for in a database.
A preprocessing unit 52, configured to preprocess the acquired performance data to obtain a page loading duration;
in the present embodiment, the preprocessing unit 52 includes:
the checking subunit 521 is configured to check the performance data based on at least one of data type checking and data timing checking;
a formatting subunit 522, configured to Format the performance data into a Trace Event Format;
a determining subunit 523, configured to determine a difference between the page loading completion time and the page loading start time as a page loading duration; specifically, the method for calculating the page loading duration through the performance data comprises the following steps: page load completion time-page load start time.
A comparing unit 53, configured to compare the current page loading duration with the preamble page loading duration, where the performance test is passed if the current page loading duration is less than or equal to the preamble page loading duration, and the performance test is not passed if the current page loading duration is greater than the preamble page loading duration;
and the generating unit 54 is used for generating a performance test chart according to the performance data after the test passes. Specifically, a performance flame diagram page is rendered by using performance data in a trace event format, so that a user can observe component rendering, service request duration, time sequence and times during the running period of the page through the flame diagram, and can also perform zooming and moving operations on an interface to observe rendering performance and service performance under different time periods and time granularities.
The application page test system in the embodiment generates the test case according to the test requirement, so that the test method in the embodiment has wide service scene coverage and high coverage rate, simultaneously has no invasion to the source code of the application page, does not influence the structure of the source code, does not increase the coding complexity, has low access cost, further visually displays the performance data, is convenient to analyze, and greatly improves the performance optimization efficiency.
Example 5
Fig. 5 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention. The electronic equipment comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, and the processor executes the program to realize the application page testing method of the embodiment 1 or the embodiment 2. The electronic device 30 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 5, the electronic device 30 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of the electronic device 30 may include, but are not limited to: the at least one processor 31, the at least one memory 32, and a bus 33 connecting the various system components (including the memory 32 and the processor 31).
The bus 33 includes a data bus, an address bus, and a control bus.
The memory 32 may include volatile memory, such as Random Access Memory (RAM)321 and/or cache memory 322, and may further include Read Only Memory (ROM) 323.
Memory 32 may also include a program/utility 325 having a set (at least one) of program modules 324, such program modules 324 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 31 executes various functional applications and data processing, such as the application page test method of embodiment 1 or embodiment 2 of the present invention, by running the computer program stored in the memory 32.
The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboard, pointing device, etc.). Such communication may be through input/output (I/O) interfaces 35. Also, model-generating device 30 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via network adapter 36. As shown, network adapter 36 communicates with the other modules of model-generating device 30 via bus 33. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 6
The present embodiment provides a computer-readable storage medium on which a computer program is stored, the program implementing the steps of the application page testing method of embodiment 1 or embodiment 2 when executed by a processor.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code for causing a terminal device to execute the steps of implementing the application page testing method of embodiment 1 or embodiment 2 when the program product runs on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. An application page testing method is characterized by comprising the following steps:
responding to the test command, and generating a test case corresponding to the application page;
describing at least one performance test service scene according to the test case;
running the application page in at least one performance test service scene and collecting performance data;
and calculating a test result according to the performance data and generating a performance test chart.
2. The method for testing an application page of claim 1, wherein the step of collecting performance data comprises:
before the application page is loaded, uploading an original code file of the application page through an HTTP request according to an uploading command;
implanting an acquisition code into the original code file to obtain a replacement code file;
according to the acquisition command, the application acquires the replacement code file through an HTTP request;
after the application page is loaded, executing the acquisition code to acquire the performance data, simultaneously generating a session ID, and uploading the session ID and the performance data to a database through a buried point, wherein the session ID corresponds to the performance data one by one;
the performance data acquisition comprises at least one of acquisition of rendering duration, timing sequence and times of each component in the application page and acquisition of at least one of request duration, timing sequence and times of each request in the application page.
3. The method for testing an application page of claim 1, wherein the step of calculating a test result based on the performance data comprises:
acquiring the corresponding performance data in a database according to the session ID;
preprocessing the acquired performance data to obtain page loading duration;
comparing the current page loading time length with the preorder page loading time length, if the current page loading time length is less than or equal to the preorder page loading time length, the performance test is passed, and if the current page loading time length is greater than the preorder page loading time length, the performance test is not passed;
and generating a performance test chart according to the performance data after the test is passed.
4. The method for testing an application page of claim 2, wherein the step of embedding the acquisition code into the original code file to obtain the replacement code file comprises:
performing lexical analysis on an original code file to analyze a code character string in the original code file into a mark stream;
converting the token stream into a syntax tree form through syntax analysis;
and modifying the nodes of the syntax tree of the original code file and implanting the acquisition codes.
5. The method for testing an application page of claim 3, wherein the step of preprocessing the acquired performance data to obtain a page loading duration comprises:
verifying the performance data based on at least one of data type verification and data time sequence verification;
formatting the performance data into a Trace Event Format Format;
and determining the difference between the page loading completion time and the page loading start time as the page loading duration.
6. An application page testing system, the system comprising:
the generating module is used for responding to the test command and generating a test case corresponding to the application page;
the description module is used for describing at least one performance test service scene according to the test case;
the acquisition module is used for operating the application page in at least one performance test service scene and acquiring performance data;
and the calculation module is used for calculating a test result according to the performance data and generating a performance test chart.
7. The application page testing system of claim 6, wherein the collection module comprises:
the uploading unit is used for uploading the original code file of the application page through an HTTP request according to an uploading command before the application page is loaded;
the implantation unit is used for implanting acquisition codes into the original code file to obtain a replacement code file;
the replacing unit is used for acquiring the replacing code file by applying an HTTP request according to the acquisition command;
the execution unit is used for executing the acquisition code to acquire the performance data after the application page is loaded, generating a session ID at the same time, uploading the session ID and the performance data to a database through a buried point, wherein the session ID corresponds to the performance data one by one;
the performance data acquisition comprises at least one of acquisition of rendering duration, timing sequence and times of each component in the application page and acquisition of at least one of request duration, timing sequence and times of each request in the application page.
8. The application page testing system of claim 6, wherein the calculation module comprises:
the acquisition unit is used for acquiring the corresponding performance data in a database according to the session ID;
the preprocessing unit is used for preprocessing the acquired performance data to obtain page loading duration;
the comparison unit is used for comparing the current page loading time length with the preamble page loading time length, if the current page loading time length is less than or equal to the preamble page loading time length, the performance test is passed, and if the current page loading time length is greater than the preamble page loading time length, the performance test is not passed;
and the generating unit is used for generating a performance test chart according to the performance data after the test is passed.
9. The application page testing system of claim 7, wherein the implanted unit comprises:
the lexical analysis subunit is used for carrying out lexical analysis on the original code file so as to analyze the code character strings in the original code file into a mark stream; and the number of the first and second groups,
a syntax analysis subunit, configured to convert the token stream into a syntax tree form through syntax analysis;
and the modifying subunit is used for modifying the nodes of the syntax tree of the original code file and implanting the acquisition codes.
10. The application page testing system of claim 8, wherein the preprocessing unit comprises:
the checking subunit is used for checking the performance data based on at least one of data type checking and data time sequence checking;
the formatting subunit is used for formatting the performance data into a Trace Event Format Format;
and the determining subunit is configured to determine a difference between the page loading completion time and the page loading start time as the page loading duration.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the application page testing method of any of claims 1-5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the application page testing method of any one of claims 1 to 5.
CN202110341476.1A 2021-03-30 2021-03-30 Application page testing method, system, device and medium Pending CN112965914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110341476.1A CN112965914A (en) 2021-03-30 2021-03-30 Application page testing method, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110341476.1A CN112965914A (en) 2021-03-30 2021-03-30 Application page testing method, system, device and medium

Publications (1)

Publication Number Publication Date
CN112965914A true CN112965914A (en) 2021-06-15

Family

ID=76279658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110341476.1A Pending CN112965914A (en) 2021-03-30 2021-03-30 Application page testing method, system, device and medium

Country Status (1)

Country Link
CN (1) CN112965914A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114238048A (en) * 2021-11-25 2022-03-25 广州市玄武无线科技股份有限公司 Automatic testing method and system for Web front-end performance

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2848689A1 (en) * 2002-12-13 2004-06-18 Prima Solutions Computer data acquisition process, involves selecting page containing data in function of rules of navigation and acquired data trade, determining rules and trades and applying configuration of page to selected page
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium
CN108268356A (en) * 2016-12-30 2018-07-10 中国移动通信集团浙江有限公司 Reversed WEB pitching piles analysis method and WEB server based on bytecode overriding
CN108415836A (en) * 2018-02-23 2018-08-17 清华大学 Utilize the method and system of application program detection computer system performance variation
CN108536604A (en) * 2018-04-19 2018-09-14 北京奇安信科技有限公司 A kind of method and terminal of test WEB page response time

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2848689A1 (en) * 2002-12-13 2004-06-18 Prima Solutions Computer data acquisition process, involves selecting page containing data in function of rules of navigation and acquired data trade, determining rules and trades and applying configuration of page to selected page
CN108268356A (en) * 2016-12-30 2018-07-10 中国移动通信集团浙江有限公司 Reversed WEB pitching piles analysis method and WEB server based on bytecode overriding
CN108197021A (en) * 2017-12-28 2018-06-22 深圳市彬讯科技有限公司 A kind of web system automated testing method, device, equipment and storage medium
CN108415836A (en) * 2018-02-23 2018-08-17 清华大学 Utilize the method and system of application program detection computer system performance variation
CN108536604A (en) * 2018-04-19 2018-09-14 北京奇安信科技有限公司 A kind of method and terminal of test WEB page response time

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
OAKSHARKS: "使用ast(抽象语法树)在代码中植入埋点", pages 1 - 6, Retrieved from the Internet <URL:https://www.cnblogs.com/oaks/p/13338000.html> *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114238048A (en) * 2021-11-25 2022-03-25 广州市玄武无线科技股份有限公司 Automatic testing method and system for Web front-end performance
CN114238048B (en) * 2021-11-25 2022-08-23 广州市玄武无线科技股份有限公司 Automatic testing method and system for Web front-end performance

Similar Documents

Publication Publication Date Title
CN109408384B (en) Software application testing method and device, processor and electronic device
CN110442511B (en) Visual embedded point testing method and device
CN109726763B (en) Information asset identification method, device, equipment and medium
CN110008113B (en) Test method and device and electronic equipment
CN109684847B (en) Automatic repairing method, device, equipment and storage medium for script loopholes
CN111158656B (en) Test code generation method and device based on fruit tree method
CN109408763B (en) Method and system for managing resume of different templates
CN111930614B (en) Automatic testing method, device, equipment and medium
CN115905031A (en) Test case recommendation method based on accurate quality assurance system
CN112965914A (en) Application page testing method, system, device and medium
CN109710523B (en) Visual draft test case generation method and device, storage medium and electronic equipment
CN113032257A (en) Automatic test method, device, computer system and readable storage medium
CN112948247A (en) Processing method, system, device and medium for operation playback of application program
CN109508204B (en) Front-end code quality detection method and device
CN117421217A (en) Automatic software function test method, system, terminal and medium
CN114816971A (en) Data processing method, related equipment and storage medium
CN117215551A (en) LLM-based low-code application development method and system
CN112882696B (en) Full-element model training system based on supercomputer
CN109714225A (en) A kind of automated testing method and system of Elink
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN113282504A (en) Incremental code coverage rate detection method and service development method and device
CN112486460A (en) Method, system, device and medium for automatically importing interface document
CN112988120A (en) Satellite telemetering downlink scheduling parameter dynamic online binding method and system for Ada language
EP2782005A1 (en) Verifying state reachability in a statechart model having computer program code embedded therein
CN111414194A (en) Interface information generation method and system, electronic 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