CN109977027A - A kind of method, apparatus of performance test, system, equipment and storage medium - Google Patents
A kind of method, apparatus of performance test, system, equipment and storage medium Download PDFInfo
- Publication number
- CN109977027A CN109977027A CN201910273016.2A CN201910273016A CN109977027A CN 109977027 A CN109977027 A CN 109977027A CN 201910273016 A CN201910273016 A CN 201910273016A CN 109977027 A CN109977027 A CN 109977027A
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- measured
- target pages
- performance test
- 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
Links
- 238000011056 performance test Methods 0.000 title claims abstract description 154
- 238000000034 method Methods 0.000 title claims abstract description 144
- 238000012360 testing method Methods 0.000 claims abstract description 264
- 230000005540 biological transmission Effects 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 4
- 230000015654 memory Effects 0.000 description 36
- 230000008569 process Effects 0.000 description 31
- 230000006870 function Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 24
- 238000006243 chemical reaction Methods 0.000 description 12
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 8
- 238000012544 monitoring process Methods 0.000 description 7
- 230000000007 visual effect Effects 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 239000000284 extract Substances 0.000 description 3
- 238000010297 mechanical methods and process Methods 0.000 description 3
- 230000005226 mechanical processes and functions Effects 0.000 description 3
- 230000011664 signaling Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000004321 preservation Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000002834 transmittance Methods 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000029058 respiratory gaseous exchange Effects 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The invention discloses a kind of method, apparatus of performance test, system, equipment and storage mediums, this method comprises: sending test assignment, test assignment includes test case and target pages;Obtain record of the terminal implementation of test cases to be measured between target pages in handoff procedure;Show the performance test results determining according to record.Technical solution of the present invention passes through the test case and target pages in test assignment, so that it is not necessary that test case is embedded into the application program in terminal to be measured, it can be switched between target pages by the direct implementation of test cases of terminal to be measured, and obtain the performance test results determining according to the record between target pages in handoff procedure, the application program capacity for surveying terminal will not both be treated by, which guaranteeing, impacts, the system of terminal to be measured will not be run and be impacted, the Interventional being tested for the property to terminal to be measured is reduced, the convenience of performance test is improved.
Description
Technical field
The present embodiments relate to measuring technology more particularly to a kind of method, apparatus of performance test, system, equipment and
Storage medium.
Background technique
With the continuous development of science and technology, the type of mobile application (APP) is more and more extensive.In order to guarantee user to movement
The usage experience of APP becomes particularly important to the test of the user interface of mobile APP.
Currently, by the way of nested code or hook (HOOK) application programming interface (Application
Programming Interface, API) automatic test is carried out to the user interface of mobile APP.But using nested code
When mode, test code need to be embedded into the item code of mobile APP, affect the operation of mobile APP self performance.And it adopts
With the mode of HOOK API, HOOK is one section of program to processing system message, is called by operating system;Whenever specific
Message issues, and before no arrival purpose window, HOOK program just first captures the message, that is, HOOK program is first controlled
Power, at this moment HOOK program can not also be dealt with working process (change) message and be continued to transmit the message, can be with
The transmitting for forcing end message will affect the hardware performance of terminal to be measured due to needing to intrude into the process of operating system,
And the speed of service of the central processing unit (Central Processing Unit, CPU) of terminal to be measured is reduced, and then is influenced
The accuracy of operation data.
Summary of the invention
In view of this, the present invention provides method, apparatus, system, equipment and the storage medium of a kind of performance test, reduce
To the Interventional that terminal to be measured is tested for the property, the convenience of performance test is improved.
In a first aspect, the embodiment of the invention provides a kind of methods of performance test, comprising:
Test assignment is sent, the test assignment includes test case and target pages;
It obtains terminal to be measured and executes record of the test case between target pages in handoff procedure;
Show the performance test results determining according to the record.
Second aspect, the embodiment of the invention also provides a kind of methods of performance test, comprising:
Test assignment is obtained, the test assignment includes test case and target pages;
The test case is executed to switch between target pages;
It is sent in the record between target pages in handoff procedure, is shown to performance test apparatus according to record determination
The performance test results.
The third aspect, the embodiment of the invention also provides a kind of devices of performance test, comprising:
Sending module, for sending test assignment, the test assignment includes test case and target pages;
Module is obtained, executes note of the test case between target pages in handoff procedure for obtaining terminal to be measured
Record;
Display module, for showing the performance test results determining according to the record.
Fourth aspect, the embodiment of the invention also provides a kind of devices of performance test, comprising:
Module is obtained, for obtaining test assignment, the test assignment includes test case and target pages;
Execution module switches between target pages for executing the test case;
Sending module, the record for being sent between target pages in handoff procedure show root to performance test apparatus
According to the determining the performance test results of the record.
5th aspect, the embodiment of the invention also provides a kind of systems of performance test, comprising: terminal and performance to be measured are surveyed
Try equipment;It is communicated to connect between the terminal to be measured and the performance test apparatus;
The device of the performance test as described in the third aspect is arranged in the performance test apparatus, and the terminal setting to be measured is such as
The device of performance test described in fourth aspect.
6th aspect, the embodiment of the invention also provides a kind of equipment, comprising:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
The method that device realizes the performance test as described in first aspect or second aspect.
7th aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program realizes the method for the performance test as described in first aspect or second aspect when the program is executed by processor.
The embodiment of the present invention is by the test case and target pages in test assignment, so that it is not necessary that test case is embedding
Enter into the application program in terminal to be measured, can be switched between target pages by the direct implementation of test cases of terminal to be measured, and
The performance test results determining according to the record between target pages in handoff procedure are obtained, guarantees both treat and surveys terminal
Application program capacity impacts, and will not run and impact to the system of terminal to be measured, reduce and carry out to terminal to be measured
The Interventional of performance test improves the convenience of performance test.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for performance test provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for another performance test provided in an embodiment of the present invention;
Fig. 3 is a kind of display schematic diagram of the creation page of test assignment provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart for creating test assignment provided in an embodiment of the present invention;
Fig. 5 is a kind of interaction diagrams for creating test assignment provided in an embodiment of the present invention;
Fig. 6 is a kind of flow chart of implementation of test cases provided in an embodiment of the present invention;
Fig. 7 is a kind of interaction diagrams of implementation of test cases provided in an embodiment of the present invention;
Fig. 8 is the flow chart that a kind of pair of network data provided in an embodiment of the present invention carries out conversion process;
Fig. 9 is a kind of display schematic diagram of HAR file provided in an embodiment of the present invention;
Figure 10 is that a kind of parsing HAR file provided in an embodiment of the present invention obtains the display schematic diagram of Network Details;
Figure 11 is a kind of flow chart that conversion process is carried out to local performance data provided in an embodiment of the present invention;
Figure 12 is a kind of statistics schematic diagram of CPU accounting provided in an embodiment of the present invention;
Figure 13 is a kind of display schematic diagram of Memory statistics provided in an embodiment of the present invention;
Figure 14 is a kind of display schematic diagram for loading target pages provided in an embodiment of the present invention;
Figure 15 is the flow chart of the method for another performance test provided in an embodiment of the present invention;
Figure 16 is a kind of structural block diagram of the device of performance test provided in an embodiment of the present invention;
Figure 17 is the structural block diagram of the device of another performance test provided in an embodiment of the present invention;
Figure 18 is a kind of structural block diagram of the system of performance test provided in an embodiment of the present invention;
Figure 19 is a kind of structural schematic diagram of equipment provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of the method for performance test provided in an embodiment of the present invention, the property provided in the present embodiment
The method that can be tested can be executed by performance test apparatus, which can be by way of software and/or hardware
It realizes, which can be two or more physical entities and constitute, and is also possible to a physical entity and constitutes.This reality
Applying performance test apparatus in example is the terminal devices such as desktop computer, all-in-one machine, laptop.Wherein, performance test apparatus is available
In creation test case and display performance test result.
With reference to Fig. 1, the method for the performance test specifically comprises the following steps:
Step 110 sends test assignment.
Wherein, test assignment includes test case and target pages.
In embodiment, when creating test assignment, test case to be taken need to be imported in test assignment.Herein
It should be noted that saving the information of target pages in test case.Wherein, target pages refer to the final institute of terminal to be measured
The display page to be jumped to.Certainly, in order to guarantee during the test, can accurately to the performance data of target pages into
Row test needs first to arrive the display page jump of terminal to be measured before the display page jump to target pages of terminal to be measured
The association page of target pages.It is to be understood that both having saved the information of target pages in test case, target pages are also saved
Association the page information, and save target pages and be associated with the page between incidence relation information.To in terminal to be measured
It, can be automatically from association page jump to target pages during implementation of test cases.Wherein, for ease of description, implementing
In example, the association page of target pages is directly denoted as the association page.
It should be noted that before test assignment is sent to terminal to be measured, need to performance test apparatus and to
It surveys and establishes communication connection between terminal, so as to which signaling transmitting or data biography can be carried out between performance test apparatus and terminal to be measured
It is defeated.Wherein, signaling transmitting refers to the transmission process that network packet is carried out between performance test apparatus and terminal to be measured;Data
Transmission refers to the process that data are transmitted between performance test apparatus and terminal to be measured.Specifically, signaling transmitting is network data
Transmittance process, and data transmission be generally local data transmittance process.Certainly, between terminal to be measured and performance test apparatus
The mode for establishing communication connection, can be used wired connection, can also be using wireless connection.For example, wired connection can be connected by USB
Wiring is attached;Alternatively, the wireless connection between performance test apparatus is realized by the remote management capability of terminal to be measured,
Certainly, when realizing the wireless connection of performance test apparatus and terminal to be measured, needing first will be at terminal to be measured and performance test apparatus
In same local area network.
In embodiment, for establishing connection by USB connecting line between terminal to be measured and performance test apparatus, to property
It can test and be illustrated.After terminal to be measured and performance test apparatus establish communication connection, performance test apparatus can will be tested
Mission dispatching is into the terminal to be measured connected.Certainly, a performance test apparatus can be connected with more terminals to be measured simultaneously,
It is understood that a performance test apparatus can simultaneously be tested for the property more terminals to be measured.
Step 120 obtains record of the terminal implementation of test cases to be measured between target pages in handoff procedure.
Wherein, record can be understood as terminal to be measured from the original performance during association page jump to target pages
Data.In embodiment, after terminal to be measured receives test assignment, terminal to be measured can automatic implementation of test cases, will
The display page switching of terminal to be measured obtains terminal implementation of test cases to be measured and switched between target pages to target pages
Record in journey.
Certainly, in the actual mechanical process for obtaining record, it can obtain terminal to be measured by default acquisition script and execute survey
Original performance data of the example between target pages in handoff procedure on probation, and original performance data are sent to application server,
To be formatted by application server to original performance data.Wherein, presetting acquisition script is that tester compiles in advance
It writes.
In embodiment, record of the terminal implementation of test cases to be measured between target pages in handoff procedure includes: to be measured
The network transmission of terminal data packet in handoff procedure between target pages records and end to be measured in handoff procedure between target pages
The performance parameter at end.Wherein, network transmission record can be understood as terminal to be measured from association page switching to target pages mistake
Network data information in journey, for example, network data information can include: access originator establishes the time consumed by connection, sends and ask
Seek mode etc.;Performance parameter can be understood as locality of the terminal to be measured during from association page switching to target pages
Energy data, for example, local performance data can include: CPU accounting, memory accounting, refresh rate (Frame Per Second, FPS)
Deng.Wherein, CPU accounting refer to the display page of terminal to be measured during switching to target pages, the APP (page object
APP where face) consumed by CPU percentage, if CPU accounting is higher, show the APP at the moment consumed by cpu resource get over
It is more;Conversely, showing the APP, consumed cpu resource is fewer at the moment if CPU accounting is lower.Memory accounting can be understood as to
The display page of terminal is surveyed during switching to target pages, memory percentage consumed by the APP, if memory accounting is got over
Height, showing the APP, consumed memory is more at the moment;Conversely, showing that the APP is consumed at the moment if memory accounting is lower
Memory it is fewer.Refresh rate refers to the quantity of frame updating each second, in embodiment, can be to be measured as judging using refresh rate
Whether terminal there is the foundation of Caton phenomenon during switching to target pages, specifically, can be arranged one to refresh rate
A preset threshold then shows to be measured if terminal to be measured, during switching to target pages, refresh rate is lower than the preset threshold
There is Caton phenomenon in terminal, for example, preset threshold may be configured as 60 frames/s, it can be understood as, if the number of frame updating each second
Amount is lower than 60 frames, shows that the APP Caton phenomenon occurs during from association page switching to target pages.
Step 130 shows the performance test results determining according to record.
In embodiment, it is recorded in handoff procedure getting terminal implementation of test cases to be measured between target pages
Afterwards, record can be formatted by application server, to generate the performance test results.Then by the performance test results exhibition
Show the display page in performance test apparatus so that tester to the performance test results carry out visual analyzing, thus for into
One step optimizes the handoff procedure of target pages, to promote page switching speed.Wherein, by application server to record
The process formatted sees below the specific descriptions of embodiment, and details are not described herein.
The technical solution of the present embodiment, by the test case and target pages in test assignment, so that without that will survey
Example on probation is embedded into the application program in terminal to be measured, can be by the direct implementation of test cases of terminal to be measured between target pages
Switching, and the performance test results determining according to the record between target pages in handoff procedure are obtained, guarantee will not both be treated
The application program capacity for surveying terminal impacts, and will not run and impact to the system of terminal to be measured, reduce to be measured
The Interventional that terminal is tested for the property improves the convenience of performance test.
On the basis of the above embodiments, further embody is made to the method for performance test.Fig. 2 is implementation of the present invention
The flow chart of the method for another performance test that example provides.Referring to Fig. 2, the method for the performance test specifically includes following step
It is rapid:
Step 210, according to test triggering command, create test assignment.
Wherein, test triggering command can be understood as the creation page that triggering performance test apparatus jumps to test assignment
Command information.In embodiment, test triggering command can be an address test, or a test two dimensional code.When
After tester inputs the address test in the network address input frame of browser, the display page jump of browser is triggered to surveying
The creation page of trial business;Alternatively, when tester can be touched after scanning the test two dimensional code by two-dimensional code authentication function
The display page jump of browser is sent out to the creation page of test assignment.
In embodiment, to test triggering command as an address test, performance test apparatus is personal computer
(Personal Computer, PC), terminal to be measured be Android mobile phone for, the creation process of test assignment is illustrated.?
Android mobile phone and PC machine are established after communication connection, any one browser of the openable PC machine of tester, and in browser
Network address input frame in input the address test, can make the browser of PC machine display page jump to test assignment creation page
Face.Fig. 3 is a kind of display schematic diagram of the creation page of test assignment provided in an embodiment of the present invention.As shown in figure 3, in the wound
It builds on the page, shows plan title, test platform, test case, number of run and network.Wherein, plan title refers to
The title of the test assignment can be named according to test platform _ date _ test platform version format, for example, test is flat
Platform is Andorid, testDate is that March 6, test platform version in 2019 are 6.1, then planning title can be Andorid_
2019-03-06_6.1;Test platform refers to operating system used by terminal to be measured, for example, test platform can be
Android, or IOS;Test case is related with institute's function to be tested, it can be understood as, to the difference of terminal to be measured
When function is tested, selected test case is also different;Number of run refers to test case in terminal to be measured
The number to be run can be configured number of run, wherein number of run by provided single choice drop-down list
Range is between 1-9, and certainly, the default value of number of run is 1;Network refers to the network information used by terminal to be measured, than
Such as, network can be wireless network, can also be mobile network, when for wireless network, WIFI is can be used in terminal to be measured;When for movement
When network, 5G, 4G, 3G or 2G etc. is can be used in terminal to be measured.Certainly, in order to during the test, guarantee the network of terminal to be measured
Performance is more stable, can default using WIFI network.
It should be noted that test assignment further includes one of following information: the system information of terminal to be measured, test are used
The number of run of example and terminal to be measured use the information of network.Wherein, the system information of terminal to be measured refers to as shown in Figure 3
Test platform;The number of run of test case refers to number of run as shown in Figure 3;Terminal to be measured is referred to using the information of network
Be network as shown in Figure 3.
It is to be appreciated that can be clicked shown by right side after completing the filling in of information on the creation page of test assignment
" starting to test " button do not pass through if examining, on the browser of PC machine so that PC machine verifies the information filled in
Prompting frame is popped up, to carry out miscue to tester;If upchecking, the information filled in and test case are protected
It is stored in database server, and shows page jump to the page for monitoring test case implementation procedure the browser of PC machine
Face.Wherein, the page for monitoring test case implementation procedure, refer on the display page can real time inspection arrive test case
Execution state information, for example, execution state information can include: test case runs succeeded, and test case executes failure, and test is used
Example executes the states such as suspension.
Step 220 sends test assignment.
Wherein, test assignment includes test case and target pages.
The handoff procedure of step 230, monitoring terminal implementation of test cases to be measured between target pages.
It should be noted that terminal to be measured can be appointed by timing after test assignment is sent to terminal to be measured
Business scanning has new test case to itself, then dispatches Jenkins and creates a test item, to be supervised by the test item
Control handoff procedure of the terminal implementation of test cases to be measured between target pages.
Step 240 obtains record of the terminal implementation of test cases to be measured between target pages in handoff procedure.
Step 250 shows the performance test results determining according to record.
The technical solution of the present embodiment, on the basis of the above embodiments, by monitoring terminal implementation of test cases to be measured
Handoff procedure between target pages, and obtain note of the terminal implementation of test cases to be measured between target pages in handoff procedure
Record, realizes the real time monitoring to test case implementation procedure, in order to tester during the test to implementation procedure into
Row visual analyzing.
On the basis of the above embodiments, the creation process of test assignment is specifically described.Fig. 4 is implementation of the present invention
A kind of flow chart for creation test assignment that example provides.With reference to Fig. 4, the process of creation test assignment step specific as follows:
Step 310, PC machine browser send creation test assignment request to web server.
It in embodiment, need to be clear in PC machine before sending creation test assignment request to web server in PC machine browser
Look at device display interface on fill in default list.Wherein, list is preset as shown in figure 3, including: plan title, test platform, survey
Example, number of run and network on probation.It is to be understood that including the terminal to be measured test case to be executed in test assignment.
As shown in figure 3, terminal institute to be measured can be imported in the option of test case during filling in the creation information of test assignment
The test case to be executed, what which can download from database server, or led in local data base
Enter to obtain.
After completing the filling in of default list, right side as shown in Figure 3 can be clicked directly on and " start to test " button, it can be with
It is interpreted as, the clicking trigger of " starting to test " is to send the triggering command that creation test assignment is requested to web server.When
So, in the actual operation process, the button of " starting to test " need to be clicked by tester.
Step 320, web server will create test assignment request and be forwarded to application server.
Step 330, application server will create test assignment request and be saved in database server.
In embodiment, before application server will create test assignment request preservation to database server, application
Server need to verify fill message as shown in Figure 3, if verification passes through, creation test assignment request is saved to number
According to library server, meanwhile, the test case in the test assignment is also saved in database server, and in the test case and
Corresponding relationship is established between test assignment, in order to which corresponding test case can be called directly according to the test assignment.
Step 340, database server are back to application server for result is put in storage.
Wherein, storage result can be understood as the request of creation test assignment and whether test case is successfully saved to database
Result in server.If successfully saving, storage result is successfully;If failed save, storage result is failure.Certainly, if
Being put in storage result is successfully, it is understood that is also successfully created for test assignment.
Step 350, application server forwarding storage result to web server.
Step 360, web server are back to PC machine browser for result is put in storage.
Step 370, the display interface displaying storage result in PC machine browser.
In embodiment, if storage result be successfully, shown on the display interface of PC machine browser " test assignment at
Function creation, and successfully save " printed words, if storage result be failure, on the display interface of PC machine browser display " not at
The concrete reason of function preservation " and failure, for example, test case etc. is not inquired, so that tester is convenient for browsing in PC machine
The display interface of device checks the creation result of test assignment and the concrete reason of failure, and carries out visual analyzing to it.
Understand for the ease of the process to creation test assignment, in interactive form to the creation process of test assignment
Explanation is described.Fig. 5 is a kind of interaction diagrams for creating test assignment provided in an embodiment of the present invention, which is in Fig. 4
On the basis of, test is appointed with the interactive form between PC machine browser, Web server, application server, database server
Explanation is described in the creation process of business.
Step 410, PC machine browser send creation test assignment request to web server.
Step 420, web server will create test assignment request and be forwarded to application server.
Step 430, application server will create test assignment request and be saved in database server.
Step 440, database server are back to application server for result is put in storage.
Step 450, application server forwarding storage result to web server.
Step 460, web server are back to PC machine browser for result is put in storage.
Step 470, the display interface displaying storage result in PC machine browser.
It should be noted that correspondingly, i.e., step 410- step 470 is with step 310- step 370 respectively
The explanation of step 410- step 470 is shown in the specific descriptions of step 310- step 370 in above-described embodiment, herein respectively
It repeats no more.
Fig. 6 is a kind of flow chart of implementation of test cases provided in an embodiment of the present invention.As shown in fig. 6, this executes test
The process of use-case specifically comprises the following steps:
Step 510, application server send the request to create of test item to web server.
The request to create of test item is forwarded to Jenkins by step 520, web server.
Step 530, Jenkins create test item, to monitor the process of terminal implementation of test cases to be measured.
It should be noted that Jenkins is also numbered each test item while creating test item
Processing.Meanwhile there are the relationships of main external key between the number of the test item and the number of test assignment, in order to make to test
Project can accurately monitor the implementation procedure of test case in corresponding test assignment.
After the creation that Jenkins completes test item, the automatic implementation of test cases of terminal to be measured, so that terminal to be measured
Display interface from association page switching to association the page, and by test item monitor terminal to be measured from be associated with page switching to
The implementation procedure of target pages.
Step 540, Jenkins receive the implementing result that terminal to be measured returns, and implementing result is back to web services
Device.
Wherein, implementing result can be understood as the execution state information of test item.It also is understood as, the test item pair
The execution state information for the test case answered.For example, the execution state information of test item and the execution state of test case are believed
Manner of breathing is same, also include: successfully, failure, stop etc. states.
Implementing result is forwarded to application server by step 550, web server.
Step 560, application server save implementing result to database server.
Step 570, database server are back to web server for result is put in storage, to be entered by PC machine browser-presented
Library result.
For the ease of understanding the process of implementation of test cases, in interactive form to the implementation procedure of test case
Explanation is described.Fig. 7 is a kind of interaction diagrams of implementation of test cases provided in an embodiment of the present invention, which is in Fig. 6
On the basis of, with the interactive form between application server, Web server, Jenkins, database server to test case
Implementation procedure explanation is described.
Step 610, application server send the request to create of test item to web server.
The request to create of test item is forwarded to Jenkins by step 620, web server.
Step 630, Jenkins create test item, to monitor the process of terminal implementation of test cases to be measured.
Step 640, Jenkins receive the implementing result that terminal to be measured returns, and implementing result is back to web services
Device.
Implementing result is forwarded to application server by step 650, web server.
Step 660, application server save implementing result to database server.
Step 670, database server are back to web server for result is put in storage, to be entered by PC machine browser-presented
Library result.
It should be noted that correspondingly, i.e., step 610- step 670 is with step 510- step 570 respectively
The explanation of step 610- step 670 is shown in the specific descriptions of step 510- step 570 in above-described embodiment, herein respectively
It repeats no more.
On the basis of the above embodiments, while implementing result is back to Jenkins by terminal to be measured, terminal to be measured
Original performance data accessed by default acquisition script can be back to application server.Specifically, in application server
It receives terminal to be measured to be switched to after the information of the association page, application server is to default acquisition script and terminal to be measured
Record screen function sends enabled instruction, to start default acquisition script and the record of terminal to be measured for obtaining original performance data
Shield function, after the record screen function of default acquisition script and terminal to be measured is ready, sends and start to application server
Success instructs, and receives default acquisition script startup in application server and successfully instructs and record screen function and start and successfully instructs it
Afterwards, application server sends enabled instruction to test case so that terminal to be measured automatic implementation of test cases again, and control to
Terminal is surveyed from association page switching to target pages.
In handoff procedure, presets acquisition script and obtain terminal to be measured during the association page switching to target pages
Original performance data (i.e. record of the implementation of test cases in target pages handoff procedure), and original performance data are sent
To application server, so that application server carries out conversion process (can include: format conversion) to original performance data, to generate
Final the performance test results, then application server stores the performance test results into database server, and by property
Energy test result is back to web server, and passes through PC machine browser measurement of the display characteristics result.
It should be noted that when application server carries out conversion process to original performance data, it can be by end to be measured
Record of the implementation of test cases between target pages in handoff procedure is held to be divided into network data and local two kinds of performance data.Its
In, the network transmission of terminal to be measured data packet in handoff procedure between target pages records, and can be denoted as network data;Terminal to be measured
Between target pages in handoff procedure terminal to be measured performance parameter, local performance data can be denoted as.When application server is not to
When carrying out conversion process with data, used processing mode is also different.
In one embodiment, Fig. 8 is the process that a kind of pair of network data provided in an embodiment of the present invention carries out conversion process
Figure.As shown in figure 8, data handling procedure may include step 710- when application server carries out conversion process to network data
Step 720:
Step 710 extracts a group network data of laying equal stress on, to generate network packet record file.
In embodiment, the network packet during page switching is grabbed by packet catcher, as primitive network number
According to then being recombinated to raw network data, to generate new network packet.Specifically, it can be grabbed by mintdump
Network packet during job contract tool crawl page switching, then recombinates the network data in network packet, with
It is that network packet records the corresponding reference format of file by the Format adjusting of network data.In embodiment, network packet records file
Corresponding reference format is pcap format.
Step 720 formats network packet record file, to generate object format file.
Wherein, object format file is HAR file.
In embodiment, obtain network packet record file and then it is secondary to network packet record file format turn
It changes, to generate the file of HAR format.Wherein, library can be analyzed by dpkt to format network packet record file, with life
At HAR file.
It, can be by HARViewer, between terminal implementation of test cases to be measured target pages after generating HAR file
Network transmission record in handoff procedure is shown.Wherein, HARViewer is an online tool, it is therefore an objective to by super literary
The HTTP archives of this transport protocol (HyperText Transfer Protocol, HTTP) trace tool creation/HAR log text
Part is visualized, and includes the log of HTTP request/response session information in HTTP archives/HAR journal file, for carrying out
Page load performance is further analysed.It is to be appreciated that converting generation when carrying out conversion process to network data
Object format file is the corresponding the performance test results of network data.
Fig. 9 is a kind of display schematic diagram of HAR file provided in an embodiment of the present invention.As shown in figure 9, passing through
HARViewer shows the collected network data of institute with the pattern of waterfall type.As shown in figure 9, may include each in the HAR file
The information such as the load information source in stage, answer code (status code), load information size, page load time (total time-consuming), than
Such as, load information source is GET home_f813a739.js, and answer code 200, load information size is 11.6KB, when load
Between be 438ms.Wherein, the load time can include: the time, domain name mapping time, creation of network connection is waited to pass transport control protocol
The time of time, transmission HTTP request to server that view (Transmission Control Protocol, TCP) connects, etc.
Time to be responded receives or time read from caching etc. from server.
Figure 10 is that a kind of parsing HAR file provided in an embodiment of the present invention obtains the display schematic diagram of Network Details.Such as figure
Shown in 10, access originator (wherein, the access originator can include: number (is loading not same area for obtaining the page can be parsed from HAR file
Name when, successively sequence obtain), domain name, uniform resource locator (Uniform Resource Locator, URL)), total time-consuming
The details (for example, request method, packet packet header size) of (page load time), request and the response condition (ratio of response
Such as, answer code, packet header size and main body size).Illustratively, as shown in Figure 10, the domain name that number is 3078 is
Appvipshop.com, uniform resource locator be http://sc.appvipshop.com/verion, total time-consuming 438ms,
Request method is POST, and the packet header size of request data package is 449B, and the packet header size of answer code 200, response data packet is
279B, main body size 12.
Certainly, when the different function to difference APP in terminal to be measured is tested, parsing is obtained from HAR file
Network Details information is also different, i.e., Network Details information can be made a concrete analysis of as the case may be, herein no longer one by one
It enumerates.
In one embodiment, Figure 11 is provided in an embodiment of the present invention a kind of to local performance data progress conversion process
Flow chart.As shown in figure 11, when application server formats local performance data, data handling procedure may include
Step 810- step 820:
Step 810 extracts local performance data.
Wherein, local performance data can be understood as between target pages the performance parameter of terminal to be measured in handoff procedure.
In embodiment, terminal to be measured is during from association page switching to target pages, the performance parameter of terminal to be measured itself
It is in real-time change.For example, local performance data packet includes: CPU accounting, memory accounting, refresh rate.It is to be understood that surveying
In the actual mechanical process of examination, point in different times, CPU accounting and memory accounting consumed by the APP in terminal to be measured
It is real-time change.
Step 820 formats the local performance data, to generate target data.
Wherein, target data is the data of JSON data format.
In embodiment, the process local performance data formatted, it can be understood as to local performance data
Carry out the process of splitting and reorganizing.It specifically, can after getting the performance parameter of terminal to be measured by default acquisition script
Performance parameter is reconfigured according to JSON data format, to generate target data.It is to be appreciated that locality
When energy data carry out conversion process, converting the target data generated is the corresponding the performance test results of local performance data.
By the Data Format Transform of local performance data be JSON data format after, obtain target data, then with
Target data is shown the display interface in PC machine browser by the mode of chart.Terminal to be measured the display page from association the page
During switching to target pages, to the APP in terminal to be measured, consumed CPU percentage is united in different time points
Meter realizes the CPU accounting that different time points are visually shown to tester, in order to the property during page switching
It can data progress visual analyzing.Figure 12 is a kind of statistics schematic diagram of CPU accounting provided in an embodiment of the present invention.Such as Figure 12 institute
Show, using 0.1s as time interval, when to being in different time points, CPU percentage consumed by the APP is shown analysis, shows
Example property, in 0.1s, CPU accounting consumed by the APP is 2.60%.
The display page of terminal to be measured from association page switching to target pages during, in terminal to be measured
Consumed memory percentage is counted APP in different time points, when realizing visually different to tester's displaying
Between the memory accounting put, in order to carry out visual analyzing to the performance data during page switching.Figure 13 is of the invention real
A kind of display schematic diagram of Memory statistics of example offer is provided.As shown in figure 13, using 0.1s as time interval, in different time
When point, memory percentage consumed by the APP is shown analysis, for example, saving as 7.687M in APP consumption in 0.1s.
Certainly, statistical illustratively only is carried out to CPU accounting and memory using 0.1s as time interval in the present embodiment
Analysis, can be for statistical analysis to CPU accounting and memory at various time intervals in the actual mechanical process of test,
This is without limiting.
In embodiment, record of the terminal implementation of test cases to be measured between target pages in handoff procedure includes between the page
Switching time.Wherein, the switching time between the page can be understood as terminal to be measured from association page switching to target pages institute
The time span needed.In embodiment, the record screen function itself being had using terminal to be measured, monitors terminal to be measured in page object
Switching time between face.It should be noted that with the record of terminal to be measured screen function between the switching time target pages into
Row statistics is to more accurately count from time span needed for association page switching to target pages.Specifically, if logical
The execution code for crossing test case counts the switching time target pages, often has ignored required for page rendering
Time, so that the switching time between the page that statistics obtains is less than terminal to be measured from association page switching to target pages
Time.Such as, it is assumed that it is long from the time needed for association page switching to target pages by the execution code statistics of test case
Spending is 2.5s, and the time needed for target pages rendering is 0.3s, then is counted by the record screen function of terminal to be measured from the association page
Time span needed for switching to target pages should be 2.8s.
Figure 14 is a kind of display schematic diagram for loading target pages provided in an embodiment of the present invention.As shown in figure 14, with
0.5s is time interval, is illustrated to terminal to be measured from each video frame of association page switching to target pages.It is specific next
It says, after the display page switching to the association page of terminal to be measured, the execution code in test case starts terminal to be measured
Record screen function, and after receiving record screen and successfully starting up instruction, test case control terminal to be measured from association page switching to
Target pages, and function is shielded by the record of terminal to be measured, handoff procedure target pages is recorded, to generate video, so
The extraction that frame image is carried out from video afterwards successively extracts video frame images as shown in figure 14 with the time interval of 0.5s, when
So, during extraction, the frame image where the association page and target pages need to be first extracted, is i.e. is shown at 0.00s
Frame image is the association page, and the frame image shown at 2.88s is target pages, is then successively mentioned with the time interval of 0.5s
Take other frame images, then by frame image show PC machine browser the display page so that tester to frame image into
The analysis of row data.Certainly, in order to more accurately analyze frame image, mentioning for frame image can be carried out with the time interval of 0.1s
It takes.
Figure 15 is the flow chart of the method for another performance test provided in an embodiment of the present invention, is provided in the present embodiment
The method of performance test can be executed by terminal to be measured, which can be realized by way of software and/or hardware, should
Terminal to be measured can be two or more physical entities and constitute, and is also possible to a physical entity and constitutes.It is to be measured in the present embodiment
Terminal is smart phone, is used for implementation of test cases.Wherein, the operating system of smart phone can be Android system, can also be
IOS system.
With reference to Figure 15, the method for performance test provided in an embodiment of the present invention is specifically included:
Step 910 obtains test assignment.
Wherein, test assignment includes test case and target pages.
In embodiment, after terminal to be measured and performance test apparatus establish communication connection, terminal to be measured be can receive
The test assignment that performance test apparatus is created, and the test case in test assignment is got, and use by executing test
Example makes the display page switching of terminal to be measured to target pages.
Certainly, the communication connection mode between terminal to be measured and performance test apparatus, can refer to step in above-described embodiment
Description in 110, details are not described herein.
Step 920, implementation of test cases switch between target pages.
In embodiment, it is scanned by timed task to there is new test case to be loaded into terminal to be measured, terminal to be measured
Corresponding application server sends the request to create of test item to Jenkins, to create new test item, completes to test
After the creation of project, the automatic implementation of test cases of terminal to be measured, so that the display page switching of terminal to be measured is to being associated with the page,
Then again from association page switching to target pages.
Step 930 is sent in record between target pages in handoff procedure, shows to performance test apparatus according to record
Determining the performance test results.
Wherein, record can be understood as terminal to be measured from the original performance during association page jump to target pages
Data.It should be noted that obtaining target by default acquisition script during terminal implementation of test cases to be measured
Original performance data between the page in handoff procedure, and original performance data are sent to application server, so that application service
Device carries out conversion process to original performance data, to generate the performance test results.After obtaining the performance test results, using clothes
The performance test results are forwarded to PC machine browser by web server by business device, and are opened up on the display interface of PC machine browser
Show the performance test results, so that tester carries out visual analyzing to the performance test results.
Figure 16 is a kind of structural block diagram of the device of performance test provided in an embodiment of the present invention.With reference to Figure 16, the performance
The device of test includes: sending module 1010, obtains module 1020 and display module 1030.
Wherein, sending module 1010, for sending test assignment, the test assignment includes test case and page object
Face;
Module 1020 is obtained, for obtaining note of the terminal implementation of test cases to be measured between target pages in handoff procedure
Record;
Display module 1030, for showing the performance test results determining according to record.
Technical solution provided in this embodiment, by the test case and target pages in test assignment, so that being not necessarily to
Test case is embedded into the application program in terminal to be measured, it can be by the direct implementation of test cases of terminal to be measured in page object
Switch between face, and obtain the performance test results determining according to the record between target pages in handoff procedure, guarantee both will not
The application program capacity of terminal to be measured is impacted, the system of terminal to be measured will not be run and be impacted, reduced pair
The Interventional that terminal to be measured is tested for the property improves the convenience of performance test.
On the basis of the above embodiments, the device of the performance test, further includes:
Creation module, for according to test triggering command, creating test assignment before the transmission test assignment.
On the basis of the above embodiments, the device of the performance test, further includes:
Monitoring module executes handoff procedure of the test case between target pages for monitoring the terminal to be measured.
On the basis of the above embodiments, the terminal to be measured executes test case handoff procedure between target pages
In record include: terminal to be measured data packet in handoff procedure between target pages network transmission record and in page object
Between face in handoff procedure terminal to be measured performance parameter.
On the basis of the above embodiments, the terminal to be measured executes test case handoff procedure between target pages
In record include the page between switching time.
On the basis of the above embodiments, the test assignment further includes one of following information: the terminal to be measured is
Information, the number of run of test case and the terminal to be measured of uniting use the information of network.
The device of above-mentioned performance test can be performed provided by any embodiment of the invention applied to performance test apparatus
The method of performance test has the corresponding functional module of execution method and beneficial effect.
Figure 17 is the structural block diagram of the device of another performance test provided in an embodiment of the present invention.With reference to Figure 17, the property
The device that can be tested includes: to obtain module 1110, execution module 1120 and sending module 1130.
Wherein, module 1110 is obtained, for obtaining test assignment, which includes test case and target pages;
Execution module 1120 switches between target pages for implementation of test cases;
Sending module 1130, the record for being sent between target pages in handoff procedure, to performance test apparatus exhibition
Show the performance test results determining according to record.
The performance provided by any embodiment of the invention applied to terminal to be measured can be performed in the device of above-mentioned performance test
The method of test has the corresponding functional module of execution method and beneficial effect.
Figure 18 is a kind of structural block diagram of the system of performance test provided in an embodiment of the present invention.Referring to Fig.1 8, the performance
The system of test specifically includes: terminal 1210 to be measured and performance test apparatus 1220;
Wherein, it is communicated to connect between terminal 1210 to be measured and performance test apparatus 1220.
In embodiment, terminal 1210 to be measured can be connected by wire or wireless mode, build with performance test apparatus 1220
Vertical communication connection.Wherein, wired or wireless connection type can be found in the description of above-described embodiment, and details are not described herein.
It is applied to performance test apparatus described in above-described embodiment specifically, being provided on performance test apparatus 1220
The device of 1220 performance test, terminal 1210 to be measured, which is provided with, is applied to terminal 1210 to be measured described in above-described embodiment
Performance test device.
It, specifically can be according to being tested it should be noted that the quantity of terminal 1210 to be measured is not construed as limiting in the present embodiment
Terminal to be measured 1210 quantity and performance test apparatus 1220 interface quantity that itself has determine.Illustratively,
It as shown in figure 18, is PC machine with performance test apparatus 1220, terminal 1210 to be measured is that Android mobile phone and a performance test are set
Standby 1220 are connected with for two terminals 1210 to be measured, are shown explanation to the system of performance test.Meanwhile in the present embodiment
Performance test apparatus 1220 and the method that above-mentioned each corresponding performance test can be performed respectively of terminal to be measured 1210, specifically
The implementation procedure method that can be found in above-mentioned performance test, details are not described herein.
Figure 19 is a kind of structural schematic diagram of equipment provided in an embodiment of the present invention.With reference to Figure 19, which is performance survey
Equipment is tried, also, the performance test apparatus includes: processor 1310, memory 1320, input unit 1330 and output device
1340.The quantity of processor 1310 can be one or more in the equipment, in Figure 19 by taking a processor 1310 as an example.It should
The quantity of memory 1320 can be one or more in equipment, in Figure 19 by taking a memory 1320 as an example.The equipment
Processor 1310, memory 1320, input unit 1330 and output device 1340 can be connected by bus or other modes
It connects, in Figure 19 for being connected by bus.In embodiment, performance test apparatus can be desktop computer, all-in-one machine, notebook electricity
Brain etc..
Memory 1320 is used as a kind of computer readable storage medium, and it is executable to can be used for storing software program, computer
Program and module, the corresponding program instruction/module of equipment as described in any embodiment of that present invention is (for example, performance test
Sending module 1010, acquisition module 1020 and display module 1030 in device).Memory 1320 can mainly include storage program
Area and storage data area, wherein storing program area can application program needed for storage program area, at least one function;Storage
Data field, which can be stored, uses created data etc. according to equipment.In addition, memory 1320 may include high random access
Memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other it is non-easily
The property lost solid-state memory.In some instances, memory 1320 can further comprise remotely located relative to processor 1310
Memory, these remote memories can pass through network connection to equipment.The example of above-mentioned network includes but is not limited to interconnect
Net, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 1330 can be used for receiving the number or character information of input, and generate and performance test apparatus
User setting and the related key signals input of function control.Output device 1340 may include that display screen etc. shows equipment.It needs
It is noted that the concrete composition of input unit 1330 and output device 1340 may be set according to actual conditions.
Software program, instruction and the module that processor 1310 is stored in memory 1320 by operation, thereby executing
The various function application and data processing of equipment realize the side of the above-mentioned performance test applied to performance test apparatus
Method.
The performance test apparatus of above-mentioned offer can be used for executing setting applied to performance test for above-mentioned any embodiment offer
The method of standby performance test has corresponding function and beneficial effect.
In addition, the content that hardware configuration can be found in when equipment is terminal to be measured is explained when equipment is terminal to be measured.It needs
Illustrate, when equipment is terminal to be measured, the program stored in corresponding memory 1320 can be institute of the embodiment of the present invention
Corresponding program instruction/the module of method for being applied to the performance test of terminal to be measured is provided, processor 1310 passes through operation storage
Software program, instruction and module in memory 1320, thereby executing the various function application and number of computer equipment
According to processing, i.e., it is applied to the method for the performance test of terminal to be measured in realization above method embodiment.It is understood that above-mentioned
When equipment is terminal to be measured, the side of the performance test provided by any embodiment of the invention applied to terminal to be measured can be performed
Method, and have corresponding function and beneficial effect.
The embodiment of the present invention also provides a kind of storage medium comprising computer executable instructions, and the computer is executable
Instruct a kind of method when being executed by computer processor for executing performance test, comprising:
Test assignment is sent, the test assignment includes test case and target pages;
It obtains the terminal to be measured and executes record of the test case between target pages in handoff procedure;
Show the performance test results determining according to the record.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method for the performance test applied to performance test apparatus that executable instruction is not limited to the described above operates, this can also be performed
Applied to the relevant operation in the method for the performance test of performance test apparatus provided by invention any embodiment, and has phase
The function and beneficial effect answered.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be robot, personal computer, server or the network equipment etc.) executes answers described in any embodiment of that present invention
The method of performance test for performance test apparatus.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media
Combination.The program code for including on computer-readable medium can transmit with any suitable medium, including --- but be not limited to
Wirelessly, electric wire, optical cable, radio frequency etc. or above-mentioned any appropriate combination.It can be with one or more programming languages
Or combinations thereof write the computer program code for executing operation of the present invention, described program design language includes object-oriented
Programming language-such as Java, Smalltalk, C++, further include conventional procedural programming language-such as
" C " language or similar programming language.Program code can be executed fully on performance test apparatus.
It is worth noting that, included each unit and module are only according to function in the device of above-mentioned performance test
What logic was divided, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each function
The specific name of unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
The embodiment of the invention also provides another computer readable storage medium, the computer executable instructions by
A kind of method when computer processor executes for executing performance test applied to terminal to be measured, this method comprises: obtaining
Test assignment, the test assignment include test case and target pages;Implementation of test cases switches between target pages;It sends
Record between target pages in handoff procedure shows the performance test results determining according to record to performance test apparatus.
It can be found in the content in above-described embodiment to the introduction of storage medium to explain.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (12)
1. a kind of method of performance test characterized by comprising
Test assignment is sent, the test assignment includes test case and target pages;
It obtains terminal to be measured and executes record of the test case between target pages in handoff procedure;
Show the performance test results determining according to the record.
2. the method according to claim 1, wherein before the transmission test assignment, further includes:
According to test triggering command, test assignment is created.
3. the method according to claim 1, wherein further include:
It monitors the terminal to be measured and executes handoff procedure of the test case between target pages.
4. the method according to claim 1, wherein the terminal to be measured executes the test case in page object
Record between face in handoff procedure includes: the network transmission note of terminal to be measured data packet in handoff procedure between target pages
Record and between target pages in handoff procedure terminal to be measured performance parameter.
5. method according to any one of claims 1 to 4, which is characterized in that the terminal to be measured executes the test and uses
Record of the example between target pages in handoff procedure includes the switching time between the page.
6. method according to any one of claims 1 to 4, which is characterized in that the test assignment further includes following information
One of: the system information of the terminal to be measured, the number of run of test case and terminal to be measured use the information of network.
7. a kind of method of performance test characterized by comprising
Test assignment is obtained, the test assignment includes test case and target pages;
The test case is executed to switch between target pages;
It is sent in the record between target pages in handoff procedure, the property determining according to the record is shown to performance test apparatus
It can test result.
8. a kind of device of performance test characterized by comprising
Sending module, for sending test assignment, the test assignment includes test case and target pages;
Module is obtained, executes record of the test case between target pages in handoff procedure for obtaining terminal to be measured;
Display module, for showing the performance test results determining according to the record.
9. a kind of device of performance test characterized by comprising
Module is obtained, for obtaining test assignment, the test assignment includes test case and target pages;
Execution module switches between target pages for executing the test case;
Sending module, the record for being sent between target pages in handoff procedure, shows to performance test apparatus according to institute
State the determining the performance test results of record.
10. a kind of system of performance test characterized by comprising terminal to be measured and performance test apparatus;The terminal to be measured
It is communicated to connect between the performance test apparatus;Performance test as claimed in claim 8 is arranged in the performance test apparatus
Device, the device of performance test as claimed in claim 9 is arranged in the terminal to be measured.
11. a kind of equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The method of existing performance test as claimed in claim 1.
12. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The method of performance test as claimed in claim 1 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910273016.2A CN109977027A (en) | 2019-04-04 | 2019-04-04 | A kind of method, apparatus of performance test, system, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910273016.2A CN109977027A (en) | 2019-04-04 | 2019-04-04 | A kind of method, apparatus of performance test, system, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109977027A true CN109977027A (en) | 2019-07-05 |
Family
ID=67083209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910273016.2A Pending CN109977027A (en) | 2019-04-04 | 2019-04-04 | A kind of method, apparatus of performance test, system, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109977027A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110633216A (en) * | 2019-09-20 | 2019-12-31 | 北京首汽智行科技有限公司 | APP performance test method |
CN112256265A (en) * | 2020-10-14 | 2021-01-22 | 北京百家科技集团有限公司 | H5 page stability testing method and device, storage medium and electronic equipment |
CN112363898A (en) * | 2020-11-10 | 2021-02-12 | 上海莉莉丝科技股份有限公司 | Performance acquisition method, system and storage medium for user equipment |
CN113055425A (en) * | 2019-12-27 | 2021-06-29 | 大唐移动通信设备有限公司 | Data transmission method and device |
CN113591090A (en) * | 2020-04-30 | 2021-11-02 | 腾讯科技(深圳)有限公司 | Method, device and equipment for reporting program bug and storage medium |
CN113760757A (en) * | 2021-08-31 | 2021-12-07 | 成都安恒信息技术有限公司 | Method and system for generating test model based on HAR file |
CN114036073A (en) * | 2022-01-07 | 2022-02-11 | 荣耀终端有限公司 | Test method and test device for terminal equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662839A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Testing method and device for software interface state change time |
CN104484273A (en) * | 2014-12-19 | 2015-04-01 | 广州博冠信息科技有限公司 | Test method for application program, device and system |
US9075918B1 (en) * | 2014-02-25 | 2015-07-07 | International Business Machines Corporation | System and method for creating change-resilient scripts |
CN107783899A (en) * | 2017-08-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | The method of testing of the H5 pages, device and computer equipment in application program |
CN108733568A (en) * | 2018-05-25 | 2018-11-02 | 平安科技(深圳)有限公司 | Application testing method, device, equipment and readable storage medium storing program for executing |
-
2019
- 2019-04-04 CN CN201910273016.2A patent/CN109977027A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662839A (en) * | 2012-03-29 | 2012-09-12 | 奇智软件(北京)有限公司 | Testing method and device for software interface state change time |
US9075918B1 (en) * | 2014-02-25 | 2015-07-07 | International Business Machines Corporation | System and method for creating change-resilient scripts |
CN104484273A (en) * | 2014-12-19 | 2015-04-01 | 广州博冠信息科技有限公司 | Test method for application program, device and system |
CN107783899A (en) * | 2017-08-25 | 2018-03-09 | 上海壹账通金融科技有限公司 | The method of testing of the H5 pages, device and computer equipment in application program |
CN108733568A (en) * | 2018-05-25 | 2018-11-02 | 平安科技(深圳)有限公司 | Application testing method, device, equipment and readable storage medium storing program for executing |
Non-Patent Citations (2)
Title |
---|
伍云辉等: "web基础", 《电子商务与实战》 * |
布赖恩.奥肯: "Jenkins CI:让测试自动化", 《PYTEST测试实战》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110633216A (en) * | 2019-09-20 | 2019-12-31 | 北京首汽智行科技有限公司 | APP performance test method |
CN113055425A (en) * | 2019-12-27 | 2021-06-29 | 大唐移动通信设备有限公司 | Data transmission method and device |
CN113055425B (en) * | 2019-12-27 | 2022-04-05 | 大唐移动通信设备有限公司 | Data transmission method and device |
CN113591090A (en) * | 2020-04-30 | 2021-11-02 | 腾讯科技(深圳)有限公司 | Method, device and equipment for reporting program bug and storage medium |
CN113591090B (en) * | 2020-04-30 | 2024-01-09 | 腾讯科技(深圳)有限公司 | Program bug reporting method, device, equipment and storage medium |
CN112256265A (en) * | 2020-10-14 | 2021-01-22 | 北京百家科技集团有限公司 | H5 page stability testing method and device, storage medium and electronic equipment |
CN112363898A (en) * | 2020-11-10 | 2021-02-12 | 上海莉莉丝科技股份有限公司 | Performance acquisition method, system and storage medium for user equipment |
CN112363898B (en) * | 2020-11-10 | 2022-12-06 | 上海莉莉丝科技股份有限公司 | Performance acquisition method, system and storage medium for user equipment |
CN113760757A (en) * | 2021-08-31 | 2021-12-07 | 成都安恒信息技术有限公司 | Method and system for generating test model based on HAR file |
CN113760757B (en) * | 2021-08-31 | 2023-08-22 | 成都安恒信息技术有限公司 | Method and system for generating test model based on HAR file |
CN114036073A (en) * | 2022-01-07 | 2022-02-11 | 荣耀终端有限公司 | Test method and test device for terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109977027A (en) | A kind of method, apparatus of performance test, system, equipment and storage medium | |
US10003671B2 (en) | Capturing and replaying application sessions using resource files | |
CN107256195B (en) | Webpage front-end test method and device | |
CN107341098A (en) | Software performance testing method, platform, equipment and storage medium | |
CN106559707A (en) | Video quality detection method, device and Quality management center | |
CN104461897B (en) | A kind of method and apparatus of Application testing | |
CN106445817B (en) | Processing method, the device and system of test data | |
CN110162471A (en) | A kind of method for testing pressure and system based on container cloud | |
CN108804302A (en) | A kind of remote test method, system and relevant device | |
CN105260082B (en) | A kind of test data methods of exhibiting and exploitation terminal | |
CN103581133B (en) | Web server sends the method and system of response to access request | |
CN110275822A (en) | Performance test methods, device, equipment and the storage medium of application programming interfaces | |
CN103916283A (en) | Server pressure test system and method | |
CN102891875B (en) | Signaling tracking method, WEB client side, service end and signal following system | |
CN109828921A (en) | HTML5 webpage automated function test method, system and electronic equipment | |
CN108363667A (en) | A kind of log information capture apparatus | |
CN109739711A (en) | A kind of interface test method, device, equipment and storage medium | |
CN113608812A (en) | Remote control method, device, system and storage medium | |
CN112988356A (en) | Asynchronous calling method and device, storage medium and electronic equipment | |
CN107168844B (en) | Performance monitoring method and device | |
CN110399723A (en) | Leak detection method and device, storage medium and electronic device | |
KR20120071175A (en) | Mobile phone loading web-platform, method for offering log information using the same mobile phone, verification system and method for web-platform | |
CN115514677A (en) | Server dial testing method and system | |
CN106911662B (en) | System and method for high-interaction to low-interaction conversion of malicious sample culture | |
CN114092169A (en) | Ordering test method and system and equipment for executing ordering test method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190705 |
|
RJ01 | Rejection of invention patent application after publication |