CN106776294B - Automatic android mobile phone testing method and system - Google Patents

Automatic android mobile phone testing method and system Download PDF

Info

Publication number
CN106776294B
CN106776294B CN201611076464.6A CN201611076464A CN106776294B CN 106776294 B CN106776294 B CN 106776294B CN 201611076464 A CN201611076464 A CN 201611076464A CN 106776294 B CN106776294 B CN 106776294B
Authority
CN
China
Prior art keywords
test
mobile phone
automatic
module
android
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
CN201611076464.6A
Other languages
Chinese (zh)
Other versions
CN106776294A (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.)
Surfilter Network Technology Co ltd
Original Assignee
Surfilter Network 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 Surfilter Network Technology Co ltd filed Critical Surfilter Network Technology Co ltd
Priority to CN201611076464.6A priority Critical patent/CN106776294B/en
Publication of CN106776294A publication Critical patent/CN106776294A/en
Application granted granted Critical
Publication of CN106776294B publication Critical patent/CN106776294B/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/3684Test management for test design, e.g. generating new test cases
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses an automatic android mobile phone testing method and system, wherein the method comprises the following steps: the method comprises the steps of connecting an automatic test system with android mobile phones to be tested in batch; the data acquisition module acquires program data; the automatic test module acquires data required by the test from the automatic test system and tests the android mobile phone program; an automatic grabbing module in the automatic testing system grabs a test display page used for evaluating the test effect; a modification module of the automatic test system simulates test scenes of different mobile phone states through configuration parameters to test the android mobile phone program; after the test is finished, the automatic test system displays the test result on a PC screen for the evaluation of a tester; the system comprises: the system comprises a data acquisition module, an automatic test module, an automatic capture module, an automatic modification module, a compression module and a conversion module; by implementing the method and the device, the android mobile phone test can be efficiently completed, and the universality and expandability of a mobile phone test system are improved.

Description

Automatic android mobile phone testing method and system
Technical Field
The invention relates to the technical field of mobile phone testing, in particular to an automatic android mobile phone testing method and system.
Background
The software testing is to utilize a testing tool to perform function and performance testing on a product according to a testing scheme and a flow, even to compile different testing tools according to needs, design and maintain a testing system, and analyze and evaluate possible problems of the testing scheme. After the test case is executed, the fault also needs to be tracked to ensure that the developed product is suitable for the requirement. The mobile phone software test is to test and verify the quality of mobile phone products, check whether the mobile phone software has errors or not, judge whether the mobile phone software has stability or not, and write corresponding test specifications and test cases for software testers.
In the existing mobile phone software test, a manual means is generally adopted to run or test a process of a certain system, and the purpose is to check whether the system meets the specified requirements or to clarify the difference between the expected result and the actual result. However, in the mobile phone test, a large number of operations of mobile phone users need to be simulated to verify whether the mobile phone can work normally, the expected use effect is obtained by using the mobile phone, and if the mobile phone only depends on manual test, the problems of large test workload, low efficiency and more resource requirements are faced. The existing mobile phone software program test system has the following problems:
1. the server analyzes the command and converts the command into a test script, the script is associated with the application program to be tested, different application programs correspond to different test scripts, and the universality is not strong;
2. the test script is preset and compiled in advance, cannot cope with test scenes except the preset test scenes, and does not have good expansibility.
3. The test script only corresponds a state of single model, when changing the model or changing the analog state of cell-phone, can't test, after the test is accomplished, does not have test result feedback, and the test condition of cell-phone software can't in time be known to the tester, and efficiency is relatively poor.
Disclosure of Invention
Aiming at the problems of poor universality, no good expansibility and low test working efficiency of the existing mobile phone software test system, the automatic mobile phone test method and the system based on the android system are provided, and the automatic mobile phone test system is provided with an automatic test module, so that the attributes and IDs of all controls are automatically identified, all functions of all the controls are tested at any time, all the controls and the functions thereof are ensured to be traversed, the next step of behavior operation is intelligently judged, and the good expansibility is realized; the current test surface is obtained from the display driver at the bottom layer of the android system by arranging the automatic grabbing module, and the method is not limited by the model and has good universality; the android mobile phone program testing method based on the mobile phone function simulation comprises the steps that a configuration file of an android mobile phone is modified through a modification module to change models to evaluate testing effects of android mobile phone programs of different models and change different testing scenes of mobile phone function simulation, and then application effects of the android mobile phone programs of different testing scenes are evaluated.
An automated android phone testing method comprises the following steps:
the method comprises the following steps of installing an automatic testing system on a PC (personal computer) and connecting the automatic testing system with android mobile phones to be tested in batches through a connecting device;
the data acquisition module in the automatic test system acquires program data of the android mobile phone program to be tested, and stores the program data in the automatic test system in a list form
An automatic test module in the automatic test system acquires data required by the test from the automatic test system and tests the android mobile phone program
An automatic grabbing module in the automatic test system grabs a test display page used for evaluating test effect
The modification module of the automatic test system simulates test scenes of different mobile phone states through configuration parameters to test the android mobile phone program;
and after the test is finished, the automatic test system displays the test result on the screen of the PC for the evaluation of the tester.
According to the android mobile phone automatic testing method, the program data comprise the account number and the password of the android mobile phone program to be tested and the data required by the testing control.
According to the automated android phone testing method provided by the invention, the automatic testing module in the automated testing system acquires the required data for testing each step from the automated testing system and tests the android phone program, and the method comprises the following steps:
the automatic test module automatically identifies all control ids and control attributes of the tested android mobile phone program, so that the automatic test is carried out according to a preset path;
and the automatic test module automatically tests and traverses the operation functions of all the controls.
According to the automatic android mobile phone testing method, the control attributes comprise the name, the size and the color of the control.
According to the automatic android mobile phone testing method, the operation functions comprise control sliding, clicking and inputting.
According to the automated android phone testing method provided by the invention, the automatic grabbing module in the automated testing system grabs each step of testing display page for evaluating testing effect, and the method comprises the following steps:
the automatic grabbing module grabs a current test page from an android operating system display driving layer;
a compression module in the automatic test system compresses the current test page, and the compressed current test page is transmitted to a PC;
and the conversion module of the automatic test system converts the format of the compressed current test page and displays the compressed current test page on a PC screen.
According to the automatic android mobile phone testing method, the automatic testing system simulates testing scenes of different mobile phone states to test the android mobile phone program, and the method comprises the following steps:
a modification module in the automatic test system acquires test scenes of different models or different positions of the mobile phone by modifying the configuration parameters of the mobile phone, and tests the android mobile phone programs in the test scenes of different models or different positions;
the method comprises the steps of obtaining test scenes of different network environments by operating Bluetooth or WiFi in a tested mobile phone, and testing android mobile phone programs in the test scenes of the different network environments.
On the other hand, an automated android phone testing system is provided, which includes:
a data acquisition module: the test device is respectively connected with the android mobile phone to be tested and the automatic test module and used for acquiring program data of the android mobile phone to be tested;
an automatic test module: the test system is respectively connected with the data acquisition module and the PC and used for importing program data into the android mobile phone program to be tested in the test process and displaying the test result on the screen of the PC when the test is finished;
an automatic grabbing module: the device is respectively connected with the android mobile phone to be tested and the compression module and used for grabbing a current page to be tested from a driving layer of an android system of the android mobile phone to be tested and transmitting the grabbed test page to the compression module for compression;
an automatic modification module: the mobile phone configuration file is connected with the android mobile phone to be tested and used for modifying the mobile phone configuration file to obtain different test scenes;
a compression module: the test page compression module is respectively connected with the grabbing module and the conversion module and used for compressing the test page grabbed by the grabbing module so as to transmit the test page to the PC;
a conversion module: and the test page format conversion module is respectively connected with the compression module and the PC and used for converting the compressed test page format so as to display the test page format on the screen of the PC.
According to the android mobile phone automatic test system, the android mobile phone automatic test system further comprises tested android mobile phones of different models, a PC (personal computer) used for displaying test results and a connecting device used for realizing communication between the android mobile phones and the PC.
The android mobile phone automatic testing method and system provided by the invention are implemented, firstly, the android mobile phone automatic testing system is installed on a PC, various data of a mobile phone program to be tested of the android mobile phone are obtained by a data obtaining module in the automatic testing system, the data are imported into the automatic testing module when needed in the testing process, the automatic testing module tests the android mobile phone application program according to a preset path, the attribute and id of each control are automatically identified, all functions of all the controls are tested at any time, traversing of all the controls and functions thereof is ensured, next step behavior operation is intelligently judged, and the expansibility is good; the automatic grabbing module is used for grabbing a test page required in the test process, so that evaluation on a test result is facilitated after the test is completed, different manual grabbing test pages are facilitated, in the page grabbing process, a current test surface is obtained from a display driver at the bottom layer of the android system without limitation of machine types, and the universality is good; the modification module changes the model to evaluate the test effect of different model android mobile phone programs by modifying the configuration file of the android mobile phone on the one hand, and on the other hand, modifies the function setting of the mobile phone to simulate different test scenes so as to evaluate the application effect of different test scene android mobile phone programs.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating an embodiment of an automated testing method for an android phone in the present invention;
FIG. 2 is a flowchart illustrating a sub-step of step S3 in an embodiment of a method for automatically testing a android phone in the present invention;
FIG. 3 is a flowchart illustrating a sub-step of step S4 in an embodiment of a method for automatically testing a android phone in the present invention;
FIG. 4 is a flowchart illustrating a sub-step of step S5 in an embodiment of a method for automatically testing a android phone in the present invention;
fig. 5 is a schematic diagram of connection components of an automated testing system for an android phone in the present invention.
Detailed Description
In the existing mobile phone software test, a manual means is generally adopted to run or test a process of a certain system, and the purpose is to check whether the system meets the specified requirements or to clarify the difference between the expected result and the actual result. However, in the mobile phone test, a large number of operations of mobile phone users need to be simulated to verify whether the mobile phone can work normally, the expected use effect is obtained by using the mobile phone, and if the mobile phone only depends on manual test, the problems of large test workload, low efficiency and more resource requirements are faced. The existing mobile phone software program test system has the following problems: the server analyzes the command and converts the command into a test script, the script is associated with the application program to be tested, different application programs correspond to different test scripts, and the universality is not strong; the test script is preset and compiled in advance, cannot cope with test scenes except the preset test scenario, and does not have good expansibility; the test script only corresponds a state of single model, when changing the model or changing the analog state of cell-phone, can't test, after the test is accomplished, does not have test result feedback, and the test condition of cell-phone software can't in time be known to the tester, and efficiency is relatively poor.
The invention aims to solve the problems that: the existing mobile phone software testing system has the defects of low universality, no good expansibility and low testing work efficiency.
The technical scheme provided by the invention is as follows: a method and a system for automatically testing a mobile phone based on an android system are provided, the system for automatically testing the android mobile phone comprises: the android mobile phone test system comprises a data acquisition module 110 for acquiring android mobile phone application program data by a user, an automatic test module 120 for testing the android mobile phone application program, a conversion module 140 for converting a test page automatically grabbed by an automatic grabbing module 160 transmitted to a PC 190, a compression module 150 for compressing the test page automatically grabbed by the automatic grabbing module 160, an automatic grabbing module 160 for grabbing the test page needing to be grabbed in the android mobile phone application program test process, batch android mobile phones and a modification module 180 for modifying android mobile phone configuration parameters; the data acquisition module 110 acquires various data of a mobile phone program to be tested of the android mobile phone, the data are imported into the automatic test module 120 when needed in the test process, the automatic test module 120 tests the application program of the android mobile phone according to a preset path, the attributes and IDs of all controls are automatically identified, all functions of all the controls are tested at any time, it is guaranteed that all the controls and the functions thereof are traversed, next-step behavior operation is intelligently judged, and the method has good expansibility; the automatic grabbing module 160 is used for grabbing a test page required in the test process, which is beneficial to evaluating the test result after the test is completed, and different manual grabbing test pages are beneficial to grabbing the test page, and in the process of grabbing the page, the current test surface is obtained from the display driver at the bottom layer of the android system, is not limited by the model, and has good universality; the modification module 180 has two roles: 1. the method comprises the steps that the model is changed by modifying a configuration file of the android mobile phone to evaluate the test effect of different models of android mobile phone programs; 2. the method comprises the steps of modifying the function setting of the mobile phone to simulate different test scenes, and further evaluating the application effect of android mobile phone programs in different test scenes.
The present invention will be described with reference to the accompanying drawings.
First, method embodiment
Fig. 1 is a schematic flow chart of an embodiment of an automated testing method for an android phone in the present invention, and referring to fig. 1, the automated testing method for the android phone includes:
and S1, installing the automatic testing system on the PC 190, and connecting the automatic testing system with the android mobile phone to be tested in batch through the connecting device 130.
The automatic testing system is arranged on the PC 190 and connected with the android mobile phones through the connecting device 130, the android mobile phones are connected in batch during testing, the android mobile phones can be a plurality of mobile phones of the same mobile phone type, and the mobile phones of different mobile phone types are connected with the PC 190.
The connecting device 130 is used for connecting the PC 190 and the android mobile phone to be tested, so as to realize data communication between the PC 190 and the android mobile phone to be tested, compress the test page randomly grabbed by the automatic grabbing module 160 through the connecting device 130, and transmit the test page to the PC 190 for conversion and display; the connection device 130 realizes the operation of testing the android phone program to be tested by operating the PC 190, such as capturing pictures, modifying the configuration parameters of the phone, and the like
And S2, the data acquisition module 110 in the automatic test system acquires the program data of the android phone program to be tested, and stores the program data in the automatic test system in a list form.
The data acquisition module 110 is mainly used for extracting data of an android phone program to be tested, because an automatic test system identifies ids and attributes of all controls during testing, the attributes include sizes, names, colors and the like of the controls, so that the test is performed according to a preset path, functions of all the controls are tested, and corresponding data, such as account numbers and passwords of the android phone application program, data required to be displayed by the controls or the number of certain subspaces and the like, needs to be input at any time during testing the functions or reading the attributes of the controls or entering a set path. Only if the account number and the password of the android mobile phone program are correctly obtained, the automatic testing system can enter the android mobile phone program to start testing. The data of the tested android phone programs of different mobile phones are different, because the user operations and caches corresponding to different tested android phone programs are different, the data acquisition module 110 stores the data of the tested android phone programs in the automatic test system in a list form after acquiring the data of the tested android phone programs, and the data correspond to each tested android phone respectively. After the test is started, the obtained android mobile phone programs are sequentially imported according to the required sequence, and the test is guaranteed to be smoothly carried out.
And S3, the automatic test module 120 in the automatic test system acquires data required by the test from the automatic test system and tests the android mobile phone program.
Fig. 2 is a schematic flowchart of a sub-step of step S3 in an embodiment of an automated android phone testing method according to the present invention, please refer to fig. 2, where step S3 includes: s31, the automatic test module 120 automatically identifies all control ids and control attributes of the android mobile phone program to be tested, so that the automatic test is performed according to a preset path. S32, the automatic test module 120 automatically tests all the operation functions traversing each control.
Before the automatic test, the automatic test module 120 acquires data required by the test from the automatic test system, for example, first acquires an account and a password of the android phone program to be tested, and enters the android phone program; in the testing process, the required data of each step is obtained from a corresponding data list stored in the automatic testing system. The automatic testing module 120 is used for completing the testing work of the android phone program: 1. firstly, identifying control attributes, id and the like of an android mobile phone program, wherein the control attributes mainly comprise the color, the size, the name and the like of a control; 2. and testing all functions of all controls, such as functions of sliding, clicking and inputting the controls. The automatic identification module can intelligently determine the next-step behavior operation, for example, a certain control includes a plurality of sub-controls, the sub-controls correspond to a plurality of next-level sub-controls, or one control corresponds to a plurality of functions, the automatic test module 120 tests the sub-controls step by step or tests the functions item by item according to a predetermined path, for example, the sliding function of the control is tested first, then the click function is tested, and finally the input function is tested, and the next-step behavior operation is intelligently determined, so that the automatic test system has good expansibility.
And S4, the automatic grabbing module 160 in the automatic test system grabs a test display page used for evaluating the test effect.
Fig. 3 is a schematic flowchart of a sub-step of step S4 in an embodiment of an automated android phone testing method according to the present invention, please refer to fig. 3, S41, and the automatic fetching module 160 fetches a current test page from an android os display driver layer. S42, the compression module 150 in the automated test system compresses the current test page, and the compressed current test page is transmitted to the PC 190. And S43, the conversion module 140 of the automatic test system converts the format of the compressed current test page and displays the converted current test page on the screen of the PC 190.
In order to achieve the purpose that the test cases in the automatic test system are related to the mobile phone page scene elements and are unrelated to single application, and the same behavior test of different android mobile phone programs is met, the automatic capture module 160 in the automatic test system acquires the current test page data from the bottom layer display driver of the mobile phone android system, which has no relation with the model of the mobile phone and has strong universality. The test page acquired by the existing mobile phone test system is related to the position of the user in the android mobile phone to be tested and the type of the android mobile phone, that is, even if the type of the mobile phone or the application scene of the mobile phone is changed, the test case in the automatic system does not need to be changed, the universality of the automatic test system is improved,
s5, the modification module 180 of the automatic test system simulates test scenes of different mobile phone states through configuration parameters to test the android mobile phone program. Fig. 4 is a schematic view of a sub-step flow of step S5 in an embodiment of an automated android phone testing method in the present invention, please refer to fig. 4, S51, and a modification module 180 in an automated testing system obtains test scenes of different models or different positions where a mobile phone is located by modifying mobile phone configuration parameters, and tests an android phone program in the test scenes of different models or different positions. S52, obtaining test scenes of different network environments by operating the Bluetooth or WiFi in the tested mobile phone, and testing android mobile phone programs in the test scenes of the different network environments.
The modification module 180 changes the model of the handset or changes the location of use of the android handset by modifying the configuration parameters of the handset. 1. And changing the model of the android mobile phone: a. modifying the factory number of the android mobile phone; b. modifying the serial number of the mobile phone card of the android mobile phone; c. modifying android id and mac of the android mobile phone; d. and changing the mac or name of the Bluetooth of the mobile phone and changing the mac or name of the WiFi. 2. Changing the use position of the mobile phone: the position of the mobile phone is determined by a GPS, a mobile communication operator base station of the mobile phone and a WiFimac of the mobile phone, and the modifying module 180 achieves the purpose of simulating the android mobile phone to change the use position scene by modifying the GPS in the configuration file or the WiFi mac parameter of the mobile communication operator base station of the mobile phone or the mobile phone. In addition, a scene of the change of the network state of the mobile phone can be simulated by operating the mobile phone, such as turning off or turning on WiFi or Bluetooth of an android mobile phone. The method achieves the purpose of simulating and changing the scenes that the model, the using position and the network state of the tested android mobile phone are changed, the automatic testing system can efficiently complete the testing of the same android mobile phone program in different scenes, and the working efficiency is improved.
And S6, after the test is finished, the automatic test system displays the test result on the screen of the PC 190 for the evaluation of the tester.
After the test is completed, the automatic test system collects the test results, generates a test result list and displays the test result list on the screen of the PC 190, wherein parameters in the test result list comprise the name of the android mobile phone program to be tested, the model of the mobile phone to be tested, the IP of the mobile phone and the network state of the mobile phone.
According to the android mobile phone automatic testing method, the program data comprise the account number and the password of the android mobile phone program to be tested and the data required by the testing control.
According to the automatic android mobile phone testing method, the control attributes comprise the name, the size and the color of the control.
According to the automatic android mobile phone testing method, the operation functions comprise control sliding, clicking and inputting.
On the other hand, an automated android phone testing system is provided, which includes:
the data acquisition module 110: the automatic testing module 120 is respectively connected with the android mobile phone to be tested and is used for acquiring program data of the android mobile phone to be tested;
the automatic test module 120: the test system is respectively connected with the data acquisition module 110 and the PC 190 and used for importing program data into the android mobile phone program to be tested in the test process, and displaying the test result on the screen of the PC 190 when the test is finished;
the auto-grab module 160: the device is respectively connected with the android mobile phone to be tested and the compression module 150, and is used for grabbing a current page to be tested from a driving layer of an android system of the android mobile phone to be tested and transmitting the grabbed test page to the compression module 150 for compression;
the automatic modification module 180: the mobile phone configuration file is connected with the android mobile phone to be tested and used for modifying the mobile phone configuration file to obtain different test scenes;
the compression module 150: respectively connected to the capture module and the conversion module 140, for compressing the test page captured by the capture module so as to transmit to the PC 190;
the conversion module 140: and is respectively connected with the compression module 150 and the PC 190, and is used for converting the compressed test page format so as to be displayed on the screen of the PC 190.
According to the android mobile phone automatic test system, the android mobile phone automatic test system further comprises tested android mobile phones of different models, a PC (personal computer) 190 for displaying test results and a connecting device 130 for realizing communication between the android mobile phones and the PC 190.
The android mobile phone automatic testing method and system provided by the invention are implemented, firstly, the android mobile phone automatic testing system is installed on the PC 190, the data acquisition module 110 in the automatic testing system acquires various data of a mobile phone program to be tested of the android mobile phone, the data are imported into the automatic testing module 120 when needed in the testing process, the automatic testing module 120 tests the android mobile phone application program according to a preset path, the attributes and IDs of all controls are automatically identified, all functions of all controls are tested at any time, traversing of all controls and functions thereof is ensured, next step behavior operation is intelligently judged, and the method and system have good expansibility; the automatic grabbing module 160 is used for grabbing a test page required in the test process, which is beneficial to evaluating the test result after the test is completed, and different manual grabbing test pages are beneficial to grabbing the test page, and in the process of grabbing the page, the current test surface is obtained from the display driver at the bottom layer of the android system, is not limited by the model, and has good universality; the modification module 180 changes models to evaluate the test effect of different models of android mobile phone programs by modifying the configuration files of the android mobile phones on the one hand, and modifies the function settings of the mobile phones on the other hand to simulate different test scenes so as to evaluate the application effect of different test scenes of the android mobile phone programs.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (6)

