CN103559136B - A kind of intelligence on mobile terminals performs method and the test system of script - Google Patents
A kind of intelligence on mobile terminals performs method and the test system of script Download PDFInfo
- Publication number
- CN103559136B CN103559136B CN201310594272.4A CN201310594272A CN103559136B CN 103559136 B CN103559136 B CN 103559136B CN 201310594272 A CN201310594272 A CN 201310594272A CN 103559136 B CN103559136 B CN 103559136B
- Authority
- CN
- China
- Prior art keywords
- script
- unit
- time delay
- condition
- exercisable
- 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
Links
- 230000005540 biological transmission Effects 0.000 claims abstract description 4
- 238000000034 method Methods 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 abstract description 5
- 230000000875 corresponding Effects 0.000 description 2
- 230000003542 behavioural Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 230000003203 everyday Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006011 modification reaction Methods 0.000 description 1
Abstract
The present invention provides a kind of intelligence on mobile terminals to perform method and the test system of script.The method includes: A, preparation script file;B, parsing script sentence;C, judge to operate whether time delay, if time delay, turn to step B;D, judge whether to occur abnormal, if so, remove exception;E, judge whether possess exercisable condition, if it is not, carry out time delay and judge whether time-out, if so, end operation, if it is not, continue to determine whether possess exercisable condition, perform failure reducing the script caused because of network condition and computing capability;F, transmission operational order;G, judge whether terminate, if so, end operation, if it is not, turn to step B.
Description
Technical field
The present invention relates to software test field, relate more specifically to one the most intelligent
Perform the method and system of test script.
Background technology
Software test is a category of soft project, as ensureing software quality and reliability
Important means, occupies an important position in whole software life-cycle, accounts for whole development cost
More than 60%.It is huge that software test is that a complicated process, especially manual test need to expend
Big human and material resources and time, tester needs to design, performs, analyzes substantial amounts of test
Use-case, thus manual test efficiency is the lowest, this also makes the expense in software test stage occupy height not
Under, account for the 40%-50% of whole software development cost.Therefore, Software Testing Tool is improved
Automaticity is to ensure that software development quality, reduces one of important means of software development cost.
Software test automation, from this huge discipline development of computer so far, the most basic meaning
Justice is the complexity solving manual labour, becomes the optimal work substituting some repeatability behavioral pattern
Tool.Software automated testing, as a branch of software testing technology, is at traditional code
A kind of measuring technology emerging on the basis of debugging and black box manual test.
Meanwhile, along with the fast development of mobile Internet, the model of mobile intelligent terminal and movement
The quantity of application is obtained for and is skyrocketed through.And the fast development of mobile field makes Mobile solution
Affect our life more and more, at mobile terminal, have every day ten hundreds of soft
Part is developed for mobile subscriber, and it is fast that Mobile solution possesses renewal speed, life cycle
Short feature, and user to function, performance, stability requirement more and more higher, so to from
The demand of dynamicization test is the most increasing.
And an important factor is exactly test script in automatic test, the execution of test script
Mode also determines accuracy and the ease for use of test.In traditional automatic test work,
After typically writing test script in using automated test tool, when using data pool (data
Drive) time, it is necessary first to utilize the mechanism of instrument itself to create the data of data pool corresponding to script
Structure, then needs the data of the data pool that manual modification script is corresponding, to meet according to data
Pond data are i.e. tested design and are repeated the purpose of automatic test script.
For different types of script, existing script executive mode is: timing is also held in order
The operation of regulation in traveling far and wide originally.Script defines operating point (as touch screen click, button,
Control click etc.) and delay time, perform in strict accordance with time sequencing during execution.This hold
The shortcoming of line mode is that script execution is more inflexible, holds in strict accordance with the script flow process write
OK, when there are abnormal conditions, (such as system has ejected upgrade tip etc.) cannot run succeeded,
And be difficult to carry out result differentiation.
Summary of the invention
In view of this, present invention mainly solves the deficiency of above-mentioned existing script execution,
When performing script, each step all uses intelligent distinguishing, only occurs in that the result wanted in each step
Time, just carrying out next step operation, accuracy is high;And during automatically getting rid of some execution
Abnormal conditions, it is ensured that what script can be correct is performed.
The main purpose of the embodiment of the present invention is to provide one intelligence on mobile terminals to perform foot
This method, by the duration that circular wait is certain, to reduce because of network condition and computing capability
The script caused performs failure.
Meanwhile, the another main purpose of the embodiment of the present invention is to provide one on mobile terminals
Intelligence performs the test system of script, by the duration that circular wait is certain, to reduce because of network
The script that condition and computing capability cause performs failure.
For reaching above-mentioned purpose, the technical scheme is that and be achieved in that:
A kind of method that intelligence performs script on mobile terminals, it is characterised in that include following
Step:
A, preparation script file;
B, parsing script sentence;
C, judge to operate whether time delay, if time delay, turn to step B;
D, judge whether to occur abnormal, if so, remove exception;
E, judge whether possess exercisable condition, if it is not, carry out time delay and judge whether time-out,
If so, end operation, if it is not, continue to determine whether possess exercisable condition, with reduce because of
The script that network condition and computing capability cause performs failure;
F, transmission operational order;
G, judge whether terminate, if so, end operation, if it is not, turn to step B.
Preferably, in above-mentioned steps D, extremely refer to that in test process, script being performed generation does
Disturb.
Preferably, above-mentioned interference includes system upgrade prompting, program upgrade tip or other programs
Switch to the operation on foreground.
Preferably, in above-mentioned steps E, exercisable condition judges to press before including clicking on button
Whether button exists.
Preferably, in above-mentioned steps E, detected by control or image comparison method judges whether
Possesses exercisable condition.
Meanwhile, present invention also offers a kind of intelligence on mobile terminals and perform the test system of script
System, it is characterised in that include with lower unit:
Preparatory unit, is used for preparing script file;
Resolution unit, is used for resolving script sentence;
Delay unit, is used for judging operating whether time delay, if time delay, then enables resolution unit;
Anomaly unit, is used for judging whether occur extremely, if so, removing exception;
Operating unit, is used for judging whether possess exercisable condition, if it is not, carry out time delay also
Judge whether time-out, if so, end operation, if it is not, continue to determine whether to possess exercisable
Condition, performs failure with the script that reduction causes because of network condition and computing capability;
Transmitting element, is used for sending operational order;
End unit, is used for judging whether to terminate, and if so, end operation, if it is not, then enable
Resolution unit.
Preferably, in above-mentioned anomaly unit, extremely refer to test process performs generation to script
Interference.
Preferably, above-mentioned interference includes system upgrade prompting, program upgrade tip or other programs
Switch to the operation on foreground.
Preferably, in aforesaid operations unit, exercisable condition includes judging before clicking on button
Whether button exists.
Preferably, in aforesaid operations unit, detected by control or the judgement of image comparison method is
No possess exercisable condition.
This novel intelligence on mobile terminals performs the method and system of script, in each step
Before operation performs, it may be judged whether have unusual condition to occur, including but not limited to system upgrade
Prompting, program upgrade tip, other programs switch to foreground etc. and can perform to interfere to script
Situation, if there is, then be further continued for after automatically removing interference perform;And detected by control,
Or image compares counterpart method, it may be judged whether possessed exercisable condition (such as click on button it
Front judge whether button exists), if it does not exist, then the duration that circular wait is certain, to reduce
The script caused because of network condition and computing capability performs failure, improves the test of application software
Efficiency.
Accompanying drawing explanation
Fig. 1 is the method that intelligence performs script the most on mobile terminals
Operational flowchart.
Detailed description of the invention
Believe by below in conjunction with the accompanying drawing detailed description to the specific embodiment of the present invention, this
The feature and advantage of bright such scheme can become apparent from.
In the present invention, Fig. 1 is that intelligence is held the most on mobile terminals
The operational flowchart of this method of traveling far and wide.
By flow diagram disclosed in Fig. 1, the present invention proposes one intelligence on mobile terminals and holds
The method of basis of traveling far and wide, it is characterised in that comprise the following steps:
A, preparation script file;
B, parsing script sentence;
C, judge to operate whether time delay, if time delay, turn to step B;
D, judge whether to occur abnormal, if so, remove exception;
E, judge whether possess exercisable condition, if it is not, carry out time delay and judge whether time-out,
If so, end operation, if it is not, continue to determine whether possess exercisable condition, with reduce because of
The script that network condition and computing capability cause performs failure;
F, transmission operational order;
G, judge whether terminate, if so, end operation, if it is not, turn to step B.
Preferably, in above-mentioned steps D, extremely refer to that in test process, script being performed generation does
Disturb.
Preferably, above-mentioned interference includes system upgrade prompting, program upgrade tip or other programs
Switch to the operation on foreground.
Preferably, in above-mentioned steps E, exercisable condition judges to press before including clicking on button
Whether button exists.
Preferably, in above-mentioned steps E, detected by control or image comparison method judges whether
Possesses exercisable condition.
It addition, for solving above-mentioned technical problem, present invention also offers one on mobile terminals
Intelligence performs the test system of script, it is characterised in that include with lower unit:
Preparatory unit, is used for preparing script file;
Resolution unit, is used for resolving script sentence;
Delay unit, is used for judging operating whether time delay, if time delay, then enables resolution unit;
Anomaly unit, is used for judging whether occur extremely, if so, removing exception;
Operating unit, is used for judging whether possess exercisable condition, if it is not, carry out time delay also
Judge whether time-out, if so, end operation, if it is not, continue to determine whether to possess exercisable
Condition, performs failure with the script that reduction causes because of network condition and computing capability;
Transmitting element, is used for sending operational order;
End unit, is used for judging whether to terminate, and if so, end operation, if it is not, then enable
Resolution unit.
Preferably, in above-mentioned anomaly unit, extremely refer to test process performs generation to script
Interference.
Preferably, above-mentioned interference includes system upgrade prompting, program upgrade tip or other programs
Switch to the operation on foreground.
Preferably, in aforesaid operations unit, exercisable condition includes judging before clicking on button
Whether button exists.
Preferably, in aforesaid operations unit, detected by control or the judgement of image comparison method is
No possess exercisable condition.
The remote real machine adjustment method of this novel application software of mobile terminal and system, effectively
Get rid of some and affect the unusual condition that script correctly performs;Because whether each step all testing conditions
Possess, it is possible to effective reduction (should not occur) mortality, such as network condition
The emergency situations such as difference or equipment computing capability difference, improve the testing efficiency of Mobile solution software.
Claims (10)
1. one kind on mobile terminals intelligence perform script method, it is characterised in that include with
Lower step:
A, preparation script file;
B, parsing script sentence;
C, judge to operate whether time delay, if time delay, turn to step B;
D, judge script perform whether exception occurs, if so, remove exception;
E, judge whether possess exercisable condition, perform time delay if it is not, carry out script and judge
It is the most overtime that script performs time delay, and if so, end operation, if it is not, continue to determine whether possess
Exercisable condition, performs failure with the script that reduction causes because of network condition and computing capability;
F, transmission operational order;
G, judging whether end operation, if so, end operation, if it is not, turn to step B.
Method the most according to claim 1, it is characterised in that in above-mentioned steps D,
Extremely the interference that in test process, script being performed produces is referred to.
Method the most according to claim 2, it is characterised in that above-mentioned interference include be
System upgrade tip, program upgrade tip or other programs switch to the operation on foreground.
Method the most according to claim 1, it is characterised in that in above-mentioned steps E,
Exercisable condition judges whether button exists before including clicking on button.
Method the most according to claim 1, it is characterised in that in above-mentioned steps E,
Detected by control or image comparison method judges whether possess exercisable condition.
6. one kind on mobile terminals intelligence perform script test system, it is characterised in that bag
Include with lower unit:
Preparatory unit, is used for preparing script file;
Resolution unit, is used for resolving script sentence;
Delay unit, is used for judging operating whether time delay, if time delay, then enables resolution unit;
Anomaly unit, is used for judging script performs whether exception occur, if so, removes exception;
Operating unit, is used for judging whether possess exercisable condition, holds if it is not, carry out script
Line delay also judges that script execution time delay is the most overtime, and if so, end operation, if it is not, continue
Judge whether possess exercisable condition, the foot caused with reduction because of network condition and computing capability
This execution failure;
Transmitting element, is used for sending operational order;
End unit, is used for judging whether end operation, if so, end operation, if it is not, then
Enable resolution unit.
System the most according to claim 6, it is characterised in that in above-mentioned anomaly unit,
Extremely the interference that in test process, script being performed produces is referred to.
System the most according to claim 7, it is characterised in that above-mentioned interference include be
System upgrade tip, program upgrade tip or other programs switch to the operation on foreground.
System the most according to claim 6, it is characterised in that in aforesaid operations unit,
Exercisable condition judges whether button exists before including clicking on button.
System the most according to claim 6, it is characterised in that in aforesaid operations unit,
Detected by control or image comparison method judges whether possess exercisable condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310594272.4A CN103559136B (en) | 2013-11-22 | A kind of intelligence on mobile terminals performs method and the test system of script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310594272.4A CN103559136B (en) | 2013-11-22 | A kind of intelligence on mobile terminals performs method and the test system of script |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103559136A CN103559136A (en) | 2014-02-05 |
CN103559136B true CN103559136B (en) | 2016-11-30 |
Family
ID=
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101482849A (en) * | 2009-02-24 | 2009-07-15 | 北京星网锐捷网络技术有限公司 | Test monitoring method and apparatus |
CN101645033A (en) * | 2009-05-15 | 2010-02-10 | 上海闻泰电子科技有限公司 | Debugging method in abnormality of mobile phone software |
CN101721228A (en) * | 2009-10-21 | 2010-06-09 | 无锡祥生科技有限公司 | Script driving based automatic test method of ultrasonic diagnosis equipment |
US7739115B1 (en) * | 2001-02-15 | 2010-06-15 | West Corporation | Script compliance and agent feedback |
CN102495798A (en) * | 2011-12-01 | 2012-06-13 | 盛科网络(苏州)有限公司 | Automated regression testing method and system |
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7739115B1 (en) * | 2001-02-15 | 2010-06-15 | West Corporation | Script compliance and agent feedback |
CN101482849A (en) * | 2009-02-24 | 2009-07-15 | 北京星网锐捷网络技术有限公司 | Test monitoring method and apparatus |
CN101645033A (en) * | 2009-05-15 | 2010-02-10 | 上海闻泰电子科技有限公司 | Debugging method in abnormality of mobile phone software |
CN101721228A (en) * | 2009-10-21 | 2010-06-09 | 无锡祥生科技有限公司 | Script driving based automatic test method of ultrasonic diagnosis equipment |
CN102495798A (en) * | 2011-12-01 | 2012-06-13 | 盛科网络(苏州)有限公司 | Automated regression testing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106909510B (en) | Method for obtaining test case and server | |
WO2020140820A1 (en) | Software testing method, system, apparatus, device, medium, and computer program product | |
CN105866575B (en) | Vehicle-mounted display comprehensive testing device and testing method | |
CN103268289B (en) | Record the method and system of application testing script on mobile terminals | |
CN102184138B (en) | Method and system for automatically reproducing and positioning software error | |
CN108319555B (en) | Real-time debugging method based on embedded real-time system | |
CN107783873B (en) | Method for realizing automatic testing platform of burner | |
CN105094783A (en) | Method and device for testing Android application stability | |
CN104461894A (en) | Android App operating recording device and method | |
CN102662828A (en) | A method and device for achieving software automatic testing | |
CN104268076A (en) | Memory bandwidth automatically testing method applicable to various processor platforms | |
Singh et al. | Automated testing of mobile applications using scripting technique: A study on appium | |
CN107329889B (en) | Method for automatically testing C compiler | |
CN112860362B (en) | Visual debugging method and system for robot automation process | |
CN104375934A (en) | Method for testing reliability of Android mobile phone software | |
CN104699617A (en) | Automated testing method for games | |
CN106354629A (en) | Construction method of iOS system mobile application automatic test system based on multiple stages of servers | |
CN103559136B (en) | A kind of intelligence on mobile terminals performs method and the test system of script | |
CN107562619B (en) | Automatic control traversing method and terminal based on neuron model | |
CN111176995B (en) | Test method and test system based on big data test case | |
CN104239202A (en) | Non-Root testing method and system of interactive intelligent equipment | |
CN114168454B (en) | Asynchronous testing method based on dynamic pile inserting-pile pinning technology | |
CN110795330A (en) | Monkey pressure testing method and device | |
CN114090454B (en) | Interface automation test method, device, equipment and storage medium | |
CN103559136A (en) | Method and test system for intelligently executing script on mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |