CN106294103A - The automated testing method of a kind of Android system analogue-key transmission and device - Google Patents

The automated testing method of a kind of Android system analogue-key transmission and device Download PDF

Info

Publication number
CN106294103A
CN106294103A CN201510262094.4A CN201510262094A CN106294103A CN 106294103 A CN106294103 A CN 106294103A CN 201510262094 A CN201510262094 A CN 201510262094A CN 106294103 A CN106294103 A CN 106294103A
Authority
CN
China
Prior art keywords
key
analogue
sends
class
press event
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.)
Pending
Application number
CN201510262094.4A
Other languages
Chinese (zh)
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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201510262094.4A priority Critical patent/CN106294103A/en
Publication of CN106294103A publication Critical patent/CN106294103A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses automated testing method and device that a kind of Android system analogue-key sends, method includes: the analogue-key called during encapsulation automatic test sends class, analogue-key sends class be docked in the input management service framework of Android system, and obtain calling JAR bag by the transmission class compiling of described analogue-key;When applying detection to be tested is to when can call JAR bag, and parsing can call JAR bag, the key-press event can called in JAR bag is transmitted to Android input system, and responds key-press event successively by Android input system.Present invention utilizes the attribute of key-press event object, complete requirements such as automatization's survey request moment, key assignments, frequencies by defined attribute, it is not necessary to take multiple thread, reduce the requirement to internal memory;And by directly extending Android input framework from the superiors' JAVA layer of Android software architecture, it is only necessary to JAVA API is carried out secondary encapsulation, there is good portability.

Description

