CN105740146B - A kind of method and device of fast positioning of mobile terminal test script change - Google Patents
A kind of method and device of fast positioning of mobile terminal test script change Download PDFInfo
- Publication number
- CN105740146B CN105740146B CN201610059397.0A CN201610059397A CN105740146B CN 105740146 B CN105740146 B CN 105740146B CN 201610059397 A CN201610059397 A CN 201610059397A CN 105740146 B CN105740146 B CN 105740146B
- Authority
- CN
- China
- Prior art keywords
- test script
- script
- mobile terminal
- test
- operation failure
- 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.)
- Expired - Fee Related
Links
- 238000013515 script Methods 0.000 title claims abstract description 196
- 238000012360 testing method Methods 0.000 title claims abstract description 151
- 230000008859 change Effects 0.000 title claims abstract description 37
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012549 training Methods 0.000 claims description 5
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 230000004048 modification Effects 0.000 description 12
- 238000012986 modification Methods 0.000 description 12
- 230000006978 adaptation Effects 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 239000003086 colorant Substances 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000011990 functional testing Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The embodiment of the invention discloses a kind of method and devices of fast positioning of mobile terminal test script change, this method comprises: the corresponding Rapid matching script of the mobile terminal of acquisition for mobile terminal last revision, the Rapid matching script is run to obtain operation result, the Rapid matching script includes a plurality of test script for traversing each application function one by one;The operation result is analyzed, and orients the test script of the operation failure in Rapid matching script;The attribute of test script according to the operation failure is searched for test script associated with the test script of the operation failure and is labeled in complete test script, to position the mobile terminal test script change.To avoid test script when being adapted to new version the problem of inefficiency.
Description
Technical field
The present embodiments relate to technical field of mobile terminals more particularly to a kind of fast positioning of mobile terminal test scripts
The method and device of change.
Background technique
Mobile terminal has become essential a part in people's life, with abundant, the version of mobile terminal function
This replacement is also more and more frequently, so that the functional test task of mobile terminal is more arduous, in order to improve efficiency and save
Human-saving, the functional test slowly automate, and replace manual testing via automatic test.
In order to which analog subscriber really uses the build-in function of mobile terminal, the functional test carried out to mobile terminal is to pass through
Analog subscriber clicking operation is gone at interface.It is common at present to use following way: upper in order to reduce the maintenance work of test script
The test script of one version run in the mobile terminal of new version once run failure script be determined as new version change
Then adaptation is modified to the script of operation failure in part one by one.Since test script quantity is very huge, described in operation
Test script and find out corresponding operation failure script process it is very time-consuming, efficiency is very low.
Summary of the invention
The embodiment of the present invention provides a kind of method and device of fast positioning of mobile terminal test script change, to avoid survey
The problem of training sheet takes time and effort when being adapted to new version.
In a first aspect, the embodiment of the invention provides a kind of method of fast positioning of mobile terminal test script change, packet
It includes:
The corresponding Rapid matching script of the mobile terminal of acquisition for mobile terminal last revision, runs the Rapid matching script
To obtain operation result, the Rapid matching script includes a plurality of test script for traversing each application function one by one;
The operation result is analyzed, and orients the test script of the operation failure in Rapid matching script;
The attribute of test script according to the operation failure is searched for and the operation failure in complete test script
The associated test script of test script is simultaneously labeled, to position the mobile terminal test script change.
Second aspect, the embodiment of the invention provides a kind of device of fast positioning of mobile terminal test script change, packets
It includes:
Module is run, the corresponding Rapid matching script of mobile terminal for acquisition for mobile terminal last revision runs institute
Rapid matching script is stated to obtain operation result, the Rapid matching script includes a plurality of survey for traversing each application function one by one
Training sheet;
Locating module for analyzing the operation result, and orients the test of the operation failure in Rapid matching script
Script;And
The attribute of test script according to the operation failure is searched for and the operation failure in complete test script
The associated test script of test script is simultaneously labeled, to position the mobile terminal test script change.
The method and device of the fast positioning of mobile terminal test script change provided in the embodiment of the present invention, due to this hair
The technical solution of bright embodiment can quickly orient the script for needing to modify maintenance in complete test script, and expliciting the position goes out
It is adaptation issues caused by the modification of which function point, therefore helps quickly to modify to be adapted to new version mobile terminal, thus
Improve the efficiency of test script adaptation new version mobile terminal.
Detailed description of the invention
Fig. 1 is a kind of process of the method for fast positioning of mobile terminal test script change that the embodiment of the present invention one provides
Schematic diagram;
Fig. 2 is a kind of structural schematic diagram of the application function tree for mobile terminal that the embodiment of the present invention one provides;
Fig. 3 is a kind of signal of the device of fast positioning of mobile terminal test script change provided by Embodiment 2 of the present invention
Figure.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that
It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating
, only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing or method described as flow chart.Although every step is described as the processing of sequence by flow chart, therein to be permitted
Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of every step can be rearranged.When it
The processing can be terminated when step completion, it is also possible to have the additional step being not included in attached drawing.The processing
It can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is that a kind of method flow for fast positioning of mobile terminal test script change that the embodiment of the present invention one provides shows
It is intended to, this method can be executed by the device that fast positioning of mobile terminal test script changes, and wherein the intelligent interaction device can
By software and or hardware realization, can generally integrate in the terminal.
Referring to Fig. 1, the method for the present embodiment includes the following steps:
Step S100, the corresponding Rapid matching script of the mobile terminal of acquisition for mobile terminal last revision, and described in operation
For Rapid matching script to obtain operation result, the Rapid matching script includes a plurality of test for traversing each application function one by one
Script.
The mobile terminal specifically can be the portable electricity such as mobile phone, personal digital assistant (PDA), handheld computer
Any one of sub-device.
Specifically, in the present embodiment, each version of the mobile terminal has corresponding complete test script, described
Complete test script is used to analog subscriber and carries out clicking operation to mobile terminal, and is tested for each click operating result
To complete completely to test the mobile terminal.Thus, it is ensured that user is when using each application function
While normal, it is also ensured that user's jump operation between different application function uses normal.The complete test script is not only
Test script including traversing each application function of current version mobile terminal, further includes the test foot of analog subscriber practical operation
This.For example, the complete test script includes: the test script of all application functions such as wechat, QQ, address list, calendar, also wrap
Include the test script that user jumps to the similar operations such as QQ from wechat.
Since the publication of current mobile terminal new version is more and more frequent, for the publication of quick response version, it is necessary to
The new version of most fast speed adaption mobile terminal, in order to avoid delay testing progress.In order to accelerate new version test, in the present embodiment
In, also Rapid matching script can be established according to each version for mobile terminal.Institute's Rapid matching script is that traversal is moved one by one
The test script of the application function of dynamic terminal.
The Rapid matching script is to record to write the quick of a covering global function point for each application of mobile terminal
Script is matched, each number according to application function menu tree writes a test script, all application functions are traversed, and
And path does not repeat.The application function tree, as shown in Fig. 2, including function branch line 1 and function branch line 2.The function branch line 1
Including 1 step 1 of function branch line, 1 step 2 of function branch line, 1 step 3 of function branch line etc..The function branch line 2 includes function branch line 2
2 step 3 of step 1,2 step 2 of function branch line and function branch line etc..
Preferably, the Rapid matching script can store in the storage devices such as computer, can also be stored directly in shifting
In dynamic terminal.
After the Rapid matching script of the mobile terminal of the acquisition for mobile terminal last revision of current version, run described quick
Script is matched to obtain operation result.Due to when developing the mobile terminal of current version, it is only necessary to directly run last revision
Rapid matching script is to obtain operation result, without rewriting, therefore greatly reduces the preparation amount before test.
Step S102, the operation result is analyzed, and orients the test script of the operation failure in Rapid matching script.
Specifically, after Rapid matching script described in the running of mobile terminal, it may appear that at least two as a result, one is fortune
Failure is run when the test script of some step on a certain branch line of row application function;Another kind is the institute of the application function
There are test script all successes of branch line.Some step on a certain branch line for finding the representative of a certain Rapid matching script
When operation failure, show have altered at the step on this branch line.
The test script of the operation failure is exactly the test script for needing to modify.
Illustratively, when running " 2 step 2 of function branch line " in Fig. 2, fail, then show " 2 step of function branch line
Rapid 2 " place has altered.
Further, the mobile terminal test script change includes: newly-increased application function, deletion or information change, name
Claim change.
Step S104, the attribute according to the test script of the operation failure is searched for and the fortune in complete test script
The associated test script of test script of row failure is simultaneously labeled, to position the mobile terminal test script change.
The attribute of the test script includes: text attribute, call number and type etc..
Detailed process are as follows: text attribute, call number and the type of the test script according to the operation failure are completely being surveyed
It is searched in training sheet to match test script associated with the test script of the operation failure.
Preferably, it after orienting the test script to fail accordingly, can be carried out by display color or other means
Mark.Illustratively, modification information can be marked with red, blue or other colors.
Further, the step S102 and step S104 can be executed by mobile terminal or computer.
The technical solution of this implementation passes through the corresponding Rapid matching foot of the mobile terminal of acquisition for mobile terminal last revision
This, and the Rapid matching script is run to obtain operation result;The operation result is analyzed, and orients Rapid matching script
In application function modification information;The application function modification information oriented according to described in is searched for corresponding in complete test script
Modification information is simultaneously labeled.It is needed since the technical solution of the embodiment of the present invention can quickly be oriented in complete test script
The script of maintenance is modified, and it is adaptation issues caused by the modification of which function point that expliciting the position, which goes out, therefore helps quickly to repair
Change to be adapted to new version mobile terminal, to improve the efficiency of the test script change work of new version mobile terminal.
Embodiment two
Fig. 3 is a kind of structure of the device of fast positioning of mobile terminal test script change provided by Embodiment 2 of the present invention
Schematic diagram.
The device of the present embodiment specifically includes: operation module 30 and locating module 32.
Wherein, the operation module 30, the corresponding Rapid matching script of mobile terminal for obtaining last revision, and transport
For the row Rapid matching script to obtain operation result, the Rapid matching script includes a plurality of traversing each application function one by one
Test script.
The locating module 32 for analyzing the operation result, and orients the failure of the operation in Rapid matching script
Test script, according to it is described operation failure test script attribute search in complete test script with the operation failure
The associated test script of test script and be labeled, to position mobile terminal test script change.
The attribute of the test script includes: text attribute, call number and type etc..
Preferably, the operation module 30 is specifically used for: obtaining the corresponding Rapid matching foot of mobile terminal of last revision
This, runs each of Rapid matching script application function test script to obtain operation result.
Specifically, in the present embodiment, each version of the mobile terminal has corresponding complete test script, described
Complete test script is used to analog subscriber and carries out clicking operation to mobile terminal, and is tested for each click operating result
To complete completely to test the mobile terminal.Thus, it is ensured that user is when using each application function
While normal, while it is normal to guarantee that user's jump operation between different application function uses.The complete test script is not only
Test script including traversing each application function of current version mobile terminal, further includes the test foot of analog subscriber practical operation
This.For example, the complete test script includes: the test script of all application functions such as wechat, QQ, address list, calendar, also wrap
Include the test script that user jumps to the similar operations such as QQ from wechat.
It is just necessary for the publication of quick response version since the publication of current mobile terminal new version is more and more frequent
With the new version of most fast speed adaption mobile terminal, in order to avoid delay testing progress.In order to accelerate new version test, in this implementation
In example, also Rapid matching script can be established according to each version for mobile terminal.Institute's Rapid matching script is to traverse one by one
The test script of the application function of mobile terminal.
Due to when developing the mobile terminal of current version, it is only necessary to which directly the Rapid matching script of operation last revision is to obtain
Operation result is taken, without rewriting, therefore greatly reduces the preparation amount before test.
The Rapid matching script is to record to write the quick of a covering global function point for each application of mobile terminal
Script is matched, each number according to application function menu tree writes a test script, all application functions are traversed, and
And path does not repeat.The application function tree, as shown in Fig. 2, including function branch line 1 and function branch line 2.The function branch line 1
Including 1 step 1 of function branch line, 1 step 2 of function branch line, 1 step 3 of function branch line etc..The function branch line 2 includes function branch line 2
2 step 3 of step 1,2 step 2 of function branch line and function branch line etc..
Preferably, the Rapid matching script can store in the storage devices such as computer, can also be stored directly in shifting
In dynamic terminal.
Preferably, the locating module 32 is specifically used for:
Text attribute, call number and the type of test script according to the operation failure are searched in complete test script
To match test script associated with the test script of the operation failure.
Preferably, it after orienting the test script to fail accordingly, can be carried out by display color or other means
Mark.Illustratively, modification information can be marked with red, blue or other colors.
Specifically, after Rapid matching script described in the running of mobile terminal, it may appear that at least two as a result, one is fortune
Failure is run when the test script of some step on a certain branch line of row application function;Another kind is the institute of the application function
There are test script all successes of branch line.When finding that some step on a certain branch line runs failure, show this branch line
On the step at have altered information.
Illustratively, when running " 2 step 2 of function branch line " in Fig. 2, fail, then show " 2 step of function branch line
Rapid 2 " place has altered information.
Wherein, the mobile terminal test script change includes: that application function is newly-increased, delete or information change, title become
More.
Preferably, it after orienting corresponding modification information, can be labeled by display color or other means.Show
Example property, modification information can be marked with red, blue or other colors.
Preferably, the locating module 32 can be integrated in the mobile terminal or computer.
Since the mobile terminal that the technical solution of the embodiment of the present invention obtains last revision using operation module 30 is corresponding
Rapid matching script, and the Rapid matching script is run to obtain operation result;The operation is analyzed using locating module 32
As a result, and orienting the application function modification information in Rapid matching script;The application function change letter oriented according to described in
Breath is searched for corresponding modification information in complete test script and is labeled.Since the technical solution of the embodiment of the present invention can be fast
Speed orients the script for needing to modify maintenance in complete test script, and it is caused by the modification of which function point that expliciting the position, which goes out,
Adaptation issues, therefore help quickly to modify to be adapted to new version mobile terminal, to improve the test of new version mobile terminal
The efficiency of script change work.
Method provided by any embodiment of the invention can be performed in the said goods, has the corresponding functional module of execution method
And beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to side provided by any embodiment of the invention
Method.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (8)
1. a kind of method of fast positioning of mobile terminal test script change characterized by comprising
The corresponding Rapid matching script of the mobile terminal of acquisition for mobile terminal last revision runs the Rapid matching script to obtain
Take operation result, the Rapid matching script includes a plurality of writing one by one according to the application function menu tree of the mobile terminal
Traverse the test script of each application function;
The operation result is analyzed, and orients the test script of the operation failure in Rapid matching script, the operation result
The test script of a step on a branch line including application function runs all of failure and the application function
The test script of line is all run successfully;
The attribute of test script according to the operation failure searches for the test with the operation failure in complete test script
The associated test script of script is simultaneously labeled, to position the mobile terminal test script change.
2. the method according to claim 1, wherein the attribute of the test script according to the operation failure is complete
Test script associated with the test script of the operation failure is searched in whole test script and is labeled, described in positioning
Mobile terminal test script changes
According to it is described operation failure test script text attribute, call number and type searched in complete test script with
With test script associated with the test script of the operation failure;And
With color mark test script associated with the test script of the operation failure.
3. the method according to claim 1, wherein the test script of the operation failure is the survey for needing to modify
Training sheet.
4. the method according to claim 1, wherein mobile terminal test script change includes: using function
It can newly-increased, application function deletion or information change, title change.
5. a kind of device of fast positioning of mobile terminal test script change characterized by comprising
Module is run, the corresponding Rapid matching script of mobile terminal for acquisition for mobile terminal last revision is run described fast
For speed matching script to obtain operation result, the Rapid matching script includes a plurality of application function dish according to the mobile terminal
The test script for traversing each application function one by one that Dan Shu writes;
Locating module for analyzing the operation result, and orients the test script of the operation failure in Rapid matching script,
The operation result includes the test script operation failure and the application of a step on a branch line of application function
The test script of all branch lines of function is all run successfully;And
The attribute of test script according to the operation failure searches for the test with the operation failure in complete test script
The associated test script of script is simultaneously labeled, to position the mobile terminal test script change.
6. device according to claim 5, which is characterized in that the operation module is specifically used for:
According to it is described operation failure test script text attribute, call number and type searched in complete test script with
With test script associated with the test script of the operation failure;And
With color mark test script associated with the test script of the operation failure.
7. device according to claim 5, which is characterized in that the test script of the operation failure is the survey for needing to modify
Training sheet.
8. device according to claim 5, which is characterized in that the mobile terminal test script change includes: using function
It can newly-increased, deletion or information change, title change.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610059397.0A CN105740146B (en) | 2016-01-28 | 2016-01-28 | A kind of method and device of fast positioning of mobile terminal test script change |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610059397.0A CN105740146B (en) | 2016-01-28 | 2016-01-28 | A kind of method and device of fast positioning of mobile terminal test script change |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105740146A CN105740146A (en) | 2016-07-06 |
CN105740146B true CN105740146B (en) | 2019-02-01 |
Family
ID=56246773
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610059397.0A Expired - Fee Related CN105740146B (en) | 2016-01-28 | 2016-01-28 | A kind of method and device of fast positioning of mobile terminal test script change |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105740146B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909504A (en) * | 2017-02-14 | 2017-06-30 | 上海斐讯数据通信技术有限公司 | A kind of automatic test script maintaining method and equipment |
CN109511012B (en) * | 2018-11-30 | 2021-06-08 | 深圳创维数字技术有限公司 | Set top box upgrade test method, device, electronic equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2096536A2 (en) * | 2008-02-27 | 2009-09-02 | Accenture Global Services GmbH | Graphical user interface application comparator |
CN102270174A (en) * | 2011-08-04 | 2011-12-07 | 北京星网锐捷网络技术有限公司 | Automatic test method and device |
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
-
2016
- 2016-01-28 CN CN201610059397.0A patent/CN105740146B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2096536A2 (en) * | 2008-02-27 | 2009-09-02 | Accenture Global Services GmbH | Graphical user interface application comparator |
CN102270174A (en) * | 2011-08-04 | 2011-12-07 | 北京星网锐捷网络技术有限公司 | Automatic test method and device |
CN103034583A (en) * | 2011-09-30 | 2013-04-10 | 国际商业机器公司 | Method and system for processing automatic test scrip of software |
Also Published As
Publication number | Publication date |
---|---|
CN105740146A (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7206391B2 (en) | Method for creating and deploying system changes in a voice application system | |
CN102609241B (en) | hot patch method and device | |
CN108984160B (en) | Informationized rapid development framework system based on componentization | |
CN104598380A (en) | Method and system for automatic testing based on control | |
US20170099193A1 (en) | System and Method Facilitating Reusability of Distributed Computing Pipelines | |
CN103455414B (en) | Obtain the method and device of the logical place of control | |
CN105653056B (en) | The test method and device of input method | |
CN104778118B (en) | The improved method of automatization testing technique | |
CN110941467A (en) | Data processing method, device and system | |
CN108804188A (en) | Changing an interface skin method and device | |
CN105786506A (en) | User interface automatic-generation system and method | |
CN105740146B (en) | A kind of method and device of fast positioning of mobile terminal test script change | |
CN105740144A (en) | Automated testing method and system for Android mobile Terminal | |
CN109783351A (en) | Interface detection method, apparatus and computer readable storage medium | |
CN103631590A (en) | Method for editing automated testing script | |
CN109271316A (en) | Android device and its automated testing method, memory | |
CN104598382B (en) | A kind of test control method and device | |
CN103780448A (en) | Widget layer code generation method and device | |
CN104899140B (en) | A kind of method of testing of mobile terminal component | |
CN106371706A (en) | Method and device for site selection of application shortcuts | |
CN106873989A (en) | Application program building method and device | |
CN105630898A (en) | Method applicable to switch application database table data version | |
CN105653441A (en) | Method and system for UI traversal testing | |
CN105808623A (en) | Search-based page access event association method and device | |
CN107577685A (en) | A kind of knowledge point indication method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20181108 Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190201 |
|
CF01 | Termination of patent right due to non-payment of annual fee |