CN106201846B - Method for monitoring performance and device in automatic test - Google Patents

Method for monitoring performance and device in automatic test Download PDF

Info

Publication number
CN106201846B
CN106201846B CN201610509533.1A CN201610509533A CN106201846B CN 106201846 B CN106201846 B CN 106201846B CN 201610509533 A CN201610509533 A CN 201610509533A CN 106201846 B CN106201846 B CN 106201846B
Authority
CN
China
Prior art keywords
test
test case
performance
module
case
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
CN201610509533.1A
Other languages
Chinese (zh)
Other versions
CN106201846A (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.)
Weimeng Chuangke Network Technology China Co Ltd
Original Assignee
Weimeng Chuangke Network Technology China 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 Weimeng Chuangke Network Technology China Co Ltd filed Critical Weimeng Chuangke Network Technology China Co Ltd
Priority to CN201610509533.1A priority Critical patent/CN106201846B/en
Publication of CN106201846A publication Critical patent/CN106201846A/en
Application granted granted Critical
Publication of CN106201846B publication Critical patent/CN106201846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present invention provides the method for monitoring performance and device in a kind of automatic test, which includes: performance test control module, for starting the automated performance testing to equipment under test, test case required for being obtained from test case library;Test case execution module establishes test assignment, test case described in automated execution for the test case according to acquisition;Performance information acquisition module, for realizing the performance state information of equipment under test in collecting test use-case implementation procedure by Java reflection technology and Java unit testing calls application interface;Network service module carries out visualization for collected performance state information and shows processing, and exports and give performance information display module;Performance information display module, the performance state information for real-time exhibition equipment under test is to user.It can realize that automatic test and performance monitoring, good compatibility are high-efficient by a set of frame.

Description

