CN104536891A - Method and device for testing system - Google Patents

Method and device for testing system Download PDF

Info

Publication number
CN104536891A
CN104536891A CN201410832142.4A CN201410832142A CN104536891A CN 104536891 A CN104536891 A CN 104536891A CN 201410832142 A CN201410832142 A CN 201410832142A CN 104536891 A CN104536891 A CN 104536891A
Authority
CN
China
Prior art keywords
tested
flashing
finished
package
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410832142.4A
Other languages
Chinese (zh)
Other versions
CN104536891B (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410832142.4A priority Critical patent/CN104536891B/en
Publication of CN104536891A publication Critical patent/CN104536891A/en
Application granted granted Critical
Publication of CN104536891B publication Critical patent/CN104536891B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a method and device for testing a system. The method and device for testing the system are used for automatically testing compatibility of the system efficiently and rapidly. The method comprises the steps that when the device is connected with equipment to be tested, the type of the equipment to be tested is recognized; whether the recognizing course is finished is monitored, and when it is monitored that the recognizing course is finished, and a system recovery package and a compatibility testing package corresponding to the type of the equipment are downloaded; whether the downloading course is finished is monitored, and when it is monitored that the downloading course is finished, whether the equipment to be tested is compatible with the system is tested according to the system recovery package and the compatibility testing package, and a testing result is obtained; the testing result is stored. The method and device for testing the system omit complicated manual operation, the CTS verification can be finished automatically on the premise that backup copy data are complete, not only is a large amount of labor consumption avoided, but also the testing time is shortened, and the system compatibility test efficiency is improved.

Description

System testing method and device
Technical Field
The present disclosure relates to the field of system applications, and in particular, to a system testing method and apparatus.
Background
The Android Compatibility Test (CTS) and the associated Compatibility Definition Document (CDD) are self-management programs that ensure that the terminal device is compatible with a specific version of Android (e.g., 4.0,4.1,4.2,4.3, 4.4). The CTS test set contains approximately 24,000 test cases running on Android devices, each for telephony, graphics, camera, GPS, touch screen, wireless network, etc. functions. Google publishes CDD documents for each major Android version, indicating the specific requirements for each type of test in CTS.
CTS is known as Compatibility Test Suite and is a Compatibility testing tool. After an electronic product is developed and an Android system of the electronic product is customized, a latest CTS test is required to ensure that a standard Android application program can run under the platform. After the CTS verification is passed, a test report needs to be submitted to Google, and after the Google confirms that the report has no problem, the android market can be authenticated, and the product can be listed.
In the related art, when the compatibility test is performed on the Android system, a user needs to manually perform the test. Firstly, a test environment is required to be set up (the CTS can only be tested in a Linux system at present), then a CTS test packet and a line brushing packet are downloaded, after the line brushing packet is used for brushing the electronic product to be tested, a user manually carries out related configuration according to the Android system version, and finally a test command is input for testing. Therefore, the whole testing process needs manual operation of a user, so that the testing process is very troublesome, the user needs to manually set or input commands step by step, the time of the user is wasted, and when the number of electronic products to be tested is large, the user can hardly realize the manual testing.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a system testing method and apparatus for efficiently and rapidly testing the compatibility of a system automatically.
According to a first aspect of the embodiments of the present disclosure, there is provided a system testing method, including:
when the device is connected with a device to be tested, identifying the model of the device to be tested;
monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is finished;
monitoring whether the downloading process is finished or not, and when the downloading process is finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility test package to obtain a test result;
and storing the test result.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: according to the scheme, the model of the equipment to be tested is identified, the relevant test package and the flash package are downloaded according to the model of the equipment to be tested, the next process is triggered by automatically monitoring the current process, the system compatibility test of the equipment to be tested is realized, complicated manual operation is omitted, CTS verification can be automatically completed on the premise that backup data is complete, a large amount of labor consumption is saved, the test time is shortened, and the efficiency of the system compatibility test is improved.
In an embodiment, the downloading the system flashing package and the compatibility test package corresponding to the model includes:
monitoring whether a test command input by a user is received;
and when a test command input by a user is received, downloading a system flashing package and a compatibility test package corresponding to the model.
The user only needs to input the test command, the automatic test of the system compatibility of the equipment to be tested can be triggered, the user does not need to manually download related test packages and update packages, complex manual operation is omitted, CTS verification can be automatically completed on the premise that backup data is complete, a large amount of labor consumption is saved, test time is shortened, and the efficiency of the system compatibility test is improved.
In an embodiment, the monitoring whether the downloading process is completed, and when it is monitored that the downloading process is completed, testing whether the terminal to be tested is compatible with the system according to the system update package and the compatibility test package to obtain a test result includes:
monitoring whether the downloading process is finished or not, and when the downloading process is finished, refreshing the equipment to be tested by using the system refreshing package;
monitoring whether the flashing process is finished or not, and when the flashing process is finished, configuring the equipment to be tested according to the configuration standard of the system flashing package;
and monitoring whether the configuration process is completed, and when the configuration process is monitored to be completed, testing whether the terminal to be tested is compatible with the system by using the compatibility test packet to obtain a test result.
In the testing process, the next process is triggered by automatically monitoring the current process, so that the system compatibility of the device to be tested is tested, complicated manual operation is omitted, CTS verification can be automatically completed on the premise of complete backup data, a large amount of labor consumption is saved, the testing time is shortened, and the system compatibility testing efficiency is improved.
In an embodiment, the monitoring whether the flashing process is completed, and when the flashing process is completed, configuring the device to be tested according to the configuration standard of the system flashing package includes:
monitoring whether the configuration process is finished or not, and acquiring prestored configuration data matched with the system flashing package when the flashing process is finished;
and configuring the equipment to be tested by taking the configuration data as a configuration standard.
In the testing process, the equipment to be tested is automatically configured according to the pre-backed configuration data matched with the model of the equipment to be tested, the testing is triggered by monitoring the configuration process, and the manual operation of a user is not needed, so that the complicated manual operation is omitted, the CTS verification can be automatically completed on the premise of complete backup data, a large amount of labor consumption is saved, the testing time is shortened, and the efficiency of the system compatibility testing is improved.
In one embodiment, whether the device to be tested is normally connected is detected;
the monitoring whether the flashing process is completed or not, and when the flashing process is completed, configuring the equipment to be tested according to the configuration standard of the system flashing package, including:
monitoring whether the flashing process is finished or not, and detecting whether the flashing process is finished or not and the equipment to be detected are normally connected or not when the flashing process is monitored to be finished;
and when normal connection with the equipment to be tested is detected, configuring the equipment to be tested according to the configuration standard of the system flashing package.
After the automatic machine refreshing is completed, whether the equipment to be tested is normally connected or not is detected, and when the equipment to be tested is normally connected, the configuration work of the equipment to be tested is triggered, so that the smooth proceeding of the system compatibility test process is ensured, and the efficiency of the system compatibility test is improved.
In one embodiment, the method further comprises:
receiving an establishing operation of a function test packet with a preset function in the equipment to be tested, and obtaining the function test packet with the preset function in the equipment to be tested;
and performing function test on the preset functions in the equipment to be tested by using the function test packet.
By establishing the function test packet with the preset function in the device to be tested, a certain function or certain functions can be tested independently during system compatibility test, and other function test packets are not influenced, namely the test work of other functions in the device to be tested is not influenced, so that the test error is more effectively prevented.
According to a second aspect of the embodiments of the present disclosure, there is provided a system test apparatus including:
the identification module is used for identifying the model of the equipment to be tested when the equipment to be tested is connected;
the downloading module is used for monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is monitored to be finished;
the first testing module is used for monitoring whether the downloading process is finished or not, and when the downloading process is monitored to be finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility testing package to obtain a testing result;
and the storage module is used for storing the test result.
In one embodiment, the download module comprises:
the monitoring submodule is used for monitoring whether a test command input by a user is received;
and the downloading submodule is used for downloading the system flashing package and the compatibility test package corresponding to the model when receiving the test command input by the user.
In one embodiment, the first test module comprises:
the system updating sub-module is used for monitoring whether the downloading process is finished or not, and updating the equipment to be tested by using the system updating package when the downloading process is monitored to be finished;
the configuration submodule is used for monitoring whether the flashing process is finished or not, and when the flashing process is finished, the equipment to be tested is configured according to the configuration standard of the system flashing package;
and the testing submodule is used for monitoring whether the configuration process is finished or not, and when the configuration process is monitored to be finished, testing whether the terminal to be tested is compatible with the system or not by using the compatibility testing packet to obtain a testing result.
In an embodiment, the configuration sub-module is further configured to monitor whether the flashing process is completed, and when it is monitored that the flashing process is completed, obtain pre-stored configuration data matched with the system flashing package; and configuring the equipment to be tested by taking the configuration data as a configuration standard.
In one embodiment, the configuration sub-module is further configured to monitor whether the flashing process is completed, and when the flashing process is monitored to be completed, detect whether the device to be tested is normally connected to the configuration sub-module; and when normal connection with the equipment to be tested is detected, configuring the equipment to be tested according to the configuration standard of the system flashing package.
In one embodiment, the apparatus further comprises:
the receiving module is used for receiving the establishment operation of the function test packet with the preset function in the equipment to be tested and obtaining the function test packet with the preset function in the equipment to be tested;
and the second test module is used for performing function test on the preset function in the equipment to be tested by using the function test packet.
According to a third aspect of the embodiments of the present disclosure, there is provided a system test apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the device is connected with a device to be tested, identifying the model of the device to be tested;
monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is finished;
monitoring whether the downloading process is finished or not, and when the downloading process is finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility test package to obtain a test result;
and storing the test result.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method of system testing according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of system testing in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a system test device in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating a download module in a system test apparatus according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating a first test module in a system test apparatus in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a system test device in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating an apparatus for system testing in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a system testing method according to an exemplary embodiment, where the system testing method is used in a terminal, as shown in fig. 1, and includes the following steps S11-S14:
in step S11, when the device under test is connected, the model of the device under test is identified;
in step S12, whether the identification process is completed is monitored, and when the identification process is monitored to be completed, a system flashing package and a compatibility test package corresponding to the model are downloaded;
in step S13, whether the downloading process is completed is monitored, and when the downloading process is monitored to be completed, whether the terminal to be tested is compatible with the system is tested according to the system flush package and the compatibility test package to obtain a test result;
in step S14, the test result is stored.
According to the technical scheme, the model of the equipment to be tested is identified, the relevant test packet and the flash packet are downloaded according to the model of the equipment to be tested, the next process is triggered by automatically monitoring the current process, the system compatibility test of the equipment to be tested is further realized, complicated manual operation is omitted, CTS verification can be automatically completed on the premise that backup data is complete, a large amount of labor consumption is saved, the test time is shortened, and the efficiency of the system compatibility test is improved.
In the method, after the terminal identifies the model of the device to be detected, an identification result can be sent, and the fact that the identification process is completed is judged and monitored according to the identification result, namely when the terminal identifies the model of the device to be detected and sends the identification result, the identification process is indicated to be completed, and the next step can be continuously executed. Similarly, after the terminal downloads the system flashing package and the compatibility test package corresponding to the model of the device to be tested, it can also be determined that the downloading process is completed by sending a downloading result, that is, when the terminal downloads the system flashing package and the compatibility test package corresponding to the model of the device to be tested and sends the downloading result, it indicates that the downloading process is completed, and the next step can be continuously executed. After the terminal sends out the identification result or the downloading result, the identification result or the downloading result can be received through a corresponding receiving interface on the terminal, and then the identification process or the downloading result is judged to be completed.
In one embodiment, in the step S12, when downloading the system flashing package and the compatibility test package corresponding to the model, the following steps a11-a12 may be implemented:
in step a11, monitoring whether a test command input by a user is received;
in step a12, when a test command input by a user is received, a system flush package and a compatibility test package corresponding to a model are downloaded.
The system flashing package and the compatibility test package corresponding to the type of the equipment to be tested are stored in the server in advance, so that after the test terminal receives a test command input by a user, the corresponding system flashing package and the compatibility test package can be obtained from the server to perform flashing and test work, the user does not need to manually download related data, complicated manual operation is omitted, CTS verification can be automatically completed on the premise that backup data are complete, a large amount of labor consumption is saved, test time is shortened, and system compatibility test efficiency is improved.
In one embodiment, step S13 may be implemented as the following steps B11-B13:
in step B11, monitoring whether the downloading process is completed, and when the downloading process is monitored to be completed, performing a system flashing on the device to be tested by using the system flashing package;
in step B12, monitoring whether the flashing process is completed, and when the flashing process is completed, configuring the device to be tested according to the configuration standard of the system flashing package;
in step B13, it is monitored whether the configuration process is completed, and when it is monitored that the configuration process is completed, the compatibility test packet is used to test whether the terminal to be tested is compatible with the system, so as to obtain the test result.
Wherein step B12 may be implemented as the following steps B121-B122:
in step B121, whether the flashing process is completed is monitored, and when the flashing process is monitored to be completed, pre-stored configuration data matched with the system flashing package is acquired;
in step B122, the device to be tested is configured by using the configuration data as a configuration standard.
Taking compatibility test of an Android system as an example, the terminal to be tested is a smart phone with the Android system. In implementing the above step B12, the device under test may be configured according to the following data example:
1) ct & DelegatingAccessabilityService. APK and DelegatingAccessabilityService. APK.
Wherein, the two apks (Android installation packages) are in Android-cts/repository/testcases directory;
2)Setting-->Security-->Device administrators-->enable two APK activitied.
3)Setting-->Accaessibility-->turn on Delegating Accessibility Service.
4)Setting-->Developer options-->enable Stay awake.
5)Setting-->Developer options-->enable Skip screen lock.
6)Setting-->Developer options-->enable USB debugging.
7)Setting-->Developer options-->enable Allow mock locations.
8)set up language as English.
9)Setting-->Date&time-->Time zone-->Pacific Time.
10)Setting-->Language&input-->disable Baidu Input.
11)Setting-->Language&input-->Text-to-speech output-->enable GoogleText-to-speech Enginer.
12)push test file to sdcard.
the configuration data in the format is pre-stored in the server and is in one-to-one correspondence with the system versions, after the test equipment completes the flashing of the device to be tested, the test equipment automatically acquires the pre-stored configuration data matched with the system flashing package from the server, and configures the device to be tested by taking the acquired configuration data as a configuration standard. The whole configuration process is automatically completed by the test equipment according to the pre-stored data without manual configuration by a user, so that complicated manual operation can be omitted, CTS verification can be automatically completed on the premise of complete backup data, a large amount of labor consumption is saved, the test time is shortened, and the efficiency of system compatibility test is improved.
In one embodiment, step B12 may also be implemented as follows: monitoring whether the flashing process is finished or not, and detecting whether the flashing process is finished or not and the equipment to be detected are normally connected or not when the flashing process is monitored to be finished; and when normal connection with the equipment to be tested is detected, configuring the equipment to be tested according to the configuration standard of the system flashing package. After the equipment to be tested is flushed, the disconnection between the equipment to be tested and the test equipment is easily caused, so that after the flushing is finished, the test equipment needs to detect whether the equipment to be tested is normally connected with the equipment to be tested, and if the test equipment is normally connected with the equipment to be tested, the equipment to be tested is continuously configured; and if the test equipment is disconnected with the equipment to be tested, the equipment to be tested is configured after the test equipment is reconnected with the equipment to be tested.
In one embodiment, the above method further comprises the following steps M1-M2:
in step M1, receiving an operation of establishing a function test packet of a preset function in the device to be tested, and obtaining a function test packet of the preset function in the device to be tested;
in step M2, a function test is performed on the preset function in the device to be tested by using the function test package.
The establishment of the function test package of the preset function in the device to be tested represents a test plan for a specific function in the system, for example, the preset function may include a camera function, a telephone function, a player function, or the like in an Android system. Corresponding function test packages can be established for the different functions, and a user can independently test the compatibility of the preset functions and the equipment to be tested by using the function test packages. When testing the preset function in the system, the user does not need to manually operate each step, only the data needing to be downloaded and acquired needs to be backed up in the server, and after the test equipment receives the test command input by the user, the test work of the preset function can be automatically completed, wherein the test command input by the user is a command for testing a certain single function. For example, when a new function is added to a camera application in the system, a user only needs to test the camera function, and does not need to completely test the whole system, so that the influence on other functions in the system is avoided, and a test error can be more effectively prevented.
FIG. 2 is a flow chart illustrating a method of system testing according to an exemplary embodiment. In this embodiment, the method is used in a test device that is wired to a device under test (e.g., a smartphone). As shown in FIG. 2, the method includes the following steps S21-S29:
in step S21, when the device under test is connected, the model of the device under test is identified;
in step S22, whether the recognition process is completed is monitored, and when it is monitored that the recognition process is completed, whether a test command input by a user is received is monitored; when the test command input by the user is received, continuing to execute step S23; if the test command input by the user is not received, the operation is not executed until the test command input by the user is received;
in step S23, when a test command input by a user is received, downloading a system flush package and a compatibility test package corresponding to the model;
in step S24, it is monitored whether the downloading process is completed, and when it is monitored that the downloading process is completed, the system flashing package is used to flash the device to be tested;
in step S25, whether the flashing process is completed is monitored, and when the flashing process is monitored to be completed, whether the device to be tested is normally connected is detected;
in step S26, when detecting that the device to be tested is normally connected, obtaining pre-stored configuration data matched with the system flush package;
in step S27, the device to be tested is configured with the configuration data as a configuration standard;
in step S28, it is monitored whether the configuration process is completed, and when it is monitored that the configuration process is completed, a compatibility test packet is used to test whether the terminal to be tested is compatible with the system, so as to obtain a test result;
in step S29, the test result is stored.
According to the technical scheme, the model of the equipment to be tested is identified, the relevant test packet and the flash packet are downloaded according to the model of the equipment to be tested, the next process is triggered by automatically monitoring the current process, the system compatibility test of the equipment to be tested is further realized, complicated manual operation is omitted, CTS verification can be automatically completed on the premise that backup data is complete, a large amount of labor consumption is saved, the test time is shortened, and the efficiency of the system compatibility test is improved.
FIG. 3 is a block diagram illustrating a system testing apparatus according to an exemplary embodiment. Referring to fig. 3, the apparatus includes an identification module 31, a download module 32, a first test module 33, and a storage module 34; wherein,
the identification module 31 is configured to identify a model of the device under test when connected with the device under test;
the downloading module 32 is configured to monitor whether the identification process is completed, and when the identification process is monitored to be completed, download a system flashing package and a compatibility test package corresponding to the machine type;
the first testing module 33 is configured to monitor whether the downloading process is completed, and when the downloading process is monitored to be completed, test whether the terminal to be tested is compatible with the system according to the system flashing package and the compatibility testing package to obtain a testing result;
the storage module 34 is configured to store the test results.
In one embodiment, as shown in FIG. 4, the download module 32 includes a monitoring sub-module 321 and a download sub-module 322; wherein,
the monitoring submodule 321 is configured to monitor whether a test command input by a user is received;
the download sub-module 322 is configured to download a system flush package corresponding to a model and a compatibility test package when receiving a test command input by a user.
In one embodiment, as shown in FIG. 5, first test module 33 includes a wiper submodule 331, a configuration submodule 332, and a test submodule 333; wherein,
the flashing sub-module 331 is configured to monitor whether the downloading process is completed, and when the downloading process is monitored to be completed, the system flashing package is used for flashing the device to be tested;
the configuration submodule 332 is configured to monitor whether the flashing process is completed, and when the flashing process is completed, configure the device to be tested according to the configuration standard of the system flashing package;
the test sub-module 333 is configured to monitor whether the configuration process is completed, and when the configuration process is monitored to be completed, test whether the terminal to be tested is compatible with the system by using the compatibility test packet, so as to obtain a test result.
In one embodiment, the configuration sub-module 332 is further configured to monitor whether the flashing process is completed, and when the flashing process is monitored to be completed, obtain pre-stored configuration data matched with the system flashing package; and taking the configuration data as a configuration standard to configure the equipment to be tested.
In one embodiment, as shown in FIG. 6, the apparatus further comprises a receiving module 35 and a second testing module 36; wherein,
the receiving module 35 is configured to monitor whether the flashing process is completed, receive the establishment operation of the function test packet of the preset function in the device to be tested, and obtain the function test packet of the preset function in the device to be tested;
the second testing module 36 is configured to perform a function test on a preset function in the device to be tested by using the function testing packet.
In one embodiment, the configuration sub-module 332 is further configured to monitor whether the flashing process is completed, so as to detect whether the device under test is normally connected to the device under test when the flashing process is completed; and when normal connection with the equipment to be tested is detected, configuring the equipment to be tested according to the configuration standard of the system flashing package.
According to the technical scheme, the model of the equipment to be tested is identified, the relevant test packet and the flash packet are downloaded according to the model of the equipment to be tested, the next process is triggered by automatically monitoring the current process, the system compatibility test of the equipment to be tested is further realized, complicated manual operation is omitted, CTS verification can be automatically completed on the premise that backup data is complete, a large amount of labor consumption is saved, the test time is shortened, and the efficiency of the system compatibility test is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 7 is a block diagram illustrating an apparatus 700 for system testing in accordance with an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 can include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of apparatus 700, sensor assembly 714 may also detect a change in position of apparatus 700 or a component of apparatus 700, the presence or absence of user contact with apparatus 700, orientation or acceleration/deceleration of apparatus 700, and a change in temperature of apparatus 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a system test method, the method comprising:
when the device is connected with a device to be tested, identifying the model of the device to be tested;
monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is finished;
monitoring whether the downloading process is finished or not, and when the downloading process is finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility test package to obtain a test result;
and storing the test result.
The downloading of the system flashing package and the compatibility test package corresponding to the machine type comprises the following steps:
monitoring whether a test command input by a user is received;
and when a test command input by a user is received, downloading a system flashing package and a compatibility test package corresponding to the model.
The monitoring whether the downloading process is completed or not, and when the downloading process is monitored to be completed, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility testing package to obtain a testing result, includes:
monitoring whether the downloading process is finished or not, and when the downloading process is finished, refreshing the equipment to be tested by using the system refreshing package;
monitoring whether the flashing process is finished or not, and when the flashing process is finished, configuring the equipment to be tested according to the configuration standard of the system flashing package;
and monitoring whether the configuration process is completed, and when the configuration process is monitored to be completed, testing whether the terminal to be tested is compatible with the system by using the compatibility test packet to obtain a test result.
The monitoring whether the flashing process is completed or not, and when the flashing process is completed, configuring the equipment to be tested according to the configuration standard of the system flashing package, including:
monitoring whether the flashing process is finished or not, and acquiring prestored configuration data matched with the system flashing package when the flashing process is finished;
and configuring the equipment to be tested by taking the configuration data as a configuration standard.
The monitoring whether the flashing process is completed or not, and when the flashing process is completed, configuring the equipment to be tested according to the configuration standard of the system flashing package, including:
monitoring whether the flashing process is finished or not, and detecting whether the flashing process is finished or not and the equipment to be detected are normally connected or not when the flashing process is monitored to be finished;
and when normal connection with the equipment to be tested is detected, configuring the equipment to be tested according to the configuration standard of the system flashing package.
The method further comprises the following steps:
receiving an establishing operation of a function test packet with a preset function in the equipment to be tested, and obtaining the function test packet with the preset function in the equipment to be tested;
and performing function test on the preset functions in the equipment to be tested by using the function test packet.
In an exemplary embodiment, the present disclosure also provides a system test apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the device is connected with a device to be tested, identifying the model of the device to be tested;
monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is finished;
monitoring whether the downloading process is finished or not, and when the downloading process is finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility test package to obtain a test result;
and storing the test result.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A method for system testing, comprising:
when the device is connected with a device to be tested, identifying the model of the device to be tested;
monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is finished;
monitoring whether the downloading process is finished or not, and when the downloading process is finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility test package to obtain a test result;
and storing the test result.
2. The method of claim 1,
the downloading of the system flashing package and the compatibility test package corresponding to the machine type comprises the following steps:
monitoring whether a test command input by a user is received;
and when a test command input by a user is received, downloading a system flashing package and a compatibility test package corresponding to the model.
3. The method of claim 1,
the monitoring whether the downloading process is completed or not, and when the downloading process is monitored to be completed, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility testing package to obtain a testing result, includes:
monitoring whether the downloading process is finished or not, and when the downloading process is finished, refreshing the equipment to be tested by using the system refreshing package;
monitoring whether the flashing process is finished or not, and when the flashing process is finished, configuring the equipment to be tested according to the configuration standard of the system flashing package;
and monitoring whether the configuration process is completed, and when the configuration process is monitored to be completed, testing whether the terminal to be tested is compatible with the system by using the compatibility test packet to obtain a test result.
4. The method of claim 3,
the monitoring whether the flashing process is completed or not, and when the flashing process is completed, configuring the equipment to be tested according to the configuration standard of the system flashing package, including:
monitoring whether the flashing process is finished or not, and acquiring prestored configuration data matched with the system flashing package when the flashing process is finished;
and configuring the equipment to be tested by taking the configuration data as a configuration standard.
5. The method of claim 3,
the monitoring whether the flashing process is completed or not, and when the flashing process is completed, configuring the equipment to be tested according to the configuration standard of the system flashing package, including:
monitoring whether the flashing process is finished or not, and detecting whether the flashing process is finished or not and the equipment to be detected are normally connected or not when the flashing process is monitored to be finished;
and when normal connection with the equipment to be tested is detected, configuring the equipment to be tested according to the configuration standard of the system flashing package.
6. The method of claim 1, further comprising:
receiving an establishing operation of a function test packet with a preset function in the equipment to be tested, and obtaining the function test packet with the preset function in the equipment to be tested;
and performing function test on the preset functions in the equipment to be tested by using the function test packet.
7. A system test apparatus, comprising:
the identification module is used for identifying the model of the equipment to be tested when the equipment to be tested is connected;
the downloading module is used for monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is monitored to be finished;
the first testing module is used for monitoring whether the downloading process is finished or not, and when the downloading process is monitored to be finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility testing package to obtain a testing result;
and the storage module is used for storing the test result.
8. The apparatus of claim 7, wherein the download module comprises:
the monitoring submodule is used for monitoring whether a test command input by a user is received;
and the downloading submodule is used for downloading the system flashing package and the compatibility test package corresponding to the model when receiving the test command input by the user.
9. The apparatus of claim 7, wherein the first testing module comprises:
the system updating sub-module is used for monitoring whether the downloading process is finished or not, and updating the equipment to be tested by using the system updating package when the downloading process is monitored to be finished;
the configuration submodule is used for monitoring whether the flashing process is finished or not, and when the flashing process is finished, the equipment to be tested is configured according to the configuration standard of the system flashing package;
and the testing submodule is used for monitoring whether the configuration process is finished or not, and when the configuration process is monitored to be finished, testing whether the terminal to be tested is compatible with the system or not by using the compatibility testing packet to obtain a testing result.
10. The apparatus of claim 9,
the configuration submodule is also used for monitoring whether the flashing process is finished or not, and acquiring prestored configuration data matched with the system flashing package when the flashing process is finished; and configuring the equipment to be tested by taking the configuration data as a configuration standard.
11. The apparatus of claim 9,
the configuration sub-module is further used for monitoring whether the flashing process is completed or not, and when the flashing process is monitored to be completed, detecting whether the device to be tested is normally connected with the device to be tested or not; and when normal connection with the equipment to be tested is detected, configuring the equipment to be tested according to the configuration standard of the system flashing package.
12. The apparatus of claim 9, further comprising:
the receiving module is used for receiving the establishment operation of the function test packet with the preset function in the equipment to be tested and obtaining the function test packet with the preset function in the equipment to be tested;
and the second test module is used for performing function test on the preset function in the equipment to be tested by using the function test packet.
13. A system test apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when the device is connected with a device to be tested, identifying the model of the device to be tested;
monitoring whether the identification process is finished or not, and downloading a system flashing package and a compatibility test package corresponding to the machine type when the identification process is finished;
monitoring whether the downloading process is finished or not, and when the downloading process is finished, testing whether the terminal to be tested is compatible with the system or not according to the system flashing package and the compatibility test package to obtain a test result;
and storing the test result.
CN201410832142.4A 2014-12-26 2014-12-26 System detection method and device Active CN104536891B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410832142.4A CN104536891B (en) 2014-12-26 2014-12-26 System detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410832142.4A CN104536891B (en) 2014-12-26 2014-12-26 System detection method and device

