CN103577290A - Test script playback rhythm control method and system - Google Patents
Test script playback rhythm control method and system Download PDFInfo
- Publication number
- CN103577290A CN103577290A CN201310532559.4A CN201310532559A CN103577290A CN 103577290 A CN103577290 A CN 103577290A CN 201310532559 A CN201310532559 A CN 201310532559A CN 103577290 A CN103577290 A CN 103577290A
- Authority
- CN
- China
- Prior art keywords
- operational order
- monitoring
- playback
- project
- measured
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 72
- 238000000034 method Methods 0.000 title claims abstract description 21
- 230000033764 rhythmic process Effects 0.000 title abstract 2
- 238000012544 monitoring process Methods 0.000 claims abstract description 95
- 230000000694 effects Effects 0.000 claims description 33
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000009931 harmful effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
Images
Abstract
The invention discloses a test script playback rhythm control method and system. The method comprises the steps as follows: S1, when a test terminal performs script playback, system status monitoring service is started; S2, after the test terminal receives one operation instruction sent by a script tool, the instruction type and a corresponding to-be-tested project are judged, and at the same time, the operation instruction is executed; and S3, after the system status monitoring service monitors an expected change of the to-be-tested project, feedback information executed by the operation instruction is fed back to the script tool, and then a next operation instruction is received until the script playback is finished. The method and the system have high adaptability, the playback speed can be automatically controlled according to a real-time status of the test terminal, the test efficiency is improved, the playback accuracy is guaranteed simultaneously, and the accuracy of a test report can be directly improved.
Description
Technical field
The present invention relates to the technical field of measurement and test of electronic equipment, relate in particular to a kind of playback tempo control method and system of test script.
Background technology
Along with popularizing of mobile intelligent terminal, people are also more and more, more and more higher to the demand of intelligent terminal, and for mobile terminal manufacturer, the test of mobile terminal also becomes increasingly complex, and what occur is increasing automated test tool thereupon.But make a general survey of the automated test tool on market, when playback script, the sequence control between adjacent two orders is mainly adopted in two ways: the one, between two adjacent orders, use fixing time slot; The 2nd, can to an order repeatedly attempt (as do not run succeeded for the first time, can proceed for the second time or more times number trial).These two kinds of modes have obvious defect, are exactly the actual operating state of not considering mobile terminal.Use fixing time slot can not adapt to the actual motion of mobile terminal, tend to the efficiency of test to cause restriction, and for the second way, in the middle of repeatedly attempting, have fixedly time slot, also easily affect testing efficiency.On the other hand, above two kinds of modes also may cause the harmful effect to test result, and the mobile terminal of take carries out the test relevant to network as example, if use above two kinds of modes, test result may change along with the variation of network condition, and then disturbed test.
Therefore, need to develop a kind of test script playback controls technology that can improve testing efficiency and ensure test result reliability.
Summary of the invention
In order to overcome the weak point of the prior art of above-mentioned indication, the invention provides a kind of playback tempo control method and system of test script, be intended to improve testing efficiency and accurate testing degree, reduce the interference causing because of script playback time slot.
The present invention is achieved by the following technical solutions:
A playback tempo control method, comprise the following steps:
S1, test terminal are when carrying out script playback, and open system status monitoring is served;
S2, test terminal receive after an operational order of wscript.exe transmission, and decision instruction type and corresponding project to be measured are carried out described operational order simultaneously;
S3, system state monitoring service monitoring are after the expection variation of project to be measured, and the feedback information that operational order is finished is back to wscript.exe, then receives next operational order until script playback completes.
In the playback tempo control method of test script of the present invention, the type of described operational order comprises clicking operation, long by operation, word input operation, physical button operation, slide.The project to be measured that described operational order is corresponding comprises one or both or three kinds in control state, Activity state, word state.
Further, described step S3 comprises:
The current variation of S31, system state monitoring service monitoring project to be measured, comprises one or both or three kinds in monitoring current control state, current Activity state, current word state;
Whether the current variation of the project to be measured of S32, judgement monitoring gained the follow-up variation of associated project to be measured, if so, continues the follow-up variation of monitoring project to be measured, otherwise directly performs step S33;
S33, the feedback information that operational order is finished are back to wscript.exe, then receive next operational order until script playback completes.
Further, the playback tempo control method of test script of the present invention also comprises: S4, wscript.exe receive after the feedback information that operational order is finished, judge whether script playback completes, if, to system state monitoring service, send script playback and complete order, system state monitoring end of service, otherwise send next operational order.
The present invention also provides a kind of playback tempo control system of test script, comprising:
Preparation module, for test terminal when carrying out script playback, open system state monitoring module;
Instruction analysis and execution module, receive for test terminal after an operational order of wscript.exe transmission, and decision instruction type and corresponding project to be measured are carried out described operational order simultaneously;
System state monitoring module, for monitoring the variation of project to be measured;
Feedback module, for monitoring after the expection variation of project to be measured, the feedback information that operational order is finished is back to wscript.exe, then receives next operational order until script playback completes.
In the playback tempo control system of test script of the present invention, the type of described operational order comprises clicking operation, long by operation, word input operation, physical button operation, slide.The project to be measured that described operational order is corresponding comprises one or both or three kinds in control state, Activity state, word state.
Further, described system state monitoring module comprises:
Current state monitoring means, for monitoring the current variation of project to be measured, comprises one or both or three kinds in monitoring current control state, current Activity state, current word state;
Succeeding state monitoring means, for judging the whether follow-up variation of associated project to be measured of current variation of the project to be measured of monitoring gained, if so, continues the follow-up variation of monitoring project to be measured, otherwise directly starts feedback module.
Further, the playback tempo control system of test script of the present invention also comprises: stop monitoring modular, for wscript.exe, receive after the feedback information that operational order is finished, judge whether script playback completes, if, to system state monitoring module, send script playback and complete order, termination system state monitoring module, otherwise send next operational order.
Compared with prior art, the present invention is by the state variation of control and measuring terminal, control the playback progress of directive script, the script playback mode that is different from existing fixedly time slot, has very strong adaptability, can automatically control playback speed according to the real time status of test terminal, intelligently test script is carried out to playback, the interference that minimizing causes because of playback time slot, has guaranteed the accuracy of playback when improving testing efficiency, directly improved the precision of test report.
Accompanying drawing explanation
The playback tempo control method schematic flow sheet of the test script that accompanying drawing 1 is an embodiment of the present invention;
The framework schematic diagram of the playback tempo control system of the test script that accompanying drawing 2 is an embodiment of the present invention.
Embodiment
For the ease of those skilled in the art's understanding, below in conjunction with drawings and Examples, the invention will be further described.
A playback tempo control method, comprise the following steps:
S1, test terminal are when carrying out script playback, and open system status monitoring is served;
S2, test terminal receive after an operational order of wscript.exe transmission, and decision instruction type and corresponding project to be measured are carried out described operational order simultaneously;
S3, system state monitoring service monitoring are after the expection variation of project to be measured, and the feedback information that operational order is finished is back to wscript.exe, then receives next operational order until script playback completes.
Activity is an assembly of being responsible for user interactions, and in Activity, all operations is all closely related with user, can show appointment control by setContentView (View).In android application, an Activity is exactly an independent screen conventionally, can show that some controls also can monitor and process user's event and make response above it.
In step S1, when test terminal starts playback script, open system state monitoring service, this serves Activity state variation, control state variation, word state variation of main monitoring system etc.
In step S2, when playback instrument sends an operational order (as button click, open application, slip screen etc.) to test terminal, the type that system state monitoring service judgement is current sent instructions, according to the instruction type judgement sending, need the project to be measured of monitoring (as button click, system state monitoring service need to be monitored control state variation and Activity state variation simultaneously), simultaneity factor is carried out this operational order.The operational order of button click of take is example, when the operational order of system state monitoring service detection to the button click of playback instrument transmission, judge that it is clicking operation type, and start to detect control state variation, Activity state variation, simultaneity factor is carried out the operation of button click.In the present invention, the type of described operational order includes but not limited to clicking operation, long by operation, word input operation, physical button operation, slide.The project to be measured that described operational order is corresponding can comprise one or both or three kinds in control state, Activity state, word state.
Further, described step S3 comprises:
The current variation of S31, system state monitoring service monitoring project to be measured, comprises one or both or three kinds in monitoring current control state, current Activity state, current word state;
Whether the current variation of the project to be measured of S32, judgement monitoring gained the follow-up variation of associated project to be measured, if so, continues the follow-up variation of monitoring project to be measured, otherwise directly performs step S33;
S33, the feedback information that operational order is finished are back to wscript.exe, then receive next operational order until script playback completes.
In step S3, system state monitoring service is monitored for project to be measured, when project generation to be measured variation in line being detected, also can judge whether that the follow-up variation that can cause project to be measured occurs (as when Activity state variation being detected according to its current variable condition, whether loaded) if also needing further to monitor next Activity interface, if can cause follow-up variation, continue to wait for that this follow-up variation occurs, to monitoring after the follow-up variation of Activity state, the feedback information just this operational order being finished is sent to wscript.exe, if can not cause that succeeding state occurs, the feedback information that system state monitoring service is finished this operational order is so sent to wscript.exe, wscript.exe receives after the feedback information that instruction is finished, continue to send next instruction to test terminal, so repeatedly, until script be finished.Take button click operational order as example, and after system is carried out click push-botton operation, there is variation to Activity state in system state monitoring service detection, and further judge whether Activity state variation can cause that succeeding state changes.The Activity state relation completing due to the current variation of Activity state and follow-up loading, therefore, when Activity state variation being detected, need further monitoring Activity interface whether to load, the follow-up variation of Activity state is monitored, to monitoring after the follow-up variation of Activity state, the feedback information just this operational order being finished is sent to wscript.exe.Following table 1 provides instruction type the to be measured project that need monitoring corresponding with it.
Instruction type | Project to be measured |
Clicking operation | Control state, Activity state |
Long by operation | Control state, Activity state |
Word input operation | Word state |
Physical button operation | Control state, Activity state |
Slide | Control state |
Form 1
Further, the playback tempo control method of test script of the present invention also comprises: S4, wscript.exe receive after the feedback information that operational order is finished, judge whether script playback completes, if, to system state monitoring service, send script playback and complete order, system state monitoring end of service, otherwise send next operational order.When wscript.exe receives after the feedback information that operational order is finished, after judgement present instruction playback completes, judge whether this present instruction also has subsequent instructions, continues to send to test terminal if having, otherwise finish playback; Wscript.exe sends it back to system state monitoring service after the order discharging, this system state monitoring service auto-destruct.
Test terminal in the present invention comprises the intelligent terminals such as smart mobile phone, panel computer.The playback tempo control method flow process that the invention also discloses the test script of a kind of embodiment, as shown in Figure 1, comprises the following steps:
S101, the service of open system status monitoring, start playback script;
S102, wscript.exe send an operational order to test terminal;
S103, test terminal receive operational order, and decision instruction type is clicking operation;
Described operational order is carried out in S104, test terminal;
The current variation that S105, system state monitoring service monitoring arrive project to be measured, comprises control state variation and Activity state variation;
Whether the current variation of the project to be measured of S106, judgement monitoring gained the follow-up variation of associated project to be measured, if so, performs step S107, otherwise directly performs step S108;
S107, continue to monitor after the follow-up variation of project to be measured execution step S108;
S108, the feedback information that operational order is finished are back to wscript.exe;
S109, wscript.exe receive after the feedback information that operational order is finished, judge whether script playback completes, be i.e. after current operation instruction, whether also have subsequent instructions, if, execution step S110, continues to send next operational order to test terminal otherwise return to step S102;
S110, wscript.exe send script playback to system state monitoring service and complete order;
S111, system state monitoring service auto-destruct.
The present invention also provides a kind of playback tempo control system of test script, as shown in Figure 2, comprising:
Instruction analysis and execution module 22, receive for test terminal after an operational order of wscript.exe transmission, and decision instruction type and corresponding project to be measured are carried out described operational order simultaneously;
System state monitoring module 23, for monitoring the variation of project to be measured;
In the playback tempo control system of test script of the present invention, the type of described operational order includes but not limited to clicking operation, long by operation, word input operation, physical button operation, slide.The project to be measured that described operational order is corresponding can comprise one or both or three kinds in control state, Activity state, word state.
Further, described system state monitoring module 23 comprises:
Current state monitoring means 231, for monitoring the current variation of project to be measured, comprises one or both or three kinds in monitoring current control state, current Activity state, current word state;
Succeeding state monitoring means 232, for judging the whether follow-up variation of associated project to be measured of current variation of the project to be measured of monitoring gained, if so, continues the follow-up variation of monitoring project to be measured, otherwise directly starts feedback module.
Further, the playback tempo control system of test script of the present invention also comprises: stop monitoring modular 25, for wscript.exe, receive after the feedback information that operational order is finished, judge whether script playback completes, if, to system state monitoring module, send script playback and complete order, termination system state monitoring module, otherwise send next operational order.
Above content is in conjunction with concrete optimal way further description made for the present invention, should not assert that specific embodiment of the invention is confined to above explanation.For those skilled in the art, without departing from the inventive concept of the premise, can also make some simple deduction or replace, within the definite protection domain of the claim that all should be considered as being submitted to by the present invention.
Claims (10)
1. a playback tempo control method for test script, is characterized in that, comprises the following steps:
S1, test terminal are when carrying out script playback, and open system status monitoring is served;
S2, test terminal receive after an operational order of wscript.exe transmission, and decision instruction type and corresponding project to be measured are carried out described operational order simultaneously;
S3, system state monitoring service monitoring are after the expection variation of project to be measured, and the feedback information that operational order is finished is back to wscript.exe, then receives next operational order until script playback completes.
2. the playback tempo control method of test script according to claim 1, is characterized in that: the type of described operational order comprises clicking operation, long by operation, word input operation, physical button operation, slide.
3. the playback tempo control method of test script according to claim 1, is characterized in that: the project to be measured that described operational order is corresponding comprises one or both or three kinds in control state, Activity state, word state.
4. the playback tempo control method of test script according to claim 3, is characterized in that, described step S3 comprises:
The current variation of S31, system state monitoring service monitoring project to be measured, comprises one or both or three kinds in monitoring current control state, current Activity state, current word state;
Whether the current variation of the project to be measured of S32, judgement monitoring gained the follow-up variation of associated project to be measured, if so, continues the follow-up variation of monitoring project to be measured, otherwise directly performs step S33;
S33, the feedback information that operational order is finished are back to wscript.exe, then receive next operational order until script playback completes.
5. according to the playback tempo control method of the test script described in any one in claim 1~4, it is characterized in that, also comprise:
S4, wscript.exe receive after the feedback information that operational order is finished, and judge whether script playback completes, and if so, to system state monitoring service, send script playback and complete order, system state monitoring end of service, otherwise send next operational order.
6. a playback tempo control system for test script, is characterized in that, comprising:
Preparation module, for test terminal when carrying out script playback, open system state monitoring module;
Instruction analysis and execution module, receive for test terminal after an operational order of wscript.exe transmission, and decision instruction type and corresponding project to be measured are carried out described operational order simultaneously;
System state monitoring module, for monitoring the variation of project to be measured;
Feedback module, for monitoring after the expection variation of project to be measured, the feedback information that operational order is finished is back to wscript.exe, then receives next operational order until script playback completes.
7. the playback tempo control system of test script according to claim 6, is characterized in that: the type of described operational order comprises clicking operation, long by operation, word input operation, physical button operation, slide.
8. the playback tempo control system of test script according to claim 6, is characterized in that: the project to be measured that described operational order is corresponding comprises one or both or three kinds in control state, Activity state, word state.
9. the playback tempo control system of test script according to claim 8, is characterized in that, described system state monitoring module comprises:
Current state monitoring means, for monitoring the current variation of project to be measured, comprises one or both or three kinds in monitoring current control state, current Activity state, current word state;
Succeeding state monitoring means, for judging the whether follow-up variation of associated project to be measured of current variation of the project to be measured of monitoring gained, if so, continues the follow-up variation of monitoring project to be measured, otherwise directly starts feedback module.
10. according to the playback tempo control system of the test script described in any one in claim 6~9, it is characterized in that, also comprise:
Stop monitoring modular, for wscript.exe, receive after the feedback information that operational order is finished, judge whether script playback completes, if, to system state monitoring module, send script playback and complete order, termination system state monitoring module, otherwise send next operational order.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310532559.4A CN103577290B (en) | 2013-11-01 | 2013-11-01 | Test script playback rhythm control method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310532559.4A CN103577290B (en) | 2013-11-01 | 2013-11-01 | Test script playback rhythm control method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103577290A true CN103577290A (en) | 2014-02-12 |
CN103577290B CN103577290B (en) | 2017-04-19 |
Family
ID=50049121
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310532559.4A Expired - Fee Related CN103577290B (en) | 2013-11-01 | 2013-11-01 | Test script playback rhythm control method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103577290B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461694A (en) * | 2014-12-17 | 2015-03-25 | 北京奇虎科技有限公司 | Multi-script playback method and device |
CN105872534A (en) * | 2016-04-05 | 2016-08-17 | Tcl海外电子(惠州)有限公司 | Terminal testing method and device |
CN108874569A (en) * | 2018-05-31 | 2018-11-23 | 北京三快在线科技有限公司 | The method, apparatus and electronic equipment of event response and file generated |
CN110928759A (en) * | 2018-09-19 | 2020-03-27 | 福建天泉教育科技有限公司 | Message push test method and terminal |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101175284A (en) * | 2006-11-01 | 2008-05-07 | 联想移动通信科技有限公司 | Function testing method of portable electronic apparatus |
CN102495799A (en) * | 2011-12-02 | 2012-06-13 | 刘伟 | Automatic test system and method of movable terminal |
-
2013
- 2013-11-01 CN CN201310532559.4A patent/CN103577290B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101175284A (en) * | 2006-11-01 | 2008-05-07 | 联想移动通信科技有限公司 | Function testing method of portable electronic apparatus |
CN102495799A (en) * | 2011-12-02 | 2012-06-13 | 刘伟 | Automatic test system and method of movable terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461694A (en) * | 2014-12-17 | 2015-03-25 | 北京奇虎科技有限公司 | Multi-script playback method and device |
CN104461694B (en) * | 2014-12-17 | 2018-05-04 | 北京奇虎科技有限公司 | More script back methods and device |
CN105872534A (en) * | 2016-04-05 | 2016-08-17 | Tcl海外电子(惠州)有限公司 | Terminal testing method and device |
CN108874569A (en) * | 2018-05-31 | 2018-11-23 | 北京三快在线科技有限公司 | The method, apparatus and electronic equipment of event response and file generated |
CN108874569B (en) * | 2018-05-31 | 2021-07-30 | 北京三快在线科技有限公司 | Event response and file generation method and device and electronic equipment |
CN110928759A (en) * | 2018-09-19 | 2020-03-27 | 福建天泉教育科技有限公司 | Message push test method and terminal |
CN110928759B (en) * | 2018-09-19 | 2024-03-01 | 福建天泉教育科技有限公司 | Message pushing testing method and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103577290B (en) | 2017-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103686813B (en) | Device and method for testing automatic switching stability of wireless AP (access point) channel | |
CN105425201B (en) | metering chip simulation test method for software reliability detection of intelligent electric energy meter | |
EP3665462B1 (en) | Identification of air leaks in a compressed air system using a plurality of current measurement sensors | |
CN102662828A (en) | A method and device for achieving software automatic testing | |
CN103941207A (en) | Electric power measurement automation terminal detection method and system | |
CN105740122B (en) | A kind of monitoring method and monitoring system of mobile phone EMS memory leakage | |
EP2807591B1 (en) | A method and system for monitoring the health status of electronic appliances | |
CN103577290A (en) | Test script playback rhythm control method and system | |
CN101105514A (en) | Portable electronic device test system and method | |
CN111078532A (en) | Terminal equipment testing method, device and system | |
CN103077114A (en) | Automatic testing method based on communication protocol of temperature measuring device | |
CN106095682A (en) | Android application stability test method for simulating complex network | |
US20180368072A1 (en) | Systems and methods for testing power consumption of electronic devices | |
CN104297664A (en) | Mainboard time sequence measuring device and method | |
CN105260077A (en) | Electronic device and detection method for capacitive touch screen of electronic device | |
CN103037239A (en) | System and method for testing receiving performance of digital video receiving terminal | |
CN109831348A (en) | Automatic jig test method, equipment and system | |
CN106612215A (en) | Integrated remote detection device and method based on Ethernet | |
CN112583617B (en) | Fault determination method, server, control terminal and storage medium | |
CN105138458A (en) | Method and system for recording automatic testing scripts by combining intelligent terminal and computer terminal | |
CN105739478A (en) | Missile fault prediction device and method | |
CN105487958A (en) | Processor internal behavior monitoring method | |
CN208672108U (en) | A kind of gas meter function test macro | |
CN111722997B (en) | Abnormality detection method for automated test and computer-readable storage medium | |
CN103019897A (en) | System and method for managing test of substrate management controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 523860 Guangdong oper Mobile Communication Co., Ltd., No. 18, Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 Guangdong oper Mobile Communication Co., Ltd., No. 18, Wusha Haibin Road, Chang'an Town, Dongguan City, Guangdong Province Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170419 |