1. An automated android mobile phone testing method is characterized by comprising the following steps:
the automatic testing system is installed on a PC (190) and is connected with android mobile phones to be tested in batch through a connecting device (130);
a data acquisition module (110) in the automatic test system acquires program data of an android mobile phone program to be tested, and stores the program data in the automatic test system in a list form; the program data comprises an account number and a password of the android mobile phone program to be tested and data required by the test control;
an automatic test module (120) in the automatic test system acquires data required by the test from the automatic test system and tests the android mobile phone program; the method comprises the following steps: the automatic test module (120) automatically identifies all control ids and control attributes of the android mobile phone program to be tested, so that the automatic test is carried out according to a preset path; the automatic test module (120) automatically tests and traverses the operation functions of all the controls;
an automatic grabbing module (160) in the automatic testing system grabs a test display page used for evaluating the test effect; the method comprises the following steps: the automatic grabbing module (160) grabs a current test page from a display driving layer of an android operating system; the current test page is irrelevant to the model of the tested mobile phone and the application scene of the mobile phone; a compression module (150) in the automatic test system compresses the current test page and transmits the compressed current test page to a PC (190); the conversion module (140) of the automatic test system converts the format of the compressed current test page and displays the compressed current test page on a screen of a PC (190);
a modification module (180) of the automatic test system simulates test scenes of different mobile phone states through configuration parameters to test the android mobile phone program;
and after the test is finished, the automatic test system displays the test result on the screen of the PC (190) for the evaluation of the tester.
2. The automated android phone testing method of claim 1, wherein the control attributes include a name, a size, and a color of a control.
3. The automated android phone testing method of claim 1, wherein the operational functions include control sliding, clicking, and inputting.
4. The automated android phone testing method of claim 1, wherein the automated testing system simulates testing scenarios of different phone states to test the android phone program, comprising:
a modification module (180) in the automatic test system acquires test scenes of different models or different positions of the mobile phone by modifying the configuration parameters of the mobile phone, and tests the android mobile phone programs in the test scenes of different models or different positions;
the method comprises the steps of obtaining test scenes of different network environments by operating Bluetooth or WiFi in a tested mobile phone, and testing android mobile phone programs in the test scenes of the different network environments.
5. An automated android phone testing system, comprising:
data acquisition module (110): the test system is respectively connected with a tested android mobile phone and an automatic test module (120) and used for acquiring program data of a program of the tested android mobile phone; the program data comprises an account number and a password of the android mobile phone program to be tested and data required by the test control;
automatic test module (120): the test system is respectively connected with the data acquisition module (110) and the PC (190) and used for importing program data into a tested android mobile phone program in the test process, and displaying a test result on a screen of the PC (190) when the test is finished; the automatic test module (120) automatically identifies all control ids and control attributes of the android mobile phone program to be tested, so that the automatic test is carried out according to a preset path; the automatic test module (120) automatically tests and traverses the operation functions of all the controls;
automatic grasping module (160): the device is respectively connected with the android mobile phone to be tested and the compression module (150) and is used for grabbing a current page to be tested from a driving layer of an android system of the android mobile phone to be tested and transmitting the grabbed test page to the compression module (150) for compression; the automatic grabbing module (160) grabs a current test page from a display driving layer of an android operating system; the current test page is irrelevant to the model of the tested mobile phone and the application scene of the mobile phone; a compression module (150) in the automatic test system compresses the current test page and transmits the compressed current test page to a PC (190); the conversion module (140) of the automatic test system converts the format of the compressed current test page and displays the compressed current test page on a screen of a PC (190);
automatic modification module (180): the mobile phone configuration file is connected with the android mobile phone to be tested and used for modifying the mobile phone configuration file to obtain different test scenes;
compression module (150): the test page compression module is respectively connected with the grabbing module and the conversion module (140) and is used for compressing the test page grabbed by the grabbing module so as to transmit the test page to the PC (190);
conversion module (140): and the device is respectively connected with the compression module (150) and the PC (190) and is used for converting the compressed test page format so as to display the test page format on the screen of the PC (190).
6. The android mobile phone automatic testing system of claim 5, characterized in that the android mobile phone automatic testing system further comprises android mobile phones of different models to be tested, a PC (190) for displaying the test result, and a connecting device (130) for enabling the android mobile phones to communicate with the PC (190).
CN201611076464.6A 2016-11-29 2016-11-29 Automatic android mobile phone testing method and system Active CN106776294B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611076464.6A CN106776294B (en) 2016-11-29 2016-11-29 Automatic android mobile phone testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611076464.6A CN106776294B (en) 2016-11-29 2016-11-29 Automatic android mobile phone testing method and system