Method for monitoring performance and device in automatic test
Technical field
Method for monitoring performance and dress the present invention relates to automatization testing technique field, in espespecially a kind of automatic test It sets.
Background technique
In product development process, automatic test is essential link, for example, carrying out on the terminal device true The simulation test of environment, wherein the properties of terminal device when being run on the terminal device including detection application program.
Currently used automatic test implementation is usually used and builds two sets of frames on equipment under test, a set of It is automated test frame, another set of is performance monitoring frame.Two framework compositions use, and realize the automation to terminal device Test and performance monitoring.This mode has the following disadvantages: two sets of frame couplings are low, and interaction is complicated between frame, make Poor at system compatibility, system is unstable;It cannot achieve multiple equipment under tests while carrying out automation performance acquisition;Which needs It manually to participate in, the degree of automation is low, and testing efficiency is also relatively low.
There are also automatic test+performance logs implementation and two for currently used automatic test implementation Frame is covered, a part is automated test frame, and another part is performance logs analysis and processing module, by automatic test Performance logs function is added in frame.Log is collected and recorded to progress performance is devices under, in the form of a file by log It is stored in and is devices under.After be analyzed and processed after the completion of automatic test to log, to obtain performance information.This side Formula is also required to two sets of frame couplings, and interaction is complicated between frame, causes system compatibility poor, system is unstable;And the place of log Reason analysis very complicated, performance information show it is not intuitive, can not real-time exhibition equipment performance information.
Summary of the invention
The embodiment of the present invention provides the method for monitoring performance and device in a kind of automatic test, to solve the prior art Present in the interaction of two sets of frames it is complicated, poor compatibility influences system stability, and analyzes complicated, and the degree of automation is poor, test The problems such as low efficiency.
On the one hand, the embodiment of the invention provides the performance monitoring apparatus in a kind of automatic test, comprising:
Performance test control module, test case execution module, performance information acquisition module, network service module and performance Information display module;
Performance test control module is obtained from test case library for starting the automated performance testing to equipment under test Take required test case;
Test case execution module is established test assignment for the test case according to acquisition, is surveyed described in automated execution Example on probation;
Performance information acquisition module, for real by Java reflection technology and Java unit testing calls application interface The performance state information of equipment under test in existing collecting test use-case implementation procedure;
Network service module carries out visualization for collected performance state information and shows processing, and exports to performance Information display module;
Performance information display module, the performance state information for real-time exhibition equipment under test is to user.
In some alternative embodiments, the test case stored in the test case library includes in following test case At least one: screen taps test case, physical button press test case, and screen slides test case, cell phone system shape Test case is arranged in state, constructs initial testing state verification use-case, resets test mode test case;
Correspondingly, the test case execution module, is specifically used for:
The test case script that automated execution is obtained from test case library realizes that analog subscriber operates in following operation At least one: screen taps, physical button are pressed, screen sliding, cell phone system state setting, construct initial testing state, Reset test mode.
In some alternative embodiments, the performance test control module, is specifically used for:
At least one for allowing user to execute in following operation is realized by management of webpage interface: start, pause, stop, Restart the automated performance testing to equipment under test.
In some alternative embodiments, above-mentioned apparatus, further includes:
Test case management module, the test case for having been write in management of test cases library, to test case into Edlin, modification, deletion update operation.
In some alternative embodiments, the test case management module, is also used to:
When required test case is not present in test case library, test required for not finding to user feedback is used Example simultaneously prompts user's Selection and call test case to write module to write required test case;The test case write is deposited It stores up in test case library.
The embodiment of the invention also provides the method for monitoring performance in a kind of automatic test, comprising:
Start the automated performance testing to equipment under test, test case required for obtaining from test case library;
Test assignment, test case described in automated execution are established according to the test case of acquisition;
Realize that collecting test use-case executed by Java reflection technology and Java unit testing calls application interface The performance state information of equipment under test in journey;
Collected performance state information carries out visualization and shows processing, and the performance state letter of real-time exhibition equipment under test It ceases to user.
In some alternative embodiments, the test case stored in the test case library includes in following test case At least one: screen taps test case, physical button press test case, and screen slides test case, cell phone system shape Test case is arranged in state, constructs initial testing state verification use-case, resets test mode test case;
Correspondingly, test case described in the automated execution, specifically includes:
The test case script that automated execution is obtained from test case library realizes that analog subscriber operates in following operation At least one: screen taps, physical button are pressed, screen sliding, cell phone system state setting, construct initial testing state, Reset test mode.
In some alternative embodiments, being realized by management of webpage interface allows user to execute in following operation at least One: starting, suspend, stopping, restarting automated performance testing to equipment under test.
In some alternative embodiments, the above method further include:
The test case write in management of test cases library is edited test case, is modified, deleted or is updated Operation.
In some alternative embodiments, the above method further include:
When required test case is not present in test case library, test required for not finding to user feedback is used Example simultaneously prompts user's Selection and call test case to write module to write required test case;
By the test case write storage into test case library.
Above-mentioned technical proposal has the following beneficial effects: by building the performance monitoring apparatus in an automatic test, It realizes to the performance monitoring in automatic test, it is real by Java reflection technology and Java unit testing calls application interface The performance state information of equipment under test, does not need to build two sets of frames, avoids frame in existing collecting test use-case implementation procedure Between interaction, keep the realization process of performance monitoring more simple and convenient, improve system compatibility and stability, improve test The degree of automation and testing efficiency of performance monitoring in the process.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of the performance monitoring apparatus in the embodiment of the present invention in automatic test;
Fig. 2 is a kind of concrete structure schematic diagram of the performance monitoring apparatus in the embodiment of the present invention in automatic test;
Fig. 3 is the flow chart of the method for monitoring performance in the embodiment of the present invention one in automatic test;
Fig. 4 is the schematic illustration of the method for monitoring performance in the embodiment of the present invention two in automatic test;
Fig. 5 is the flow chart of the method for monitoring performance in the embodiment of the present invention two in automatic test.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Complicated in order to solve two sets of frames interaction existing in the prior art, poor compatibility influences system stability, and divides Analysis is complicated, and the degree of automation is poor, the low equal some problems of testing efficiency, and the embodiment of the present invention provides the property in a kind of automatic test Energy monitoring device and method, the performance monitoring being able to use in a set of frame realization automatic test, reduce complicated interaction Process improves compatibility and stability.
The embodiment of the present invention provides the performance monitoring apparatus in a kind of automatic test, and structure is as shown in Figure 1, comprising: Performance test control module 101, test case execution module 102, performance information acquisition module 103,104 and of network service module Performance information display module 105.
Performance test control module 101, for starting the automated performance testing to equipment under test, from test case library Test case required for obtaining.
Test case execution module 102 establishes test assignment for the test case according to acquisition, described in automated execution Test case.
Performance information acquisition module 103, for calling application program to connect by Java reflection technology and Java unit testing Cause for gossip shows the performance state information of equipment under test in collecting test use-case implementation procedure.
Network service module 104 carries out visualization for collected performance state information and shows processing, and exports to property It can information display module.
Performance information display module 105, the performance state information for real-time exhibition equipment under test is to user.
Preferably, the test case stored in above-mentioned test case library includes at least one of following test case: screen Curtain clicks test case, and physical button presses test case, and screen slides test case, and the setting test of cell phone system state is used Example constructs initial testing state verification use-case, resets test mode test case.
Correspondingly, above-mentioned test case execution module 102, obtains from test case library specifically for automated execution Test case script, realize at least one of following operation of analog subscriber operation: screen taps, physical button are pressed, screen Sliding, cell phone system state setting, constructs initial testing state, resets test mode.
Preferably, above-mentioned performance test control module 101 allows user to hold specifically for realizing by management of webpage interface At least one of in the following operation of row: start, suspend, stopping, restarting automated performance testing to equipment under test.
Preferably, the performance monitoring apparatus in above-mentioned automatic test further include:
Test case management module 106, the test case for having been write in management of test cases library, to test case Edited, modified, deleted or updated operation.
Preferably, above-mentioned test case management module 106 is also used to when there is no required tests in test case library When use-case, does not find required test case to user feedback and user's Selection and call test case is prompted to write module and write Required test case;By the test case write storage into test case library.
Performance monitoring apparatus in automatic test provided in an embodiment of the present invention, a kind of specific structure such as Fig. 2 institute Show, comprising: automatic test module group 200, be provided with performance test control module 201, test case management module 202, Test case execution module 203, performance information acquisition module 204, web server module 210 and performance information display module 220 With data server 230.
Wherein, Web server module 210 is mainly responsible for communication and connection automated performance testing module group 200, performance Information display module 220 and data server 230, control the execution of test case and check performance test report etc..
Performance test control module 201 is responsible for service logics and the functionality such as the starting stopping of control function performance test The logics such as the communication between energy test process.After test to be launched, test case execution can be submitted to by choosing test case Module 203.
Test case management module 202 is responsible for the test and management write in management of test cases library, is edited The operation such as update is deleted so as to maintenance test use-case library.
Test case execution module 203 is responsible for executing test case according to script, with reach simulation it is artificial from Dynamicization operation.After test case execution module 203 receives the test case that user selects execution, test assignment is established, and The operation automated, and send test case to performance information acquisition module 204 and execute notice.
Performance information acquisition module 204 is mainly responsible for the CPU of acquisition system, physical memory, virtual memory, disk, network, Using the starting time, the information such as battery capacity are acquired.Performance information acquisition module 204 receives test case and executes notice When, start acquisition performance status information, and send current device performance state to web server in real time to show test to use Family.
Automatic test module group 200 is by the system information obtained in performance information acquisition module 204 and web server mould Api interface information in block 210 is transferred in the performance information display module 220 of Web server to be showed for real-time visual; Real-time performance information passage capacity information display module 220 in test shows user, and final test result is saved in number According on server 230.
After test case executes, sent from test case execution module 203 to performance testing control module 201 logical Know, inform that test is completed, it is logical to send end performance acquisition from performance test control module 201 to performance information acquisition module 204 Know, performance information acquisition module 204 terminates performance and acquires and test result is stored on data server 230, shows simultaneously To user, user can equally carry out data preservation with other test equipments, and the operation such as comparison export simplifies monitoring test stream Journey improves the efficiency and accuracy rate of performance test.
Embodiment one
The method for monitoring performance in automatic test that the embodiment of the present invention one provides, process is as shown in figure 3, include such as Lower step:
Step S101: start the automated performance testing to equipment under test.
Terminal device application test in, can be built by user equipmenies such as personal computers automated test frame and Test script carries out automatic test to application.The execution of management of test cases can be realized with passage capacity testing control module In proper order and creative management test plan etc., dependence etc. is had between different test cases, these are all by performance test control Molding block is responsible for management.
Step S102: test case required for being obtained from test case library.
Test case (Test Case) be the one group of test input worked out for some special objective, execution condition and Expected results, to test some Program path or to verify whether meet some particular demands.By simulating some artificial points The operation such as sliding is hit, to achieve the purpose that carry out automatic test instead of artificial.The test case write can be stored in survey In example library on probation, test case is the set script of sequence of operations, this set includes screen taps, physical button point It presses, screen sliding, the setting of cell phone system state, constructs initial testing state, the operation such as resetting test mode is a series of by this The various combination of operational set simulate some user's operations to achieve the purpose that automatic test.
That is, the test case stored in test case library includes at least one of following test case: screen Test case is clicked, physical button presses test case, and screen slides test case, and test case is arranged in cell phone system state, Initial testing state verification use-case is constructed, test mode test case is reset.
Step S103: test assignment, the test case that automated execution obtains are established according to the test case of acquisition.
The test case write is executed, by the basic operation phase of test case operation script and terminal device bottom Conversion, to achieve the purpose that automatic test.
When automated execution institute test case, the test case script that automated execution is obtained from test case library is real At least one of existing following operation of analog subscriber operation: screen taps, physical button are pressed, screen sliding, cell phone system shape State setting, constructs initial testing state, resets test mode.
Step S104: realize that collecting test is used by Java reflection technology and Java unit testing calls application interface The performance state information of equipment under test in example implementation procedure.
Performance monitoring may be implemented the performances such as the central processing unit (CPU) to terminal device, memory, network and be acquired And monitoring.Collected performance state information data can give data server saved the generation so as to test report with And the later period check playback etc..
Step S105: collected performance state information carries out visualization and shows processing, and exports.
Collected performance state information can show user with passage capacity information display module or say tester, make It can visually check the performance information of mobile phone in real time.
Step S106: the performance state information of real-time exhibition equipment under test is to user.
In the above method, optionally, when automatic test, it can be realized by management of webpage interface under allowing user to execute At least one of in column operation: start, suspend, stopping, restarting automated performance testing to equipment under test.
Embodiment two
Second embodiment of the present invention provides the method for monitoring performance in above-mentioned automatic test, principle is as shown in figure 4, in fact Existing process is as shown in figure 5, include the following steps:
Step S201: start the automated performance testing to equipment under test.
By user or say that tester starts the automatic testing process that terminal is started to write.
Step S202: it searches and whether there is required test case in test case library.
If so, executing step S205, step S203 is executed if not.
After determining needs which or which test case, test case required for searching, root are removed in test case library Subsequent operation is executed according to query result.As shown in Figure 4, it selects existing test case or writes new test case.
Step S203: test case required for not finding to user feedback simultaneously prompts user's Selection and call test case to compile Writing module writes required test case.
When required test case is not present in test case library, test required for not finding to user feedback is used Example simultaneously prompts user's Selection and call test case to write module to write required test case;It is not deposited in test case library even In required specific test case, then user can be write module by test case and write new test case and be saved in In test case library.
Step S204: by the test case write storage into test case library.
Optionally, test case can be edited, repaired with the test case write in management of test cases library Change, delete or update operation.
Step S205: test case required for being obtained from test case library.
Step S206: test assignment, the test case that automated execution obtains are established according to the test case of acquisition.
Implementation of test cases as shown in Figure 4.
Step S207: realize that collecting test is used by Java reflection technology and Java unit testing calls application interface The performance state information of equipment under test in example implementation procedure.
Step S208: collected performance state information carries out visualization and shows processing, and exports.
Real-time exhibition as shown in Figure 4, additionally can to collected performance state information carry out data save with And generate test report.
Step S209: the performance state information of real-time exhibition equipment under test is to user.
User can be suspended by web management interface, be stopped, and the operation such as monitoring is restarted.
The above method starts monitoring thread while starting automatic test, obtains system performance information, is pushed to web The page carries out real-time exhibition, and report is carried out after test and shows and saves data.Collected data are to be based on name/value pair Data interchange format (JSON format) issue by web socket (WebSocket) and show end.By performance after test On information is uploaded onto the server.
The above method and device of the embodiment of the present invention can be based on Android (Android) automated test frame (Robotium) it realizes and black box automatic test is carried out to the application of Android platform, by simulating various gesture operation (points Hit, long-pressing, sliding etc.), search and assert application programming interface (the Application Programming of mechanism Interface, API) various controls can be operated, achieve the purpose that the test automated to application program.
The above method and device integrate performance test module, in automated test frame in automated test frame Android application program is called to connect by the Java unit testing (Android JUnit Test) of iava reflection technology and Android Mouth (Android API) is to obtain performance information, while executing automatic test cases, carries out performance to equipment under test and adopts Collect so that real-time performance monitoring shows with what performance evaluating was reported, automatic test and performance acquire high integration, seamless reality The automation for having showed performance test carries out.
The above method and device, deployment installation is simple, since performance test has been integrated into automated test frame, only A set of test frame, the automatic real-time perfoming performance acquisition when executing automatic test cases, without carrying out additional setting;Function , the real-time performance monitoring that can be automated high with the performance monitoring degree of coupling can be tested, is to have produced after the completion of test Whole performance test report, strong real-time;Test period is short, it can be achieved that automation, the performance test of customization improve performance The efficiency and accuracy rate of test;Real-time exhibition monitored results may be implemented in the program, by a network service module by system Monitor state is shown in webpage or browser window, no matter be devices under or other personal computers on, as long as Accessing webpage by browser can real-time exhibition system information;The program can be virtual interior to the CPU of system, physical memory It deposits, disk, network, using starting time, api interface data volume, the information such as electricity are acquired displaying, collect abundant test Data are to be more conducive to performance evaluation;The program not only can the information such as CPU memory to whole system monitoring, equally can be with To information process acquisitions such as CPU memories used in specific tested application program.
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed (illustrative logical block), unit and step can by electronic hardware, computer software, or both knot Conjunction is realized.For the replaceability (interchangeability) for clearly showing that hardware and software, above-mentioned various explanations Property component (illustrative components), unit and step universally describe their function.Such function It can be that the design requirement for depending on specific application and whole system is realized by hardware or software.Those skilled in the art Can be can be used by various methods and realize the function, but this realization is understood not to for every kind of specific application Range beyond protection of the embodiment of the present invention.
Various illustrative logical blocks or unit described in the embodiment of the present invention can by general processor, Digital signal processor, specific integrated circuit (ASIC), field programmable gate array or other programmable logic devices, discrete gate Or transistor logic, discrete hardware components or above-mentioned any combination of design carry out implementation or operation described function.General place Managing device can be microprocessor, and optionally, which may be any traditional processor, controller, microcontroller Device or state machine.Processor can also be realized by the combination of computing device, such as digital signal processor and microprocessor, Multi-microprocessor, one or more microprocessors combine a digital signal processor core or any other like configuration To realize.
The step of method described in the embodiment of the present invention or algorithm can be directly embedded into hardware, processor execute it is soft The combination of part module or the two.Software module can store in RAM memory, flash memory, ROM memory, EPROM storage Other any form of storaging mediums in device, eeprom memory, register, hard disk, moveable magnetic disc, CD-ROM or this field In.Illustratively, storaging medium can be connect with processor, so that processor can read information from storaging medium, and It can be to storaging medium stored and written information.Optionally, storaging medium can also be integrated into the processor.Processor and storaging medium can To be set in asic, ASIC be can be set in user terminal.Optionally, processor and storaging medium also can be set in In different components in the terminal of family.
In one or more exemplary designs, above-mentioned function described in the embodiment of the present invention can be in hardware, soft Part, firmware or any combination of this three are realized.If realized in software, these functions be can store and computer-readable On medium, or it is transferred on a computer readable medium in the form of one or more instructions or code forms.Computer readable medium includes electricity Brain storaging medium and convenient for so that computer program is allowed to be transferred to from a place telecommunication media in other places.Storaging medium can be with It is that any general or special computer can be with the useable medium of access.For example, such computer readable media may include but It is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk storage or other magnetic storage devices or other What can be used for carry or store with instruct or data structure and it is other can be by general or special computer or general or specially treated The medium of the program code of device reading form.In addition, any connection can be properly termed computer readable medium, example Such as, if software is to pass through a coaxial cable, fiber optic cables, double from a web-site, server or other remote resources Twisted wire, Digital Subscriber Line (DSL) are defined with being also contained in for the wireless way for transmitting such as example infrared, wireless and microwave In computer readable medium.The disk (disk) and disk (disc) includes compress disk, radium-shine disk, CD, DVD, floppy disk And Blu-ray Disc, disk is usually with magnetic replicate data, and disk usually carries out optically replicated data with laser.Combinations of the above Also it may be embodied in computer readable medium.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (10)