Publications (2)

Publication Number Publication Date
CN104536891A true CN104536891A (en) 2015-04-22
CN104536891B CN104536891B (en) 2017-07-11

Family

ID=52852421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410832142.4A Active CN104536891B (en) 2014-12-26 2014-12-26 System detection method and device

Country Status (1)

Country Link
CN (1) CN104536891B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100900A (en) * 2015-08-19 2015-11-25 Tcl海外电子(惠州)有限公司 Compatibility test authentication method and device
CN105224453A (en) * 2015-09-18 2016-01-06 惠州Tcl移动通信有限公司 The automatic test approach of system compatibility and device
CN105302722A (en) * 2015-11-03 2016-02-03 腾讯科技(深圳)有限公司 CTS automatic test method and apparatus
CN105528229A (en) * 2015-12-16 2016-04-27 广东欧珀移动通信有限公司 Method and device for improving first starting speed of mobile terminal
CN105553775A (en) * 2015-12-24 2016-05-04 珠海市君天电子科技有限公司 Method and device for acquiring information in test system and test system
CN105760299A (en) * 2016-02-18 2016-07-13 云南电网有限责任公司电力科学研究院 Full-automatic script test method based on intelligent substation
CN106294158A (en) * 2016-08-11 2017-01-04 北京小米移动软件有限公司 Terminal test method, Apparatus and system
WO2019023987A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Testing method and test system based on intelligent terminal
CN109560986A (en) * 2018-11-23 2019-04-02 赛尔通信服务技术股份有限公司 Test method, device and the test macro of things-internet gateway equipment
CN111698499A (en) * 2020-06-30 2020-09-22 深圳创维-Rgb电子有限公司 Automatic connection method based on GMS test, terminal equipment and readable storage medium
CN111919226A (en) * 2018-04-27 2020-11-10 阿里巴巴集团控股有限公司 Apparatus and method for performing machine learning
CN112306883A (en) * 2020-11-05 2021-02-02 北京小米移动软件有限公司 Software testing method, device and medium
CN113778771A (en) * 2021-09-14 2021-12-10 百富计算机技术(深圳)有限公司 Terminal testing method, system and storage medium
CN115495373A (en) * 2022-10-08 2022-12-20 深圳市华曦达科技股份有限公司 Automatic upgrade test method and device based on Android system
CN117849595A (en) * 2024-03-07 2024-04-09 山海芯半导体科技(上海)有限公司 Chip compatibility verification method, device and system and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1682184A (en) * 2002-09-20 2005-10-12 国际商业机器公司 Method and apparatus for automatic updating and testing of software
CN102710832A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Mobile application test method and system
CN103530226A (en) * 2013-09-24 2014-01-22 福建联迪商用设备有限公司 Method and device for testing peripheral compatibility of electronic device
CN104202454A (en) * 2014-09-24 2014-12-10 福建联迪商用设备有限公司 Method and system for automatically executing mobile phone compatibility testing cases

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1682184A (en) * 2002-09-20 2005-10-12 国际商业机器公司 Method and apparatus for automatic updating and testing of software
CN102710832A (en) * 2012-04-21 2012-10-03 北京迈凯互动网络科技有限公司 Mobile application test method and system
CN103530226A (en) * 2013-09-24 2014-01-22 福建联迪商用设备有限公司 Method and device for testing peripheral compatibility of electronic device
CN104202454A (en) * 2014-09-24 2014-12-10 福建联迪商用设备有限公司 Method and system for automatically executing mobile phone compatibility testing cases

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100900B (en) * 2015-08-19 2019-05-14 Tcl海外电子(惠州)有限公司 The method and apparatus of compatibility test certification
CN105100900A (en) * 2015-08-19 2015-11-25 Tcl海外电子(惠州)有限公司 Compatibility test authentication method and device
CN105224453A (en) * 2015-09-18 2016-01-06 惠州Tcl移动通信有限公司 The automatic test approach of system compatibility and device
CN105302722A (en) * 2015-11-03 2016-02-03 腾讯科技(深圳)有限公司 CTS automatic test method and apparatus
CN105528229A (en) * 2015-12-16 2016-04-27 广东欧珀移动通信有限公司 Method and device for improving first starting speed of mobile terminal
CN105528229B (en) * 2015-12-16 2018-09-07 广东欧珀移动通信有限公司 Improve the method and device that mobile terminal first powers on speed
CN105553775A (en) * 2015-12-24 2016-05-04 珠海市君天电子科技有限公司 Method and device for acquiring information in test system and test system
CN105553775B (en) * 2015-12-24 2019-02-15 珠海豹趣科技有限公司 Acquisition methods, device and the test macro of information in a kind of test macro
CN105760299A (en) * 2016-02-18 2016-07-13 云南电网有限责任公司电力科学研究院 Full-automatic script test method based on intelligent substation
CN106294158A (en) * 2016-08-11 2017-01-04 北京小米移动软件有限公司 Terminal test method, Apparatus and system
WO2019023987A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Testing method and test system based on intelligent terminal
CN111919226A (en) * 2018-04-27 2020-11-10 阿里巴巴集团控股有限公司 Apparatus and method for performing machine learning
CN109560986A (en) * 2018-11-23 2019-04-02 赛尔通信服务技术股份有限公司 Test method, device and the test macro of things-internet gateway equipment
CN111698499A (en) * 2020-06-30 2020-09-22 深圳创维-Rgb电子有限公司 Automatic connection method based on GMS test, terminal equipment and readable storage medium
CN112306883A (en) * 2020-11-05 2021-02-02 北京小米移动软件有限公司 Software testing method, device and medium
CN113778771A (en) * 2021-09-14 2021-12-10 百富计算机技术(深圳)有限公司 Terminal testing method, system and storage medium
CN115495373A (en) * 2022-10-08 2022-12-20 深圳市华曦达科技股份有限公司 Automatic upgrade test method and device based on Android system
CN117849595A (en) * 2024-03-07 2024-04-09 山海芯半导体科技(上海)有限公司 Chip compatibility verification method, device and system and electronic equipment
CN117849595B (en) * 2024-03-07 2024-05-07 山海芯半导体科技(上海)有限公司 Chip compatibility verification method, device and system and electronic equipment

Also Published As

Publication number Publication date
CN104536891B (en) 2017-07-11

Similar Documents

Publication Publication Date Title
CN104536891B (en) System detection method and device
CN107329742B (en) Software development kit calling method and device
US10055204B2 (en) Generating communication firmware and a program plug-in based on product information and a program template
US9886264B2 (en) Method and device for upgrading firmware
CN111273899B (en) Code processing method, device, electronic equipment and storage medium
CN104951336A (en) Application program installation method and device
CN105094931A (en) Software upgrading method and device
CN104539476A (en) Data package obtaining method and device
CN111221559A (en) Application updating method and device, storage medium, terminal and server
CN105094904A (en) Application program installation method and device
CN104881304B (en) Resource downloading method and device
CN107562500B (en) Debugging device, method and equipment
CN107423218A (en) Application testing method, device and terminal
CN107463372B (en) Data-driven page updating method and device
CN108874399B (en) Method and device for installing plug-in and terminal
CN109684112B (en) Program file operation method, device, terminal and storage medium
CN106612149B (en) Radio frequency circuit testing method, device and system and mobile terminal
US20170075671A1 (en) Method and apparatus for installing application and smart device using the same
CN112395192A (en) Information processing method and device
CN109542660B (en) Fault processing method and device
CN106354595B (en) Mobile terminal, hardware component state detection method and device
CN110865823A (en) Pre-installed application control method, pre-installed application control device and storage medium
CN112214252B (en) Information expansion method and device and electronic equipment
CN111597106A (en) Point burying management method and device
CN106844074A (en) The method and apparatus of more new application

Legal Events

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