Publications (2)

Publication Number Publication Date
CN106776294A CN106776294A (en) 2017-05-31
CN106776294B true CN106776294B (en) 2020-06-16

Family

ID=58900994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611076464.6A Active CN106776294B (en) 2016-11-29 2016-11-29 Automatic android mobile phone testing method and system

Country Status (1)

Country Link
CN (1) CN106776294B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315670A (en) * 2017-06-26 2017-11-03 深圳市靖洲科技有限公司 A kind of intelligent terminal method of testing, apparatus and system
CN107509212B (en) * 2017-10-13 2021-04-30 上海展扬通信技术有限公司 Test method and test system for mobile terminal
CN108462614A (en) * 2018-01-09 2018-08-28 深圳市亿道数码技术有限公司 Automatization test system
CN108319554B (en) * 2018-02-13 2022-08-09 广州市百果园信息技术有限公司 Application function testing method, computer readable storage medium and terminal device
CN109151466A (en) * 2018-06-28 2019-01-04 苏州乐轩科技有限公司 A kind of android system platform clectronic equipment utility function automatic test approach
CN109032948A (en) * 2018-07-28 2018-12-18 安徽捷兴信息安全技术有限公司 It is a kind of by USB interface to the method and detection system of mobile phone application safety detection
CN109324741A (en) * 2018-09-30 2019-02-12 广州云测信息技术有限公司 A kind of method of controlling operation thereof, device and system
CN112306576B (en) * 2020-11-03 2023-11-07 深圳市桑达无线通讯技术有限公司 Method for modifying built-in number of android device application program
CN112579438B (en) * 2020-12-01 2022-07-08 河南芯盾网安科技发展有限公司 Multifunctional automatic test tool and test method
CN114490228B (en) * 2021-07-21 2022-11-29 荣耀终端有限公司 Bluetooth automatic test method and related device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269497A (en) * 2013-05-08 2013-08-28 百度在线网络技术(北京)有限公司 Method and system capable of conducting managing and testing on mobile phone
CN104850489A (en) * 2014-02-13 2015-08-19 富士通株式会社 Mobile application test system
CN105868105A (en) * 2016-03-24 2016-08-17 厦门美图移动科技有限公司 Application traversal testing method and device, and mobile terminal
CN106033393A (en) * 2015-03-13 2016-10-19 展讯通信(天津)有限公司 Method and system for testing application program, and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269497A (en) * 2013-05-08 2013-08-28 百度在线网络技术(北京)有限公司 Method and system capable of conducting managing and testing on mobile phone
CN104850489A (en) * 2014-02-13 2015-08-19 富士通株式会社 Mobile application test system
CN106033393A (en) * 2015-03-13 2016-10-19 展讯通信(天津)有限公司 Method and system for testing application program, and mobile terminal
CN105868105A (en) * 2016-03-24 2016-08-17 厦门美图移动科技有限公司 Application traversal testing method and device, and mobile terminal