The automated testing method of a kind of Android system analogue-key transmission and device
Technical field
The present invention relates to automatization testing technique field, the automated testing method of a kind of Android system analogue-key transmission and device.
Background technology
At present, in the automatic test of android system, except initialization etc. must be in addition to operation to be performed can trigger automatically, majority operation all needs to be triggered by the external world, and these specific conditions comprise the triggering moment, touches and please ask, touch behaviour's operation, perform the contents such as number of times.Meanwhile, automatic test also should meet the stress test demand being performed a plurality of times.
Existing automatic test is frequently with following two mode:
One is to use RunTime.exec () this interface, directly by RunTime completion system bottom operation adb shell input.It is abnormal that the method may produce IO when a large amount of execution.
Another kind is the sendKeyDownUpSync method using Instrumentation, and the method can cause memory problem when being performed a plurality of times because thread takies, and cannot send the condition setting of event by complete paired keys.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide automated testing method and device that a kind of Android system analogue-key sends, aim to solve the problem that the automaticity of the analogue-key automatic test of Android system in prior art is the highest, test process takies relatively multithreading, and the defect that the portability of test script is low.
Technical scheme is as follows:
The automated testing method that a kind of Android system analogue-key sends, wherein, said method comprising the steps of:
The analogue-key called when A, encapsulation automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key;
B, when applying detection to be tested is to when can call JAR bag, resolve and described can call JAR bag, by the transmission of the described key-press event called in JAR bag to Android input system, and pass through Android input system and respond key-press event successively.
The automated testing method that described Android system analogue-key sends, wherein, described step A specifically includes:
The analogue-key called when A1, encapsulation automatic test sends class, and key-press event, and the method that heavily loaded described injection key-press event is corresponding are injected in definition;
A2, the single example of input management of acquisition Android system, send described analogue-key in the injected system event methods that key-press event corresponding to class sends the most described single example of input management;
A3, by described analogue-key transmission class boil down to be used for test plug-in unit bag, and by Android system write compiling configuration file, be compiled as calling JAR bag by described plug-in unit bag.
The automated testing method that described Android system analogue-key sends, wherein, described step B specifically includes:
B1, when applying detection to be tested is to when can call JAR bag, resolve described in can call JAR bag and obtain key-press event;
B2, described key-press event is passed sequentially through the input that the described input single example of management sends to Android system JAVA layer manage service framework;
B3, input management service framework receive each key-press event, and by JNI layer, each key-press event send C/C++ layer to Android system successively;
B4, the C/C++ layer of Android system receive each key-press event, and respond key-press event successively by Android input system.
The automated testing method that described Android system analogue-key sends, wherein, described analogue-key sends class and is that the first analogue-key sends class, the second analogue-key sends class, the 3rd analogue-key sends class or the four the first analogue-keys send any one of apoplexy due to endogenous wind;Wherein, described first analogue-key sends class for the behavior of specified button event, key assignments and synchronous mode;Described second analogue-key sends class pressing the moment, moment, behavior, key assignments, number of repetition and synchronous mode occur for specified button event;Described 3rd analogue-key sends class pressing moment, generation moment, behavior, key assignments, number of repetition, synchronous mode and specifying hardware parameter for specified button event;Described 4th analogue-key sends class for specifying the generation generation moment of key-press event, key assignments context string, device number, labelling and synchronous mode.
The automated testing method that described Android system analogue-key sends, wherein, also includes before described step B: increase the XML file of statement authority in JAR bag described calling.
The automatic test device that a kind of Android system analogue-key sends, wherein, including:
Encapsulating collector, the analogue-key called in time encapsulating automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key;
Event response module, for when applying detection to be tested is to when can call JAR bag, calling JAR bag described in parsing, transmit the described key-press event called in JAR bag to Android input system, and respond key-press event successively by Android input system.
The automatic test device that described Android system analogue-key sends, wherein, described encapsulation collector specifically includes:
Overriding unit, the analogue-key called in time encapsulating automatic test sends class, and key-press event, and the method that heavily loaded described injection key-press event is corresponding are injected in definition;
First transmitting element, for obtaining the single example of input management of Android system, sends described analogue-key key-press event corresponding to class and sends to the injected system event methods of the described single example of input management;
Compilation unit, for by described analogue-key transmission class boil down to be used for test plug-in unit bag, and by Android system write compiling configuration file, be compiled as calling JAR bag by described plug-in unit bag.
The automatic test device that described Android system analogue-key sends, wherein, described event response module specifically includes:
Resolution unit, for when applying detection to be tested is to when can call JAR bag, calling JAR bag described in parsing and obtain key-press event;
Second transmitting element, is used for that described key-press event passes sequentially through the described single example of input management and sends the input management service framework to Android system JAVA layer;
3rd transmitting element, is used for inputting management service framework and receives each key-press event, and by JNI layer, each key-press event sends C/C++ layer to Android system successively;
Response unit, the C/C++ layer for Android system receives each key-press event, and responds key-press event successively by Android input system.
The automatic test device that described Android system analogue-key sends, wherein, described analogue-key sends class and is that the first analogue-key sends class, the second analogue-key sends class, the 3rd analogue-key sends class or the four the first analogue-keys send any one of apoplexy due to endogenous wind;Wherein, described first analogue-key sends class for the behavior of specified button event, key assignments and synchronous mode;Described second analogue-key sends class pressing the moment, moment, behavior, key assignments, number of repetition and synchronous mode occur for specified button event;Described 3rd analogue-key sends class pressing moment, generation moment, behavior, key assignments, number of repetition, synchronous mode and specifying hardware parameter for specified button event;Described 4th analogue-key sends class for specifying the generation generation moment of key-press event, key assignments context string, device number, labelling and synchronous mode.
The automatic test device that described Android system analogue-key sends, wherein, described event response module is additionally operable to increase the XML file of statement authority in JAR bag described calling.
The automated testing method of a kind of Android system analogue-key transmission that the present invention provides and device, method includes: the analogue-key called during encapsulation automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key;When applying detection to be tested is to when can call JAR bag, JAR bag can be called described in parsing, the described key-press event called in JAR bag is transmitted to Android input system, and respond key-press event successively by Android input system.Present invention utilizes the attribute of key-press event object, complete requirements such as automatization's survey request moment, key assignments, frequencies by defined attribute, it is not necessary to take multiple thread, reduce the requirement to internal memory;And by directly extending Android input framework from the superiors' JAVA layer of Android software architecture, it is only necessary to JAVA API is carried out secondary encapsulation, there is good portability.
Accompanying drawing explanation
Fig. 1 is the flow chart of the automated testing method preferred embodiment that Android system analogue-key of the present invention sends.
Fig. 2 is in the automated testing method that Android system analogue-key of the present invention sends, analogue-key to be sent class to be packaged the particular flow sheet of compiling.
Fig. 3 is, in the automated testing method that Android system analogue-key of the present invention sends, analogue-key is sent the particular flow sheet that class resolves and responds.
Fig. 4 is the Email Filtering schematic diagram of key-press event in the automated testing method that Android system analogue-key of the present invention sends.
Fig. 5 is the structured flowchart of the automatic test device preferred embodiment that Android system analogue-key of the present invention sends.
Detailed description of the invention
The present invention provides the automated testing method and device that a kind of Android system analogue-key sends, and for making the purpose of the present invention, technical scheme and effect clearer, clear and definite, the present invention is described in more detail below.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Refer to the flow chart that Fig. 1, Fig. 1 are the automated testing method preferred embodiments that Android system analogue-key of the present invention sends.As it is shown in figure 1, it comprises the following steps:
The analogue-key called when step S100, encapsulation automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key.
In embodiments of the invention, in order to meet different automatic test requirements, described analogue-key sends class (i.e. KeyEventSender Class) it is any one in type in following four:
First analogue-key sends class, for behavior, key assignments and the synchronous mode of specified button event;It is KeyEventSender. that first analogue-key sends the package interface of class injectKeyEvent(int action, int code, boolean sync)。
Second analogue-key sends class pressing the moment, moment, behavior, key assignments, number of repetition and synchronous mode occur for specified button event;It is KeyEventSender. that second analogue-key sends the package interface of class injectKeyEvent(long downTime, long eventTime, int action, int code, int repeat, boolean sync)。
3rd analogue-key sends class pressing moment, generation moment, behavior, key assignments, number of repetition, synchronous mode and specifying hardware parameter (such as META state, device number, scan code, labelling and input source etc.) for specified button event;It is KeyEventSender. that 3rd analogue-key sends the package interface of class injectKeyEvent(long downTime, long eventTime, int action, int code, int repeat, int metaState, int deviceId, int scancode, int flags, int source, boolean sync)。
4th analogue-key sends class for specifying the generation generation moment of key-press event, key assignments context string, device number, labelling and synchronous mode;It is KeyEventSender. that 4th analogue-key sends the package interface of class injectKeyEvent(long time, String characters, int deviceId, int flags,boolean sync)。
Use the first analogue-key to send class when only needing and simply defining button, use the second analogue-key to send class when the moment needing definition event to occur and number of times, use when needing to define the parameter relevant to some hardware the 3rd analogue-key to send class, when pure hardware sends, use the 4th analogue-key transmission class.
When complete analogue-key send class encapsulation, then by described analogue-key transmission class be docked to Android system input management service framework (i.e. Android InputManagerSevice framework) in, this is accomplished by first obtaining the single example (i.e. the mono-example of InputManager) of input management, then transfer to the input of Android system to manage in the injection key-press event (i.e. injectInputEvent method) of (i.e. InputManager) key-press event to process, to be accomplished to the injection of the JAVA layer of Android system.
The class injection to the JAVA layer of Android system is sent when completing described analogue-key, then such is packaged as Addon plug-in unit bag (as wrapped entitled com.test.key), by writing compiling configuration file Android.mk, after compiling, described analogue-key transmission class (KeyEventSender Class) can be integrated into one and can call JAR bag.For the application in Android system, only need to add<uses-library>in AndroidManifest.xml just can find this Addon plug-in unit bag.
By writing compiling configuration file Android.mk, that described analogue-key is sent the code that is compiled of class is as follows:
Android.mk
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
$(call all-java-files-under)
LOCAL_MODULE := com.test.key
Step S200, when applying detection to be tested is to when can call JAR bag, JAR bag can be called described in Xie Xiing, JAR bag is called (wherein by described, the abbreviation of JAR i.e. Java Archive, represent Java archive file) in key-press event transmit to Android input system, and respond key-press event successively by Android input system.
In step s 200, when application to be tested (the most not possessing the application program to be tested of system-level authority) cannot detect and can call JAR bag, adding an XML file stating authority in JAR bag described calling, application the most to be tested just can be found to find in system framework (/system/framework) and can call JAR bag (as wrapped entitled com.test.key.jar).
It is as follows that it implements code:
permission.xml
<?xml version="1.0" encoding="utf-8"?>
<permissions>
<library name=" com.test.key "
file="/system/framework/com.test.key.jar"/>
</permissions>
Further, as in figure 2 it is shown, the idiographic flow that analogue-key transmission class is packaged in described step S100 compiling includes:
The analogue-key called when step S101, encapsulation automatic test sends class, and key-press event, and the method that heavily loaded described injection key-press event is corresponding are injected in definition.
Step S102, the single example of input management of acquisition Android system, send described analogue-key in the injected system event methods that key-press event corresponding to class sends the most described single example of input management.
In step s 102, it is achieved that analogue-key sends the class injection to Android system Java layer.
Step S103, by described analogue-key transmission class boil down to be used for test plug-in unit bag, and by Android system write compiling configuration file, be compiled as calling JAR bag by described plug-in unit bag.
Further, as it is shown on figure 3, the idiographic flow in described step S200, analogue-key transmission class being resolved and being responded includes:
Step S201, when applying detection to be tested is to when can call JAR bag, resolve described in can call JAR bag and obtain key-press event;
Step S202, described key-press event is passed sequentially through the input that the described input single example of management sends to Android system JAVA layer manage service framework;
Step S203, input management service framework receive each key-press event, and by JNI layer, each key-press event send C/C++ layer to Android system successively;
Step S204, the C/C++ layer of Android system receive each key-press event, and respond key-press event successively by Android input system.
In step S201-S204, the Email Filtering schematic diagram of key-press event is as shown in Figure 4, JAR bag can be called and first transmit the InputManager.java to the JAVA layer of Android system, then be delivered to the InputManagerSeviece.java corresponding to manager, then to JNI layer Com_android_server_input_InputManagerService.cpp, then transfer to InputDispatcher.cpp to distribute key-press event, the final response of event is finally completed by Android input system.
In order to clearer understanding Android system of the present invention analogue-key send automated testing method, under illustrated by a specific embodiment.After testing intelligent television unlatching, the switching between intelligence system and cable television system is the most normal, it is assumed that switching key is HOME key, now can complete the test to this content by said method.
Intelligent television system starts, and after loading Launcher, runs and comprises and refer to the lower array function of the application of KeyEventSender class testing, i.e. execution:
long now = SystemClock.uptimeMillis();
KeyEventSender.injectKeyEvent(now, now, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ HOME, 0, false);
KeyEventSender.injectKeyEvent(now, now, KeyEvent.ACTION_UP, KeyEvent. KEYCODE_HOME, 0, false);
Verify whether normally to switch.Then be set in the now moment the most again simulates the transmission message of HOME every a time period, repeatedly performs repeatedly, checks whether that having carried out corresponding many subsystems switches, and completes the checking of the stress test to this test item by display content.
Visible, that Android system analogue-key of the present invention sends automated testing method, has a techniques below benefit:
1) make use of the attribute of KeyEvent object, complete requirements such as automatization's survey request moment, key assignments, frequencies by defined attribute, it is not necessary to take multiple thread, reduce the requirement to internal memory;
2) by directly extending Android Input framework from the superiors' JAVA layer of Android software architecture, it is only necessary to JAVA API carries out secondary encapsulation, has good portability, maintains original top-down linear execution sequence, it is possible to possess certain execution efficiency;
3) just can obtain sending permission when using expanding packet after secondary encapsulation, the most both can guarantee that the demand of test, evade again the requirement corresponding to there being system-level authority, the key assignments simulation that application only need to use an API can complete to be performed by software sends.
Based on said method embodiment, the present invention also provides for the automatic test device that a kind of Android system analogue-key sends, as it is shown in figure 5, comprising:
Encapsulating collector 100, the analogue-key called in time encapsulating automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key;
Event response module 200, for when applying detection to be tested is to when can call JAR bag, calling JAR bag described in parsing, transmit the described key-press event called in JAR bag to Android input system, and respond key-press event successively by Android input system.
Further, in the automatic test device that described Android system analogue-key sends, described encapsulation collector 100 specifically includes:
Overriding unit, the analogue-key called in time encapsulating automatic test sends class, and key-press event, and the method that heavily loaded described injection key-press event is corresponding are injected in definition;
First transmitting element, for obtaining the single example of input management of Android system, sends described analogue-key key-press event corresponding to class and sends to the injected system event methods of the described single example of input management;
Compilation unit, for by described analogue-key transmission class boil down to be used for test plug-in unit bag, and by Android system write compiling configuration file, be compiled as calling JAR bag by described plug-in unit bag.
Further, in the automatic test device that described Android system analogue-key sends, described event response module 200 specifically includes:
Resolution unit, for when applying detection to be tested is to when can call JAR bag, calling JAR bag described in parsing and obtain key-press event;
Second transmitting element, is used for that described key-press event passes sequentially through the described single example of input management and sends the input management service framework to Android system JAVA layer;
3rd transmitting element, is used for inputting management service framework and receives each key-press event, and by JNI layer, each key-press event sends C/C++ layer to Android system successively;
Response unit, the C/C++ layer for Android system receives each key-press event, and responds key-press event successively by Android input system.
Further, in the automatic test device that described Android system analogue-key sends, described analogue-key sends class and is that the first analogue-key sends class, the second analogue-key sends class, the 3rd analogue-key sends class or the four the first analogue-keys send any one of apoplexy due to endogenous wind;Wherein, described first analogue-key sends class for the behavior of specified button event, key assignments and synchronous mode;Described second analogue-key sends class pressing the moment, moment, behavior, key assignments, number of repetition and synchronous mode occur for specified button event;Described 3rd analogue-key sends class pressing moment, generation moment, behavior, key assignments, number of repetition, synchronous mode and specifying hardware parameter for specified button event;Described 4th analogue-key sends class for specifying the generation generation moment of key-press event, key assignments context string, device number, labelling and synchronous mode.
Further, in the automatic test device that described Android system analogue-key sends, described event response module is additionally operable to increase the XML file of statement authority in JAR bag described calling.
In sum, the automated testing method of a kind of Android system analogue-key transmission that the present invention provides and device, method includes: the analogue-key called during encapsulation automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key;When applying detection to be tested is to when can call JAR bag, JAR bag can be called described in parsing, the described key-press event called in JAR bag is transmitted to Android input system, and respond key-press event successively by Android input system.Present invention utilizes the attribute of key-press event object, complete requirements such as automatization's survey request moment, key assignments, frequencies by defined attribute, it is not necessary to take multiple thread, reduce the requirement to internal memory;And by directly extending Android input framework from the superiors' JAVA layer of Android software architecture, it is only necessary to JAVA API is carried out secondary encapsulation, there is good portability.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, all these modifications and variations all should belong to the protection domain of claims of the present invention.

Claims (10)

1. the automated testing method that an Android system analogue-key sends, it is characterised in that said method comprising the steps of:
The analogue-key called when A, encapsulation automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key;
B, when applying detection to be tested is to when can call JAR bag, resolve and described can call JAR bag, by the transmission of the described key-press event called in JAR bag to Android input system, and pass through Android input system and respond key-press event successively.
The automated testing method that the most according to claim 1, Android system analogue-key sends, it is characterised in that described step A specifically includes:
The analogue-key called when A1, encapsulation automatic test sends class, and key-press event, and the method that heavily loaded described injection key-press event is corresponding are injected in definition;
A2, the single example of input management of acquisition Android system, send described analogue-key in the injected system event methods that key-press event corresponding to class sends the most described single example of input management;
A3, by described analogue-key transmission class boil down to be used for test plug-in unit bag, and by Android system write compiling configuration file, be compiled as calling JAR bag by described plug-in unit bag.
The automated testing method that the most according to claim 2, Android system analogue-key sends, it is characterised in that described step B specifically includes:
B1, when applying detection to be tested is to when can call JAR bag, resolve described in can call JAR bag and obtain key-press event;
B2, described key-press event is passed sequentially through the input that the described input single example of management sends to Android system JAVA layer manage service framework;
B3, input management service framework receive each key-press event, and by JNI layer, each key-press event send C/C++ layer to Android system successively;
B4, the C/C++ layer of Android system receive each key-press event, and respond key-press event successively by Android input system.
The automated testing method that the most according to claim 1, Android system analogue-key sends, it is characterized in that, described analogue-key sends class and is that the first analogue-key sends class, the second analogue-key sends class, the 3rd analogue-key sends class or the four the first analogue-keys send any one of apoplexy due to endogenous wind;Wherein, described first analogue-key sends class for the behavior of specified button event, key assignments and synchronous mode;Described second analogue-key sends class pressing the moment, moment, behavior, key assignments, number of repetition and synchronous mode occur for specified button event;Described 3rd analogue-key sends class pressing moment, generation moment, behavior, key assignments, number of repetition, synchronous mode and specifying hardware parameter for specified button event;Described 4th analogue-key sends class for specifying the generation generation moment of key-press event, key assignments context string, device number, labelling and synchronous mode.
The automated testing method that the most according to claim 1, Android system analogue-key sends, it is characterised in that also include before described step B: increase the XML file of statement authority in JAR bag described calling.
6. the automatic test device that an Android system analogue-key sends, it is characterised in that including:
Encapsulating collector, the analogue-key called in time encapsulating automatic test sends class, described analogue-key transmission class is docked in the input management service framework of Android system, and obtains calling JAR bag by the transmission class compiling of described analogue-key;
Event response module, for when applying detection to be tested is to when can call JAR bag, calling JAR bag described in parsing, transmit the described key-press event called in JAR bag to Android input system, and respond key-press event successively by Android input system.
The automatic test device that the most according to claim 6, Android system analogue-key sends, it is characterised in that described encapsulation collector specifically includes:
Overriding unit, the analogue-key called in time encapsulating automatic test sends class, and key-press event, and the method that heavily loaded described injection key-press event is corresponding are injected in definition;
First transmitting element, for obtaining the single example of input management of Android system, sends described analogue-key key-press event corresponding to class and sends to the injected system event methods of the described single example of input management;
Compilation unit, for by described analogue-key transmission class boil down to be used for test plug-in unit bag, and by Android system write compiling configuration file, be compiled as calling JAR bag by described plug-in unit bag.
The automatic test device that the most according to claim 7, Android system analogue-key sends, it is characterised in that described event response module specifically includes:
Resolution unit, for when applying detection to be tested is to when can call JAR bag, calling JAR bag described in parsing and obtain key-press event;
Second transmitting element, is used for that described key-press event passes sequentially through the described single example of input management and sends the input management service framework to Android system JAVA layer;
3rd transmitting element, is used for inputting management service framework and receives each key-press event, and by JNI layer, each key-press event sends C/C++ layer to Android system successively;
Response unit, the C/C++ layer for Android system receives each key-press event, and responds key-press event successively by Android input system.
The automatic test device that the most according to claim 6, Android system analogue-key sends, it is characterized in that, described analogue-key sends class and is that the first analogue-key sends class, the second analogue-key sends class, the 3rd analogue-key sends class or the four the first analogue-keys send any one of apoplexy due to endogenous wind;Wherein, described first analogue-key sends class for the behavior of specified button event, key assignments and synchronous mode;Described second analogue-key sends class pressing the moment, moment, behavior, key assignments, number of repetition and synchronous mode occur for specified button event;Described 3rd analogue-key sends class pressing moment, generation moment, behavior, key assignments, number of repetition, synchronous mode and specifying hardware parameter for specified button event;Described 4th analogue-key sends class for specifying the generation generation moment of key-press event, key assignments context string, device number, labelling and synchronous mode.
The automatic test device that the most according to claim 6, Android system analogue-key sends, it is characterised in that described event response module is additionally operable to increase the XML file of statement authority in JAR bag described calling.
CN201510262094.4A 2015-05-21 2015-05-21 The automated testing method of a kind of Android system analogue-key transmission and device Pending CN106294103A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510262094.4A CN106294103A (en) 2015-05-21 2015-05-21 The automated testing method of a kind of Android system analogue-key transmission and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510262094.4A CN106294103A (en) 2015-05-21 2015-05-21 The automated testing method of a kind of Android system analogue-key transmission and device

