CN108628736B - Android device testing method and device - Google Patents

Android device testing method and device Download PDF

Info

Publication number
CN108628736B
CN108628736B CN201710179400.7A CN201710179400A CN108628736B CN 108628736 B CN108628736 B CN 108628736B CN 201710179400 A CN201710179400 A CN 201710179400A CN 108628736 B CN108628736 B CN 108628736B
Authority
CN
China
Prior art keywords
test case
tested
android device
pseudo
operation information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710179400.7A
Other languages
Chinese (zh)
Other versions
CN108628736A (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.)
Beijing Xiaochang Technology Co ltd
Original Assignee
Beijing Xiaochang Technology Co 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 Beijing Xiaochang Technology Co ltd filed Critical Beijing Xiaochang Technology Co ltd
Priority to CN201710179400.7A priority Critical patent/CN108628736B/en
Publication of CN108628736A publication Critical patent/CN108628736A/en
Application granted granted Critical
Publication of CN108628736B publication Critical patent/CN108628736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The embodiment of the invention provides a method and a device for testing android equipment, which are applied to a computer for testing a UI (user interface) of the android equipment to be tested, and specifically, a preset pseudo test case is downloaded and installed to the android equipment to be tested; presetting a test case which accords with a preset test target; when the android device to be tested is tested, acquiring a preset test target of a test case, and determining corresponding operation information according to the preset test target; and sending the operation information to a pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer. By the scheme, when a user needs to perform new testing, complete steps of compiling, downloading, installing and the like on the test case are not needed each time, the new test case is only preset on the computer, and then the testing can be completed by using the original pseudo test case, so that the testing efficiency is improved.

Description