Also Published As

Publication number Publication date
CN106776294A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106776294B (en) Automatic android mobile phone testing method and system
CN106021095B (en) A kind of Android application automated testing method based on push-mechanism
CN108566323B (en) T-Box automated testing method and system
CN108307021B (en) Parallel following test equipment, cloud real machine and method for mobile terminal
CN109740222B (en) Testing device and system for automobile networking scene
US9582391B2 (en) Logistics of stress testing
CN105787364B (en) Automatic testing method, device and system for tasks
CN107908551A (en) Terminal software test method, device, terminal and computer-readable storage medium
CN110493812B (en) Distribution network test processing method, device and system, processor and master control equipment
CN108763086A (en) Script method for recording, terminal and computer readable storage medium based on remote real machine
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
CN106126414B (en) Application software testing method and system
CN101272422A (en) Mobile phone automatized test method
JP2017117309A (en) Smartphone application test automatization system
CN111611121A (en) Hardware simulation test method, device and equipment
CN104780407A (en) Automatic testing method and automatic testing system for set top box
CN110833693B (en) Game running method and device, storage medium and electronic device
CN106528429A (en) UI testing method and device
KR100892141B1 (en) Test method for automatically testing portable device and apparatus there-for
CN104717670A (en) Business quality testing method, device and system
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN105530659A (en) Service test system, method and device of mobile terminal
CN106682910B (en) Information processing method, system and related equipment
CN106970870B (en) Webpage test platform, webpage test method and webpage test system
CN211554929U (en) Human-computer interaction interface automatic identification system based on Android OS

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