1. the performance monitoring apparatus in a kind of automatic test characterized by comprising performance test control module, test are used Example execution module, performance information acquisition module, network service module and performance information display module;
Performance test control module obtains institute for starting the automated performance testing to equipment under test from test case library The test case needed;
Test case execution module establishes test assignment for the test case according to acquisition, tests and use described in automated execution Example;
Performance information acquisition module, for calling Android application program interface real by Java reflection technology and Java unit testing The performance state information of equipment under test in existing collecting test use-case implementation procedure;
Network service module carries out visualization for collected performance state information and shows processing, and exports to performance information Display module;
Performance information display module, the performance state information for real-time exhibition equipment under test is to user.
2. device as described in claim 1, which is characterized in that the test case stored in the test case library includes following At least one of test case: screen taps test case, physical button press test case, and screen slides test case, Test case is arranged in cell phone system state, constructs initial testing state verification use-case, resets test mode test case;
Correspondingly, the test case execution module, is specifically used for:
The test case script that automated execution is obtained from test case library realizes that analog subscriber operates in following operation extremely One few: screen taps, physical button are pressed, screen sliding, and the setting of cell phone system state constructs initial testing state, resetting Test mode.
3. device as described in claim 1, which is characterized in that the performance test control module is specifically used for:
At least one for allowing user to execute in following operation is realized by management of webpage interface: being started, pause, is stopped, again Start the automated performance testing to equipment under test.
4. device a method according to any one of claims 1-3, which is characterized in that further include:
Test case management module, the test case for having write in management of test cases library, compiles test case It collects, modification, delete or update operation.
5. device as claimed in claim 4, which is characterized in that the test case management module is also used to:
When required test case is not present in test case library, test case required for not finding to user feedback is simultaneously Prompt user's Selection and call test case writes module and writes required test case;The test case storage write is arrived In test case library.
6. the method for monitoring performance in a kind of automatic test characterized by comprising
Start the automated performance testing to equipment under test, test case required for obtaining from test case library;
Test assignment, test case described in automated execution are established according to the test case of acquisition;
Android application program interface is called to realize that collecting test use-case executed by Java reflection technology and Java unit testing The performance state information of equipment under test in journey;
Collected performance state information carries out visualization and shows processing, and the performance state information of real-time exhibition equipment under test is given User.
7. method as claimed in claim 6, which is characterized in that the test case stored in the test case library includes following At least one of test case: screen taps test case, physical button press test case, and screen slides test case, Test case is arranged in cell phone system state, constructs initial testing state verification use-case, resets test mode test case;
Correspondingly, test case described in the automated execution, specifically includes:
The test case script that automated execution is obtained from test case library realizes that analog subscriber operates in following operation extremely One few: screen taps, physical button are pressed, screen sliding, and the setting of cell phone system state constructs initial testing state, resetting Test mode.
8. method as claimed in claim 6, which is characterized in that being realized by management of webpage interface allows user to execute following behaviour At least one of in work: start, suspend, stopping, restarting automated performance testing to equipment under test.
9. method as claimed in claim 6, which is characterized in that further include:
Behaviour is edited to test case, is modified, deleted or updated to the test case write in management of test cases library Make.
10. the method as described in claim 6-9 is any, which is characterized in that further include:
When required test case is not present in test case library, test case required for not finding to user feedback is simultaneously Prompt user's Selection and call test case writes module and writes required test case;
By the test case write storage into test case library.
CN201610509533.1A 2016-06-30 2016-06-30 Method for monitoring performance and device in automatic test Active CN106201846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610509533.1A CN106201846B (en) 2016-06-30 2016-06-30 Method for monitoring performance and device in automatic test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610509533.1A CN106201846B (en) 2016-06-30 2016-06-30 Method for monitoring performance and device in automatic test