Android device testing method and device
Technical Field
The invention relates to the technical field of mobile communication, in particular to a method and a device for testing android equipment.
Background
At present, when a technician tests a UI of an android system, the technician needs to compile an automatic test case on a computer according to test requirements each time, then compile the automatic test case into an android installation file, install the installation file on an android device to be tested, and finally execute a corresponding android command to start a test program. Wherein, UI is an abbreviation of User interface (User reference). In the process of implementing the method, the inventor finds that when the UI of the android device is tested by the testing method, the efficiency of the testing process is low as the complete process of compiling the testing case, compiling the installation file, downloading the installation file to the android device and finally testing each new testing case is required.
Disclosure of Invention
In view of this, the present invention provides a method for testing an android device, which is used for testing a UI of the android device, so as to solve the problem of low testing efficiency of the existing testing method.
In order to solve the above problems, the present invention discloses a method for testing an android device, which is applied to a computer for testing a UI of an android device to be tested, and is characterized in that the method specifically comprises the following steps:
downloading and installing a preset pseudo test case to the android device to be tested;
presetting a test case which accords with a preset test target;
when the android device to be tested is tested, acquiring a preset test target of the test case, and determining corresponding operation information according to the preset test target;
and sending the operation information to the pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer.
Optionally, the determining the corresponding operation information according to the preset test target includes:
pre-packaging various UI operation instructions;
and selecting part of the UI operation instructions from the various UI operation instructions according to the preset test target, and packaging the selected UI operation instructions into the operation information.
Optionally, the pseudo test case includes a communication server and a protocol analysis server, where:
the communication server is used for receiving the operation information, outputting the operation information to the protocol analysis server, monitoring a communication port of the android device to be tested, acquiring feedback information generated when the android device to be tested executes UI operation through monitoring the communication port, and returning the feedback information to the computer;
and the protocol analysis server is used for analyzing the operation information and operating the android device to be tested according to the UI operation instruction obtained by analysis.
Optionally, the method further comprises the steps of:
and sending an operation control instruction to the pseudo test case according to the requirement of a user, wherein the operation control instruction is used for controlling the operation state of the pseudo test case.
Optionally, the operation control instruction includes an opening instruction and a closing instruction, where:
the starting instruction is used for starting the monitoring of the pseudo test case on the port of the android device to be tested;
and the closing instruction is used for closing the monitoring of the pseudo test case on the port.
Correspondingly, in order to ensure the implementation of the testing method, the invention also provides a testing device of the android device, which is applied to a computer for testing the UI of the android device to be tested, and the testing device specifically comprises:
the download installation module is used for downloading and installing a preset pseudo test case to the android device to be tested;
the program presetting module is used for presetting a test case which accords with a preset test target under the operation of a user;
the protocol encapsulation processing module is used for acquiring a preset test target of the test case when the android device to be tested is tested, and determining corresponding operation information according to the preset test target;
and the information transceiving module is used for sending the operation information to the pseudo test case, and the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer.
Optionally, the protocol encapsulation processing module includes:
the protocol encapsulation unit is used for encapsulating various UI operation instructions in advance;
and the protocol processing unit is used for selecting part of the UI operation instructions from the various UI operation instructions according to the preset test target and packaging the selected UI operation instructions into the operation information.
Optionally, the pseudo test case includes a communication server and a protocol analysis server, where:
the communication server is used for receiving the operation information, outputting the operation information to the protocol analysis server, monitoring a communication port of the android device to be tested, acquiring feedback information generated when the android device to be tested executes UI operation through monitoring the communication port, and returning the feedback information to the computer;
and the protocol analysis server is used for analyzing the operation information and operating the android device to be tested according to the UI operation instruction obtained by analysis.
Optionally, the method further includes:
and the instruction sending module is used for sending an operation control instruction to the pseudo test case according to the requirement of a user, and the operation control instruction is used for controlling the operation state of the pseudo test case.
Optionally, the operation control instruction includes an opening instruction and a closing instruction, where:
the starting instruction is used for starting the monitoring of the pseudo test case on the port of the android device to be tested;
and the closing instruction is used for closing the monitoring of the pseudo test case on the port.
According to the technical scheme, the method and the device for testing the android device are applied to a computer for testing a UI of the android device to be tested, and specifically a preset pseudo test case is downloaded and installed to the android device to be tested; presetting a test case which accords with a preset test target; when the android device to be tested is tested, acquiring a preset test target of a test case, and determining corresponding operation information according to the preset test target; and sending the operation information to a pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer. By the scheme, when a user needs to perform new testing, complete steps of compiling, downloading, installing and the like on the test case are not needed each time, the new test case is only preset on the computer, and then the testing can be completed by using the original pseudo test case, so that the testing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating steps of an embodiment of a method for testing an android device according to the present invention;
FIG. 2 is a flowchart illustrating steps of another embodiment of a method for testing an android device in accordance with the present invention;
FIG. 3 is a block diagram illustrating an embodiment of a testing apparatus for an android device according to the present invention;
fig. 4 is a block diagram of another embodiment of the testing apparatus for an android device in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Fig. 1 is a flowchart illustrating steps of a method for testing an android device according to an embodiment of the present invention.
Referring to fig. 1, the testing method provided by the embodiment is applied to a computer, and is used for testing an android device to be tested, specifically, for testing UIs of devices such as an android mobile phone and an android tablet computer. The test method specifically comprises the following steps:
s101: and downloading and installing a pseudo test case to the android device to be tested.
Compared with a test case with a complete test function, the real test case has a UI operation instruction which accords with a test target, and can directly operate the UI of the android device to be tested according to the test instruction after the test is started, for example, clicking operation is performed on a certain icon on the UI by using a 'clicking instruction'. However, the dummy test case in the present invention does not include the UI operation command.
The pseudo test case comprises two servers, namely a communication server and a protocol analysis server. The communication server installed on the android device to be tested can be an http server or a socket server, and is used for monitoring data sent by a certain communication port after starting, and the monitoring can be carried out all the time as long as the communication server is not closed.
S102: and presetting a test case which accords with a preset test target.
When the android device to be tested needs to be tested for a certain purpose, a test case meeting a preset test target is preset on the computer, and the concept of the test case is the same as that of the existing test case which needs to be compiled and downloaded to the android device to be tested, namely the test case comprises UI operation instructions conforming to the test target, such as a click instruction and a drag instruction. But compared with the prior art, the test case does not need to be compiled, because the test case does not need to be downloaded to the android device to be tested.
S103: and determining corresponding operation information according to the test target of the test case.
When the android device to be tested needs to be tested, corresponding operation information is determined according to a test target of the preset test case, the operation information comprises one or more UI operation instructions meeting the operation target, for example, the operation information comprises the click operation instruction and the drag operation instruction corresponding to the test target needing to be subjected to click test and drag test. In order to achieve the above purpose of determining the operation information, the specific operation steps herein are:
1) various UI operation instructions are packaged in advance, and the UI operation instructions are as comprehensive as possible so as to cover as many test requirements as possible, for example, long-time pressing operation, clicking operation, dragging operation and the like can be included.
2) And selecting part of instructions from various pre-packaged UI operation instructions according to the test target of the test case, packaging the part of instructions into corresponding operation information, wherein the operation information comprises data packets of the various UI operation instructions.
S104: and sending the operation information to the pseudo test case.
The pseudo test case is actually installed on the android device to be tested, after the operation information sent to the android device to be tested is received, the pseudo test case performs corresponding test on the android device to be tested according to the UI operation instruction included in the operation information, and returns feedback information generated in the test process, specifically to a computer sending the operation information to the android device to be tested. The user can evaluate the test effect according to the returned feedback information, namely, the corresponding test result can be determined.
When the operation information is sent to the pseudo test case, the preset communication protocol can be used for sending the operation information, the communication protocol can be selected from various existing communication protocols, and the operation information needs to be sent to the android device to be tested and also needs to receive feedback information from the android device to be tested, so that the aim of facilitating interactive transmission of the information is met.
As already mentioned above, the pseudo test case includes a communication server and a protocol parsing server, where the communication server is configured to forward the received operation information to the protocol parsing server; the protocol analysis server is used for analyzing the operation information to obtain various UI operation instructions contained in the operation information, and operating the android device to be tested by using the UI operation instructions; when the protocol analysis service carries out various operations on the android device to be tested, the communication server monitors the communication port of the android device to be tested, obtains feedback information reflecting various performances of the android device to be tested in the test through monitoring, and returns the feedback information to the computer.
According to the technical scheme, the method for testing the android device is applied to a computer for testing a UI of the android device to be tested, and specifically, a preset pseudo test case is downloaded and installed to the android device to be tested; presetting a test case which accords with a preset test target; when the android device to be tested is tested, acquiring a preset test target of a test case, and determining corresponding operation information according to the preset test target; and sending the operation information to a pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer. By the scheme, when a user needs to perform new testing, complete steps of compiling, downloading, installing and the like on the test case are not needed each time, the new test case is only preset on the computer, and then the testing can be completed by using the original pseudo test case, so that the testing efficiency is improved.
In the above embodiment, it has been mentioned that the communication server in the pseudo test case monitors the communication port of the android device to be tested all the time in the starting state, and therefore, the testing process can be turned on and off by using this characteristic. See the examples below.
Example two
Fig. 2 is a flowchart illustrating steps of another embodiment of an android device testing method according to the present invention.
Referring to fig. 2, the testing method provided by the embodiment is applied to a computer and used for testing an android device to be tested, specifically, for testing UIs of devices such as an android mobile phone and an android tablet computer. The test method specifically comprises the following steps:
s201: and downloading and installing a pseudo test case to the android device to be tested.
Compared with a test case with a complete test function, the real test case has a UI operation instruction which accords with a test target, and can directly operate the UI of the android device to be tested according to the test instruction after the test is started, for example, clicking operation is performed on a certain icon on the UI by using a 'clicking instruction'. However, the dummy test case in the present invention does not include the UI operation command.
The pseudo test case comprises two servers, namely a communication server and a protocol analysis server. The communication server installed on the android device to be tested can be an http server or a socket server, and is used for monitoring data sent by a certain communication port after starting, and the monitoring can be carried out all the time as long as the communication server is not closed.
S202: and presetting a test case which accords with a preset test target.
When the android device to be tested needs to be tested for a certain purpose, a test case meeting a preset test target is preset on the computer, and the concept of the test case is the same as that of the existing test case which needs to be compiled and downloaded to the android device to be tested, namely the test case comprises UI operation instructions conforming to the test target, such as a click instruction and a drag instruction. But compared with the prior art, the test case does not need to be compiled, because the test case does not need to be downloaded to the android device to be tested.
S203: and determining corresponding operation information according to the test target of the test case.
When the android device to be tested needs to be tested, corresponding operation information is determined according to a test target of the preset test case, the operation information comprises one or more UI operation instructions meeting the operation target, for example, the operation information comprises the click operation instruction and the drag operation instruction corresponding to the test target needing to be subjected to click test and drag test. In order to achieve the above purpose of determining the operation information, the specific operation steps herein are:
1) various UI operation instructions are packaged in advance, and the UI operation instructions are as comprehensive as possible so as to cover as many test requirements as possible, for example, long-time pressing operation, clicking operation, dragging operation and the like can be included.
2) And selecting part of instructions from various pre-packaged UI operation instructions according to the test target of the test case, packaging the part of instructions into corresponding operation information, wherein the operation information comprises data packets of the various UI operation instructions.
S204: and sending the operation information to the pseudo test case.
The pseudo test case is actually installed on the android device to be tested, after the operation information sent to the android device to be tested is received, the pseudo test case performs corresponding test on the android device to be tested according to the UI operation instruction included in the operation information, and returns feedback information generated in the test process, specifically to a computer sending the operation information to the android device to be tested. The user can evaluate the test effect according to the returned feedback information, namely, the corresponding test result can be determined.
When the operation information is sent to the pseudo test case, the preset communication protocol can be used for sending the operation information, the communication protocol can be selected from various existing communication protocols, and the operation information needs to be sent to the android device to be tested and also needs to receive feedback information from the android device to be tested, so that the aim of facilitating interactive transmission of the information is met.
As already mentioned above, the pseudo test case includes a communication server and a protocol parsing server, where the communication server is configured to forward the received operation information to the protocol parsing server; the protocol analysis server is used for analyzing the operation information to obtain various UI operation instructions contained in the operation information, and operating the android device to be tested by using the UI operation instructions; when the protocol analysis service carries out various operations on the android device to be tested, the communication server monitors the communication port of the android device to be tested, obtains feedback information reflecting various performances of the android device to be tested in the test through monitoring, and returns the feedback information to the computer.
S205: and sending an operation control instruction to the android device to be tested according to the test requirement.
Specifically, when a user needs to start or stop testing the android device to be tested, the start and stop of the test are controlled by sending an operation control instruction to a pseudo test case in the android device to be tested so as to control a method for monitoring a communication port by a communication server in the pseudo test case.
The operation control command includes an on command and an off command. The opening instruction is used for controlling the communication server to open monitoring on the communication port, so that the aim of starting testing the android device to be tested is fulfilled; and the closing instruction is that after the test is started, if the communication server receives the closing instruction sent by the user, the monitoring of the communication port is stopped, so that the purpose of stopping the test is realized.
According to the technical scheme, the method is applied to a computer for testing the UI of the android device to be tested, and specifically, a preset pseudo test case is downloaded and installed to the android device to be tested; presetting a test case which accords with a preset test target; when the android device to be tested is tested, acquiring a preset test target of a test case, and determining corresponding operation information according to the preset test target; and sending the operation information to a pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and an operation control instruction input by a user, and returning feedback information obtained after corresponding operation to the computer. By the scheme, when a user needs to perform new testing, complete steps of compiling, downloading, installing and the like on the test case are not needed each time, the new test case is only preset on the computer, and then the testing can be completed by using the original pseudo test case, so that the testing efficiency is improved.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
EXAMPLE III
Fig. 3 is a block diagram of a testing apparatus of an android device according to an embodiment of the present invention.
Referring to fig. 3, the testing apparatus provided in this embodiment is applied to a computer, and is used to test an android device to be tested, specifically, to test UIs of devices such as an android phone and an android tablet computer. The testing device specifically comprises a download installation module 10, a program preset module 20, a protocol encapsulation processing module 30 and an information transceiving module 40.
The download installation module 10 is used for downloading and installing a preset pseudo test case to the android device to be tested.
Compared with a test case with a complete test function, the real test case has a UI operation instruction which accords with a test target, and can directly operate the UI of the android device to be tested according to the test instruction after the test is started, for example, clicking operation is performed on a certain icon on the UI by using a 'clicking instruction'. However, the dummy test case in the present invention does not include the UI operation command.
The pseudo test case comprises two servers, namely a communication server and a protocol analysis server. The communication server installed on the android device to be tested can be an http server or a socket server, and is used for monitoring data sent by a certain communication port after starting, and the monitoring can be carried out all the time as long as the communication server is not closed.
The program presetting module 20 is used for presetting a test case which accords with a preset test target.
When the android device to be tested needs to be tested for a certain purpose, a test case meeting a preset test target is preset on the computer, and the concept of the test case is the same as that of the existing test case which needs to be compiled and downloaded to the android device to be tested, namely the test case comprises UI operation instructions conforming to the test target, such as a click instruction and a drag instruction. But compared with the prior art, the test case does not need to be compiled, because the test case does not need to be downloaded to the android device to be tested.
The protocol encapsulation processing module 30 is configured to determine corresponding operation information according to a test target of the test case.
When the android device to be tested needs to be tested, corresponding operation information is determined according to a test target of the preset test case, the operation information comprises one or more UI operation instructions meeting the operation target, for example, the operation information comprises the click operation instruction and the drag operation instruction corresponding to the test target needing to be subjected to click test and drag test. For the purpose of determining the operation information, the protocol encapsulation processing module 30 herein specifically includes a protocol encapsulation unit 31 and a protocol processing unit 32.
The protocol encapsulation unit 31 is used to encapsulate various UI operation instructions in advance, and the UI operation instructions are as comprehensive as possible to cover as many test requirements as possible, for example, long-press operation, click operation, drag operation, and the like may be included.
The protocol processing unit 32 selects a part of the instructions from the UI operation instructions packaged in advance in a protocol package shorter than 32 according to the test target of the test case, and packages the part of the instructions into corresponding operation information, where the operation information includes a data packet of the UI operation instructions.
The information transceiver module 40 is configured to send the operation information to the pseudo test case and receive feedback information returned by the pseudo test case.
The pseudo test case is actually installed on the android device to be tested, after the operation information sent to the android device to be tested is received, the pseudo test case performs corresponding test on the android device to be tested according to the UI operation instruction included in the operation information, and returns the feedback information generated in the test process, and the information transceiver module 40 is further used for receiving the feedback information returned by the android device to be tested. The user can evaluate the test effect according to the returned feedback information, namely, the corresponding test result can be determined.
When the information transceiver module 40 sends the operation information to the pseudo test case, a preset communication protocol can be used to send the operation information, and the communication protocol can be selected from various existing communication protocols, because the operation information needs to be sent to the android device to be tested, and feedback information needs to be received from the android device to be tested, the purpose of the operation protocol is accurate to facilitate interactive transmission of information.
As already mentioned above, the pseudo test case includes a communication server and a protocol parsing server, where the communication server is configured to forward the received operation information to the protocol parsing server; the protocol analysis server is used for analyzing the operation information to obtain various UI operation instructions contained in the operation information, and operating the android device to be tested by using the UI operation instructions; when the protocol analysis service carries out various operations on the android device to be tested, the communication server monitors the communication port of the android device to be tested, obtains feedback information reflecting various performances of the android device to be tested in the test through monitoring, and returns the feedback information to the computer.
According to the technical scheme, the device for testing the android device is applied to a computer for testing a UI of the android device to be tested, and specifically, a preset pseudo test case is downloaded and installed to the android device to be tested; presetting a test case which accords with a preset test target; when the android device to be tested is tested, acquiring a preset test target of a test case, and determining corresponding operation information according to the preset test target; and sending the operation information to a pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer. By the scheme, when a user needs to perform new testing, complete steps of compiling, downloading, installing and the like on the test case are not needed each time, the new test case is only preset on the computer, and then the testing can be completed by using the original pseudo test case, so that the testing efficiency is improved.
As described above, the communication server in the pseudo test case monitors the communication port of the android device to be tested all the time in the starting state, so that the testing process can be turned on and off by using this characteristic. See the examples below.
Example four
Fig. 4 is a flowchart illustrating steps of another embodiment of an android device testing apparatus according to the present invention.
Referring to fig. 4, the test apparatus provided in this embodiment is added with an instruction sending module 50 in addition to the previous embodiment.
The instruction sending module 50 is configured to send an operation control instruction to the to-be-tested android device according to the test requirement.
Specifically, when a user needs to start or stop testing the android device to be tested, the start and stop of the test are controlled by sending an operation control instruction to a pseudo test case in the android device to be tested so as to control a method for monitoring a communication port by a communication server in the pseudo test case.
The operation control command includes an on command and an off command. The opening instruction is used for controlling the communication server to open monitoring on the communication port, so that the aim of starting testing the android device to be tested is fulfilled; and the closing instruction is that after the test is started, if the communication server receives the closing instruction sent by the user, the monitoring of the communication port is stopped, so that the purpose of stopping the test is realized.
According to the technical scheme, the embodiment provides another testing device for the android device, which is applied to a computer for testing a UI of the android device to be tested, and specifically, a preset pseudo test case is downloaded and installed to the android device to be tested; presetting a test case which accords with a preset test target; when the android device to be tested is tested, acquiring a preset test target of a test case, and determining corresponding operation information according to the preset test target; and sending the operation information to a pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and an operation control instruction input by a user, and returning feedback information obtained after corresponding operation to the computer. By the scheme, when a user needs to perform new testing, complete steps of compiling, downloading, installing and the like on the test case are not needed each time, the new test case is only preset on the computer, and then the testing can be completed by using the original pseudo test case, so that the testing efficiency is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The technical solutions provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in this document by applying specific examples, and the descriptions of the above examples are only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A testing method of an android device is applied to a computer for testing a UI (user interface) of the android device to be tested, and is characterized by specifically comprising the following steps:
downloading and installing a preset pseudo test case to the android device to be tested;
presetting an uncompiled test case which accords with a preset test target;
when the android device to be tested is tested, acquiring a preset test target of the test case, and determining corresponding operation information according to the preset test target; the operation information comprises at least one UI operation instruction corresponding to the preset test target;
sending the operation information to the pseudo test case, wherein the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer; the pseudo test case comprises a communication server and a protocol analysis server; the communication server is used for receiving the operation information, outputting the operation information to the protocol analysis server, monitoring a communication port of the android device to be tested, acquiring feedback information generated when the android device to be tested executes UI operation through monitoring the communication port, and returning the feedback information to the computer; and the protocol analysis server is used for analyzing the operation information and operating the android device to be tested according to the UI operation instruction obtained by analysis.
2. The method according to claim 1, wherein the determining the corresponding operation information according to the preset test target comprises:
pre-packaging various UI operation instructions;
and selecting part of the UI operation instructions from the various UI operation instructions according to the preset test target, and packaging the selected UI operation instructions into the operation information.
3. The test method of claim 1 or 2, further comprising the steps of:
and sending an operation control instruction to the pseudo test case according to the requirement of a user, wherein the operation control instruction is used for controlling the operation state of the pseudo test case.
4. The test method of claim 3, wherein the run control instructions comprise turn-on instructions and turn-off instructions, wherein:
the starting instruction is used for starting the monitoring of the pseudo test case on the port of the android device to be tested;
and the closing instruction is used for closing the monitoring of the pseudo test case on the port.
5. The utility model provides a testing arrangement of tall and erect equipment, is applied to the computer that tests tall and erect equipment's UI to the awaiting measuring, its characterized in that, testing arrangement specifically includes:
the download installation module is used for downloading and installing a preset pseudo test case to the android device to be tested;
the program presetting module is used for presetting an uncompiled test case which accords with a preset test target under the operation of a user;
the protocol encapsulation processing module is used for acquiring a preset test target of the test case when the android device to be tested is tested, and determining corresponding operation information according to the preset test target; the operation information comprises at least one UI operation instruction corresponding to the preset test target;
the information transceiving module is used for sending the operation information to the pseudo test case, and the pseudo test case is used for operating the android device to be tested according to the operation information and returning feedback information obtained after corresponding operation to the computer; the pseudo test case comprises a communication server and a protocol analysis server; the communication server is used for receiving the operation information, outputting the operation information to the protocol analysis server, monitoring a communication port of the android device to be tested, acquiring feedback information generated when the android device to be tested executes UI operation through monitoring the communication port, and returning the feedback information to the computer; and the protocol analysis server is used for analyzing the operation information and operating the android device to be tested according to the UI operation instruction obtained by analysis.
6. The test apparatus of claim 5, wherein the protocol encapsulation processing module comprises:
the protocol encapsulation unit is used for encapsulating various UI operation instructions in advance;
and the protocol processing unit is used for selecting part of the UI operation instructions from the various UI operation instructions according to the preset test target and packaging the selected UI operation instructions into the operation information.
7. The test device of claim 5 or 6, further comprising:
and the instruction sending module is used for sending an operation control instruction to the pseudo test case according to the requirement of a user, and the operation control instruction is used for controlling the operation state of the pseudo test case.
8. The test device of claim 7, wherein the run control instructions comprise turn-on instructions and turn-off instructions, wherein:
the starting instruction is used for starting the monitoring of the pseudo test case on the port of the android device to be tested;
and the closing instruction is used for closing the monitoring of the pseudo test case on the port.
CN201710179400.7A 2017-03-23 2017-03-23 Android device testing method and device Active CN108628736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710179400.7A CN108628736B (en) 2017-03-23 2017-03-23 Android device testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710179400.7A CN108628736B (en) 2017-03-23 2017-03-23 Android device testing method and device

Publications (2)

Publication Number Publication Date
CN108628736A CN108628736A (en) 2018-10-09
CN108628736B true CN108628736B (en) 2021-09-03

Family

ID=63706541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710179400.7A Active CN108628736B (en) 2017-03-23 2017-03-23 Android device testing method and device

Country Status (1)

Country Link
CN (1) CN108628736B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system
CN104899122A (en) * 2015-06-12 2015-09-09 上海斐讯数据通信技术有限公司 Mobile terminal testing system and method
CN104980552A (en) * 2015-06-18 2015-10-14 惠州Tcl移动通信有限公司 Method and system for realizing automatic test of Android mobile terminal
US9495281B2 (en) * 2012-11-21 2016-11-15 Hewlett Packard Enterprise Development Lp User interface coverage

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102495799A (en) * 2011-12-02 2012-06-13 刘伟 Automatic test system and method of movable terminal
US9495281B2 (en) * 2012-11-21 2016-11-15 Hewlett Packard Enterprise Development Lp User interface coverage
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system
CN104899122A (en) * 2015-06-12 2015-09-09 上海斐讯数据通信技术有限公司 Mobile terminal testing system and method
CN104980552A (en) * 2015-06-18 2015-10-14 惠州Tcl移动通信有限公司 Method and system for realizing automatic test of Android mobile terminal

Also Published As

Publication number Publication date
CN108628736A (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN105389222B (en) A kind of methods, devices and systems of dynamic call native interface
US20110154305A1 (en) System and method for remotely compiling multi-platform native applications for mobile devices
CN103595766B (en) Realize the method and device of the sending out notice of extension application
US9350848B2 (en) Method for distributing, installing and executing software-defined radio application
CN104281518A (en) Terminal application test method, device, system and platform and mobile terminal
CN109376088B (en) Automatic test system and automatic test method
KR101427561B1 (en) Method for adaptively executing an android application on tizen platform by automatically transforming the android application into tizen-installable package, and computer-readable recording medium for the same
CN103595770A (en) Method and device for achieving file downloading through SDK
CN108366127B (en) Method and device for acquiring software package
CN110224897B (en) Weak network testing method and device of application program, mobile device and storage medium
CN105468395A (en) Updating method, device and system
CN111427594A (en) Application program running method and device
CN104536752A (en) Method and device for automatically generating APK files
CN107526584B (en) Data access method and device
CN106294119B (en) Test scheduling system and method and terminal equipment
CN111159019A (en) Application program testing method, testing control terminal and testing terminal
CN108628736B (en) Android device testing method and device
CN105657551A (en) Method and apparatus used by smart television to respond to analog key
CN111435328B (en) Application testing method and device, electronic equipment and readable storage medium
CN111596931A (en) Application program packaging method and device, electronic equipment and readable storage medium
CN104267979A (en) Method and device for starting applications on Launcher and terminal
CN116991434A (en) Packet reorganization method, system and storage medium for android APP
CN112910956B (en) Resource creation method and device and electronic equipment
CN107203304B (en) Method and device for realizing functional interface of application by using pressure
CN113434154B (en) Android application program packaging method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant