+

WO2019056337A1 - Terminal testing method and device, and terminal - Google Patents

Terminal testing method and device, and terminal Download PDF

Info

Publication number
WO2019056337A1
WO2019056337A1 PCT/CN2017/103091 CN2017103091W WO2019056337A1 WO 2019056337 A1 WO2019056337 A1 WO 2019056337A1 CN 2017103091 W CN2017103091 W CN 2017103091W WO 2019056337 A1 WO2019056337 A1 WO 2019056337A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
terminal
wireless application
thread
item
Prior art date
Application number
PCT/CN2017/103091
Other languages
French (fr)
Chinese (zh)
Inventor
陆君辉
Original Assignee
深圳传音通讯有限公司
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 深圳传音通讯有限公司 filed Critical 深圳传音通讯有限公司
Priority to PCT/CN2017/103091 priority Critical patent/WO2019056337A1/en
Publication of WO2019056337A1 publication Critical patent/WO2019056337A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a terminal testing method, device, and terminal.
  • terminals can integrate multiple functions according to software or hardware technology, which also challenges the testing technology of terminal performance.
  • a smart phone as an example, whether it is a single board stage or a whole machine stage, it is necessary to test various functions of the smart phone. In order to improve the detection efficiency, it has gradually evolved from manual testing to automated testing.
  • the current terminal test method is to use serial test to test each function of the terminal one by one.
  • This serial test method has low test efficiency and is prone to test instability, which greatly increases the test time of the terminal.
  • the invention provides a testing method, device and terminal for a terminal, so as to implement parallel testing of wireless application testing and functional testing items of the terminal, and improve testing efficiency of the terminal.
  • the present invention provides a method for testing a terminal, including:
  • the test instruction is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
  • test thread of the wireless application and/or the test thread of the functional test item are successfully turned on, waiting for receiving the test result returned by the terminal.
  • the method further includes:
  • test status query instruction Sending a test status query instruction to the terminal, where the test status query instruction is used to query a current test status of the wireless application and/or the function test item corresponding to the terminal;
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • the determining, according to the response message, whether the test thread and/or the function test item of the wireless application corresponding to the terminal is enabled including:
  • the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • the determining, according to the test result message, a test status of a corresponding wireless application and/or a function test item in the terminal including:
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test
  • the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • the method further includes:
  • the present invention provides a method for testing a terminal, including:
  • it also includes:
  • test result message is fed back to the test tool according to the test status query instruction.
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • sending a feedback response message to the test tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the function test item is successfully enabled including:
  • the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • the feeding back the test result message to the testing tool according to the test status query instruction including:
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
  • the test result message includes Identifying character information of the wireless application and/or functional test item test failure of the terminal;
  • the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • test result message containing the character information is sent back to the test tool.
  • the method further includes:
  • the present invention provides a test apparatus for a terminal, including:
  • a sending module configured to send a test instruction to the at least one terminal, where the test instruction is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
  • a receiving module configured to receive a response message that is sent by the terminal according to the test instruction
  • a determining module configured to determine, according to the response message, whether a test thread of the wireless application corresponding to the terminal and/or a test thread of the functional test item is successfully opened; if the test thread and/or the functional test item of the wireless application is After the test thread is successfully opened, it waits to receive the test result returned by the terminal.
  • it also includes:
  • a query module configured to send a test status query instruction to the terminal after the thread of the test thread and/or the function test item of the wireless application is successfully opened, where the test status query instruction is used to query the wireless corresponding to the terminal The current test status of the application and/or functional test item;
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • the determining module is specifically configured to:
  • the response message includes character information of a test thread that identifies a test thread and/or a functional test item that the terminal has started to run the wireless application;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • the query module is specifically configured to:
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test
  • the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • the method further includes: an output module, when the test thread of the test thread and/or the function test item of the wireless application fails to be turned on, outputting a wireless application and/or a functional test item test report of the terminal, marking the wireless Application and/or functional test items test failed projects.
  • the present invention provides a terminal, including:
  • a receiving module configured to receive a test instruction sent by the testing tool
  • test module configured to: open a test thread of the corresponding wireless application according to the test instruction, and run a test thread of the functional test item in parallel when the test thread of the wireless application is run in the background;
  • a feedback module configured to send a feedback response message to the testing tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the functional test item is successfully turned on.
  • the receiving module is further configured to: receive a test status query instruction sent by the test tool;
  • the feedback module is further configured to feed back a test result message to the test tool according to the test status query instruction.
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • the feedback module is specifically configured to:
  • the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • the feedback module is further configured to:
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test
  • the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • test result message containing the character information is sent back to the test tool.
  • an output module is further configured to output a wireless application and/or a functional test item test report of the terminal when the test thread of the wireless application and the test thread of the function test item fail to be enabled, and mark the wireless Application and/or functional test items test failed projects.
  • a fifth aspect provides a test system for a terminal, comprising: the device of any one of the third aspect, and the terminal of any one of the fourth aspect; The method of any of the first aspect, wherein the terminal of any of the fourth aspect performs the method of any of the second aspects.
  • the present invention provides a test system for a terminal, including: a memory, configured to store a program;
  • processor for executing the program stored by the memory, the processor for performing the method of any of the first aspects when the program is executed.
  • the present invention provides a test system for a terminal, including: a memory, configured to store a program;
  • processor for executing the program stored by the memory, the processor for performing the method of any of the second aspects when the program is executed.
  • the invention provides a computer readable storage medium comprising: instructions, when executed on a computer, cause the computer to perform the method of any of the first aspects.
  • the present invention provides a computer readable storage medium comprising: instructions, when executed on a computer, cause the computer to perform the method of any of the second aspects.
  • the test method, device and terminal of the terminal provided by the invention provide a test command to the terminal to control the test thread of the corresponding wireless application in the terminal to run in the background of the terminal, and instruct the terminal to run the test thread of the functional test item in parallel . Determining, according to the response message fed back by the terminal, whether the test thread of the corresponding wireless application of the terminal and/or the test thread of the functional test item are successfully turned on, waiting after the test thread of the wireless application and the test thread of the functional test item are successfully turned on. The final test result returned by the terminal. Thereby, the parallel testing of the wireless application and the functional test item of the terminal is realized, the test time of the terminal is greatly reduced, and the testing efficiency of the terminal is improved.
  • FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention
  • FIG. 2 is a schematic flowchart of a serial test mode in application scenario 1;
  • FIG. 3 is a schematic flowchart of application scenario 1 using a parallel test mode
  • FIG. 4 is a schematic flowchart of a testing method of a terminal according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic flowchart diagram of a testing method of a terminal according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic flowchart diagram of a testing method of a terminal according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic flowchart of a method for testing a terminal according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 1 of the present invention.
  • FIG. 9 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 2 of the present invention.
  • FIG. 10 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 3 of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal according to Embodiment 1 of the present invention.
  • FIG. 12 is a schematic structural diagram of a terminal according to Embodiment 2 of the present invention.
  • FIG. 13 is a schematic structural diagram of a test system of a terminal according to Embodiment 1 of the present invention.
  • FIG. 14 is a schematic structural diagram of a test system of a terminal according to Embodiment 2 of the present invention.
  • a personal computer (PC) test tool refers to a controller that establishes a connection with at least one terminal, is used to control a wireless application in the terminal for background testing, and acquires a wireless application in the terminal. Or test results of functional test items running in parallel.
  • the terminal refers to a device that provides voice and/or data connectivity to a user, such as a handheld device with wireless and/or wired connection functions, an in-vehicle device, and the like. Common terminals include: mobile phones, tablets, laptops, PDAs, mobile Internet devices, wearable devices, such as smart watches, smart bracelets, pedometers, and so on.
  • Wireless Fidelity a short distance applied in office homes
  • Wireless communication technology is a wireless network communication technology based on the IEEE802.11 series of standards.
  • Bluetooth is a wireless technology that supports short-range communication (usually within 10m) of the device. It can exchange wireless information between devices including mobile phones, wireless headsets, laptops, and mobile phones. Bluetooth uses a decentralized network structure and fast frequency hopping and short packet technology to support point-to-point and point-to-multipoint communication, working in the global 2.4GHz band.
  • GPS Global Positioning System
  • FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention
  • FIG. 2 is a schematic flowchart of a scenario 1 using a serial test mode
  • FIG. 3 is a schematic flowchart of a scenario using a parallel test mode.
  • a test tool either a test server or a computer with test software
  • Existing wireless phones are generally integrated with multiple wireless applications, such as Bluetooth, WIFI modules, GPS modules, and the like.
  • the traditional test method is to sort these wireless applications with the Subscriber Identification Module (SIM) test and other test items (such as memory test, resolution test, etc.) of the smart phone.
  • SIM Subscriber Identification Module
  • Other test items such as memory test, resolution test, etc.
  • the results of the sorting test the various functions of the smartphone in sequence.
  • This serial test method has low test efficiency and long test time.
  • the wireless application testing method of the terminal aims to solve the above technical problems of the prior art.
  • FIG. 4 is a schematic flowchart of a method for testing a terminal according to Embodiment 1 of the present invention. As shown in FIG. 4, the method in this embodiment may include:
  • the test tool is sent to the at least one terminal by the test tool, where the test command is used to instruct the terminal to run the test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel.
  • the terminal runs the test thread of the wireless application in the background after receiving the test command, and can also run the test of other functional test items. For example, when testing Bluetooth, WIFI module, GPS module, test other functional test items in sequence.
  • test tool in this embodiment may simultaneously send multiple test instructions to the terminal, and each test command may be for the same wireless application or a different wireless application; the same may also be for the same test function item or Different test function items.
  • the test instruction in this embodiment does not limit the execution order of the wireless application test thread and the function item test thread. For example, when running a wireless application test thread in the background of the terminal, multiple test function items can be executed sequentially or in parallel at the same time. When any of the wireless application test threads of the terminal fails to run, the terminal may retest the wireless application according to the received test command, or skip the wireless application to continue testing other wireless applications. According to the actual memory and processor configuration of the terminal, test threads of multiple wireless applications can also be run simultaneously in the background of the terminal according to the test instruction.
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • the terminal after receiving the test command sent by the test tool, the terminal sends a response message to the test tool according to the running state of the current test thread of the terminal.
  • the response message may include whether the test thread of the corresponding wireless application and/or the test thread of the functional test item enable successful character information.
  • step S103 Determine, according to the response message, whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully enabled; if yes, execute step S104.
  • the test tool extracts, from the received response message, information indicating whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully turned on.
  • the response message includes a test thread that identifies that the terminal has started running the wireless application, and/or Character information of the test thread of the functional test item;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • test thread of the wireless application and/or the functional test item in the terminal After determining that the test thread of the wireless application and/or the functional test item in the terminal is successfully turned on, the test thread of the wireless application and/or the functional test item waiting for the terminal is finished running. And receiving tests in wireless applications and/or functional tests The test result returned by the terminal after the test thread finishes running.
  • the method may further include:
  • a wireless application and/or a functional test item test report of the output terminal marking a project in which the wireless application and/or the functional test item test fails.
  • the wireless application and/or the functional test item that fails the test is accurately recorded, thereby facilitating the engineer to check the test failure and failing the test.
  • the project was retested.
  • a test thread is sent to the terminal to control a test thread of the corresponding wireless application in the terminal to run in the background of the terminal, and the terminal is instructed to run the test thread of the functional test item in parallel. Determining, according to the response message fed back by the terminal, whether the test thread of the corresponding wireless application of the terminal and/or the test thread of the functional test item are successfully turned on, waiting after the test thread of the wireless application and the test thread of the functional test item are successfully turned on. The final test result returned by the terminal.
  • the parallel testing of the wireless application and the functional test item of the terminal is realized, the test time of the terminal is greatly reduced, and the testing efficiency of the terminal is improved.
  • FIG. 5 is a schematic flowchart of a method for testing a terminal according to Embodiment 2 of the present invention. As shown in FIG. 5, the method in this embodiment may further include:
  • the test tool may send a test status query instruction to the terminal actively, whether the response message of the feedback is received by the terminal, and the test status query command is used to query the wireless application and/or the function test item corresponding to the terminal. Current test status.
  • the receiving terminal queries the test result message fed back according to the test status.
  • the terminal after receiving the test status query instruction sent by the test tool, the terminal feeds back the corresponding test result message to the test tool.
  • the test result message includes character information that identifies a test status of the corresponding wireless application and/or the functional test item.
  • S203 Determine, according to the test result message, a test status of a corresponding wireless application and/or a functional test item in the terminal.
  • the test tool obtains the test status of the corresponding wireless application and/or function test item in the terminal according to the test result message fed back by the terminal.
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test
  • the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • the test status of the current wireless application and/or function test item of the terminal is obtained by sending a test status query instruction to the terminal. Therefore, the test progress of the wireless application and/or the functional test item in the terminal is known in real time, which provides a reference for the engineer to formulate and adjust the test plan of the terminal, so that the engineer can optimize the test plan and improve the test efficiency of the terminal.
  • FIG. 6 is a schematic flowchart of a method for testing a terminal according to Embodiment 3 of the present invention. As shown in FIG. 6, the method in this embodiment may include:
  • the terminal receives the test command sent by the test tool, and the test command is used to instruct the terminal to run the test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel.
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • the terminal runs the test thread of the wireless application in the background after receiving the test instruction, and can also run the test of other functional test items. For example, when testing Bluetooth, WIFI module, GPS module, test other functional test items in sequence.
  • the terminal may send a corresponding response message to the test tool when the test thread of the wireless application and/or the test thread of the functional test item is successfully opened or failed.
  • the terminal may also reverse the test result of the current wireless application and/or function test item when receiving the test status query instruction sent by the test tool. Feed the test tool.
  • the response message includes a test thread that identifies that the terminal has started running the wireless application, and/or Character information of the test thread of the functional test item;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • the method further includes: outputting the wireless application and/or function test item of the terminal. Test report that marks items that failed wireless application and/or functional test item testing.
  • the terminal receives a test command sent by the test tool, where the test command is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel.
  • FIG. 7 is a schematic flowchart of a method for testing a terminal according to Embodiment 4 of the present invention. As shown in FIG. 7, the method in this embodiment may include:
  • the terminal receives a test status query instruction sent by the test tool, where the test status query instruction may be an instruction for a current test status of all wireless applications or all test function items; or may be for any or any of a plurality of wireless The instruction of the current test state of the application (which can also be a test function item).
  • test result message After receiving the test status query instruction sent by the test tool, the corresponding test result message is fed back to the test tool.
  • the test result message may be character information including a current test status of the wireless application or the test function item.
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test
  • the test result message is Character information including that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • test result message containing the character information is sent back to the test tool.
  • the terminal feeds back the current wireless application and/or functional test item test status to the test tool according to the test status query command sent by the test tool. Therefore, the test progress of the wireless application and/or the functional test item in the terminal is known in real time, which provides a reference for the engineer to formulate and adjust the test plan of the terminal, so that the engineer can optimize the test plan and improve the test efficiency of the terminal.
  • FIG. 8 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 1 of the present invention. As shown in FIG. 8, the apparatus in this embodiment may include:
  • the sending module 10 is configured to send a test command to the at least one terminal, where the test command is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
  • the receiving module 20 is configured to receive a response message that is sent by the terminal according to the test instruction
  • the determining module 30 is configured to determine, according to the response message, whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully turned on; if the test thread and/or the functional test item of the wireless application is The test thread is successfully opened, and then waits to receive the test result returned by the terminal.
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • the determining module 30 is specifically configured to:
  • the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • This embodiment may perform the technical solution in the method shown in FIG. 4 or FIG. 5 above, and implement the process and technology. The effect is similar to the above method and will not be described here.
  • FIG. 9 is a schematic structural diagram of a testing device for a terminal according to Embodiment 2 of the present invention. As shown in FIG. 9, the device in this embodiment may further include:
  • the querying module 40 is configured to send a test status query instruction to the terminal after the thread of the test thread and/or the function test item of the wireless application is successfully opened, where the test status query instruction is used to query the corresponding terminal Current test status of wireless applications and/or functional test items;
  • the query module 40 is specifically configured to:
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test
  • the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • This embodiment can perform the technical solutions in the method shown in FIG. 4 or FIG. 5, and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 3 of the present invention. As shown in FIG. 10, on the basis of the apparatus shown in FIG. 9, the apparatus in this embodiment may further include:
  • the output module 50 is configured to output a wireless application and/or a functional test item test report of the terminal, and mark the wireless application and/or function test when the test thread of the wireless application and the test thread of the function test item fails to be turned on. Item failed to test the project.
  • This embodiment can perform the technical solutions in the method shown in FIG. 4 or FIG. 5, and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of a terminal according to Embodiment 1 of the present invention, as shown in FIG.
  • the terminal can include:
  • the receiving module 61 is configured to receive a test instruction sent by the testing tool
  • the test module 62 is configured to: open a test thread of the corresponding wireless application according to the test instruction, and run a test thread of the functional test item in parallel when the test thread of the wireless application is run in the background;
  • the feedback module 63 is configured to send a feedback response message to the test tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the functional test item is successfully turned on.
  • the receiving module 61 is further configured to: receive a test status query instruction sent by the test tool;
  • the feedback module is further configured to feed back a test result message to the test tool according to the test status query instruction.
  • the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  • the feedback module 63 is specifically configured to:
  • the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
  • the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information
  • the feedback module 63 is further configured to:
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
  • the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test
  • the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
  • the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
  • test result message containing the character information is sent back to the test tool.
  • FIG. 12 is a schematic structural diagram of a terminal according to Embodiment 2 of the present invention. As shown in FIG. 12, the terminal in this embodiment may further include:
  • the output module 64 is configured to output a wireless application and/or a functional test item test report of the terminal, mark the wireless application and/or function, when the test thread of the wireless application and the test thread of the function test item fail to be turned on. The test item failed to test the project.
  • FIG. 13 is a schematic structural diagram of a test system of a terminal according to Embodiment 1 of the present invention. As shown in FIG. 13, the system in this embodiment may include:
  • a memory 71 configured to store a program
  • the processor 72 is configured to execute a program stored in the memory.
  • the processor 72 is configured to execute the technical solution in the method shown in FIG. 4 or FIG. 5, and the implementation process and technical effects are similar to the foregoing method. I will not repeat them here.
  • FIG. 14 is a schematic structural diagram of a test system of a terminal according to Embodiment 2 of the present invention. As shown in FIG. 14, the system in this embodiment may include:
  • a memory 81 for storing a program
  • the processor 82 is configured to execute a program stored in the memory.
  • the processor 72 is configured to execute the technical solution in the method shown in FIG. 6 or FIG. 7 , and the implementation process and technical effects are similar to the foregoing method. I will not repeat them here.
  • the embodiment of the present application further provides a computer readable storage medium, where computer execution instructions are stored, when the at least one processor of the user equipment executes the computer to execute an instruction, the user equipment performs the foregoing various possibilities.
  • the computer readable medium comprises a computer storage medium and a communication medium, wherein the communication medium comprises any medium that facilitates transfer of the computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium may be located in an application specific integrated circuit (ASIC). Additionally, the application specific integrated circuit can be located in the user equipment.
  • ASIC application specific integrated circuit
  • the processor and the storage medium may also reside as discrete components in the communication device.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

Provided in the present invention are a terminal testing method and device, and terminal. The method comprises: sending to at least one terminal a testing instruction configured to instruct the terminal to run a testing thread of a corresponding wireless application in the background, and to instruct the terminal to concurrently run a testing thread of function testing items; receiving response information fed back by the terminal according to the testing instruction; determining, according to the response information, whether the testing thread of the corresponding wireless application of the terminal and/or the testing thread of the function testing items is successfully initiated; and if so, then waiting to receive a test result returned by the terminal. In this way, the present invention enables concurrent testing of both the wireless application and function testing items of the terminal, thus improving testing efficiency of the terminal.

Description

终端的测试方法、装置及终端Terminal test method, device and terminal 技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种终端的测试方法、装置及终端。The present invention relates to the field of terminal technologies, and in particular, to a terminal testing method, device, and terminal.
背景技术Background technique
随着终端技术的发展,终端中能够根据软件或者硬件技术集成多种功能,这也对终端性能的测试技术提出了挑战。以智能手机为例,无论是单板阶段或者整机阶段,都需要对智能手机的各个功能进行测试。为了提高检测效率,目前已经逐步从手动测试方式向自动化测试方向发展。With the development of terminal technology, terminals can integrate multiple functions according to software or hardware technology, which also challenges the testing technology of terminal performance. Taking a smart phone as an example, whether it is a single board stage or a whole machine stage, it is necessary to test various functions of the smart phone. In order to improve the detection efficiency, it has gradually evolved from manual testing to automated testing.
但是,加载在终端中的无线应用功能需要进行定性测试,以保证终端的性能,其测试时间长,容易受搜网速度和环境的影响。目前的终端测试方法是采用串行测试,逐次对终端的各个功能进行测试。However, the wireless application function loaded in the terminal needs to be qualitatively tested to ensure the performance of the terminal, which has a long test time and is easily affected by the search speed and environment. The current terminal test method is to use serial test to test each function of the terminal one by one.
这种串行测试方法,测试效率低,容易出现测试不稳定的问题,极大地增加了终端的测试时间。This serial test method has low test efficiency and is prone to test instability, which greatly increases the test time of the terminal.
发明内容Summary of the invention
本发明提供一种终端的测试方法、装置及终端,以实现终端的无线应用测试与功能测试项的并行测试,提高终端的测试效率。The invention provides a testing method, device and terminal for a terminal, so as to implement parallel testing of wireless application testing and functional testing items of the terminal, and improve testing efficiency of the terminal.
第一方面,本发明提供一种终端的测试方法,包括:In a first aspect, the present invention provides a method for testing a terminal, including:
向至少一个终端发送测试指令,所述测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程;Sending a test instruction to the at least one terminal, the test instruction is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
接收所述终端根据所述测试指令反馈的响应消息;Receiving a response message fed back by the terminal according to the test instruction;
根据所述响应消息,判断所述终端对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功;Determining, according to the response message, whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully turned on;
若所述无线应用的测试线程和/或功能测试项的测试线程开启成功,则等待接收所述终端返回的测试结果。If the test thread of the wireless application and/or the test thread of the functional test item are successfully turned on, waiting for receiving the test result returned by the terminal.
可选地,在所述无线应用的测试线程和/或功能测试项的线程开启成功之后,还包括: Optionally, after the thread of the test thread and/or the function test item of the wireless application is successfully opened, the method further includes:
向所述终端发送测试状态查询指令,所述测试状态查询指令用于查询所述终端对应的无线应用和/或功能测试项的当前测试状态;Sending a test status query instruction to the terminal, where the test status query instruction is used to query a current test status of the wireless application and/or the function test item corresponding to the terminal;
接收所述终端根据所述测试状态查询指令反馈的测试结果消息;Receiving, by the terminal, a test result message fed back according to the test status query instruction;
根据所述测试结果消息,确定所述终端中对应的无线应用和/或功能测试项的测试状态。Determining, according to the test result message, a test status of a corresponding wireless application and/or a functional test item in the terminal.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
可选地,所述根据所述响应消息,判断所述终端对应的无线应用的测试线程和/或功能测试项的线程是否开启,包括:Optionally, the determining, according to the response message, whether the test thread and/or the function test item of the wireless application corresponding to the terminal is enabled, including:
当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;When the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
根据所述响应消息中包含的字符信息,确定所述终端是否已开始进行无线应用和/或功能测试项的测试。Determining whether the terminal has started testing the wireless application and/or the functional test item according to the character information included in the response message.
可选地,所述根据所述测试结果消息,确定所述终端中对应的无线应用和/或功能测试项的测试状态,包括:Optionally, the determining, according to the test result message, a test status of a corresponding wireless application and/or a function test item in the terminal, including:
当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;When the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
根据所述测试结果消息中包含的字符信息,确定所述终端的无线应用和/或功能测试项的测试状态。 Determining a test status of the wireless application and/or the functional test item of the terminal according to the character information included in the test result message.
可选地,若所述无线应用的测试线程和/或功能测试项的测试线程开启失败,还包括:Optionally, if the test thread of the wireless application and the test thread of the functional test item fail to be enabled, the method further includes:
输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。Outputting a wireless application and/or functional test item test report of the terminal, marking a project in which the wireless application and/or the functional test item test fails.
第二方面,本发明提供一种终端的测试方法,包括:In a second aspect, the present invention provides a method for testing a terminal, including:
接收测试工具发送的测试指令;Receiving test instructions sent by the test tool;
根据所述测试指令,开启对应的无线应用的测试线程,在后台运行所述无线应用的测试线程时,并行运行功能测试项的测试线程;Determining, according to the test instruction, a test thread of the corresponding wireless application, and running the test thread of the functional test item in parallel when running the test thread of the wireless application in the background;
向所述测试工具发送反馈的响应消息,所述响应消息中包含有所述无线应用的测试线程/或功能测试项的测试线程是否开启成功的信息。Sending a feedback response message to the test tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the functional test item is successfully turned on.
可选地,还包括:Optionally, it also includes:
接收所述测试工具发送的测试状态查询指令;Receiving a test status query instruction sent by the test tool;
根据所述测试状态查询指令向所述测试工具反馈测试结果消息。The test result message is fed back to the test tool according to the test status query instruction.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
可选地,向所述测试工具发送反馈的响应消息,所述响应消息中包含有所述无线应用的测试线程/或功能测试项的测试线程是否开启成功的信息,包括:Optionally, sending a feedback response message to the test tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the function test item is successfully enabled, including:
当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;When the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
向所述测试工具发送反馈包含有字符信息的响应消息。Sending a response message containing the character information to the test tool.
可选地,所述根据所述测试状态查询指令向所述测试工具反馈测试结果消息,包括:Optionally, the feeding back the test result message to the testing tool according to the test status query instruction, including:
当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;When the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有 标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the wireless application and/or functional test item test of the terminal fails, the test result message includes Identifying character information of the wireless application and/or functional test item test failure of the terminal;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
向所述测试工具发送反馈包含有字符信息的测试结果消息。A test result message containing the character information is sent back to the test tool.
可选地,若所述无线应用的测试线程和/或功能测试项的测试线程开启失败,还包括:Optionally, if the test thread of the wireless application and the test thread of the functional test item fail to be enabled, the method further includes:
输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。Outputting a wireless application and/or functional test item test report of the terminal, marking a project in which the wireless application and/or the functional test item test fails.
第三方面,本发明提供一种终端的测试装置,包括:In a third aspect, the present invention provides a test apparatus for a terminal, including:
发送模块,用于向至少一个终端发送测试指令,所述测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程;a sending module, configured to send a test instruction to the at least one terminal, where the test instruction is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
接收模块,用于接收所述终端根据所述测试指令反馈的响应消息;a receiving module, configured to receive a response message that is sent by the terminal according to the test instruction;
确定模块,用于根据所述响应消息,判断所述终端对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功;若所述无线应用的测试线程和/或功能测试项的测试线程开启成功,则等待接收所述终端返回的测试结果。a determining module, configured to determine, according to the response message, whether a test thread of the wireless application corresponding to the terminal and/or a test thread of the functional test item is successfully opened; if the test thread and/or the functional test item of the wireless application is After the test thread is successfully opened, it waits to receive the test result returned by the terminal.
可选地,还包括:Optionally, it also includes:
查询模块,用于在所述无线应用的测试线程和/或功能测试项的线程开启成功之后,向所述终端发送测试状态查询指令,所述测试状态查询指令用于查询所述终端对应的无线应用和/或功能测试项的当前测试状态;a query module, configured to send a test status query instruction to the terminal after the thread of the test thread and/or the function test item of the wireless application is successfully opened, where the test status query instruction is used to query the wireless corresponding to the terminal The current test status of the application and/or functional test item;
接收所述终端根据所述测试状态查询指令反馈的测试结果消息;Receiving, by the terminal, a test result message fed back according to the test status query instruction;
根据所述测试结果消息,确定所述终端中对应的无线应用和/或功能测试项的测试状态。Determining, according to the test result message, a test status of a corresponding wireless application and/or a functional test item in the terminal.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
可选地,所述确定模块,具体用于:Optionally, the determining module is specifically configured to:
当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时, 所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;When the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item are successfully turned on, The response message includes character information of a test thread that identifies a test thread and/or a functional test item that the terminal has started to run the wireless application;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
根据所述响应消息中包含的字符信息,确定所述终端是否已开始进行无线应用和/或功能测试项的测试。Determining whether the terminal has started testing the wireless application and/or the functional test item according to the character information included in the response message.
可选地,所述查询模块,具体用于:Optionally, the query module is specifically configured to:
当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;When the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
根据所述测试结果消息中包含的字符信息,确定所述终端的无线应用和/或功能测试项的测试状态。Determining a test status of the wireless application and/or the functional test item of the terminal according to the character information included in the test result message.
可选地,还包括:输出模块,用于所述无线应用的测试线程和/或功能测试项的测试线程开启失败时,输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。Optionally, the method further includes: an output module, when the test thread of the test thread and/or the function test item of the wireless application fails to be turned on, outputting a wireless application and/or a functional test item test report of the terminal, marking the wireless Application and/or functional test items test failed projects.
第四方面,本发明提供一种终端,包括:In a fourth aspect, the present invention provides a terminal, including:
接收模块,用于接收测试工具发送的测试指令;;a receiving module, configured to receive a test instruction sent by the testing tool;
测试模块,用于根据所述测试指令,开启对应的无线应用的测试线程,在后台运行所述无线应用的测试线程时,并行运行功能测试项的测试线程;a test module, configured to: open a test thread of the corresponding wireless application according to the test instruction, and run a test thread of the functional test item in parallel when the test thread of the wireless application is run in the background;
反馈模块,用于向所述测试工具发送反馈的响应消息,所述响应消息中包含有所述无线应用的测试线程/或功能测试项的测试线程是否开启成功的信息。And a feedback module, configured to send a feedback response message to the testing tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the functional test item is successfully turned on.
可选地,所述接收模块,还用于:接收所述测试工具发送的测试状态查询指令;Optionally, the receiving module is further configured to: receive a test status query instruction sent by the test tool;
所述反馈模块,还用于根据所述测试状态查询指令向所述测试工具反馈测试结果消息。 The feedback module is further configured to feed back a test result message to the test tool according to the test status query instruction.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
可选地,所述反馈模块,具体用于:Optionally, the feedback module is specifically configured to:
当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;When the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
向所述测试工具发送反馈包含有字符信息的响应消息。Sending a response message containing the character information to the test tool.
可选地,所述反馈模块,还用于:Optionally, the feedback module is further configured to:
当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;When the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
向所述测试工具发送反馈包含有字符信息的测试结果消息。A test result message containing the character information is sent back to the test tool.
可选地,还包括输出模块,用于在所述无线应用的测试线程和/或功能测试项的测试线程开启失败时,输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。Optionally, an output module is further configured to output a wireless application and/or a functional test item test report of the terminal when the test thread of the wireless application and the test thread of the function test item fail to be enabled, and mark the wireless Application and/or functional test items test failed projects.
第五方面,本发明提供一种终端的测试系统,包括:第三方面中的任一所述装置和第四方面中的任一所述终端;使得第三方面中的任一所述装置执行第一方面中任一所述的方法,使得第四方面中的任一所述终端执行第二方面中任一所述方法。A fifth aspect, the present invention provides a test system for a terminal, comprising: the device of any one of the third aspect, and the terminal of any one of the fourth aspect; The method of any of the first aspect, wherein the terminal of any of the fourth aspect performs the method of any of the second aspects.
第六方面,本发明提供一种终端的测试系统,包括:存储器,用于存储程序;In a sixth aspect, the present invention provides a test system for a terminal, including: a memory, configured to store a program;
处理器,用于执行所述存储器存储的所述程序,当所述程序被执行时,所述处理器用于执行第一方面中任一所述的方法。 a processor for executing the program stored by the memory, the processor for performing the method of any of the first aspects when the program is executed.
第七方面,本发明提供一种终端的测试系统,包括:存储器,用于存储程序;In a seventh aspect, the present invention provides a test system for a terminal, including: a memory, configured to store a program;
处理器,用于执行所述存储器存储的所述程序,当所述程序被执行时,所述处理器用于执行第二方面中任一所述的方法。a processor for executing the program stored by the memory, the processor for performing the method of any of the second aspects when the program is executed.
第八方面,本发明提供一种计算机可读存储介质,包括:指令,当其在计算机上运行时,使得计算机执行第一方面中任一所述的方法。In an eighth aspect, the invention provides a computer readable storage medium comprising: instructions, when executed on a computer, cause the computer to perform the method of any of the first aspects.
第九方面,本发明提供一种计算机可读存储介质,包括:指令,当其在计算机上运行时,使得计算机执行第二方面中任一所述的方法。In a ninth aspect, the present invention provides a computer readable storage medium comprising: instructions, when executed on a computer, cause the computer to perform the method of any of the second aspects.
本发明提供的终端的测试方法、装置及终端,通过向终端发送测试指令以控制终端中对应的无线应用的测试线程在该终端的后台运行,并指示所述终端并行运行功能测试项的测试线程。根据终端反馈的响应消息判断终端的对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功,在所述无线应用的测试线程和/或功能测试项的测试线程开启成功之后等待终端返回的最终测试结果。从而实现了终端的无线应用与功能测试项的并行测试,极大地减少了终端的测试时间,提高了终端的测试效率。The test method, device and terminal of the terminal provided by the invention provide a test command to the terminal to control the test thread of the corresponding wireless application in the terminal to run in the background of the terminal, and instruct the terminal to run the test thread of the functional test item in parallel . Determining, according to the response message fed back by the terminal, whether the test thread of the corresponding wireless application of the terminal and/or the test thread of the functional test item are successfully turned on, waiting after the test thread of the wireless application and the test thread of the functional test item are successfully turned on. The final test result returned by the terminal. Thereby, the parallel testing of the wireless application and the functional test item of the terminal is realized, the test time of the terminal is greatly reduced, and the testing efficiency of the terminal is improved.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明提供的应用场景一的示意图;FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention;
图2为应用场景一采用串行测试方式的流程示意图;FIG. 2 is a schematic flowchart of a serial test mode in application scenario 1;
图3为应用场景一采用并行测试方式的流程示意图;FIG. 3 is a schematic flowchart of application scenario 1 using a parallel test mode;
图4为本发明实施例一提供的终端的测试方法的流程示意图;4 is a schematic flowchart of a testing method of a terminal according to Embodiment 1 of the present invention;
图5为本发明实施例二提供的终端的测试方法的流程示意图;FIG. 5 is a schematic flowchart diagram of a testing method of a terminal according to Embodiment 2 of the present invention;
图6为本发明实施例三提供的终端的测试方法的流程示意图;FIG. 6 is a schematic flowchart diagram of a testing method of a terminal according to Embodiment 3 of the present invention;
图7为本发明实施例四提供的终端的测试方法的流程示意图;FIG. 7 is a schematic flowchart of a method for testing a terminal according to Embodiment 4 of the present invention;
图8为本发明实施例一提供的终端的测试装置的结构示意图;FIG. 8 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 1 of the present invention; FIG.
图9为本发明实施例二提供的终端的测试装置的结构示意图;FIG. 9 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 2 of the present invention; FIG.
图10为本发明实施例三提供的终端的测试装置的结构示意图;FIG. 10 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 3 of the present invention; FIG.
图11为本发明实施例一提供的终端的结构示意图; FIG. 11 is a schematic structural diagram of a terminal according to Embodiment 1 of the present invention;
图12为本发明实施例二提供的终端的结构示意图;FIG. 12 is a schematic structural diagram of a terminal according to Embodiment 2 of the present invention;
图13为本发明实施例一提供的终端的测试系统的结构示意图;FIG. 13 is a schematic structural diagram of a test system of a terminal according to Embodiment 1 of the present invention; FIG.
图14为本发明实施例二提供的终端的测试系统的结构示意图。FIG. 14 is a schematic structural diagram of a test system of a terminal according to Embodiment 2 of the present invention.
通过上述附图,已示出本公开明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本领域技术人员说明本公开的概念。The embodiments of the present disclosure have been shown by the above-described drawings, which will be described in more detail later. The drawings and the text are not intended to limit the scope of the present disclosure in any way, and the description of the present disclosure will be described by those skilled in the art by reference to the specific embodiments.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present invention and the above figures are used to distinguish similar objects without being used for Describe a specific order or order. It is to be understood that the data so used may be interchanged as appropriate, such that the embodiments of the invention described herein can be implemented, for example, in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some of the terms in the present application will be explained to be understood by those skilled in the art.
1)个人电脑(personal computer,PC)测试工具,本发明中简称测试工具,是指与至少一个终端建立连接的控制器,用于控制终端中的无线应用进行后台测试,并获取终端中无线应用或者并行运行的功能测试项的测试结果。其中,终端是指:向用户提供语音和/或数据连通性的设备,例如具有无线和/或有线连接功能的手持设备、车载设备等。常见的终端包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备、可穿戴设备,例如智能手表、智能手环、计步器等。1) A personal computer (PC) test tool, referred to as a test tool in the present invention, refers to a controller that establishes a connection with at least one terminal, is used to control a wireless application in the terminal for background testing, and acquires a wireless application in the terminal. Or test results of functional test items running in parallel. The terminal refers to a device that provides voice and/or data connectivity to a user, such as a handheld device with wireless and/or wired connection functions, an in-vehicle device, and the like. Common terminals include: mobile phones, tablets, laptops, PDAs, mobile Internet devices, wearable devices, such as smart watches, smart bracelets, pedometers, and so on.
2)无线保真(Wireless Fidelity,WIFI),属于在办公室家庭中应用的一种短距离 无线通信技术,是一个基于IEEE802.11系列标准的无线网络通信技术。2) Wireless Fidelity (WIFI), a short distance applied in office homes Wireless communication technology is a wireless network communication technology based on the IEEE802.11 series of standards.
3)蓝牙(Bluetooth,BT),是一种支持设备短距离通信(一般10m内)的无线技术,能在包括移动电话、无线耳机、笔记本电脑、手机等设备之间进行无线信息交换。蓝牙采用分散式网络结构以及快跳频和短包技术,支持点对点及点对多点通信,工作在全球通用的2.4GHz频段。3) Bluetooth (BT) is a wireless technology that supports short-range communication (usually within 10m) of the device. It can exchange wireless information between devices including mobile phones, wireless headsets, laptops, and mobile phones. Bluetooth uses a decentralized network structure and fast frequency hopping and short packet technology to support point-to-point and point-to-multipoint communication, working in the global 2.4GHz band.
4)全球定位系统(Global Positioning System,GPS),是利用卫星进行全球范围内实时导航定位的系统。4) Global Positioning System (GPS) is a system that uses satellites to perform real-time navigation and positioning on a global scale.
本发明提供的终端的测试方法,可以对平板电脑、智能手机、智能手表等终端中的无线应用和/功能测试项进行性能测试。图1为本发明提供的应用场景一的示意图,图2为应用场景一采用串行测试方式的流程示意图,图3为应用场景一采用并行测试方式的流程示意图。以智能手机为例(参见图1),图1中通过测试工具(可以是测试服务器或者是按照有测试软件的电脑)对多个智能手机进行测试。现有的智能手机中一般集成有多个无线应用,例如蓝牙、WIFI模块、GPS模块等。如图2所示,传统的测试方式是将这些无线应用与智能手机的用户身份识别卡(Subscriber Identification Module,SIM)测试、其他测试项(例如内存测试、分辨率测试等等)进行排序,按照排序的结果顺次测试智能手机的各个功能。这种串行测试的方式,测试效率低,测试时间长。The test method of the terminal provided by the invention can perform performance test on wireless application and/or functional test items in terminals such as tablet computers, smart phones and smart watches. FIG. 1 is a schematic diagram of an application scenario 1 provided by the present invention, FIG. 2 is a schematic flowchart of a scenario 1 using a serial test mode, and FIG. 3 is a schematic flowchart of a scenario using a parallel test mode. Taking a smartphone as an example (see Figure 1), Figure 1 tests multiple smartphones through a test tool (either a test server or a computer with test software). Existing wireless phones are generally integrated with multiple wireless applications, such as Bluetooth, WIFI modules, GPS modules, and the like. As shown in Figure 2, the traditional test method is to sort these wireless applications with the Subscriber Identification Module (SIM) test and other test items (such as memory test, resolution test, etc.) of the smart phone. The results of the sorting test the various functions of the smartphone in sequence. This serial test method has low test efficiency and long test time.
本发明提供的终端的无线应用测试方法,旨在解决现有技术的如上技术问题。The wireless application testing method of the terminal provided by the present invention aims to solve the above technical problems of the prior art.
下面以具体地实施例对本发明的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。下面将结合附图,对本发明的实施例进行描述。The technical solutions of the present invention and how the technical solutions of the present application solve the above technical problems will be described in detail below with reference to specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
图4为本发明实施例一提供的终端的测试方法的流程示意图,如图4所示,本实施例中的方法可以包括:FIG. 4 is a schematic flowchart of a method for testing a terminal according to Embodiment 1 of the present invention. As shown in FIG. 4, the method in this embodiment may include:
S101、向至少一个终端发送测试指令。S101. Send a test instruction to at least one terminal.
本实施例中,通过测试工具向至少一个终端发送测试指令,该测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程。参见图3,终端在接收到测试指令之后在后台运行无线应用的测试线程,同时还可以运行其他功能测试项的测试。例如,在测试蓝牙、WIFI模块、GPS模块时,顺次测试其他功能测试项。 In this embodiment, the test tool is sent to the at least one terminal by the test tool, where the test command is used to instruct the terminal to run the test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel. Referring to FIG. 3, the terminal runs the test thread of the wireless application in the background after receiving the test command, and can also run the test of other functional test items. For example, when testing Bluetooth, WIFI module, GPS module, test other functional test items in sequence.
需要说明的是,本实施例中的测试工具可以同时向终端发送多个测试指令,每个测试指令可以针对相同的无线应用或者不同的无线应用;同样的也可以是针对相同的测试功能项或者不同的测试功能项。且本实施例中的测试指令不限定无线应用测试线程和功能项测试线程的执行顺序。例如,在终端的后台运行无线应用测试线程时,可以同时顺次或者并行执行多个测试功能项。当终端的任一个无线应用测试线程运行失败时,终端可以根据接收到的测试指令对该无线应用进行重测,或者跳过该无线应用继续测试其他的无线应用。根据终端实际的内存、处理器配置,也可以根据测试指令在终端的后台同时运行多个无线应用的测试线程。It should be noted that the test tool in this embodiment may simultaneously send multiple test instructions to the terminal, and each test command may be for the same wireless application or a different wireless application; the same may also be for the same test function item or Different test function items. Moreover, the test instruction in this embodiment does not limit the execution order of the wireless application test thread and the function item test thread. For example, when running a wireless application test thread in the background of the terminal, multiple test function items can be executed sequentially or in parallel at the same time. When any of the wireless application test threads of the terminal fails to run, the terminal may retest the wireless application according to the received test command, or skip the wireless application to continue testing other wireless applications. According to the actual memory and processor configuration of the terminal, test threads of multiple wireless applications can also be run simultaneously in the background of the terminal according to the test instruction.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
S102、接收终端根据测试指令反馈的响应消息。S102. Receive a response message that is sent by the terminal according to the test instruction.
本实施例中,当终端接收到测试工具发送的测试指令之后,根据终端当前测试线程的运行状态向测试工具发送响应消息。可选地,响应消息中可以包含有对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功的字符信息。In this embodiment, after receiving the test command sent by the test tool, the terminal sends a response message to the test tool according to the running state of the current test thread of the terminal. Optionally, the response message may include whether the test thread of the corresponding wireless application and/or the test thread of the functional test item enable successful character information.
S103、根据响应消息,判断终端对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功;若是,则执行步骤S104。S103. Determine, according to the response message, whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully enabled; if yes, execute step S104.
本实施例中,测试工具从接收到的响应消息中提取出判别终端对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功的信息。In this embodiment, the test tool extracts, from the received response message, information indicating whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully turned on.
可选地,当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;Optionally, when the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread that identifies that the terminal has started running the wireless application, and/or Character information of the test thread of the functional test item;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
根据所述响应消息中包含的字符信息,确定终端是否已开始进行无线应用和/或功能测试项的测试。Determining whether the terminal has started testing the wireless application and/or the functional test item according to the character information included in the response message.
S104、等待接收所述终端返回的测试结果。S104. Wait to receive the test result returned by the terminal.
在确定终端中的无线应用和/或功能测试项的测试线程开启成功之后,等待终端的无线应用和/或功能测试项的测试线程运行结束。并接收在无线应用和/或功能测试项的 测试线程运行结束之后,终端返回的测试结果。After determining that the test thread of the wireless application and/or the functional test item in the terminal is successfully turned on, the test thread of the wireless application and/or the functional test item waiting for the terminal is finished running. And receiving tests in wireless applications and/or functional tests The test result returned by the terminal after the test thread finishes running.
可选地,如图4所示,若无线应用的测试线程和/或功能测试项的测试线程开启失败,还可以包括:Optionally, as shown in FIG. 4, if the test thread of the wireless application and/or the test thread of the function test item fail to be enabled, the method may further include:
S105、输出终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。S105. A wireless application and/or a functional test item test report of the output terminal, marking a project in which the wireless application and/or the functional test item test fails.
本实施例中,在无线应用的测试线程和/或功能测试项的测试线程开启失败时,准确记录下测试失败的无线应用和/或功能测试项,从而便于工程师排查测试故障,以及对测试失败的项目进行重新测试。In this embodiment, when the test thread of the wireless application and/or the test thread of the functional test item fails to be enabled, the wireless application and/or the functional test item that fails the test is accurately recorded, thereby facilitating the engineer to check the test failure and failing the test. The project was retested.
本实施例,通过向终端发送测试指令以控制终端中对应的无线应用的测试线程在该终端的后台运行,并指示所述终端并行运行功能测试项的测试线程。根据终端反馈的响应消息判断终端的对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功,在所述无线应用的测试线程和/或功能测试项的测试线程开启成功之后等待终端返回的最终测试结果。从而实现了终端的无线应用与功能测试项的并行测试,极大地减少了终端的测试时间,提高了终端的测试效率。In this embodiment, a test thread is sent to the terminal to control a test thread of the corresponding wireless application in the terminal to run in the background of the terminal, and the terminal is instructed to run the test thread of the functional test item in parallel. Determining, according to the response message fed back by the terminal, whether the test thread of the corresponding wireless application of the terminal and/or the test thread of the functional test item are successfully turned on, waiting after the test thread of the wireless application and the test thread of the functional test item are successfully turned on. The final test result returned by the terminal. Thereby, the parallel testing of the wireless application and the functional test item of the terminal is realized, the test time of the terminal is greatly reduced, and the testing efficiency of the terminal is improved.
图5为本发明实施例二提供的终端的测试方法的流程示意图,如图5所示,本实施例中的方法在图4所示的方法的基础上,还可以包括:FIG. 5 is a schematic flowchart of a method for testing a terminal according to Embodiment 2 of the present invention. As shown in FIG. 5, the method in this embodiment may further include:
S201、向终端发送测试状态查询指令。S201. Send a test status query instruction to the terminal.
本实施例中,测试工具不论是否接收到终端的反馈的响应消息,均可以主动向终端发送测试状态查询指令;该测试状态查询指令用于查询所述终端对应的无线应用和/或功能测试项的当前测试状态。In this embodiment, the test tool may send a test status query instruction to the terminal actively, whether the response message of the feedback is received by the terminal, and the test status query command is used to query the wireless application and/or the function test item corresponding to the terminal. Current test status.
S202、接收终端根据测试状态查询指令反馈的测试结果消息。S202. The receiving terminal queries the test result message fed back according to the test status.
本实施例中,当终端接收到测试工具发送的测试状态查询指令之后,向该测试工具反馈相应的测试结果消息。可选地,该测试结果消息中包含有标识对应的无线应用和/或功能测试项的测试状态的字符信息。In this embodiment, after receiving the test status query instruction sent by the test tool, the terminal feeds back the corresponding test result message to the test tool. Optionally, the test result message includes character information that identifies a test status of the corresponding wireless application and/or the functional test item.
S203、根据测试结果消息,确定终端中对应的无线应用和/或功能测试项的测试状态。S203. Determine, according to the test result message, a test status of a corresponding wireless application and/or a functional test item in the terminal.
本实施例中,测试工具根据终端反馈的测试结果消息,获取终端中对应的无线应用和/或功能测试项的测试状态。In this embodiment, the test tool obtains the test status of the corresponding wireless application and/or function test item in the terminal according to the test result message fed back by the terminal.
可选地,当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息; Optionally, when the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
根据所述测试结果消息中包含的字符信息,确定所述终端的无线应用和/或功能测试项的测试状态。Determining a test status of the wireless application and/or the functional test item of the terminal according to the character information included in the test result message.
本实施例,通过向终端发送测试状态查询指令以及时获取终端当前的无线应用和/或功能测试项测试状态。从而实时了解终端中无线应用和/或功能测试项的测试进度,为工程师对终端的测试方案的制定和调整提供参考,便于工程师对测试方案进行优化,提高终端的测试效率。In this embodiment, the test status of the current wireless application and/or function test item of the terminal is obtained by sending a test status query instruction to the terminal. Therefore, the test progress of the wireless application and/or the functional test item in the terminal is known in real time, which provides a reference for the engineer to formulate and adjust the test plan of the terminal, so that the engineer can optimize the test plan and improve the test efficiency of the terminal.
图6为本发明实施例三提供的终端的测试方法的流程示意图,如图6所示,本实施例中的方法可以包括:FIG. 6 is a schematic flowchart of a method for testing a terminal according to Embodiment 3 of the present invention. As shown in FIG. 6, the method in this embodiment may include:
S301、接收测试工具发送的测试指令。S301. Receive a test instruction sent by a test tool.
本实施例中,终端接收测试工具发送的测试指令,该测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程。In this embodiment, the terminal receives the test command sent by the test tool, and the test command is used to instruct the terminal to run the test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
S302、根据测试指令,开启对应的无线应用的测试线程,在后台运行所述无线应用的测试线程时,并行运行功能测试项的测试线程。S302. Start a test thread of the corresponding wireless application according to the test instruction, and run the test thread of the functional test item in parallel when the test thread of the wireless application is run in the background.
本实施例中,参见图3,终端在接收到测试指令之后在后台运行无线应用的测试线程,同时还可以运行其他功能测试项的测试。例如,在测试蓝牙、WIFI模块、GPS模块时,顺次测试其他功能测试项。In this embodiment, referring to FIG. 3, the terminal runs the test thread of the wireless application in the background after receiving the test instruction, and can also run the test of other functional test items. For example, when testing Bluetooth, WIFI module, GPS module, test other functional test items in sequence.
S303、向测试工具发送反馈的响应消息。S303. Send a response message to the test tool.
本实施例中,终端可以在无线应用的测试线程和/或功能测试项的测试线程开启成功或者失败时,向测试工具发送相应的响应消息。参见图7,终端也可以在接收到测试工具发送的测试状态查询指令时,将当前的无线应用和/或功能测试项的测试结果反 馈给测试工具。In this embodiment, the terminal may send a corresponding response message to the test tool when the test thread of the wireless application and/or the test thread of the functional test item is successfully opened or failed. Referring to FIG. 7, the terminal may also reverse the test result of the current wireless application and/or function test item when receiving the test status query instruction sent by the test tool. Feed the test tool.
可选地,当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;Optionally, when the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread that identifies that the terminal has started running the wireless application, and/or Character information of the test thread of the functional test item;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
向所述测试工具发送反馈包含有字符信息的响应消息。Sending a response message containing the character information to the test tool.
可选地,在图6所示方法的基础上,若所述无线应用的测试线程和/或功能测试项的测试线程开启失败,还包括:输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。Optionally, on the basis of the method shown in FIG. 6, if the test thread of the wireless application and/or the test thread of the functional test item fails to be enabled, the method further includes: outputting the wireless application and/or function test item of the terminal. Test report that marks items that failed wireless application and/or functional test item testing.
本实施例,终端接收测试工具发送的测试指令,该测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程。从而实现终端的无线应用与功能测试项的并行测试,极大地减少了终端的测试时间,提高了终端的测试效率。In this embodiment, the terminal receives a test command sent by the test tool, where the test command is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel. Thereby, the parallel testing of the wireless application and the functional test item of the terminal is realized, the test time of the terminal is greatly reduced, and the testing efficiency of the terminal is improved.
图7为本发明实施例四提供的终端的测试方法的流程示意图,如图7所示,本实施例中的方法可以包括:FIG. 7 is a schematic flowchart of a method for testing a terminal according to Embodiment 4 of the present invention. As shown in FIG. 7, the method in this embodiment may include:
S401、接收测试工具发送的测试状态查询指令。S401. Receive a test status query instruction sent by the test tool.
本实施例中,终端接收测试工具发送的测试状态查询指令,该测试状态查询指令可以是针对所有无线应用或者所有测试功能项的当前测试状态的指令;也可以是针对任一或者任多个无线应用(也可以是测试功能项)的当前测试状态的指令。In this embodiment, the terminal receives a test status query instruction sent by the test tool, where the test status query instruction may be an instruction for a current test status of all wireless applications or all test function items; or may be for any or any of a plurality of wireless The instruction of the current test state of the application (which can also be a test function item).
S402、根据测试状态查询指令向测试工具反馈测试结果消息。S402. Feed back a test result message to the testing tool according to the test status query instruction.
本实施例中,在接收到测试工具发送的测试状态查询指令之后,向测试工具反馈对应的测试结果消息。该测试结果消息可以是包含无线应用或者测试功能项当前测试状态的字符信息。In this embodiment, after receiving the test status query instruction sent by the test tool, the corresponding test result message is fed back to the test tool. The test result message may be character information including a current test status of the wireless application or the test function item.
可选地,当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;Optionally, when the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中 包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the wireless application and/or functional test item testing process, the test result message is Character information including that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
向所述测试工具发送反馈包含有字符信息的测试结果消息。A test result message containing the character information is sent back to the test tool.
本实施例,终端根据测试工具发送的测试状态查询指令向该测试工具反馈当前的无线应用和/或功能测试项测试状态。从而实时了解终端中无线应用和/或功能测试项的测试进度,为工程师对终端的测试方案的制定和调整提供参考,便于工程师对测试方案进行优化,提高终端的测试效率。In this embodiment, the terminal feeds back the current wireless application and/or functional test item test status to the test tool according to the test status query command sent by the test tool. Therefore, the test progress of the wireless application and/or the functional test item in the terminal is known in real time, which provides a reference for the engineer to formulate and adjust the test plan of the terminal, so that the engineer can optimize the test plan and improve the test efficiency of the terminal.
图8为本发明实施例一提供的终端的测试装置的结构示意图,如图8所示,本实施例中的装置可以包括:FIG. 8 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 1 of the present invention. As shown in FIG. 8, the apparatus in this embodiment may include:
发送模块10,用于向至少一个终端发送测试指令,所述测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程;The sending module 10 is configured to send a test command to the at least one terminal, where the test command is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
接收模块20,用于接收所述终端根据所述测试指令反馈的响应消息;The receiving module 20 is configured to receive a response message that is sent by the terminal according to the test instruction;
确定模块30,用于根据所述响应消息,判断所述终端对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功;若所述无线应用的测试线程和/或功能测试项的测试线程开启成功,则等待接收所述终端返回的测试结果。The determining module 30 is configured to determine, according to the response message, whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully turned on; if the test thread and/or the functional test item of the wireless application is The test thread is successfully opened, and then waits to receive the test result returned by the terminal.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
可选地,所述确定模块30,具体用于:Optionally, the determining module 30 is specifically configured to:
当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;When the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
根据所述响应消息中包含的字符信息,确定所述终端是否已开始进行无线应用和/或功能测试项的测试。Determining whether the terminal has started testing the wireless application and/or the functional test item according to the character information included in the response message.
本实施例可以执行上述图4或图5所示的方法中的技术方案,其实现过程和技术 效果与上述方法类似,此处不再赘述。This embodiment may perform the technical solution in the method shown in FIG. 4 or FIG. 5 above, and implement the process and technology. The effect is similar to the above method and will not be described here.
图9为本发明实施例二提供的终端的测试装置的结构示意图,如图9所示,在图8所示的装置的基础上,本实施例中的装置还可以包括:FIG. 9 is a schematic structural diagram of a testing device for a terminal according to Embodiment 2 of the present invention. As shown in FIG. 9, the device in this embodiment may further include:
查询模块40,用于在所述无线应用的测试线程和/或功能测试项的线程开启成功之后,向所述终端发送测试状态查询指令,所述测试状态查询指令用于查询所述终端对应的无线应用和/或功能测试项的当前测试状态;The querying module 40 is configured to send a test status query instruction to the terminal after the thread of the test thread and/or the function test item of the wireless application is successfully opened, where the test status query instruction is used to query the corresponding terminal Current test status of wireless applications and/or functional test items;
接收所述终端根据所述测试状态查询指令反馈的测试结果消息;Receiving, by the terminal, a test result message fed back according to the test status query instruction;
根据所述测试结果消息,确定所述终端中对应的无线应用和/或功能测试项的测试状态。Determining, according to the test result message, a test status of a corresponding wireless application and/or a functional test item in the terminal.
可选地,所述查询模块40,具体用于:Optionally, the query module 40 is specifically configured to:
当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;When the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
根据所述测试结果消息中包含的字符信息,确定所述终端的无线应用和/或功能测试项的测试状态。Determining a test status of the wireless application and/or the functional test item of the terminal according to the character information included in the test result message.
本实施例可以执行上述图4或图5所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。This embodiment can perform the technical solutions in the method shown in FIG. 4 or FIG. 5, and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
图10为本发明实施例三提供的终端的测试装置的结构示意图,如图10所示,在图9所示的装置的基础上,本实施例中的装置还可以包括:FIG. 10 is a schematic structural diagram of a testing apparatus for a terminal according to Embodiment 3 of the present invention. As shown in FIG. 10, on the basis of the apparatus shown in FIG. 9, the apparatus in this embodiment may further include:
输出模块50,用于所述无线应用的测试线程和/或功能测试项的测试线程开启失败时,输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。The output module 50 is configured to output a wireless application and/or a functional test item test report of the terminal, and mark the wireless application and/or function test when the test thread of the wireless application and the test thread of the function test item fails to be turned on. Item failed to test the project.
本实施例可以执行上述图4或图5所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。This embodiment can perform the technical solutions in the method shown in FIG. 4 or FIG. 5, and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
图11为本发明实施例一提供的终端的结构示意图,如图11所示,本实施例中的 终端可以包括:FIG. 11 is a schematic structural diagram of a terminal according to Embodiment 1 of the present invention, as shown in FIG. The terminal can include:
接收模块61,用于接收测试工具发送的测试指令;;The receiving module 61 is configured to receive a test instruction sent by the testing tool;
测试模块62,用于根据所述测试指令,开启对应的无线应用的测试线程,在后台运行所述无线应用的测试线程时,并行运行功能测试项的测试线程;The test module 62 is configured to: open a test thread of the corresponding wireless application according to the test instruction, and run a test thread of the functional test item in parallel when the test thread of the wireless application is run in the background;
反馈模块63,用于向所述测试工具发送反馈的响应消息,所述响应消息中包含有所述无线应用的测试线程/或功能测试项的测试线程是否开启成功的信息。The feedback module 63 is configured to send a feedback response message to the test tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the functional test item is successfully turned on.
可选地,所述接收模块61,还用于:接收所述测试工具发送的测试状态查询指令;Optionally, the receiving module 61 is further configured to: receive a test status query instruction sent by the test tool;
所述反馈模块,还用于根据所述测试状态查询指令向所述测试工具反馈测试结果消息。The feedback module is further configured to feed back a test result message to the test tool according to the test status query instruction.
可选地,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。Optionally, the function test item includes any one of the following: a memory test item, a resolution test item, and a central processing unit CPU test item; and the wireless application includes any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
可选地,所述反馈模块63,具体用于:Optionally, the feedback module 63 is specifically configured to:
当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;When the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
向所述测试工具发送反馈包含有字符信息的响应消息。Sending a response message containing the character information to the test tool.
可选地,所述反馈模块63,还用于:Optionally, the feedback module 63 is further configured to:
当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;When the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
向所述测试工具发送反馈包含有字符信息的测试结果消息。 A test result message containing the character information is sent back to the test tool.
本实施例可以执行上述图6或图7所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。The technical solution in the method shown in FIG. 6 or FIG. 7 is implemented in this embodiment, and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
图12为本发明实施例二提供的终端的结构示意图,如图12所示,本实施例中的终端在图11所示的终端的基础上,还可以包括:FIG. 12 is a schematic structural diagram of a terminal according to Embodiment 2 of the present invention. As shown in FIG. 12, the terminal in this embodiment may further include:
输出模块64,用于在所述无线应用的测试线程和/或功能测试项的测试线程开启失败时,输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。The output module 64 is configured to output a wireless application and/or a functional test item test report of the terminal, mark the wireless application and/or function, when the test thread of the wireless application and the test thread of the function test item fail to be turned on. The test item failed to test the project.
本实施例可以执行上述图6或图7所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。The technical solution in the method shown in FIG. 6 or FIG. 7 is implemented in this embodiment, and the implementation process and technical effects are similar to the foregoing methods, and details are not described herein again.
图13为本发明实施例一提供的终端的测试系统的结构示意图,如图13所示,本实施例中的系统可以包括:FIG. 13 is a schematic structural diagram of a test system of a terminal according to Embodiment 1 of the present invention. As shown in FIG. 13, the system in this embodiment may include:
存储器71,用于存储程序;a memory 71, configured to store a program;
处理器72,用于执行存储器存储的程序,当程序被执行时,处理器72用于执行上述图4或图5所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。The processor 72 is configured to execute a program stored in the memory. When the program is executed, the processor 72 is configured to execute the technical solution in the method shown in FIG. 4 or FIG. 5, and the implementation process and technical effects are similar to the foregoing method. I will not repeat them here.
图14为本发明实施例二提供的终端的测试系统的结构示意图,如图14所示,本实施例中的系统可以包括:FIG. 14 is a schematic structural diagram of a test system of a terminal according to Embodiment 2 of the present invention. As shown in FIG. 14, the system in this embodiment may include:
存储器81,用于存储程序;a memory 81 for storing a program;
处理器82,用于执行存储器存储的程序,当程序被执行时,处理器72用于执行上述图6或图7所示的方法中的技术方案,其实现过程和技术效果与上述方法类似,此处不再赘述。The processor 82 is configured to execute a program stored in the memory. When the program is executed, the processor 72 is configured to execute the technical solution in the method shown in FIG. 6 or FIG. 7 , and the implementation process and technical effects are similar to the foregoing method. I will not repeat them here.
此外,本申请实施例还提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机执行指令,当用户设备的至少一个处理器执行该计算机执行指令时,用户设备执行上述各种可能的方法。In addition, the embodiment of the present application further provides a computer readable storage medium, where computer execution instructions are stored, when the at least one processor of the user equipment executes the computer to execute an instruction, the user equipment performs the foregoing various possibilities. Methods.
其中,计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于应用专用集成电路(ASIC)中。另外,该应用专用集成电路可以位于用户设备中。当然,处理器和存储介质也可以作为分立组件存在于通信设备中。 Wherein, the computer readable medium comprises a computer storage medium and a communication medium, wherein the communication medium comprises any medium that facilitates transfer of the computer program from one location to another. A storage medium may be any available media that can be accessed by a general purpose or special purpose computer. An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium may be located in an application specific integrated circuit (ASIC). Additionally, the application specific integrated circuit can be located in the user equipment. Of course, the processor and the storage medium may also reside as discrete components in the communication device.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。One of ordinary skill in the art will appreciate that all or part of the steps to implement the various method embodiments described above may be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本发明旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求书指出。Other embodiments of the present disclosure will be apparent to those skilled in the <RTIgt; The present invention is intended to cover any variations, uses, or adaptations of the present disclosure, which are in accordance with the general principles of the present disclosure and include common general knowledge or common technical means in the art that are not disclosed in the present disclosure. . The specification and examples are to be regarded as illustrative only,
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求书来限制。 It is to be understood that the invention is not limited to the details of the details and The scope of the disclosure is to be limited only by the appended claims.

Claims (10)

  1. 一种终端的测试方法,其特征在于,包括:A method for testing a terminal, comprising:
    向至少一个终端发送测试指令,所述测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程;Sending a test instruction to the at least one terminal, the test instruction is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
    接收所述终端根据所述测试指令反馈的响应消息;Receiving a response message fed back by the terminal according to the test instruction;
    根据所述响应消息,判断所述终端对应的无线应用的测试线程和/或功能测试项的测试线程是否开启成功;Determining, according to the response message, whether the test thread of the wireless application corresponding to the terminal and/or the test thread of the functional test item is successfully turned on;
    若所述无线应用的测试线程和/或功能测试项的测试线程开启成功,则等待接收所述终端返回的测试结果。If the test thread of the wireless application and/or the test thread of the functional test item are successfully turned on, waiting for receiving the test result returned by the terminal.
  2. 根据权利要求1所述的方法,其特征在于,在所述无线应用的测试线程和/或功能测试项的线程开启成功之后,还包括:The method according to claim 1, wherein after the thread of the test thread and/or the functional test item of the wireless application is successfully opened, the method further comprises:
    向所述终端发送测试状态查询指令,所述测试状态查询指令用于查询所述终端对应的无线应用和/或功能测试项的当前测试状态;Sending a test status query instruction to the terminal, where the test status query instruction is used to query a current test status of the wireless application and/or the function test item corresponding to the terminal;
    接收所述终端根据所述测试状态查询指令反馈的测试结果消息;Receiving, by the terminal, a test result message fed back according to the test status query instruction;
    根据所述测试结果消息,确定所述终端中对应的无线应用和/或功能测试项的测试状态。Determining, according to the test result message, a test status of a corresponding wireless application and/or a functional test item in the terminal.
  3. 根据权利要求1或2所述的方法,其特征在于,所述功能测试项包括以下任一:内存测试项、分辨率测试项、中央处理器CPU测试项;所述无线应用包括以下任一:蓝牙BT、无线WIFI、全球定位系统GPS。The method according to claim 1 or 2, wherein the functional test item comprises any one of: a memory test item, a resolution test item, a central processing unit CPU test item; and the wireless application comprises any one of the following: Bluetooth BT, wireless WIFI, GPS global positioning system.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述响应消息,判断所述终端对应的无线应用的测试线程和/或功能测试项的线程是否开启,包括:The method according to claim 1, wherein the determining, according to the response message, whether a test thread and/or a function test item of the wireless application corresponding to the terminal is enabled, includes:
    当所述终端对应的无线应用的测试线程和/或功能测试项的测试线程开启成功时,所述响应消息中包含有标识所述终端已开始运行无线应用的测试线程和/或功能测试项的测试线程的字符信息;When the test thread of the wireless application corresponding to the terminal and the test thread of the function test item are successfully enabled, the response message includes a test thread and/or a function test item that identifies that the terminal has started running the wireless application. Test the character information of the thread;
    当所述终端对应的无线应用的测试线程和/或功能测试项的线程开启失败时,所述响应消息中包含有开启所述终端对应的无线应用的测试线程和/或功能测试项的测试线程失败的字符信息;When the thread of the test thread and/or the function test item of the wireless application corresponding to the terminal fails to be enabled, the response message includes a test thread that starts a test thread and/or a function test item of the wireless application corresponding to the terminal. Failed character information;
    根据所述响应消息中包含的字符信息,确定所述终端是否已开始进行无线应用和/或功能测试项的测试。Determining whether the terminal has started testing the wireless application and/or the functional test item according to the character information included in the response message.
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述测试结果消息,确定 所述终端中对应的无线应用和/或功能测试项的测试状态,包括:The method according to claim 2, wherein said determining according to said test result message The test status of the corresponding wireless application and/or function test item in the terminal includes:
    当所述终端的无线应用和/或功能测试项测试成功时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试成功的字符信息;When the wireless application and/or the function test item of the terminal is successfully tested, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal is successfully tested;
    当所述终端的无线应用和/或功能测试项测试失败时,所述测试结果消息中包含有标识所述终端的无线应用和/或功能测试项测试失败的字符信息;When the test of the wireless application and/or the function test item of the terminal fails, the test result message includes character information indicating that the wireless application and/or the function test item of the terminal fails the test;
    当所述终端正处于无线应用和/或功能测试项测试过程中时,所述测试结果消息中包含有标识所述终端正在进行无线应用测试和/或功能测试项的字符信息;When the terminal is in the process of testing the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal is performing a wireless application test and/or a function test item;
    当所述终端未对无线应用和/或功能测试项进行测试时,所述测试结果消息中包含有标识所述终端未对无线应用和/或功能测试项进行测试的字符信息;When the terminal does not test the wireless application and/or the function test item, the test result message includes character information that identifies that the terminal does not test the wireless application and/or the function test item;
    根据所述测试结果消息中包含的字符信息,确定所述终端的无线应用和/或功能测试项的测试状态。Determining a test status of the wireless application and/or the functional test item of the terminal according to the character information included in the test result message.
  6. 根据权利要求1-5中任意一项所述的方法,其特征在于,若所述无线应用的测试线程和/或功能测试项的测试线程开启失败,还包括:The method according to any one of claims 1 to 5, wherein if the test thread of the wireless application and/or the test thread of the functional test item fails to be enabled, the method further includes:
    输出所述终端的无线应用和/或功能测试项测试报告,标记无线应用和/或功能测试项测试失败的项目。Outputting a wireless application and/or functional test item test report of the terminal, marking a project in which the wireless application and/or the functional test item test fails.
  7. 一种终端的测试方法,其特征在于,包括:A method for testing a terminal, comprising:
    接收测试工具发送的测试指令;Receiving test instructions sent by the test tool;
    根据所述测试指令,开启对应的无线应用的测试线程,在后台运行所述无线应用的测试线程时,并行运行功能测试项的测试线程;Determining, according to the test instruction, a test thread of the corresponding wireless application, and running the test thread of the functional test item in parallel when running the test thread of the wireless application in the background;
    向所述测试工具发送反馈的响应消息,所述响应消息中包含有所述无线应用的测试线程/或功能测试项的测试线程是否开启成功的信息。Sending a feedback response message to the test tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the functional test item is successfully turned on.
  8. 根据权利要求7所述的方法,其特征在于,还包括:The method of claim 7 further comprising:
    接收所述测试工具发送的测试状态查询指令;Receiving a test status query instruction sent by the test tool;
    根据所述测试状态查询指令向所述测试工具反馈测试结果消息。The test result message is fed back to the test tool according to the test status query instruction.
  9. 一种终端的测试装置,其特征在于,包括:A testing device for a terminal, comprising:
    发送模块,用于向至少一个终端发送测试指令,所述测试指令用于指示所述终端在后台运行对应的无线应用的测试线程,并指示所述终端并行运行功能测试项的测试线程;a sending module, configured to send a test instruction to the at least one terminal, where the test instruction is used to instruct the terminal to run a test thread of the corresponding wireless application in the background, and instruct the terminal to run the test thread of the functional test item in parallel;
    接收模块,用于接收所述终端根据所述测试指令反馈的响应消息;a receiving module, configured to receive a response message that is sent by the terminal according to the test instruction;
    确定模块,用于根据所述响应消息,判断所述终端对应的无线应用的测试线程和/ 或功能测试项的测试线程是否开启成功;若所述无线应用的测试线程和/或功能测试项的测试线程开启成功,则等待接收所述终端返回的测试结果。a determining module, configured to determine, according to the response message, a test thread of the wireless application corresponding to the terminal and/or Whether the test thread of the function test item is successfully turned on; if the test thread of the wireless application and the test thread of the function test item are successfully turned on, waiting for receiving the test result returned by the terminal.
  10. 一种终端,其特征在于,包括:A terminal, comprising:
    接收模块,用于接收测试工具发送的测试指令;;a receiving module, configured to receive a test instruction sent by the testing tool;
    测试模块,用于根据所述测试指令,开启对应的无线应用的测试线程,在后台运行所述无线应用的测试线程时,并行运行功能测试项的测试线程;a test module, configured to: open a test thread of the corresponding wireless application according to the test instruction, and run a test thread of the functional test item in parallel when the test thread of the wireless application is run in the background;
    反馈模块,用于向所述测试工具发送反馈的响应消息,所述响应消息中包含有所述无线应用的测试线程/或功能测试项的测试线程是否开启成功的信息。 And a feedback module, configured to send a feedback response message to the testing tool, where the response message includes information about whether the test thread of the wireless application/or the test thread of the functional test item is successfully turned on.
PCT/CN2017/103091 2017-09-25 2017-09-25 Terminal testing method and device, and terminal WO2019056337A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103091 WO2019056337A1 (en) 2017-09-25 2017-09-25 Terminal testing method and device, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/103091 WO2019056337A1 (en) 2017-09-25 2017-09-25 Terminal testing method and device, and terminal

Publications (1)

Publication Number Publication Date
WO2019056337A1 true WO2019056337A1 (en) 2019-03-28

Family

ID=65809970

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103091 WO2019056337A1 (en) 2017-09-25 2017-09-25 Terminal testing method and device, and terminal

Country Status (1)

Country Link
WO (1) WO2019056337A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078482A (en) * 2019-12-20 2020-04-28 西安航空电子科技有限公司 Communication navigation equipment test system, method, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176294A1 (en) * 2001-05-22 2002-11-28 Jong-Hoon Oh Multi-bit parallel testing for memory devices
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
CN107018223A (en) * 2017-06-16 2017-08-04 深圳市华域无线技术股份有限公司 One kind is used for mobile phone radio frequency signal testing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176294A1 (en) * 2001-05-22 2002-11-28 Jong-Hoon Oh Multi-bit parallel testing for memory devices
CN101272422A (en) * 2007-03-21 2008-09-24 中兴通讯股份有限公司 Mobile phone automatized test method
CN103455396A (en) * 2013-09-03 2013-12-18 北京安兔兔科技有限公司 Test method and test device of hardware performance of electronic equipment
CN107018223A (en) * 2017-06-16 2017-08-04 深圳市华域无线技术股份有限公司 One kind is used for mobile phone radio frequency signal testing method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078482A (en) * 2019-12-20 2020-04-28 西安航空电子科技有限公司 Communication navigation equipment test system, method, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US8793660B2 (en) Automated testing of programming code for a web service
CN105577293B (en) A kind of test method of bluetooth equipment, apparatus and system
WO2019090454A1 (en) Bluetooth test system and method
EP3133845A1 (en) Method and apparatus for pushing and displaying message
US20180176714A1 (en) Method and system for bluetooth communication, and electronic device
JP2019502176A (en) Plug-in packaging method, apparatus and terminal
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN101500255A (en) Mobile terminal test method and system
WO2018149137A1 (en) Wireless fidelity (wi-fi) connection method and related product
CN107135124B (en) Method and system for multi-Bluetooth communication parallel test
CN115527603A (en) Hard disk performance testing method, central control machine and testing machine
US9588874B2 (en) Remote device automation using a device services bridge
JP5246025B2 (en) Wireless terminal, wireless terminal control method, wireless terminal control program
CN105323748B (en) Test error uploading method and device
WO2019056337A1 (en) Terminal testing method and device, and terminal
CN101754246A (en) Method and system for testing mobile multimedia broadcasting function of mobile terminal device
WO2017054405A1 (en) Bluetooth paging method and device
US20180192448A1 (en) Method, device, and system for audio bluetooth pairing and connecting
CN106786898A (en) The changing method of charging equipment, device and relevant device
US20230367936A1 (en) Verification method, electronic device and storage medium
US12020661B2 (en) Synchronous display blinking
CN109362015B (en) Volume test method, control end device, storage medium and volume test system
CN108536574A (en) The method and device of application program debugging
CN105573878A (en) Remote terminal test method and system
TW201335848A (en) Method for extending the expansion of device drivers of electronic device and potable smart device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17925618

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17925618

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载