Publications (2)

Publication Number Publication Date
CN106201846A CN106201846A (en) 2016-12-07
CN106201846B true CN106201846B (en) 2019-07-12

Family

ID=57464000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610509533.1A Active CN106201846B (en) 2016-06-30 2016-06-30 Method for monitoring performance and device in automatic test

Country Status (1)

Country Link
CN (1) CN106201846B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106972983B (en) * 2017-03-24 2020-03-17 上海携程国际旅行社有限公司 Automatic testing device and method for network interface
CN107274933A (en) * 2017-06-14 2017-10-20 湖南国科微电子股份有限公司 A kind of method and device for testing solid state hard disc
CN109144834B (en) * 2017-06-27 2021-11-23 深圳市Tcl高新技术开发有限公司 User behavior data acquisition method and device, android system and terminal equipment
CN107832226A (en) * 2017-11-23 2018-03-23 中国平安人寿保险股份有限公司 Report-generating method, device, equipment and computer media based on performance test
CN108156223A (en) * 2017-12-06 2018-06-12 深圳市猫投鹰信息科技有限公司 A kind of accurate supplying system of message based on websocket and method
CN107948640B (en) * 2017-12-19 2020-09-25 百度在线网络技术(北京)有限公司 Video playing test method and device, electronic equipment and storage medium
CN108595312A (en) * 2017-12-29 2018-09-28 瑞庭网络技术(上海)有限公司 A kind of automatic performance method and device of modelling customer behavior
CN111143189A (en) * 2018-11-02 2020-05-12 易保网络技术(上海)有限公司 Method and apparatus for application program interface API testing
CN109739754B (en) * 2018-12-25 2022-03-11 北京仁科互动网络技术有限公司 Automatic testing method and system for application program based on WeChat development
CN110381108B (en) * 2019-05-31 2021-11-05 凯迈(洛阳)机电有限公司 Method for integrated communication based on terminal equipment control system and informatization system
CN110704326A (en) * 2019-10-10 2020-01-17 浙江中控技术股份有限公司 Test analysis method and device
CN113535228B (en) * 2020-04-14 2024-04-09 深圳富桂精密工业有限公司 Method, apparatus and computer readable storage medium for monitoring data link
CN113838397B (en) * 2021-09-08 2024-05-28 深圳创维-Rgb电子有限公司 Display performance testing method, device, testing equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436274A (en) * 2008-11-14 2009-05-20 山东浪潮齐鲁软件产业股份有限公司 Method for across-platform monitoring enterprise application system performance
CN105426278A (en) * 2015-11-20 2016-03-23 北京畅游天下网络技术有限公司 Client equipment performance test method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4313336B2 (en) * 2005-06-03 2009-08-12 株式会社日立製作所 Monitoring system and monitoring method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436274A (en) * 2008-11-14 2009-05-20 山东浪潮齐鲁软件产业股份有限公司 Method for across-platform monitoring enterprise application system performance
CN105426278A (en) * 2015-11-20 2016-03-23 北京畅游天下网络技术有限公司 Client equipment performance test method and system

Also Published As

Publication number Publication date
CN106201846A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
CN106201846B (en) Method for monitoring performance and device in automatic test
CN108255729B (en) Mobile phone game automatic testing method and system based on Unity platform
CN103793324B (en) The test device and test method and test scene combined method of embedded software
CN106776294B (en) Automatic android mobile phone testing method and system
CN108717393A (en) A kind of applied program testing method and mobile terminal
CN106649024A (en) Method and device for real-time monitoring of application performance
CN110245073A (en) Client code coverage rate monitoring method, system, medium and electronic equipment
CN109062777A (en) A kind of track traffic signal equipment general automation test macro
CN103927255A (en) Software testing method based on cloud testing system, cloud testing system and client side of cloud testing system
CN103186439A (en) Server test system and server stability test method
CN110013672A (en) Method, unit and the computer readable storage medium of the automatic test of game for machine operation
CN106055466A (en) Method for implementing server testing, testing server and to-be-tested server
CN105025141A (en) Method and device for testing electricity consumption of terminal
CN104461846B (en) The method and apparatus for detecting application program power consumption
CN103544100A (en) Method, system and client side for testing APP of portable data processing equipment
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
CN105336287A (en) Display screen testing method, device and system
CN103268289A (en) Method and system for transcribing and applying test script on mobile terminal
CN113127312B (en) Method, device, electronic equipment and storage medium for database performance test
CN105512276B (en) Method and device for constructing junk file and electronic equipment
CN106528429A (en) UI testing method and device
CN108984380A (en) A kind of server test method, device and medium based on linux system
CN104702463A (en) Method, device and system for bypass testing of multiple machine rooms
CN104239202A (en) Non-Root testing method and system of interactive intelligent equipment
CN116560985A (en) Chip equipment test control method, upper computer, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant