CN107797922B - Application page testing method, electronic device and electronic equipment - Google Patents

Application page testing method, electronic device and electronic equipment Download PDF

Info

Publication number
CN107797922B
CN107797922B CN201710888676.2A CN201710888676A CN107797922B CN 107797922 B CN107797922 B CN 107797922B CN 201710888676 A CN201710888676 A CN 201710888676A CN 107797922 B CN107797922 B CN 107797922B
Authority
CN
China
Prior art keywords
tested
page
rendering value
application
gpu
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.)
Active
Application number
CN201710888676.2A
Other languages
Chinese (zh)
Other versions
CN107797922A (en
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710888676.2A priority Critical patent/CN107797922B/en
Publication of CN107797922A publication Critical patent/CN107797922A/en
Application granted granted Critical
Publication of CN107797922B publication Critical patent/CN107797922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The embodiment of the invention provides a test method of an application page, an electronic device and electronic equipment. The method may include launching an application to be tested; triggering the application to be tested to display a page to be tested; calling a rendering value display function of an operating system running an application to be tested aiming at the page to be tested so as to display a GPU rendering value of the page to be tested on the page to be tested; and extracting the GPU rendering value of the page to be tested from the page to be tested with the GPU rendering value. The method can automatically acquire the page GPU rendering value of the application to be tested, provides visual data for the application, provides quantifiable data support for the performance blocking condition of the application, and saves labor cost.

Description

Application page testing method, electronic device and electronic equipment
Technical Field
The present invention relates to the field of application performance technology in operating systems, and in particular, to a method for testing an application page, an electronic device, and an electronic apparatus.
Background
The Android mobile application market has more and more mobile applications with full purpose, more and more applications are installed in the mobile phone, and because the screen refresh frequency of the mobile phone is generally 60hz, if no way is available to finish the task of the frame within 1000/60-16.67 ms, the frame loss phenomenon, namely the karton phenomenon, occurs. The more frames are dropped, the more severe the stuck condition is felt by the user. Therefore, it is very time-consuming to update each frame, and the update process of each frame image requires the cooperation of a Graphics Processing Unit (GPU) and a CPU. The CPU is responsible for some computing operations and the GPU is responsible for Rasterization (rasterisation) operations. For example, when a picture is displayed, the picture needs to be loaded into a memory through the calculation of the CPU and then transferred to the GPU for rendering. Once the GPU or CPU has worked beyond their respective maximum workload, a page stuck phenomenon occurs.
In order to solve the karton phenomenon, the prior art introduces GPU rendering efficiency which is low, and an effect graph rendered by the GPU is obtained. The GPU-rendered effect graph may include GPU rendering layers and GPU rendering values. The larger the GPU rendering value is, the lower the GPU rendering efficiency is, and otherwise, the higher the GPU rendering efficiency is. In the prior art, GPU rendering efficiency is compared through a GPU rendering graph, namely, the color of the GPU rendering graph is compared with the GPU rendering efficiency, and if the GPU rendering graph is red, the GPU rendering efficiency is low; the GPU rendering graph is green, and the GPU rendering efficiency is high.
According to the method and the device, the page GPU rendering value of the application is automatically extracted, so that an intuitive GPU rendering value report is obtained, and the labor cost is saved.
Disclosure of Invention
The embodiment of the invention aims to provide a test method, an electronic device and electronic equipment for an application page, so as to automatically obtain a page GPU rendering value of an application to be tested, provide visual data for the application, provide quantifiable data support for the performance blocking condition of the application and save labor cost. The specific technical scheme is as follows:
in a first aspect, a method for testing an application page is provided, and the method may include:
starting an application to be tested;
triggering the application to be tested to display a page to be tested;
calling a rendering value display function of an operating system running an application to be tested aiming at the page to be tested so as to display a GPU rendering value of the page to be tested on the page to be tested;
and extracting the GPU rendering value of the page to be tested from the page to be tested with the GPU rendering value.
In an optional implementation, after extracting the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed, the method may further include:
and storing the extracted GPU rendering value and the corresponding page to be tested into a local preset file.
In an optional implementation, the method may further include: and generating a rendering value test report aiming at the to-be-tested application based on the GPU rendering value of the to-be-tested page of the to-be-tested application stored in the preset file.
In an optional implementation, before the starting the application to be tested, the method may further include: and starting a rendering value display function of an operating system running the application to be tested.
In a second aspect, an electronic device is provided, which may include:
and the starting module is used for starting the application to be tested.
And the triggering module is used for triggering the application to be tested to display the page to be tested.
And the calling module is used for calling a rendering value display function of an operating system running the application to be tested aiming at the page to be tested so as to display the GPU rendering value of the page to be tested on the page to be tested. And the extraction module is used for extracting the GPU rendering value of the page to be tested from the page to be tested with the GPU rendering value.
In an alternative implementation, the electronic device further comprises: and a storage module. The extraction module is used for extracting the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed, and the storage module is used for storing the extracted GPU rendering value and the page to be tested corresponding to the GPU rendering value into a local preset file.
In an alternative implementation, the electronic device further comprises: and generating a module. And the generating module is used for generating a rendering value test report aiming at the to-be-tested application based on the GPU rendering value of the to-be-tested page of the to-be-tested application stored in the preset file.
In an optional implementation, the starting module is further configured to start a rendering value display function of an operating system running the application to be tested before starting the application to be tested.
In a third aspect, an electronic device is provided, which may include: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus. A memory for storing a computer program.
The processor is adapted to carry out the method steps of the first aspect when executing the program stored in the memory.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium, having stored therein instructions, which when run on a computer, cause the computer to execute any one of the above-mentioned methods for testing an application page.
In another aspect of the present invention, the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the above-mentioned methods for testing an application page.
According to the application page testing method, the electronic device and the electronic equipment provided by the embodiment of the invention, the to-be-tested application is started, the to-be-tested application is triggered to display the to-be-tested page, the GPU rendering value is displayed on the to-be-tested application page by utilizing the calling function, and the GPU rendering value of the to-be-tested page is extracted, so that visual data are provided for the application, quantifiable data support is provided for the performance stuck condition of the application, and meanwhile, the labor cost is saved. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a diagram of a system architecture according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a terminal page according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for testing an application page according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a QQ application page provided in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
The application page testing method provided by the application page testing method is applicable to the system architecture shown in fig. 1, and the system can comprise a first terminal and a second terminal. The first terminal may be various handheld devices (such as a mobile phone and a tablet computer), an in-vehicle device and a wearable device (wearable device), and the second terminal may be a programmable Personal Computer (PC).
The first terminal is an operating system, such as an Android 4.4 operating system, that can display GPU rendering values. A developer option interface in a setting page of a first terminal includes a GPU overdraw option, as shown in fig. 2, if a user selects to open GPU overdraw, the first terminal can obtain a GPU render value of the page; and if the user selects to close the GPU excess rendering, the first terminal cannot obtain the GPU rendering value of the page. The first terminal and the second terminal can perform data transmission through wireless connection or through wired connection.
Further, evaluating the performance of an application may be considered from the aspects of memory footprint, power consumption, GPU rendering efficiency, and the like. The user can visually see the memory occupation condition and the power consumption condition.
Aiming at GPU rendering efficiency, the page testing method provided by the application automatically controls the application to be tested to display the page to be tested through a testing program, extracts a GPU rendering value corresponding to the page to be tested, and stores the GPU rendering value in a local preset file of the first terminal. Based on the method, after corresponding GPU rendering values are extracted from a plurality of different pages to be tested through a test program, the different pages to be tested are also stored in the preset file, and therefore a test report of the application to be tested is obtained.
Transition rendering pages and normal rendering pages can be visually found by checking GPU rendering values in the test report, so that system pages can be optimized. The test report can also compare the same page of the same application among different versions to detect the effect of page optimization.
The test program may be stored in the first terminal or the second terminal. The storage location of the test program may be determined according to the specific requirements of the tester, and the application is not limited herein.
Therefore, the GPU rendering value of the to-be-tested page of the to-be-tested application is automatically obtained, visual GPU rendering value data is provided for the application, quantifiable data support is provided for evaluating the performance of the to-be-tested application, and meanwhile labor cost is saved.
The following description will be made in detail by taking the first terminal as a mobile phone terminal, the second terminal as a PC terminal, and the test program stored in the PC terminal as an example.
Fig. 3 is a schematic flowchart of a method for testing an application page according to an embodiment of the present invention. As shown in fig. 3, the method may include:
step 310, starting the application to be tested.
Before executing the step, the PC side obtains a test program, such as an Android automated test framework (uiautomator), which can automatically call up different pages of an application, such as Activity, where Activity is an application component, and Activity is an interactive interface that is distributed over the whole window or suspended on other windows. And usually consists of multiple activities in one application. The Uiautomator may provide different Application Programming Interfaces (APIs), and a series of automation operations such as clicking, sliding, keyboard input, long press, and commonly used assertion methods may be performed on the Application at the mobile terminal through the APIs. Because the test program can automate all operations, the test program is utilized to test, the traditional complicated manual test can be replaced, the operation is simple, the user experience is improved, and the labor cost is reduced.
The PC terminal downloads the engineering codes of the applications to be tested (such as WeChat), and packages and sends the engineering codes to the mobile phone terminal, so that the mobile phone terminal can install the applications to be tested according to the installation package.
And then, a rendering value display function of an operating system to be tested and applied on the mobile phone end needs to be started, whether the selected rendering value display function is started or not is judged, and if the selected rendering value display function is not started, the rendering value display function is automatically started, wherein the rendering value display function can be a GPU (graphics processing unit) excessive rendering option of the mobile phone end.
After the mobile phone end installs the application to be tested, the PC end starts the application to be tested on the mobile phone end by executing the test program.
And step 320, triggering the application to be tested to display the page to be tested.
After the test program starts the application to be tested, the application to be tested automatically displays a page to be tested, such as a discovery page, an address book page and the like in the WeChat application. The page to be tested may be at least one page of the application to be tested, and if the page to be tested is at least one page, the test program may open the page to be tested according to a preset rule, where the preset rule may be set before or during the test, and the preset rule includes, but is not limited to: and sequentially opening pages to be tested at certain positions.
Taking the application to be tested as the update QQ as an example, as shown in fig. 4, the certain position sequence may be that after the QQ is started, a message page, a contact page and a dynamic page are opened in sequence (from left to right).
Step 330, calling a rendering value display function of an operating system running the application to be tested aiming at the page to be tested.
And aiming at each page to be tested, the test program calls a rendering value display function of an operating system running the application to be tested, and displays the GPU rendering value of the page to be tested on the page to be tested.
The test program calls the onPause () method of at least one Activity within the application to be tested,
by executing a test program, at least one page to be tested automatically calls an onPause () method, and each page to be tested displays a GPU rendering value of the page to be tested, namely, each time one page to be tested is entered, a home key is clicked, the onPause () of the Activity life cycle is automatically called, and each page to be tested can display the GPU rendering value of the page.
And 340, extracting the GPU rendering value of the page to be tested from the page to be tested with the GPU rendering value.
After the test program executes the onPause (), directly calling an acquisition system GPU counting program, wherein the acquisition system GPU counting program is used for extracting a GPU rendering value of at least one page to be tested from the page to be tested on which the GPU rendering value is displayed.
After the step is executed, when the extracted GPU rendering value of the page to be tested is consistent with the GPU rendering value displayed by the current page, the extracted GPU rendering value of the page to be tested and the corresponding page to be tested are stored in a local preset file, namely, the GPU rendering value which can be accurately extracted by a system GPU counting program is obtained; and when the extracted GPU rendering value of the page to be tested is inconsistent with the GPU rendering value displayed by the current page, the GPU rendering value is not stored, namely the GPU rendering value which cannot be accurately extracted by the GPU counting program of the system is obtained.
It can be understood that the process of storing the extracted GPU rendering value of the page to be tested and the corresponding page to be tested into the local preset file may be: and establishing a GPU rendering value recording list by using the extracted GPU rendering value of each page to be tested and the identification of the corresponding page to be tested, and storing the GPU rendering value of each page to be tested by storing the GPU rendering value recording list.
Further, the execution processes of the steps 310 to 340 are executed for each page to be tested, so that the GPU rendering value of the page to be tested of the application to be tested, which is stored in the preset file, generates a rendering value test report for the application to be tested. The GPU rendering efficiency of the Activity of the same application of different versions can be simply and visually counted by checking the GPU rendering value in the test report, the code implementation efficiency can be compared more efficiently and visually, and the method provides a development and optimization direction.
The embodiment of the invention corresponding to the method also provides a structural schematic diagram of the electronic device. As shown in fig. 5, the electronic device may include: an initiation module 510, a trigger module 520, a calling module 530, and an extraction module 540.
A starting module 510, configured to start an application to be tested.
And the triggering module 520 is used for triggering the application to be tested to display the page to be tested.
And the calling module 530 is configured to call, for the page to be tested, a rendering value display function of an operating system running the application to be tested, so that the GPU rendering value of the page to be tested is displayed on the page to be tested.
And the extracting module 540 is configured to extract the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed.
In the embodiment of the present invention, after the electronic device starts the application to be tested through the start module 510, the trigger module 520 triggers the application to be tested to display at least one page to be tested, at this time, the call module 530 calls the rendering value display function of the operating system running the application to be tested, so as to display the GPU rendering value of the page to be tested on the at least one page to be tested, and then the extraction module 540 extracts the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed, thereby providing intuitive GPU rendering value data for the application to be tested, providing quantifiable data support for the performance stuck condition of the application, and saving labor cost.
Alternatively, the electronic device may include not only: an initiation module 510, a trigger module 520, a calling module 530, and an extraction module 540. The electronic device further includes: the memory module (550) is provided with a memory,
a starting module 510, configured to start an application to be tested.
And the triggering module 520 is used for triggering the application to be tested to display the page to be tested.
And the calling module 530 is configured to call, for the page to be tested, a rendering value display function of an operating system running the application to be tested, so that the GPU rendering value of the page to be tested is displayed on the page to be tested.
And the extracting module 540 is configured to extract the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed.
And a storage module 550, configured to store the extracted GPU rendering value in a local preset file corresponding to the page to be tested.
In the embodiment of the present invention, after the electronic device starts the application to be tested through the start module 510, the trigger module 520 triggers the application to be tested to display at least one page to be tested, at this time, the call module 530 calls a rendering value display function of an operating system running the application to be tested, so as to display a GPU rendering value of the page to be tested on the at least one page to be tested, after the extraction module 540 extracts the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed, the storage module 550 stores the extracted GPU rendering value, which corresponds to the page to be tested, in the local preset file, so as to provide intuitive GPU rendering value data for the application to be tested, and provide quantifiable data support for a performance stuck condition of the application.
Alternatively, the electronic device may include not only: the electronic device further includes, in addition to the starting module 510, the triggering module 520, the invoking module 530, and the extracting module 540, the storing module 550: a generating module 560.
A starting module 510, configured to start an application to be tested.
And the triggering module 520 is used for triggering the application to be tested to display the page to be tested.
And the calling module 530 is configured to call, for the page to be tested, a rendering value display function of an operating system running the application to be tested, so that the GPU rendering value of the page to be tested is displayed on the page to be tested.
And the extracting module 540 is configured to extract the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed.
And a storage module 550, configured to store the extracted GPU rendering value in a local preset file corresponding to the page to be tested.
The generating module 560 is configured to generate a GPU rendering value test report for the application to be tested based on the GPU rendering value of the page to be tested of the application to be tested, which is stored in the preset file.
In the embodiment of the present invention, after the electronic device starts the application to be tested through the start module 510, the trigger module 520 triggers the application to be tested to display at least one page to be tested, at this time, the call module 530 calls a rendering value display function of an operating system running the application to be tested, so as to display a GPU rendering value of the page to be tested on the at least one page to be tested, after the extraction module 540 extracts the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed, the storage module 550 is configured to store the extracted GPU rendering value into a local preset file corresponding to the page to be tested, and finally, a GPU rendering value test report for the application to be tested is generated through the generation module 560.
Optionally, the electronic device may include: an initiation module 510, a trigger module 520, a calling module 530, and an extraction module 540. The starting module 510 is further configured to start a rendering value display function of an operating system running the application to be tested before the application to be tested is started.
A starting module 510, configured to start an application to be tested.
And the triggering module 520 is used for triggering the application to be tested to display the page to be tested.
And the calling module 530 is configured to call, for the page to be tested, a rendering value display function of an operating system running the application to be tested, so that the GPU rendering value of the page to be tested is displayed on the page to be tested.
And the extracting module 540 is configured to extract the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed.
In the embodiment of the present invention, the electronic device starts a rendering value display function of an operating system running an application to be tested through the starting module 510, then starts the application to be tested, sends an instruction to the triggering module 520 to trigger the application to be tested to display at least one page to be tested, at this time, the calling module 530 calls a rendering value display function of the operating system running the application to be tested for the at least one page to be tested, so as to display a GPU rendering value of the page to be tested on the at least one page to be tested, and then the extracting module 540 extracts the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed.
The functions of the functional units at the electronic device end can be realized through the steps in the embodiment in fig. 3, and the specific implementation process can refer to the related description of the method embodiment, so that the specific working process and beneficial effects of the electronic device provided by the embodiment of the present invention are not repeated herein.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 6, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 are communicated with each other through the communication bus 640,
a memory 630 for storing computer programs;
the processor 610, when executing the program stored in the memory 630, implements the following steps:
starting an application to be tested;
triggering the application to be tested to display a page to be tested;
calling a rendering value display function of an operating system running an application to be tested aiming at the page to be tested so as to display a GPU rendering value of the page to be tested on the page to be tested;
and extracting the GPU rendering value of the page to be tested from the page to be tested with the GPU rendering value.
Optionally, after extracting the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed, storing the extracted GPU rendering value, which corresponds to the page to be tested, in a local preset file.
Optionally, a rendering value test report for the application to be tested is generated based on the GPU rendering value of the page to be tested of the application to be tested stored in the preset file.
Optionally, before starting the application to be tested, a rendering value display function of an operating system running the application to be tested is started.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which instructions are stored, and when the instructions are executed on a computer, the computer is enabled to execute the method for testing an application page in any one of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for testing an application page as described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for testing an application page is characterized by comprising the following steps:
starting an application to be tested;
triggering the application to be tested to display a page to be tested;
calling a rendering value display function of an operating system running the application to be tested aiming at the page to be tested so as to display a GPU rendering value of the page to be tested on the page to be tested;
extracting a GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed; the extracting the GPU rendering value of the page to be tested from the page to be tested with the GPU rendering value comprises the following steps: calling and acquiring a system GPU counting program, and extracting a GPU rendering value of a page to be tested from the page to be tested on which the GPU rendering value is displayed; the acquisition system GPU counting program is used for extracting a GPU rendering value of at least one page to be tested from the page to be tested on which the GPU rendering value is displayed;
when the extracted GPU rendering value of the page to be tested is consistent with the GPU rendering value displayed on the page to be tested, storing the extracted GPU rendering value of the page to be tested and the corresponding page to be tested into a local preset file; and when the extracted GPU rendering value of the page to be tested is inconsistent with the GPU rendering value displayed on the page to be tested, not storing the GPU rendering value.
2. The method of claim 1, further comprising:
and generating a rendering value test report aiming at the application to be tested based on the GPU rendering value of the page to be tested of the application to be tested, which is stored in the preset file.
3. The method of claim 1, wherein prior to said launching an application to be tested, the method further comprises:
and starting a rendering value display function of the operating system running the application to be tested.
4. An electronic device, comprising: a starting module, a triggering module, a calling module and an extracting module,
the starting module is used for starting the application to be tested;
the triggering module is used for triggering the application to be tested to display a page to be tested;
the calling module is used for calling a rendering value display function of an operating system running the application to be tested aiming at the page to be tested so as to display a GPU rendering value of the page to be tested on the page to be tested;
the extraction module is used for extracting the GPU rendering value of the page to be tested from the page to be tested on which the GPU rendering value is displayed; the extracting the GPU rendering value of the page to be tested from the page to be tested with the GPU rendering value comprises the following steps: calling and acquiring a system GPU counting program, and extracting a GPU rendering value of a page to be tested from the page to be tested on which the GPU rendering value is displayed; the acquisition system GPU counting program is used for extracting a GPU rendering value of at least one page to be tested from the page to be tested on which the GPU rendering value is displayed;
the electronic device further includes: a storage module for storing the data of the data,
the extraction module is used for storing the extracted GPU rendering value of the page to be tested and the corresponding page to be tested into a local preset file when the extracted GPU rendering value of the page to be tested is consistent with the GPU rendering value displayed on the page to be tested; and when the extracted GPU rendering value of the page to be tested is inconsistent with the GPU rendering value displayed on the page to be tested, not storing the GPU rendering value.
5. The apparatus of claim 4, wherein the electronic device further comprises: a module for generating a plurality of modules,
the generating module is used for generating a rendering value test report aiming at the application to be tested based on the GPU rendering value of the page to be tested of the application to be tested, which is stored in the preset file.
6. The apparatus of claim 4,
the starting module is further configured to start a rendering value display function of an operating system running the application to be tested before the application to be tested is started.
7. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 3 when executing a program stored in the memory.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
CN201710888676.2A 2017-09-27 2017-09-27 Application page testing method, electronic device and electronic equipment Active CN107797922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710888676.2A CN107797922B (en) 2017-09-27 2017-09-27 Application page testing method, electronic device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710888676.2A CN107797922B (en) 2017-09-27 2017-09-27 Application page testing method, electronic device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107797922A CN107797922A (en) 2018-03-13
CN107797922B true CN107797922B (en) 2021-05-28

Family

ID=61532524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710888676.2A Active CN107797922B (en) 2017-09-27 2017-09-27 Application page testing method, electronic device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107797922B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805678A (en) * 2018-06-14 2018-11-13 安徽鼎龙网络传媒有限公司 A kind of micro- scene management backstage wechat store synthesis measuring system
CN110806909A (en) * 2019-11-01 2020-02-18 北京金山安全软件有限公司 Method and device for determining page frame dropping information of application program and electronic equipment
CN111159042A (en) * 2019-12-31 2020-05-15 可牛网络技术(北京)有限公司 Fluency testing method and device and electronic equipment
CN115145778B (en) * 2022-09-02 2022-11-25 西安芯瞳半导体技术有限公司 Method and device for analyzing rendering result of display card and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917067A (en) * 2012-10-24 2013-02-06 网宿科技股份有限公司 Method and device for increasing response speed based on self-adaption concurrency control of client
CN104268046A (en) * 2014-10-17 2015-01-07 浪潮电子信息产业股份有限公司 Linux-based man-machine interaction NVIDIA GPU (Graphics Processing Unit) automatic testing method
CN106227649A (en) * 2016-07-08 2016-12-14 北京奇虎科技有限公司 A kind of test the application method and apparatus that excessively renders of the page
US9558094B2 (en) * 2014-05-12 2017-01-31 Palo Alto Research Center Incorporated System and method for selecting useful smart kernels for general-purpose GPU computing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101379905B1 (en) * 2012-01-16 2014-04-03 주식회사 매크로그래프 system and method for rendering an image
CN106997610B (en) * 2016-01-26 2020-08-25 阿里巴巴集团控股有限公司 Image rendering method and device and electronic equipment
CN107038011B (en) * 2016-02-04 2021-04-06 中兴通讯股份有限公司 Method and device for adjusting display fluency, and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917067A (en) * 2012-10-24 2013-02-06 网宿科技股份有限公司 Method and device for increasing response speed based on self-adaption concurrency control of client
US9558094B2 (en) * 2014-05-12 2017-01-31 Palo Alto Research Center Incorporated System and method for selecting useful smart kernels for general-purpose GPU computing
CN104268046A (en) * 2014-10-17 2015-01-07 浪潮电子信息产业股份有限公司 Linux-based man-machine interaction NVIDIA GPU (Graphics Processing Unit) automatic testing method
CN106227649A (en) * 2016-07-08 2016-12-14 北京奇虎科技有限公司 A kind of test the application method and apparatus that excessively renders of the page

Also Published As

Publication number Publication date
CN107797922A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107797922B (en) Application page testing method, electronic device and electronic equipment
CN108108297B (en) Method and device for automatic testing
US8959394B2 (en) Electronic device, system, and method for testing exception handling mechanism
WO2019085598A1 (en) Method and apparatus for calculating above-the-fold rendering duration of page, and electronic device
WO2019227708A1 (en) Online debugging apparatus and method for test case, and computer-readable storage medium
CN108874672B (en) Application program exception positioning method, device, equipment and storage medium
CN107045475B (en) Test method and device
CN110209520B (en) Method and device for improving SSD (solid State disk) testing efficiency, computer equipment and storage medium
CN110955590A (en) Interface detection method, image processing method, device, electronic equipment and storage medium
CN112148594A (en) Script testing method and device, electronic equipment and storage medium
CN112181749A (en) Hardware testing method and device, electronic equipment and storage medium
CN106557411B (en) Method and system for testing Hybrid application in Android system
CN111666199B (en) Debugging method executed on intelligent terminal and software debugger
US20180336122A1 (en) Generating application flow entities
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
CN111427776A (en) Automatic testing method and device for intelligent equipment
CN108287781B (en) Memory occupation monitoring method, device and system
CN115687146A (en) BIOS (basic input output System) test method and device, computer equipment and storage medium
CN106844186B (en) Offline test method of application and terminal equipment
CN106708605B (en) Method and device for detecting resource leakage
CN109688025B (en) Test monitoring method, device, terminal and storage medium based on digital KVM
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
CN114741325B (en) Recording method and device of test script for application system test
CN113485778B (en) Page data processing method and device, storage medium and electronic device
CN109062810B (en) Application program testing method and device, 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
GR01 Patent grant
GR01 Patent grant