Publications (1)

Publication Number Publication Date
CN106294103A true CN106294103A (en) 2017-01-04

Family

ID=57632374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510262094.4A Pending CN106294103A (en) 2015-05-21 2015-05-21 The automated testing method of a kind of Android system analogue-key transmission and device

Country Status (1)

Country Link
CN (1) CN106294103A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515750A (en) * 2017-08-18 2017-12-26 联想(北京)有限公司 Computer control method and computer
CN109032947A (en) * 2018-07-27 2018-12-18 广州视源电子科技股份有限公司 For the test method of operating system, device, equipment and storage medium
CN109580192A (en) * 2018-11-07 2019-04-05 厦门亿联网络技术股份有限公司 A kind of method and device of analogue-key automation pressure test

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951529A (en) * 2010-08-31 2011-01-19 中山大学 Method and system for testing functions of set top box
CN102355602A (en) * 2011-11-02 2012-02-15 四川长虹电器股份有限公司 Processing method for simulative keying of set-top box
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
CN102981875A (en) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 X86 end press key adapting method and system based on android
US20140156989A1 (en) * 2012-12-04 2014-06-05 Barclays Bank Plc Credential Recovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101951529A (en) * 2010-08-31 2011-01-19 中山大学 Method and system for testing functions of set top box
CN102355602A (en) * 2011-11-02 2012-02-15 四川长虹电器股份有限公司 Processing method for simulative keying of set-top box
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
CN102981875A (en) * 2012-11-28 2013-03-20 深圳市航盛电子股份有限公司 X86 end press key adapting method and system based on android
US20140156989A1 (en) * 2012-12-04 2014-06-05 Barclays Bank Plc Credential Recovery

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANDROIDDEVELOPER_ LEE: "android模拟键盘事件/android发送虚拟按健", 《HTTPS://BLOG.CSDN.NET/ANDROIDDEVELOPER_ LEE/ARTICLE/DETAILS/8981148》 *
YUPU56: "android 打包自定义JAR包", 《HTTPS://BLOG.CSDN.NET/YUPU56/ARTICLE/DETAILS/42394215》 *
杨海龙: "android 打包自己的自定义组件成JAR包", 《HTTPS://WWW.CNBLOGS.COM/TERRYBLOG/ARCHIVE/2011/05/12/2044900.HTML》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515750A (en) * 2017-08-18 2017-12-26 联想(北京)有限公司 Computer control method and computer
CN109032947A (en) * 2018-07-27 2018-12-18 广州视源电子科技股份有限公司 For the test method of operating system, device, equipment and storage medium
CN109580192A (en) * 2018-11-07 2019-04-05 厦门亿联网络技术股份有限公司 A kind of method and device of analogue-key automation pressure test

Similar Documents

Publication Publication Date Title
CN108287694B (en) Application program construction method, system, computer device and storage medium
KR101410099B1 (en) Function Test Apparatus based on Unit Test Cases Reusing and Function Test Method thereof
WO2016095554A1 (en) Test method, device and system for application
CN106776280B (en) Configurable performance testing device
CN102880456B (en) Plug-in loading method and system
CN104331662B (en) Android malicious application detection method and device
CN105303112B (en) The detection method and device of component call loophole
US20070204261A1 (en) Robust software library wrapper method and apparatus
US20170316209A1 (en) Method and device for preventing application in an operating system from being uninstalled
CN104899142A (en) Remote mock testing method and device
CN106294103A (en) The automated testing method of a kind of Android system analogue-key transmission and device
CN104731698A (en) Abnormal test case automatic generation processing method and device based on automatic tests
CN104298512A (en) OSGi-based (open service gateway initiative) functional unit type integrated development system
CN114077423A (en) Airport APP development container architecture based on mobile cross-platform
CN104320793A (en) Mobile phone short message automated test method and system
Mathas et al. On the design of IoT security: Analysis of software vulnerabilities for smart grids
US20190212990A1 (en) Framework for generating adapters in an integrated development environment
CN105224457A (en) A kind of test frame implementation method and device
CN110162310B (en) Plug-in interface test method and device, computer equipment and storage medium
Malik et al. IoT Testing-as-a-Service: A new dimension of automation
CN103713995A (en) Latent defect identification
CN103546342A (en) Terminal consistency testing method and API (application program interface) interface general adapter for terminal consistency testing method
CN103312554A (en) Testing method and system of multi-server interactive services
CN112765038B (en) Distributed cluster software testing method, device, equipment and storage medium
Zhang et al. Verifying OSEK/VDX automotive applications: A Spin‐based model checking approach

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication