CN104598380A - Method and system for automatic testing based on control - Google Patents

Method and system for automatic testing based on control Download PDF

Info

Publication number
CN104598380A
CN104598380A CN201510023279.XA CN201510023279A CN104598380A CN 104598380 A CN104598380 A CN 104598380A CN 201510023279 A CN201510023279 A CN 201510023279A CN 104598380 A CN104598380 A CN 104598380A
Authority
CN
China
Prior art keywords
measured
control object
test
operation instruction
application program
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
Application number
CN201510023279.XA
Other languages
Chinese (zh)
Other versions
CN104598380B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510023279.XA priority Critical patent/CN104598380B/en
Publication of CN104598380A publication Critical patent/CN104598380A/en
Application granted granted Critical
Publication of CN104598380B publication Critical patent/CN104598380B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and a system for automatic testing based on a control. The method comprises the following steps of obtaining a to-be-tested control object of the to-be-tested application program, and judging and identifying an operation instruction supported by the to-be-tested control object; according to the judged and identified operation instruction supported by the to-be-tested control object, establishing a testing operation instruction sequence of the to-be-tested control object; setting the testing weight value of the to-be-tested control object in the corresponding to-be-tested application program, wherein the weight value is used for representing the probability of the to-be-controlled control object executing the corresponding testing operation instruction sequence in the to-be-tested application program; according to the testing weight value, selecting the to-be-selected control object, and triggering the to-be-tested equipment to execute the testing operation instruction sequence established for the selected to-be-tested control object. The method has the advantages that the automatic disordered testing operation can be performed according to the importance degree of the control, and the accuracy of the automatic testing result based on the control is improved.

Description

A kind of automated testing method based on control and system
Technical field
The present invention relates to technical field of measurement and test, particularly relate to a kind of automated testing method based on control and system.
Background technology
In the mobile Internet epoch, mobile phone has become instrument indispensable in the daily studying and living of people, and android system just using this as the starting point, arise at the historic moment.Following along with Android APP (AndroidApplication) is more and more diversified, hommization, single application testing target there has also been the change of essence, be not only that operable basic function demand is provided, more importantly ensure that user can experience the high-quality Android APP (Android Application) of a function admirable, good stability.Therefore, Mobile solution stability test becomes requisite link, and in traditional software test procedure, the long campaigns duplication of labour can reduce the work incentive of tester, thus has influence on the quality of software test; For tester is freed from the loaded down with trivial details duplication of labour, improve the quality of software test, the introducing of application stability automatic test is imperative.In prior art, test based on APP control mainly contains random test and traversal test two kinds, but all do not have the also original subscriber scene in normal use procedure real according to the operating habit of user, the objectivity of test is lower, and the accuracy of test result cannot be guaranteed.
Summary of the invention
Embodiment of the present invention technical matters to be solved is, a kind of automated testing method based on control and system are provided, achieve the test of the robotization based on control, the probability of the unordered operation of control operational order is set according to the importance of testing of control in owning application, be more real user operation use scenes by components testing scenario simulation, make the automatic test result based on control more accurate.
First aspect, embodiments provides a kind of automated testing method based on control, and described method comprises:
Obtain the control object to be measured of application program to be measured, judge the operational order identifying that described control object to be measured is supported;
The test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported;
Arrange the test weighted value in the application program to be measured of described control object to be measured belonging to it, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it;
Choose control object to be measured according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen.
In conjunction with first aspect, in the implementation that the first is possible, described application program to be measured is the application program of installing in Devices to test, and the control object to be measured of described acquisition application program to be measured comprises:
Set up the communication connection with described Devices to test;
Obtain the control object to be measured in the application program of installing in described Devices to test.
In conjunction with first aspect, in the implementation that the second is possible, the described operational order judging to identify that described control object to be measured is supported, comprising:
The type of described control object to be measured is judged according to the attribute information of described control object to be measured;
The operational order that described control object to be measured is supported is judged according to the type of described control object to be measured.
In conjunction with first aspect, in the implementation that the third is possible, describedly choose control object to be measured according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen, comprising:
Whether the Devices to test detecting described application program place to be measured is in idle condition;
If be in idle condition, corresponding test operation instruction sequence is performed to the described control object to be measured chosen.
In conjunction with first aspect, in the 4th kind of possible implementation, describedly choose control object to be measured according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen, also comprise:
Record the test video video recording described control object to be measured chosen being performed to corresponding test operation instruction sequence;
According to the time point of the abnormal conditions that described application program to be measured is reported in test process, in described test video video recording, extract the frame picture corresponding to time point of described abnormal conditions and record preservation.
In conjunction with first aspect, in the 5th kind of possible implementation, describedly choose control object to be measured according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen, also comprise:
Record the test case of described application program to be measured, analysis mining is carried out to the test case of described record.
Second aspect, embodiments provides a kind of automated testing method based on control, and described method comprises:
Receive the interactive action instruction that testing server sends;
When analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, send the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen;
Receive the test operation instruction sequence that described testing server sends, and perform described test operation instruction sequence.
In conjunction with second aspect, in the implementation that the first is possible, after the interactive action instruction that described reception testing server sends, also comprise:
When to analyze described interactive action instruction be test operation instruction sequence, perform described test operation instruction sequence; Wherein said test operation instruction sequence is the control object to be measured that described testing server obtains application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, for the test operation instruction sequence that the described control object to be measured chosen builds.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second is possible, after the described test operation instruction sequence of described execution, also comprise:
Generate execution result;
Described execution result be sent to described testing server and/or record the time point of abnormal conditions in described execution result and feed back to described testing server.
The third aspect, embodiments provides a kind of automatic test device based on control, and described device comprises:
Control acquisition module, for obtaining the control object to be measured of application program to be measured, judges the operational order identifying that described control object to be measured is supported;
Instruction builds module, for building the test operation instruction sequence of described control object to be measured according to the described operational order judging that the control object to be measured identified is supported;
Weight presetting module, for arranging the test weighted value in the application program to be measured of described control object to be measured belonging to it, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it;
Testing execution module, for choosing control object to be measured according to described test weighted value, triggering Devices to test and performing the test operation instruction sequence built for the described control object to be measured chosen.
In conjunction with the third aspect, in the implementation that the first is possible, described application program to be measured is the application program of installing in Devices to test, and described control acquisition module, comprising:
Communication connection unit, for setting up the communication connection with described Devices to test;
Control acquiring unit, for obtaining the control object to be measured in the application program of installing in described Devices to test.
In conjunction with the third aspect, in the implementation that the second is possible, described control acquisition module, comprising:
Control judging unit, for judging the type of described control object to be measured according to the attribute information of described control object to be measured;
Instruction judging unit, for judging the operational order that described control object to be measured is supported according to the type of described control object to be measured.
In conjunction with the third aspect, in the implementation that the third is possible, described testing execution module, comprising:
Whether Condition Monitoring Unit, be in idle condition for the Devices to test detecting described application program place to be measured;
Instruction execution unit, if for being in idle condition, performs corresponding test operation instruction sequence to the described control object to be measured chosen.
In conjunction with the third aspect, in the 4th kind of possible implementation, described testing execution module, also comprises:
Video recording unit, for recording the test video video recording described control object to be measured chosen being performed to corresponding test operation instruction sequence;
Anomaly extracting unit, for the time point of abnormal conditions reported in test process according to described application program to be measured, extracts the frame picture corresponding to time point of described abnormal conditions and records preservation in described test video video recording.
In conjunction with the third aspect, in the 5th kind of possible implementation, described testing execution module, also comprises:
Analysis mining unit, for recording the test case of described application program to be measured, carries out analysis mining to the test case of described record.
Fourth aspect, embodiments provides a kind of automated test device based on control, and described equipment comprises:
Command reception module, for receiving the interactive action instruction that testing server sends;
First instruction analysis module, for when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, sends the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen;
Instruct execution module, for receiving the test operation instruction sequence that described testing server sends, and performs described test operation instruction sequence.
In conjunction with fourth aspect, in the implementation that the first is possible, described automated test device, also comprises:
Second instruction analysis module, for when to analyze described interactive action instruction be test operation instruction sequence, performs described test operation instruction sequence; Wherein said test operation instruction sequence is the control object to be measured that described testing server obtains application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, for the test operation instruction sequence that the described control object to be measured chosen builds.
In conjunction with fourth aspect, in the implementation that the second is possible, described automated test device, also comprises:
Result-generation module, for generating execution result;
Result feedback module, for being sent to described testing server and/or recording the time point of abnormal conditions in described execution result and feed back to described testing server by described execution result.
5th aspect, embodiments provides a kind of automatization test system based on control, and described system, comprises testing server and Devices to test, wherein
Described testing server obtains the control object to be measured of application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it, control object to be measured is chosen according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen, described Devices to test receives the interactive action instruction that described testing server sends, when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, the control object information to be measured of application program to be measured is sent to described testing server, the operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen, receive the test operation instruction sequence that described testing server sends, and perform described test operation instruction sequence.
In conjunction with the 5th aspect, in the implementation that the first is possible, described testing server comprises the embodiment of the present invention third aspect, or the automatic test device based on control in the 5th kind of possible implementation of the first possible implementation of the third aspect or the possible implementation of the second of the third aspect or the third possible implementation of the third aspect or the 4th kind of possible implementation of the third aspect or the third aspect; Described Devices to test comprises the automated test device based on control in the possible implementation of the second of the first possible implementation of embodiment of the present invention fourth aspect or fourth aspect or fourth aspect.
Implement the embodiment of the present invention, there is following beneficial effect:
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of automated testing method based on control in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the another kind in the embodiment of the present invention based on the automated testing method of control;
Fig. 3 is the schematic flow sheet of the another kind in the embodiment of the present invention based on the automated testing method of control;
Fig. 4 is the schematic flow sheet of the another kind in the embodiment of the present invention based on the automated testing method of control;
Fig. 5 is the structural representation of a kind of automatic test device based on control in the embodiment of the present invention;
Fig. 6 is the structural representation of the another kind in the embodiment of the present invention based on the automatic test device of control;
Fig. 7 is the structural representation of a kind of automated test device based on control in the embodiment of the present invention;
Fig. 8 is the structural representation of the another kind in the embodiment of the present invention based on the automated test device of control;
Fig. 9 is the structural representation of a kind of automatization test system based on control in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, the term used in embodiments of the present invention is only for the object describing specific embodiment, and not intended to be limiting the present invention." one ", " described " and " being somebody's turn to do " of the singulative used in the embodiment of the present invention and appended claims is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
First, it should be stressed, Devices to test in automatization test system of the present invention includes but not limited to mobile phone, computer, panel computer, personal digital assistant (Personal Digital Assistant, PDA), media player, intelligent television, intelligent watch, intelligent glasses, the subscriber equipmenies such as Intelligent bracelet, and Devices to test wherein based on operating system include but are not limited to Android, IOS, windows etc., but in order to be illustrated more clearly in specific embodiments of the invention, to be described in detail with more android system in instructions, and by testing server specific to test computer end, by Devices to test specific to Android mobile phone to be measured, but do not represent the present invention and only support this kind equipment, other any equipment relating to components testing, all belong to the scope that the present invention protects.
Fig. 1 is the schematic flow sheet of a kind of automated testing method based on control in the embodiment of the present invention, describe in detail below in conjunction with a kind of automated testing method based on control in accompanying drawing 1 pair of embodiment of the present invention, as shown in Figure 1, a kind of automated testing method based on control in the present embodiment can comprise the following steps S101-step S104.
Step S101: the control object to be measured obtaining application program to be measured, judges the operational order identifying that described control object to be measured is supported.
Particularly, for Android device, obtain Android device to be measured, set up the communication connection with described Android device to be measured; Detect described tested Android device and whether install Server end for carrying out components testing, if not do not install, install, wherein Server end has been mainly used in Android device to be measured and receives and resolve testing server steering order.Obtain the pool of applications to be measured of Android device to be measured, and obtain the control object all to be measured of all application programs to be measured, control object type comprises all android system interface elements, specifically comprise: button (Button), textview field (text fields), drags bar (seek bars), check box (checkBos), zoom button (zoom buttons), shift knob (togglebuttons) etc.Test operation instruction then specifically comprises, click commands, input instruction, drag instruction, convergent-divergent instruction, long by instruction, slip instruction or other in control object to be measured, realize this control object to be measured carry out mutual operational order.According to the descriptor of control object obtained or the attribute information of control object, judge the action type that control object to be measured is supported, such as textview field (text fields) can support the operational orders such as click, slip, input.It should be noted that, can needing to filter out without the need to carrying out the control tested according to test.
In a preferred embodiment, PC end and communicating of Android mobile phone end to be measured are realized by Socket, first mobile phone corresponding ports and PC related port are associated by adb forward, and the data of being undertaken between PC and mobile phone to be measured by adb are transmitted.The associative operation relating to adb realizes by the correlation technique in ddmlib.jar.PC holds unlatching to check more new thread, renewal is upgraded to latest edition, initialization adb, bind mobile phone to be measured and connect monitoring event, if detect, mobile phone to be measured is connected to computer, then continue to detect mobile phone terminal to be measured and whether install server, do not install and then install server to mobile phone terminal, obtain cellphone information and be presented in testing apparatus list, status bar upgrades and shows that mobile phone connects simultaneously.If communication failure, then prompting checks mobile phone state to be measured (possible offline), reinstalls server, the status bar simultaneously showing mobile phone link information to be measured need be bound and reconnect that (likely mobile phone is connected to computer, but tool detection failure), when click reconnects, initialization adb, obtains list of devices, completes mobile phone test and connects.PC end is to mobile phone terminal request control information, and the information of control object returns with xml form, then carries out the acquisition of control object, judges the operational order identifying that control object to be measured is supported.It should be noted that, if the control object obtained is edittext control, then need additionally to increase settext operational order.
Step S102: the test operation instruction sequence building described control object to be measured according to the described operational order judging that the control object to be measured identified is supported.
Particularly, according to obtaining in step S101 and judging that the operational order supported of control object to be measured identified builds the operational order sequence of control to be measured, after operational order builds, store with the data layout of JSON, and JSON data layout preserves according to the form of key:value, such as application A pplication1 contains control X, Y, Z, wherein control object X supports A, B, C operational order, control object Y supports A, C operational order, control Z supports D operational order, the JSON form of then complete test operation instruction sequence is as follows:
{
"Application1":[
{"X":["A","B","C"]},
{"Y":["A","C"]},
{"Z":["D"]}
]
}
In a preferred embodiment, carry out test parameter when arranging, n circulation is carried out according to the number of clicks n arranged, after the following PC termination results of each circulation process get related data, if data are legal, then resolve to control object, if data are illegal, then again obtain, altogether obtain three times, if three secondary data are all illegal, proceed to next stage abnormality processing, restart mobile phone terminal server, repeated obtain control information, restarts server 3 times, does not all get the words of valid data, test is interrupted, and exports corresponding information.After getting control object information aggregate, build operational order, operational order is sent to mobile phone terminal to be measured with the data layout of JSON after building, and trigger the operation that mobile phone carries out corresponding operational order sequence, this is once complete circulation.
Step S103: the test weighted value in the application program to be measured of described control object to be measured belonging to it is set.
Particularly, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it.Test weighted value in the application program to be measured of each control object to be measured belonging to it is set, such as in the middle of the application program of mobile phone photo album, control ImageView is mainly used in checking or scaling pictures etc., and shear relative to other, the frequency of utilization of deleting the related control ImageView controls such as photo usually can be higher, therefore this ImageView control to be measured can be made in the limited testing time of mobile phone photo album can to obtain the test of more times number by the test weighted value arranged in the middle of the application program of control to be measured belonging to it, make test humanized and rationalize.Be understandable that, the total operational order sequence needing to arrange the test instruction sequence of application program to be measured while arranging test weighted value performs number of times, and the frequency that operational order sequence performs.Such as, what total testing time of the application of application program mobile phone photo album to be measured was arranged is 10000 times, and the weighted value of control ImageViewde is 60%, then in theory, the command operating sequence of this control object should be performed 6000 times, suppose its command operating sequence be [" A ", " B ", " C "] then A, B, C operational order perform 6000 times respectively.It should be noted that, fixation probability algorithm can be used when calculating weighted value, namely be multiplied by the weighted value of control object to be measured according to total testing time of application program to be measured, obtain the execution number of times of test operation instruction sequence corresponding to this control object to be measured.Also it should be noted that, multiple realization means is had when the execution number of times of the command operating sequence according to weighted value calculating control object, preferably, can according to law of great numbers: " under the condition that test is constant; repeatedly, the frequency approach of occurrence of random events is in the expected probability of a certain stationary value-event for revision test ".Namely, when the total testing time performed when the control object to be measured in application program to be measured is tending towards infinite, its tested probability levels off to weighted value.
Step S104: choose control object to be measured according to described test weighted value, triggers Devices to test and performs the test operation instruction sequence built for the described control object to be measured chosen.
Particularly, detect described Android device to be measured and whether be in idle condition, if be in idle condition, according to the weighted value arranged in the test operation instruction sequence integrating step S103 built in step S102, the test operation instruction sequence that random selecting builds, be sent on Devices to test, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen according to corresponding weighted value.It should be noted that, herein random is not completely random, but performs at random according to certain weighted value, the order of the operational order sequence just performed and to perform number of times random within the specific limits.
In a preferred embodiment, first detect mobile phone to be measured and whether be in " free time " state, if idle, then according to the test weighted value random selecting control object to be measured set in step S103, trigger the test operation instruction sequence that mobile phone to be measured performs the control object structure to be measured for random selecting, be understandable that, this operation can be carried out for the mobile phone that multiple stage is to be measured, and test assignment queue be separate simultaneously.It should be added that, the present invention carries out above-mentioned random testing method except treating survey control object, can also according to test needs, carry out traversal test, wherein travel through test and can comprise extreme saturation test and breadth traversal test, be mainly used in functional test, and the stability of the random test based on weight of the present invention mainly application programs is tested, and namely more lays particular stress on performance test.When carrying out control and traveling through test in order, PC end sends to mobile phone terminal and starts to perform instruction, and mobile phone terminal carries out traversal test, and PC end timing query execution state, if test terminates, mobile phone terminal returns ending message.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 2 is the schematic flow sheet of the another kind in the embodiment of the present invention based on the automated testing method of control, describe in detail below in conjunction with the automated testing method of the another kind in accompanying drawing 2 pairs of embodiment of the present invention based on control, as shown in Figure 2, the another kind in the present embodiment can comprise the following steps S201-step S211 based on the automated testing method of control.
Step S201: set up the communication connection with described Devices to test.
Particularly, for Android device, obtain Android device to be measured, set up the communication connection with described Android device to be measured; In a preferred embodiment, test PC end and communicating of Android mobile phone end to be measured are realized by Socket, first mobile phone corresponding ports and PC related port are associated by adb forward, and the data of being undertaken between PC and mobile phone by adb are transmitted.The associative operation relating to adb realizes by the correlation technique in ddmlib.jar.
Step S202: obtain the control object to be measured in the application program of installing in described Devices to test.
Particularly, detect described tested Android device and whether install Server end for carrying out components testing, if not do not install, install, wherein Server end has been mainly used in Android device to be measured and receives and resolve testing server steering order.Obtain the pool of applications to be measured of Android device to be measured, and obtain the control object all to be measured of all application programs to be measured, control object type comprises all android system interface elements, specifically comprise: button (Button), textview field (text fields), drags bar (seek bars), check box (checkBos), zoom button (zoom buttons), shift knob (togglebuttons) etc.Test operation instruction then specifically comprises, click commands, input instruction, drag instruction, convergent-divergent instruction, long by instruction, slip instruction or other in control object to be measured, realize this control object to be measured carry out mutual operational order.
In a preferred embodiment, PC end is opened test client and is checked more new thread, renewal is upgraded to latest edition, initialization adb, bind mobile phone to be measured and connect monitoring event, if detect, mobile phone to be measured is connected to computer, then continue to detect mobile phone terminal to be measured and whether server is installed, do not install and then install server to mobile phone terminal, obtain cellphone information and be presented in testing apparatus list, status bar upgrades and shows that mobile phone connects simultaneously.If communication failure, then prompting checks Android mobile phone state (possible offline), reinstalls server, the status bar simultaneously showing mobile phone link information need be bound and reconnect that (likely mobile phone is connected to computer, but tool detection failure), when click reconnects, initialization adb, obtains list of devices, completes mobile phone and connects.PC end is to mobile phone terminal request control information, and the information of control object returns with xml form, then carries out the acquisition of control object, judges the operational order identifying that control object to be measured is supported.It should be noted that, if the control object obtained is edittext control, then need additionally to increase settext operational order.
Step S203: the type judging described control object to be measured according to the attribute information of described control object to be measured.
Particularly, according to the descriptor of control object obtained or the attribute information of control object, the type of control object to be measured is judged.Such as, for the control TextView, editable Input EditText, button control Button, textview field control TextFields and many items chooses control CheckBox etc. of display string.
Step S204: judge the operational order that described control object to be measured is supported according to the type of described control object to be measured.
Particularly, according to the type of the control object to be measured judged in step S203, judge the action type that control object to be measured is supported, such as textview field control TextFields can support the operational orders such as click, slip, input.It should be noted that, can needing to filter out without the need to carrying out the control object of testing according to test.
Step S205: the test operation instruction sequence building described control object to be measured according to the described operational order judging that the control object to be measured identified is supported.
Particularly, the operational order sequence of control to be measured is built according to the operational order supported of control object to be measured judging in step S204 to identify, after operational order builds, store with the data layout of JSON, and JSON data layout preserves according to the form of key:value, such as application A pplication1 contains control X, Y, Z, wherein control object X supports A, B, C operational order, control object Y supports A, C operational order, control Z supports D operational order, then the JSON form of complete test operation instruction sequence is as follows:
{
"Application1":[
{"X":["A","B","C"]},
{"Y":["A","C"]},
{"Z":["D"]}
]
}
In a preferred embodiment, carry out test parameter when arranging, n circulation is carried out according to the number of clicks n arranged, each circulation process is as follows, after PC termination results get the related data of Android mobile phone to be measured transmission, then data are verified, if data are legal, then resolve to control object, if data are illegal, then again obtain, altogether obtain three times, if three secondary data are all illegal, proceed to next stage abnormality processing, restart mobile phone terminal server, repeated obtain control information, restart server 3 times, all do not get the words of valid data, test is interrupted, export corresponding information.After getting control object information aggregate, build operational order sequence, after operational order sequence construct, be sent to mobile phone terminal to be measured with the data layout of JSON, trigger the operation that mobile phone carries out corresponding operational order sequence, this is once complete circulation.
Step S206: the test weighted value in the application program to be measured of described control object to be measured belonging to it is set.
Particularly, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it.Test weighted value in the application program to be measured of each control object to be measured belonging to it is set, such as in the middle of the application program of mobile phone photo album, control ImageView is mainly used in checking or scaling pictures etc., and shear relative to other, delete the related control such as photo, the frequency of utilization of ImageView control usually can be higher, therefore this ImageView control to be measured can be made in the limited testing time of mobile phone photo album can to obtain the test of more times number by the test weighted value arranged in the middle of the application program of control to be measured belonging to it, make test humanized and rationalize.Be understandable that, while test weighted value is set, needs to arrange total number of operations of the test instruction sequence of application program to be measured, and the frequency that operational order sequence performs.Such as, what total testing time that application program mobile phone photo album to be measured is applied was arranged is 10000 times, and the weighted value of control ImageViewde is 60%, then in theory, the command operating sequence of this control object should be performed 6000 times, suppose its command operating sequence be [" A ", " B ", " C "] then A, B, C operational order perform 6000 times respectively.It should be noted that, fixation probability algorithm can be used when calculating weighted value, namely be multiplied by the weighted value of control object to be measured according to total testing time of application program to be measured, obtain the execution number of times of test operation instruction sequence corresponding to this control object to be measured; Also it should be noted that, multiple realization means is had when the execution number of times of the command operating sequence according to weighted value calculating control object, preferably, can also according to law of great numbers: " under the condition that test is constant; repeatedly, the frequency approach of occurrence of random events is in the expected probability of a certain stationary value-event for revision test ".Namely, when the total testing time performed when the control object to be measured in application program to be measured is tending towards infinite, its tested probability levels off to weighted value.
Step S207: whether the Devices to test detecting described application program place to be measured is in idle condition.
Particularly, detect described Android device to be measured and whether be in idle condition, if be in busy state namely performing test assignment or abnomal condition, then prompting is waited for, until test execution is complete or Android device to be measured enters normal condition.
Step S208: if be in idle condition, performs corresponding test operation instruction sequence to the described control object to be measured chosen.
Particularly, detect that described Android device to be measured is in idle condition, then according to the weighted value arranged in the test operation instruction sequence integrating step S206 built in step S205, the test operation instruction sequence that random selecting builds, be sent on Devices to test, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen according to corresponding weighted value.It should be noted that, herein random is not completely random, but performs at random according to certain weighted value, the order of the operational order sequence just performed and to perform number of times random within the specific limits.
In a preferred embodiment, first detect mobile phone to be measured and whether be in " free time " state, if idle, then according to the test weighted value random selecting control object to be measured set in step S206, trigger the test operation instruction sequence that mobile phone to be measured performs the control object structure to be measured for random selecting, be understandable that, this operation can be carried out for the mobile phone that multiple stage is to be measured, and test assignment queue be separate simultaneously.It should be added that, the present invention carries out above-mentioned random testing method except treating survey control object, can also according to test needs, carry out traversal test, wherein travel through test and can comprise extreme saturation test and breadth traversal test, be mainly used in functional test, and the random test based on weight of the present invention is mainly tested for the stability of application program, namely more lay particular stress on performance test.When carrying out control and traveling through test in order, PC end sends to mobile phone terminal and starts to perform instruction, and mobile phone terminal carries out traversal test, and PC end timing query execution state, if test terminates, mobile phone terminal returns ending message.
Step S209: record the test video video recording described control object to be measured chosen being performed to corresponding test operation instruction sequence.
Particularly, taken by the test case of external picture pick-up device device under test when testing beginning, and be synchronous by external picture pick-up device with the set of time of Devices to test, by in the video storage of shooting to server or be stored on other video storaging equipments, record the test video video recording control object to be measured chosen being performed to corresponding test operation instruction sequence, so that the follow-up monitoring to test abnormal conditions and backtracking.
Step S210: according to the time point of the abnormal conditions that described application program to be measured is reported in test process, extracts the frame picture corresponding to time point of described abnormal conditions and records preservation in described test video video recording.
Particularly, application program to be measured in test process if there is abnormal conditions, then extract the frame picture corresponding to time point of abnormal conditions according to the test video video recording of the test operation instruction sequence corresponding for the control object execution to be measured chosen recorded in step S209 and record preservation, being convenient to follow-up test personnel and quick position being carried out to abnormal conditions or bug point and searches.
Step S211: the test case recording described application program to be measured, carries out analysis mining to the test case of described record.
Particularly, record Log information and handset capability data that mobile phone terminal to be measured returns for the test case of application program to be measured, wherein Log information is used for the problems such as " out of service ", " ANR (Application Not Responding) " occurred in analytical test process, when testing normal termination or because of abnormal interruption, pc end is by mobile phone terminal log writing in files, simultaneously according to the bug time point in log data, video file is processed, intercepts make mistakes frame of video picture corresponding to time point or video segment and carry out analysis mining.In the process of analysis mining, control type corresponding to abnormal conditions, or to easily occurring that the control object of bug is added up, the test weighted value in the application program of this control object belonging to it can be increased in follow-up test process, thus carry out test that is more humane, that rationalize.Also according to a large amount of test datas, the stability trend map of application can be drawn, facilitates tester to follow up simultaneously.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 3 is the schematic flow sheet of the another kind in the embodiment of the present invention based on the automated testing method of control, describe in detail below in conjunction with the automated testing method of the another kind in accompanying drawing 3 pairs of embodiment of the present invention based on control, as shown in Figure 3, the another kind in the present embodiment can comprise the following steps S301-step S303 based on the automated testing method of control.
Step S301: receive the interactive action instruction that testing server sends.
Particularly, Android mobile phone to be measured receives testing server PC end and sends START interactive instruction, and it is mutual that Android mobile phone to be measured opens SocketServer, initialization directive collection, initialization RamTeService, AccService, LogService background service; Call StartFromCode method, AccService is started from code; Initialization OnServiceConnected, obtains Acc example, calls GetRootInWindow and obtains Root root node; Call OnServiceConnected method, open Log and cushion thread, open IBinder interface service; Create Socket thread pool, start the Connection Service accepting PC end, and accept interactive action instruction.
Step S302: when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, send the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen.
Particularly, the type of interactive action instruction described in analysis judgment, when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, obtain Root node View, by preorder traversal rootView, obtain child control View information, by the current UI View of Root root node preorder traversal, identifying can operational controls filter invisible control, finally by control method for packing, child control is encapsulated as the Client that xml form passes back to PC end, the operational order identifying that control object to be measured is supported is judged to make testing server, according to judging that the operational order of the control object support to be measured identified builds the test operation instruction sequence of control object to be measured, test weighted value in the application program to be measured of control object to be measured belonging to it is finally set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen.
Step S303: receive the test operation instruction sequence that described testing server sends, and perform described test operation instruction sequence.
Particularly, receive the test operation instruction sequence that described testing server sends, instruction set is given Execute method, initialization performs an action module, according to the event type of resolving, perform the command operatings such as KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText class, complete test mutual, and verify execution result.It should be added that, if control visiting instruction, then initialization control visiting module, and construct UI tree structure, identify that current UI can operational controls filter invisible control, discernible control is added Tag marker bit and associates Path array, the order performed before and after distinguishing and detailed path, judge that the supported action type of control is to perform KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText generic operation and to verify execution result, by initialized extreme saturation method, this UI of extreme saturation.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 4 is the schematic flow sheet of the another kind in the embodiment of the present invention based on the automated testing method of control, describe in detail below in conjunction with the automated testing method of the another kind in accompanying drawing 4 pairs of embodiment of the present invention based on control, as shown in Figure 4, the another kind in the present embodiment can comprise the following steps S401-step S406 based on the automated testing method of control.
Step S401: receive the interactive action instruction that testing server sends.
Particularly, Devices to test, such as Android mobile phone receives testing server PC end and sends START interactive instruction, preferably, it is mutual that Android mobile phone to be measured opens SocketServer, initialization directive collection, initialization RamTeService, AccService, LogService background service; Call StartFromCode method, AccService is started from code; Initialization OnServiceConnected, obtains Acc example, calls GetRootInWindow and obtains Root root node; Call OnServiceConnected method, open Log and cushion thread, open IBinder interface service; Create Socket thread pool, start the Connection Service accepting PC end, and accept interactive action instruction.
Step S402: when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, send the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen.
Particularly, the type of interactive action instruction described in analysis judgment, when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, obtain Root node View, by preorder traversal rootView, obtain child control View information, by the current UI View of Root root node preorder traversal, identifying can operational controls filter invisible control, finally by control method for packing, child control is encapsulated as the Client that xml form passes back to PC end, the operational order identifying that control object to be measured is supported is judged to make testing server, according to judging that the operational order of the control object support to be measured identified builds the test operation instruction sequence of control object to be measured, test weighted value in the application program to be measured of control object to be measured belonging to it is finally set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen.
Step S403: receive the test operation instruction sequence that described testing server sends, and perform described test operation instruction sequence.
Particularly, the test operation instruction sequence that in receiving step S402, testing server sends, instruction set is given Execute method, initialization performs an action module, according to the event type of resolving, perform the command operatings such as KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText class, complete test mutual, and verify execution result.It should be added that, if control visiting instruction, then initialization control visiting module, and construct UI tree structure, identify that current UI can operational controls filter invisible control, discernible control is added Tag marker bit and associates Path array, the order performed before and after distinguishing and detailed path, judge that the supported action type of control is to perform KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText generic operation and to verify execution result, by initialized extreme saturation method, this UI of extreme saturation.
Step S404: when to analyze described interactive action instruction be test operation instruction sequence, perform described test operation instruction sequence; Wherein said test operation instruction sequence is the control object to be measured that described testing server obtains application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, for the test operation instruction sequence that the described control object to be measured chosen builds.
When analyzing interactive action instruction and being test operation instruction sequence, then perform test operation instruction sequence.Preferably, Android mobile phone to be measured receives the test operation instruction sequence that testing server sends, instruction set is given Execute method, initialization performs an action module, according to the event type of resolving, perform KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText generic operation, complete test mutual, and verify execution result.It should be added that, if control visiting instruction, then initialization control visiting module, and construct UI tree structure, identify that current UI can operational controls filter invisible control, discernible control is added Tag marker bit and associates Path array, the order performed before and after distinguishing and detailed path, judge that the supported action type of control is to perform KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText generic operation and to verify execution result, by initialized extreme saturation method, this UI of extreme saturation.
Step S405: generate execution result.
Particularly, generate execution result, wherein execution result can comprise the details record of test, such as, there is the time point of abnormal conditions, occur the time point of bug, Log cushions thread-data, intercepts video pictures frame corresponding to bug or video-frequency band, detailed log information etc. relevant before and after bug.
Step S406: described execution result be sent to described testing server and/or record the time point of abnormal conditions in described execution result and feed back to described testing server.
Particularly, execution result is sent to the time point of the abnormal conditions in testing server or direct record execution result, finally turns back to PC end and be further processed.Be convenient to Treatment Analysis and excavation that testing server carries out test result in step S211.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 5 be a kind of automatic test device based on control in the embodiment of the present invention structural representation in order to perform above-mentioned embodiment illustrated in fig. 1 in a kind of flow process of the automated testing method based on control.
Below in conjunction with accompanying drawing 5, the structure of a kind of automatic test device based on control in the embodiment of the present invention is described in detail.This device 10 can comprise: control acquisition module 101, instruction build module 102, weight presetting module 103 and testing execution module 104.
Control acquisition module 101, for obtaining the control object to be measured of application program to be measured, judges the operational order identifying that described control object to be measured is supported.
Particularly, for Android device, obtain Android device to be measured, set up the communication connection with described Android device to be measured; Detect described tested Android device and whether install Server end for carrying out components testing, if not do not install, install, wherein Server end has been mainly used in Android device to be measured and receives and resolve testing server steering order.Obtain the pool of applications to be measured of Android device to be measured, and obtain the control object all to be measured of all application programs to be measured, control object type comprises all android system interface elements, specifically comprise: button (Button), textview field (text fields), drags bar (seek bars), check box (checkBos), zoom button (zoom buttons), shift knob (togglebuttons) etc.Test operation instruction then specifically comprises, click commands, input instruction, drag instruction, convergent-divergent instruction, long by instruction, slip instruction or other in control object to be measured, realize this control object to be measured carry out mutual operational order.According to the descriptor of control object obtained or the attribute information of control object, judge the action type that control object to be measured is supported, such as textview field (text fields) can support the operational orders such as click, slip, input.It should be noted that, can needing to filter out without the need to carrying out the control tested according to test.
In a preferred embodiment, PC end and communicating of Android mobile phone end to be measured are realized by Socket, first mobile phone corresponding ports and PC related port are associated by adb forward, and the data of being undertaken between PC and mobile phone to be measured by adb are transmitted.The associative operation relating to adb realizes by the correlation technique in ddmlib.jar.PC holds unlatching to check more new thread, renewal is upgraded to latest edition, initialization adb, bind mobile phone to be measured and connect monitoring event, if detect, mobile phone to be measured is connected to computer, then continue to detect mobile phone terminal to be measured and whether install server, do not install and then install server to mobile phone terminal, obtain cellphone information and be presented in testing apparatus list, status bar upgrades and shows that mobile phone connects simultaneously.If communication failure, then prompting checks mobile phone state to be measured (possible offline), reinstalls server, the status bar simultaneously showing mobile phone link information to be measured need be bound and reconnect that (likely mobile phone is connected to computer, but tool detection failure), when click reconnects, initialization adb, obtains list of devices, completes mobile phone test and connects.PC end is to mobile phone terminal request control information, and the information of control object returns with xml form, then carries out the acquisition of control object, judges the operational order identifying that control object to be measured is supported.It should be noted that, if the control object obtained is edittext control, then need additionally to increase settext operational order.
Instruction builds module 102, for building the test operation instruction sequence of described control object to be measured according to the described operational order judging that the control object to be measured identified is supported.
Particularly, according to obtaining in control acquisition module 101 and judging that the operational order supported of control object to be measured identified builds the operational order sequence of control to be measured, after operational order builds, store with the data layout of JSON, and JSON data layout preserves according to the form of key:value, such as application A pplication1 contains control X, Y, Z, wherein control object X supports A, B, C operational order, control object Y supports A, C operational order, control Z supports D operational order, the JSON form of then complete test operation instruction sequence is as follows:
{
"Application1":[
{"X":["A","B","C"]},
{"Y":["A","C"]},
{"Z":["D"]}
]
}
In a preferred embodiment, carry out test parameter when arranging, n circulation is carried out according to the number of clicks n arranged, after the following PC termination results of each circulation process get related data, if data are legal, then resolve to control object, if data are illegal, then again obtain, altogether obtain three times, if three secondary data are all illegal, proceed to next stage abnormality processing, restart mobile phone terminal server, repeated obtain control information, restarts server 3 times, does not all get the words of valid data, test is interrupted, and exports corresponding information.After getting control object information aggregate, build operational order, operational order is sent to mobile phone terminal to be measured with the data layout of JSON after building, and trigger the operation that mobile phone carries out corresponding operational order sequence, this is once complete circulation.
Weight presetting module 103, for arranging the test weighted value in the application program to be measured of described control object to be measured belonging to it, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it.
Particularly, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it.Test weighted value in the application program to be measured of each control object to be measured belonging to it is set, such as in the middle of the application program of mobile phone photo album, control ImageView is mainly used in checking or scaling pictures etc., and shear relative to other, the frequency of utilization of deleting the related control ImageView controls such as photo usually can be higher, therefore this ImageView control to be measured can be made in the limited testing time of mobile phone photo album can to obtain the test of more times number by the test weighted value arranged in the middle of the application program of control to be measured belonging to it, make test humanized and rationalize.Be understandable that, the total operational order sequence needing to arrange the test instruction sequence of application program to be measured while arranging test weighted value performs number of times, and the frequency that operational order sequence performs.Such as, what total testing time of the application of application program mobile phone photo album to be measured was arranged is 10000 times, and the weighted value of control ImageViewde is 60%, then in theory, the command operating sequence of this control object should be performed 6000 times, suppose its command operating sequence be [" A ", " B ", " C "] then A, B, C operational order perform 6000 times respectively.It should be noted that, fixation probability algorithm can be used when calculating weighted value, namely be multiplied by the weighted value of control object to be measured according to total testing time of application program to be measured, obtain the execution number of times of test operation instruction sequence corresponding to this control object to be measured.Also it should be noted that, multiple realization means is had when the execution number of times of the command operating sequence according to weighted value calculating control object, preferably, can according to law of great numbers: " under the condition that test is constant; repeatedly, the frequency approach of occurrence of random events is in the expected probability of a certain stationary value-event for revision test ".Namely, when the total testing time performed when the control object to be measured in application program to be measured is tending towards infinite, its tested probability levels off to weighted value.
Testing execution module 104, for choosing control object to be measured according to described test weighted value, triggering Devices to test and performing the test operation instruction sequence built for the described control object to be measured chosen.
Particularly, detect described Android device to be measured and whether be in idle condition, if be in idle condition, according to the test operation instruction sequence built in instruction structure module 102 in conjunction with the weighted value arranged in weight presetting module 103, the test operation instruction sequence that random selecting builds, be sent on Devices to test, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen according to corresponding weighted value.It should be noted that, herein random is not completely random, but performs at random according to certain weighted value, the order of the operational order sequence just performed and to perform number of times random within the specific limits.
In a preferred embodiment, first detect mobile phone to be measured and whether be in " free time " state, if idle, then according to the test weighted value random selecting control object to be measured set in step S103, trigger the test operation instruction sequence that mobile phone to be measured performs the control object structure to be measured for random selecting, be understandable that, this operation can be carried out for the mobile phone that multiple stage is to be measured, and test assignment queue be separate simultaneously.It should be added that, the present invention carries out above-mentioned random testing method except treating survey control object, can also according to test needs, carry out traversal test, wherein travel through test and can comprise extreme saturation test and breadth traversal test, be mainly used in functional test, and the stability of the random test based on weight of the present invention mainly application programs is tested, and namely more lays particular stress on performance test.When carrying out control and traveling through test in order, PC end sends to mobile phone terminal and starts to perform instruction, and mobile phone terminal carries out traversal test, and PC end timing query execution state, if test terminates, mobile phone terminal returns ending message.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 6 be the another kind in the embodiment of the present invention based on the automatic test device of control structural representation in order to perform above-mentioned embodiment illustrated in fig. 2 in another kind based on the flow process of the automated testing method of control.
Below in conjunction with accompanying drawing 6, the structure of a kind of automatic test device based on control in the embodiment of the present invention is described in detail.This device 20 can comprise: control acquisition module 201, instruction build module 202, weight presetting module 203 and testing execution module 204.Described control acquisition module 201 can comprise communication connection unit 2011, control acquiring unit 2012, control judging unit 2013 and instruction judging unit 2014, and testing execution module 204 can comprise Condition Monitoring Unit 2041, instruction execution unit 2042, video recording unit 2043, anomaly extracting unit 2044, analysis mining unit 2045.
Control acquisition module 201 can comprise communication connection unit 2011, control acquiring unit 2012, control judging unit 2013 and instruction judging unit 2014.
Communication connection unit 2011, for setting up the communication connection with described Devices to test.
Control acquiring unit 2012, for obtaining the control object to be measured in the application program of installing in described Devices to test.
Control judging unit 2013, for judging the type of described control object to be measured according to the attribute information of described control object to be measured.
Instruction judging unit 2014, for judging the operational order that described control object to be measured is supported according to the type of described control object to be measured.
Unit 2011 to 2014 that 201 control acquisition modules wherein in device comprise can perform and Method Of Accomplishment step S201 to S204 in all methods and flow process, do not repeat them here.
Instruction builds module 202, for building the test operation instruction sequence of described control object to be measured according to the described operational order judging that the control object to be measured identified is supported.
Instruction wherein in device builds module 202 and can perform and all methods in Method Of Accomplishment step S205 and flow process, does not repeat them here.
Weight presetting module 203, for arranging the test weighted value in the application program to be measured of described control object to be measured belonging to it, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it.
Weight presetting module 203 wherein in device can perform and Method Of Accomplishment step S206 in all methods and flow process, do not repeat them here.
Testing execution module 204 can comprise Condition Monitoring Unit 2041, instruction execution unit 2042, video recording unit 2043, anomaly extracting unit 2044, analysis mining unit 2045.
Whether Condition Monitoring Unit 2041, be in idle condition for the Devices to test detecting described application program place to be measured.
Instruction execution unit 2042, if for being in idle condition, performs corresponding test operation instruction sequence to the described control object to be measured chosen.
Video recording unit 2043, for recording the test video video recording described control object to be measured chosen being performed to corresponding test operation instruction sequence.
Anomaly extracting unit 2044, for the time point of abnormal conditions reported in test process according to described application program to be measured, extracts the frame picture corresponding to time point of described abnormal conditions and records preservation in described test video video recording.
Analysis mining unit 2045, for recording the test case of described application program to be measured, carries out analysis mining to the test case of described record.
Unit 2041 to 2045 that testing execution module 204 wherein in device comprises can perform and Method Of Accomplishment step S207 to S211 in all methods and flow process, do not repeat them here.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 7 be a kind of automated test device based on control in the embodiment of the present invention structural representation in order to perform above-mentioned embodiment illustrated in fig. 3 in a kind of flow process of the automated testing method based on control.
Below in conjunction with accompanying drawing 7, the structure of a kind of automated test device based on control in the embodiment of the present invention is described in detail.This equipment 30 can comprise: command reception module 301, first instruction module 302 and instruct execution module 303.
Command reception module 301, for receiving the interactive action instruction that testing server sends.
Particularly, Android mobile phone to be measured receives testing server PC end and sends START interactive instruction, and it is mutual that Android mobile phone to be measured opens SocketServer, initialization directive collection, initialization RamTeService, AccService, LogService background service; Call StartFromCode method, AccService is started from code; Initialization OnServiceConnected, obtains Acc example, calls GetRootInWindow and obtains Root root node; Call OnServiceConnected method, open Log and cushion thread, open IBinder interface service; Create Socket thread pool, start the Connection Service accepting PC end, and accept interactive action instruction.
First instruction analysis module 302, for when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, sends the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen.
Particularly, the type of interactive action instruction described in analysis judgment, when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, obtain Root node View, by preorder traversal rootView, obtain child control View information, by the current UI View of Root root node preorder traversal, identifying can operational controls filter invisible control, finally by control method for packing, child control is encapsulated as the Client that xml form passes back to PC end, the operational order identifying that control object to be measured is supported is judged to make testing server, according to judging that the operational order of the control object support to be measured identified builds the test operation instruction sequence of control object to be measured, test weighted value in the application program to be measured of control object to be measured belonging to it is finally set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen.
Instruct execution module 303, for receiving the test operation instruction sequence that described testing server sends, and performs described test operation instruction sequence.
Particularly, receive the test operation instruction sequence that described testing server sends, instruction set is given Execute method, initialization performs an action module, according to the event type of resolving, perform the command operatings such as KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText class, complete test mutual, and verify execution result.It should be added that, if control visiting instruction, then initialization control visiting module, and construct UI tree structure, identify that current UI can operational controls filter invisible control, discernible control is added Tag marker bit and associates Path array, the order performed before and after distinguishing and detailed path, judge that the supported action type of control is to perform KeyEvent generic operation, Drag generic operation, Click generic operation, Scroll generic operation or SetText generic operation and to verify execution result, by initialized extreme saturation method, this UI of extreme saturation.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 8 be the another kind in the embodiment of the present invention based on the automatic test device of control structural representation in order to perform above-mentioned embodiment illustrated in fig. 4 in another kind based on the flow process of the automated testing method of control.
Below in conjunction with accompanying drawing 8, the structure of a kind of automatic test device based on control in the embodiment of the present invention is described in detail.This equipment 40 can comprise: command reception module 401, first instruction module 402, instruct execution module 403, second instruction analysis execution module 404, result-generation module 405 and result feedback module 406.
Command reception module 401, for receiving the interactive action instruction that testing server sends.
Command reception module 401 wherein in equipment can perform and Method Of Accomplishment step S401 in all methods and flow process, do not repeat them here.
First instruction analysis module 402, for when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, sends the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen.
The first instruction analysis module 402 wherein in equipment can perform and Method Of Accomplishment step S402 in all methods and flow process, do not repeat them here.
Instruct execution module 403, for receiving the test operation instruction sequence that described testing server sends, and performs described test operation instruction sequence.
Instruct execution module 403 wherein in equipment can perform and Method Of Accomplishment step S403 in all methods and flow process, do not repeat them here.
Second instruction analysis execution module 404, for when to analyze described interactive action instruction be test operation instruction sequence, performs described test operation instruction sequence; Wherein said test operation instruction sequence is the control object to be measured that described testing server obtains application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, for the test operation instruction sequence that the described control object to be measured chosen builds.
The second instruction analysis execution module 404 wherein in equipment can perform and Method Of Accomplishment step S404 in all methods and flow process, do not repeat them here.
Result-generation module 405, for generating execution result.
Result-generation module 405 wherein in equipment can perform and Method Of Accomplishment step S405 in all methods and flow process, do not repeat them here.
Result feedback module 406, for being sent to described testing server and/or recording the time point of abnormal conditions in described execution result and feed back to described testing server by described execution result.
Result feedback module 406 wherein in equipment can perform and Method Of Accomplishment step S406 in all methods and flow process, do not repeat them here.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Fig. 9 is the structural representation of a kind of automatization test system based on control in the embodiment of the present invention, and the automatization test system 50 based on control comprises testing service end 501 and Devices to test 502, wherein
Testing service end 501 obtains the control object to be measured of the application program to be measured of Devices to test 502, judges the operational order identifying that described control object to be measured is supported; The test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported; Test weighted value in the application program to be measured of described control object to be measured belonging to it is set; Choose control object to be measured according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen.Devices to test 502 receives the interactive action instruction that testing server 501 sends; When analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, send the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen; Receive the test operation instruction sequence that described testing server sends, and perform described test operation instruction sequence.
Particularly, the automatic test device 10 based on control or the automatic test device 20 based on control of Fig. 5 to Fig. 6 can be comprised based on the testing server 501 in the automatization test system 50 of control; Target communications terminal 502 can comprise the automated test device 30 based on control and the automated test device 40 based on control of Fig. 7 to Fig. 8, wherein specifically how to realize, can the corresponding description with reference to said method item embodiment, does not repeat them here.
The embodiment of the present invention, by arranging the test weighted value in the application program to be measured of control object to be measured belonging to it, according to test weighted value random selecting control object to be measured, and trigger the test operation instruction sequence of Devices to test execution for the control object structure to be measured chosen, achieve and carry out the unordered test operation of robotization according to the test significance level of control in its owning application, improve the accuracy of the automatic test based on control.
Should be understood that, although use term first, second describing method such as grade, module or unit herein, these methods or unit should not by the restrictions of these terms, and these terms are only used to be distinguished from each other.It is to be further understood that and use in this article, unless context clearly supports exception, singulative " " (" a ", " an " and " the ") is intended to also comprise plural form.Should also be understood that the "and/or" used in this article refers to comprise any of more than one or one project listed explicitly and likely combine.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only preferred embodiment in the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.

Claims (20)

1. based on an automated testing method for control, it is characterized in that, comprising:
Obtain the control object to be measured of application program to be measured, judge the operational order identifying that described control object to be measured is supported;
The test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported;
Arrange the test weighted value in the application program to be measured of described control object to be measured belonging to it, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it;
Choose control object to be measured according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen.
2. the method for claim 1, is characterized in that, described application program to be measured is the application program of installing in Devices to test, and the control object to be measured of described acquisition application program to be measured comprises:
Set up the communication connection with described Devices to test;
Obtain the control object to be measured in the application program of installing in described Devices to test.
3. the method for claim 1, is characterized in that, the described operational order judging to identify that described control object to be measured is supported, comprising:
The type of described control object to be measured is judged according to the attribute information of described control object to be measured;
The operational order that described control object to be measured is supported is judged according to the type of described control object to be measured.
4. the method for claim 1, is characterized in that, describedly chooses control object to be measured according to described test weighted value, triggers Devices to test and performs the test operation instruction sequence built for the described control object to be measured chosen, comprising:
Whether the Devices to test detecting described application program place to be measured is in idle condition;
If be in idle condition, corresponding test operation instruction sequence is performed to the described control object to be measured chosen.
5. the method for claim 1, is characterized in that, describedly chooses control object to be measured according to described test weighted value, triggers Devices to test and performs the test operation instruction sequence built for the described control object to be measured chosen, also comprise:
Record the test video video recording described control object to be measured chosen being performed to corresponding test operation instruction sequence;
According to the time point of the abnormal conditions that described application program to be measured is reported in test process, in described test video video recording, extract the frame picture corresponding to time point of described abnormal conditions and record preservation.
6. the method for claim 1, is characterized in that, describedly chooses control object to be measured according to described test weighted value, triggers Devices to test and performs the test operation instruction sequence built for the described control object to be measured chosen, also comprise:
Record the test case of described application program to be measured, analysis mining is carried out to the test case of described record.
7. based on an automated testing method for control, it is characterized in that, comprising:
Receive the interactive action instruction that testing server sends;
When analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, send the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen;
Receive the test operation instruction sequence that described testing server sends, and perform described test operation instruction sequence.
8. method as claimed in claim 7, is characterized in that, after the interactive action instruction that described reception testing server sends, also comprises:
When to analyze described interactive action instruction be test operation instruction sequence, perform described test operation instruction sequence; Wherein said test operation instruction sequence is the control object to be measured that described testing server obtains application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, for the test operation instruction sequence that the described control object to be measured chosen builds.
9. method as claimed in claim 7 or 8, is characterized in that, after the described test operation instruction sequence of described execution, also comprise:
Generate execution result;
Described execution result be sent to described testing server and/or record the time point of abnormal conditions in described execution result and feed back to described testing server.
10. based on an automatic test device for control, it is characterized in that, comprising:
Control acquisition module, for obtaining the control object to be measured of application program to be measured, judges the operational order identifying that described control object to be measured is supported;
Instruction builds module, for building the test operation instruction sequence of described control object to be measured according to the described operational order judging that the control object to be measured identified is supported;
Weight presetting module, for arranging the test weighted value in the application program to be measured of described control object to be measured belonging to it, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it;
Testing execution module, for choosing control object to be measured according to described test weighted value, triggering Devices to test and performing the test operation instruction sequence built for the described control object to be measured chosen.
11. devices as claimed in claim 10, it is characterized in that, described application program to be measured is the application program of installing in Devices to test, and described control acquisition module, comprising:
Communication connection unit, for setting up the communication connection with described Devices to test;
Control acquiring unit, for obtaining the control object to be measured in the application program of installing in described Devices to test.
12. devices as claimed in claim 10, it is characterized in that, described control acquisition module, comprising:
Control judging unit, for judging the type of described control object to be measured according to the attribute information of described control object to be measured;
Instruction judging unit, for judging the operational order that described control object to be measured is supported according to the type of described control object to be measured.
13. devices as claimed in claim 10, it is characterized in that, described testing execution module, comprising:
Whether Condition Monitoring Unit, be in idle condition for the Devices to test detecting described application program place to be measured;
Instruction execution unit, if for being in idle condition, performs corresponding test operation instruction sequence to the described control object to be measured chosen.
14. devices as claimed in claim 10, it is characterized in that, described testing execution module, also comprises:
Video recording unit, for recording the test video video recording described control object to be measured chosen being performed to corresponding test operation instruction sequence;
Anomaly extracting unit, for the time point of abnormal conditions reported in test process according to described application program to be measured, extracts the frame picture corresponding to time point of described abnormal conditions and records preservation in described test video video recording.
15. devices as claimed in claim 10, it is characterized in that, described testing execution module, also comprises:
Analysis mining unit, for recording the test case of described application program to be measured, carries out analysis mining to the test case of described record.
16. 1 kinds based on the automated test device of control, is characterized in that, comprising:
Command reception module, for receiving the interactive action instruction that testing server sends;
First instruction analysis module, for when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, sends the control object information to be measured of application program to be measured to described testing server; The operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen;
Instruct execution module, for receiving the test operation instruction sequence that described testing server sends, and performs described test operation instruction sequence.
17. equipment as claimed in claim 16, it is characterized in that, described automated test device, also comprises:
Second instruction analysis execution module, for when to analyze described interactive action instruction be test operation instruction sequence, performs described test operation instruction sequence; Wherein said test operation instruction sequence is the control object to be measured that described testing server obtains application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, for the test operation instruction sequence that the described control object to be measured chosen builds.
18. equipment as described in claim 16 or 17, it is characterized in that, described automated test device, also comprises:
Result-generation module, for generating execution result;
Result feedback module, for being sent to described testing server and/or recording the time point of abnormal conditions in described execution result and feed back to described testing server by described execution result.
19. 1 kinds, based on the automatization test system of control, is characterized in that, comprise testing server and Devices to test, wherein
Described testing server obtains the control object to be measured of application program to be measured, judge the operational order identifying that described control object to be measured is supported, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, described weighted value represents the probability being performed corresponding test operation instruction sequence in the application program to be measured of described control object to be measured belonging to it, control object to be measured is chosen according to described test weighted value, trigger Devices to test and perform the test operation instruction sequence built for the described control object to be measured chosen, described Devices to test receives the interactive action instruction that described testing server sends, when analyzing described interactive action instruction and being the instruction of the control object to be measured obtaining application program to be measured, the control object information to be measured of application program to be measured is sent to described testing server, the operational order identifying that described control object to be measured is supported is judged to make described testing server, the test operation instruction sequence of described control object to be measured is built according to the described operational order judging that the control object to be measured identified is supported, test weighted value in the application program to be measured of described control object to be measured belonging to it is set, and after choosing control object to be measured according to described test weighted value, send the test operation instruction sequence built for the described control object to be measured chosen, receive the test operation instruction sequence that described testing server sends, and perform described test operation instruction sequence.
20. systems as claimed in claim 19, it is characterized in that, described testing server comprises the automatic test device based on control as described in any one of claim 10-15; Described Devices to test comprises the automated test device based on control as described in any one of claim 16-18.
CN201510023279.XA 2015-01-16 2015-01-16 A kind of automated testing method and system based on control Expired - Fee Related CN104598380B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510023279.XA CN104598380B (en) 2015-01-16 2015-01-16 A kind of automated testing method and system based on control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510023279.XA CN104598380B (en) 2015-01-16 2015-01-16 A kind of automated testing method and system based on control

Publications (2)

Publication Number Publication Date
CN104598380A true CN104598380A (en) 2015-05-06
CN104598380B CN104598380B (en) 2017-08-01

Family

ID=53124191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510023279.XA Expired - Fee Related CN104598380B (en) 2015-01-16 2015-01-16 A kind of automated testing method and system based on control

Country Status (1)

Country Link
CN (1) CN104598380B (en)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104933174A (en) * 2015-07-01 2015-09-23 北京博睿宏远科技发展有限公司 Method for solving model adaption problem of mobile phone APP (Application) on the basis of automatic traversal of control
CN105095093A (en) * 2015-09-30 2015-11-25 上海斐讯数据通信技术有限公司 Intelligent terminal performance test method and system
CN105550101A (en) * 2015-12-02 2016-05-04 北京奇虎科技有限公司 Test method for application program, electronic device and system
CN106055485A (en) * 2016-07-08 2016-10-26 北京奇虎科技有限公司 Method, device and system for testing application
WO2016206113A1 (en) * 2015-06-26 2016-12-29 Intel Corporation Technologies for device independent automated application testing
CN106326104A (en) * 2015-07-08 2017-01-11 腾讯科技(深圳)有限公司 Terminal control test method and apparatus
CN106326105A (en) * 2015-07-09 2017-01-11 富士通株式会社 Method and device for generating test case of application program
CN106502887A (en) * 2016-10-13 2017-03-15 郑州云海信息技术有限公司 A kind of stability test method, test controller and system
CN106998467A (en) * 2017-04-18 2017-08-01 腾讯科技(深圳)有限公司 Media playback quality method of testing and device
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends
CN107741902A (en) * 2016-12-23 2018-02-27 腾讯科技(深圳)有限公司 Program application detection method and program application detection means
CN108038059A (en) * 2017-12-22 2018-05-15 广州酷狗计算机科技有限公司 Interface traversal method and device
CN108134711A (en) * 2017-11-29 2018-06-08 海尔优家智能科技(北京)有限公司 Method, analogue simulation appliance system and the storage medium tested terminal APP
CN105988934B (en) * 2016-02-01 2018-07-27 腾讯科技(深圳)有限公司 Hand swims automated detection method and device
CN108415822A (en) * 2017-02-10 2018-08-17 阿里巴巴集团控股有限公司 A kind of random testing method and device
CN105988933B (en) * 2016-01-29 2018-09-07 腾讯科技(深圳)有限公司 The operable node recognition methods in interface, application testing method, apparatus and system
CN108595321A (en) * 2018-04-04 2018-09-28 北京潘达互娱科技有限公司 A kind of application testing method and device
WO2018177435A1 (en) * 2017-03-28 2018-10-04 上海合福信息科技有限公司 Control test method and software automatic test method
CN108628732A (en) * 2017-03-16 2018-10-09 腾讯科技(深圳)有限公司 A kind of application interface control visiting test method and device
CN108733551A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 Control visiting method and device, analysis system
CN109376070A (en) * 2018-09-03 2019-02-22 深圳壹账通智能科技有限公司 A kind of test method and terminal device of application program control
CN109388560A (en) * 2018-09-18 2019-02-26 广州小鹏汽车科技有限公司 Stability test method and apparatus are applied based on Monkey
US10223245B1 (en) 2016-05-27 2019-03-05 Amdocs Development Limited System, method, and computer program for identifying tests to automate in a software testing project
CN110162245A (en) * 2019-04-11 2019-08-23 北京达佳互联信息技术有限公司 Analysis method, device, electronic equipment and the storage medium of graphic operation
CN110175117A (en) * 2019-05-06 2019-08-27 珠海全志科技股份有限公司 Test method, system, device, terminal and readable storage medium storing program for executing
CN110765002A (en) * 2019-09-19 2020-02-07 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for obtaining operation behavior information
CN111581100A (en) * 2020-05-11 2020-08-25 北京首汽智行科技有限公司 Background management system testing method
CN111831559A (en) * 2020-06-24 2020-10-27 厦门亿联网络技术股份有限公司 QT interface program automatic detection method and device
CN112749063A (en) * 2021-01-20 2021-05-04 深圳橙子自动化有限公司 Method and device for monitoring equipment operation flow based on application program and storage medium
CN113076242A (en) * 2021-02-24 2021-07-06 西安闻泰电子科技有限公司 User interface testing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090215489A1 (en) * 2005-10-17 2009-08-27 France Telecom Method and Device for Managing Applications of a Mobile Terminal
CN103019937A (en) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 Human-machine interaction interface traverse test method
CN103345442A (en) * 2013-06-06 2013-10-09 莱诺斯科技(北京)有限公司 Equipment automated testing service integration system
CN103853663A (en) * 2014-03-25 2014-06-11 北京金山网络科技有限公司 Application program test method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090215489A1 (en) * 2005-10-17 2009-08-27 France Telecom Method and Device for Managing Applications of a Mobile Terminal
CN103019937A (en) * 2012-12-13 2013-04-03 广东欧珀移动通信有限公司 Human-machine interaction interface traverse test method
CN103345442A (en) * 2013-06-06 2013-10-09 莱诺斯科技(北京)有限公司 Equipment automated testing service integration system
CN103853663A (en) * 2014-03-25 2014-06-11 北京金山网络科技有限公司 Application program test method and system

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016206113A1 (en) * 2015-06-26 2016-12-29 Intel Corporation Technologies for device independent automated application testing
CN104933174A (en) * 2015-07-01 2015-09-23 北京博睿宏远科技发展有限公司 Method for solving model adaption problem of mobile phone APP (Application) on the basis of automatic traversal of control
CN104933174B (en) * 2015-07-01 2018-05-22 北京博睿宏远数据科技股份有限公司 The method that traversal solution cell phone application type adaptation issues are automated based on control
CN106326104A (en) * 2015-07-08 2017-01-11 腾讯科技(深圳)有限公司 Terminal control test method and apparatus
CN106326104B (en) * 2015-07-08 2021-03-16 腾讯科技(深圳)有限公司 Terminal control testing method and device
CN106326105A (en) * 2015-07-09 2017-01-11 富士通株式会社 Method and device for generating test case of application program
CN105095093A (en) * 2015-09-30 2015-11-25 上海斐讯数据通信技术有限公司 Intelligent terminal performance test method and system
CN105550101A (en) * 2015-12-02 2016-05-04 北京奇虎科技有限公司 Test method for application program, electronic device and system
CN105988933B (en) * 2016-01-29 2018-09-07 腾讯科技(深圳)有限公司 The operable node recognition methods in interface, application testing method, apparatus and system
CN105988934B (en) * 2016-02-01 2018-07-27 腾讯科技(深圳)有限公司 Hand swims automated detection method and device
CN107402877A (en) * 2016-05-19 2017-11-28 福建天晴数码有限公司 APP method of testings and system based on Android ends
CN107402877B (en) * 2016-05-19 2020-08-18 福建天晴数码有限公司 Android-terminal-based APP test method and system
US10223245B1 (en) 2016-05-27 2019-03-05 Amdocs Development Limited System, method, and computer program for identifying tests to automate in a software testing project
CN106055485A (en) * 2016-07-08 2016-10-26 北京奇虎科技有限公司 Method, device and system for testing application
CN106502887A (en) * 2016-10-13 2017-03-15 郑州云海信息技术有限公司 A kind of stability test method, test controller and system
CN107741902B (en) * 2016-12-23 2020-07-07 腾讯科技(深圳)有限公司 Program application detection method and program application detection device
CN107741902A (en) * 2016-12-23 2018-02-27 腾讯科技(深圳)有限公司 Program application detection method and program application detection means
CN108415822A (en) * 2017-02-10 2018-08-17 阿里巴巴集团控股有限公司 A kind of random testing method and device
CN108415822B (en) * 2017-02-10 2022-09-20 阿里巴巴集团控股有限公司 Random test method and device
CN108628732A (en) * 2017-03-16 2018-10-09 腾讯科技(深圳)有限公司 A kind of application interface control visiting test method and device
CN108628732B (en) * 2017-03-16 2023-04-18 腾讯科技(深圳)有限公司 Traversal test method and device for application interface control
WO2018177435A1 (en) * 2017-03-28 2018-10-04 上海合福信息科技有限公司 Control test method and software automatic test method
CN108733551A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 Control visiting method and device, analysis system
CN106998467A (en) * 2017-04-18 2017-08-01 腾讯科技(深圳)有限公司 Media playback quality method of testing and device
CN108134711A (en) * 2017-11-29 2018-06-08 海尔优家智能科技(北京)有限公司 Method, analogue simulation appliance system and the storage medium tested terminal APP
CN108038059A (en) * 2017-12-22 2018-05-15 广州酷狗计算机科技有限公司 Interface traversal method and device
CN108595321A (en) * 2018-04-04 2018-09-28 北京潘达互娱科技有限公司 A kind of application testing method and device
CN109376070A (en) * 2018-09-03 2019-02-22 深圳壹账通智能科技有限公司 A kind of test method and terminal device of application program control
CN109388560A (en) * 2018-09-18 2019-02-26 广州小鹏汽车科技有限公司 Stability test method and apparatus are applied based on Monkey
CN110162245A (en) * 2019-04-11 2019-08-23 北京达佳互联信息技术有限公司 Analysis method, device, electronic equipment and the storage medium of graphic operation
CN110175117A (en) * 2019-05-06 2019-08-27 珠海全志科技股份有限公司 Test method, system, device, terminal and readable storage medium storing program for executing
CN110765002A (en) * 2019-09-19 2020-02-07 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for obtaining operation behavior information
CN111581100A (en) * 2020-05-11 2020-08-25 北京首汽智行科技有限公司 Background management system testing method
CN111831559A (en) * 2020-06-24 2020-10-27 厦门亿联网络技术股份有限公司 QT interface program automatic detection method and device
CN112749063A (en) * 2021-01-20 2021-05-04 深圳橙子自动化有限公司 Method and device for monitoring equipment operation flow based on application program and storage medium
CN113076242A (en) * 2021-02-24 2021-07-06 西安闻泰电子科技有限公司 User interface testing method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN104598380B (en) 2017-08-01

Similar Documents

Publication Publication Date Title
CN104598380A (en) Method and system for automatic testing based on control
US10853232B2 (en) Adaptive system for mobile device testing
CN107102947B (en) ATM transaction flow testing device and method
CN105335283A (en) Application testing method and device in terminal equipment
CN109947635B (en) Data reporting method, device, storage medium and terminal equipment
CN103984626B (en) A kind of method and device for generating test case script
CN105740144A (en) Automated testing method and system for Android mobile Terminal
CN110716853A (en) Test script recording method, application program testing method and related device
CN107800757B (en) User behavior recording method and device
CN104461903A (en) Method and device for testing client side based on browser
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN106874763B (en) Android software malicious behavior triggering system and method for simulating user behavior
CN104899016A (en) Call stack relationship obtaining method and call stack relationship obtaining device
CN107302476A (en) A kind of automated testing method and system for testing asynchronous interactive system
CN110610089B (en) User behavior simulation method and device and computer equipment
CN105373293A (en) Data acquisition method and apparatus
CN105577472A (en) Data acquisition test method and device
CN105516321A (en) Data acquisition method and device
CN113792341A (en) Privacy compliance automation detection method, device, equipment and medium for application program
CN103729293A (en) GUI testing method based on UML activity diagrams
CN104750612A (en) File operation testing method and device
CN106528429A (en) UI testing method and device
CN112214405A (en) Software testing method and device, electronic equipment and readable storage medium
CN105515909A (en) Data collection test method and device
CN105553770A (en) Data acquisition control 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
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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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: 20170801