CN110221943A - Configurable test method, test device and computer readable storage medium - Google Patents

Configurable test method, test device and computer readable storage medium Download PDF

Info

Publication number
CN110221943A
CN110221943A CN201910330762.0A CN201910330762A CN110221943A CN 110221943 A CN110221943 A CN 110221943A CN 201910330762 A CN201910330762 A CN 201910330762A CN 110221943 A CN110221943 A CN 110221943A
Authority
CN
China
Prior art keywords
test
terminal
test item
configuration file
configurable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910330762.0A
Other languages
Chinese (zh)
Inventor
吴启军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910330762.0A priority Critical patent/CN110221943A/en
Publication of CN110221943A publication Critical patent/CN110221943A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

This application involves a kind of configurable test method, test device and computer readable storage mediums.Wherein, comprising: send test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;Extract configuration file in all can test item, according to all can test item selected instruction generation test item list;Test item list is sent to second terminal, so that second terminal is completed to test according to test item list.This method can be such that first terminal tests by the realization of a set of test pattern the second terminal of different model, and can independently select to shorten the testing time to the test item of second terminal, improve production efficiency, save production cost.

Description

Configurable test method, test device and computer readable storage medium
Technical field
The present invention relates to terminal detection technique fields, in particular to a kind of configurable test method, test device And computer readable storage medium.
Background technique
In the related technology, engineering detecting does a set of test pattern, needle usually both for different tested devices respectively A set of test pattern is done to single-board testing and system test again, not only considerably increases the workload of exploitation, extends exploitation week Phase cannot achieve autonomous configuration test item also to realize and complete to test according to testing requirement.
Therefore, there is an urgent need to propose a kind of configurable test method by tester.
Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, this application provides one kind can Test method, test device and the computer readable storage medium of configuration.
In a first aspect, being used for first terminal this application provides a kind of configurable test method, which is characterized in that packet It includes: sending test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;It extracts in configuration file All can test item, according to all can test item selected instruction generate test item list;Test item list is sent to the Two terminals, so that second terminal is completed to test according to test item list.
In the above-mentioned technical solutions, optionally, in configuration file comprising all can test item and with all can test item pair The identification number answered.
In any of the above-described technical solution, optionally, extract configuration file in all can test item the step of before, Further include: configuration file is stored to the first specified path.
In any of the above-described technical solution, optionally, whether configuration is stored with to the first specified path every the first duration File is polled;Polling result be in the case where, execute extract configuration file in all can test item the step of;? In the case that polling result is no, continue to execute every the first duration is polled specified path the step of.
In any of the above-described technical solution, optionally, send test item list to second terminal, for second terminal according to The step of test, is completed in test item list, specifically includes: the second specified path of test item list to second terminal is sent, for Second terminal extracts test item list by test application program in the second specified path.
In any of the above-described technical solution, optionally, second terminal is by test application program in the second specified path Extract test item list the step of specifically include: every the second duration to the second specified path whether be stored with test item list into Row poll;In the case where polling result, which is, is, test item list is extracted;In the case where polling result is no, continue to execute Every the step of the second duration is polled the second specified path.
In any of the above-described technical solution, optionally, according to all can test item selected instruction generate test item column The step of table, specifically includes:
By all can test item show to display device, receive for all can test item selected instruction;According to selected Instruction generates test item list.
It is that Android debugging bridging connects with the mode that second terminal is attached optionally in any of the above-described technical solution, Wherein, Android debugging bridge connection type connects any in connecting with Wireless LAN using data line of universal serial bus Kind.
Second aspect, the application have proposed a kind of configurable test device, are used for first terminal characterized by comprising Memory, processor and storage are on a memory and the computer program that can run on a processor;Computer program is processed It is realized when device executes such as: sending test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;It mentions Take in configuration file all can test item, according to all can test item selected instruction generate test item list;It sends and surveys Item list is tried to second terminal, so that second terminal is completed to test according to test item list.
In the above-mentioned technical solutions, optionally, in configuration file comprising all can test item and with all can test item pair The identification number answered.
In any of the above-described technical solution, optionally, extract configuration file in all can test item the step of before, Further include: configuration file is stored to the first specified path.
In any of the above-described technical solution, optionally, whether configuration is stored with to the first specified path every the first duration File is polled;Polling result be in the case where, execute extract configuration file in all can test item the step of;? In the case that polling result is no, continue to execute every the first duration is polled specified path the step of.
In any of the above-described technical solution, optionally, send test item list to second terminal, for second terminal according to The step of test, is completed in test item list, specifically includes: the second specified path of test item list to second terminal is sent, for Second terminal extracts test item list by test application program in the second specified path.
In any of the above-described technical solution, optionally, second terminal is by test application program in the second specified path Extract test item list the step of specifically include: every the second duration to the second specified path whether be stored with test item list into Row poll;In the case where polling result, which is, is, test item list is extracted;In the case where polling result is no, continue to execute Every the step of the second duration is polled the second specified path.
In any of the above-described technical solution, optionally, according to all can test item selected instruction generate test item column The step of table, specifically includes:
By all can test item show to display device, receive for all can test item selected instruction;According to selected Instruction generates test item list.
It is that Android debugging bridging connects with the mode that second terminal is attached optionally in any of the above-described technical solution, Wherein, Android debugging bridge connection type connects any in connecting with Wireless LAN using data line of universal serial bus Kind.
The third aspect stores on computer readable storage medium this application provides a kind of computer readable storage medium There is the program of configurable test method, such as any of the above-described is realized when the program of configurable test method is executed by processor Configurable test method the step of.
Above-mentioned technical proposal provided by the embodiments of the present application has the advantages that compared with prior art
Configurable test method provided by the embodiments of the present application, first terminal automated test tool pass through whole to second The test item lists of all test items that present terminal engineering mode application program is supported is asked at end, by the list acquired with The mode of visualization interface is presented to tester, chooses for tester, and tester carries out selection to test item and formed most Whole test item list, is pushed to second terminal, the application program in second terminal is tested automatically according to test item list. This method can make first terminal realize that the second terminal of different model is tested by a set of test pattern, and can independently select The test item to second terminal is selected, the testing time is shortened, improves production efficiency, saves production cost.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram for the configurable test method that one embodiment of the application provides;
Fig. 2 is the flow diagram for the configurable test method that another embodiment of the application provides;
Fig. 3 is the flow diagram for the configurable test method that the further embodiment of the application provides;
Fig. 4 is the flow diagram for the configurable test method that another embodiment of the application provides;
Fig. 5 is the flow diagram for the configurable test method that another embodiment of the application provides;
Fig. 6 is the schematic block diagram for the configurable test device that the application one embodiment provides;
Fig. 7 is the schematic diagram of the visualization selection interface of the application one embodiment.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig. 1, proposing a kind of configurable test method in the application one embodiment, comprising:
S102 sends test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;
S104, extract configuration file in all can test item, according to all can test item selected instruction generate survey Try Xiang Liebiao;
S106 sends test item list to second terminal, so that second terminal is completed to test according to test item list.
In this embodiment, first terminal and second terminal to be detected are attached, after connection, second terminal to First terminal transmission test instruction, the engineering mode of test instruction meeting pull-up second terminal, second terminal receive test instruction After generate configuration file, the application program that first terminal can extract in all second terminal engineering modes in configuration file is propped up The test item held, first terminal receive selected instruction after getting test item, select required test item to be tested, Final test item list is generated according to selected instruction, test item list is sent to second terminal to be measured, to be measured second Application program in the engineering mode of terminal is detected automatically according to test item list.Application in first terminal engineering mode Whole test items that program is supported can all reacquire second terminal to be measured when detecting every time to different second terminals Whole test items that application program in engineering mode is supported, therefore, the present embodiment can not have to model with compatibility test Second terminal shortens the development cycle.In addition, first terminal can also provide one after obtaining test item for tester's choosing The test item listing file selected, tester can according to need a part of test item of selection and detect, and make test operation more Add flexibly, shortens test period.
Referring to Fig. 2, proposing a kind of configurable survey for first terminal in another embodiment of the application Method for testing, comprising:
S202 sends test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;
S204 stores configuration file to the first specified path;
S206, extract configuration file in all can test item, according to all can test item selected instruction generate survey Try Xiang Liebiao;
S208 sends test item list to second terminal, so that second terminal is completed to test according to test item list.
In this embodiment, first terminal and second terminal to be detected are attached, after connection, second terminal to First terminal transmission test instruction, the engineering mode of test instruction meeting pull-up second terminal, second terminal receive test instruction After generate configuration file, after generating configuration file, the specified path that configuration file is sent to first terminal is stored, example Such as: D:/factorytest/, first terminal can extract the application in the second terminal engineering mode in the configuration file stored All test items that program is supported, first terminal receives selected instruction after getting test item, to required survey to be tested Examination item is selected, and generates final test item list according to selected instruction, and test item list is sent to be measured second eventually It holds, the application program in the engineering mode of second terminal to be measured is detected automatically according to test item list.First terminal, often It is secondary all to reacquire application program institute of the second terminal to be measured in engineering mode when detecting to different second terminals Whole test items of support, therefore, the present embodiment can not have to the second terminal of model with compatibility test, shorten the development cycle.This Outside, first terminal can also provide a test item listing file for tester's selection after obtaining test item, test Personnel can according to need a part of test item of selection and detect, and keep test operation more flexible, shorten test period.
Referring to Fig. 3, proposing a kind of configurable test for first terminal in one embodiment of the application Method, comprising:
S302 sends test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;
S304 stores configuration file to the first specified path;
S306 is polled to whether the first specified path is stored with configuration file every the first duration, is not inquiring There are repeating this step when configuration file, there are step S308 is carried out when configuration file inquiring;
S308, extract configuration file in all can test item, according to all can test item selected instruction generate survey Try Xiang Liebiao;
S310 sends test item list to second terminal, so that second terminal is completed to test according to test item list.
In this embodiment, first terminal and second terminal to be detected are attached, after connection, second terminal to First terminal transmission test instruction, the engineering mode of test instruction meeting pull-up second terminal, second terminal receive test instruction After generate configuration file, after generating configuration file, the specified path that configuration file is sent to first terminal is stored, the One terminal can be polled the first specified path every the first duration, and the first duration is chosen as 1 second or other are according to test Other durations for needing to set, when inquiry is less than configuration file under the first specified path, then persistently to the first specified path It is polled, there are configuration files when inquiring under the first specified path, then first terminal can extract the configuration file stored In all second terminal engineering modes in the test item supported of application program, it is specified to guarantee that configuration file enters first Path can be extracted test item by first terminal, and first terminal receives selected instruction after getting test item, to required Test item to be tested is selected, and generates final test item list according to selected instruction, by test item list be sent to The second terminal of survey, second terminal extracts the test item in test item list by the application program in engineering mode, according to survey It tries item second terminal and carries out automatic one by onechecking.First terminal carries out detection Shi Douhui to different second terminals every time and obtains again The whole test items for taking the application program in second terminal engineering mode to be measured to be supported, therefore, the present embodiment can be compatible with survey Examination does not have to the second terminal of model, shortens the development cycle.In addition, first terminal one can be also provided after obtaining test item can For the test item listing file of tester's selection, tester can according to need a part of test item of selection and detect, Keep test operation more flexible, shortens test period.
Referring to Fig. 4, proposing a kind of configurable test for first terminal in one embodiment of the application Method, comprising:
S402 sends test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;
S404 stores configuration file to the first specified path;
S406 is polled to whether the first specified path is stored with configuration file every the first duration, is not inquiring There are repeating this step when configuration file, there are S408 is carried out when configuration file inquiring;
S408, extract configuration file in all can test item, according to all can test item selected instruction generate survey Try Xiang Liebiao;
S410 sends the second specified path of test item list to second terminal, so that second terminal passes through test application Program extracts test item list in the second specified path, completes to test according to test item list.
In this embodiment, first terminal and second terminal to be detected are attached, after connection, second terminal to First terminal transmission test instruction, the engineering mode of test instruction meeting pull-up second terminal, second terminal receive test instruction After generate configuration file, after generating configuration file, the specified path that configuration file is sent to first terminal is stored, the One terminal can be polled the first specified path every the first duration, and the first duration is selected as 1 second or other are according to test need Other to be set duration, when under the first specified path inquiry less than configuration file when, then persistently to the first specified path into Row poll, there are configuration files when inquiring under the first specified path, then first terminal can extract in the configuration file stored All second terminal engineering modes in the test item supported of application program, guarantee that configuration file enters the first specified circuit Diameter can be extracted test item by first terminal, and first terminal receives selected instruction after getting test item, to required The test item of test is selected, and is generated final test item list according to selected instruction, test item list is sent to be measured Second terminal, and store the second specified path for arriving second terminal, second terminal is specified second by test application program Test item list is extracted in path, extracts the test item in test item list, is carried out automatically item by item according to test item second terminal Detection.It can all be reacquired in second terminal engineering mode to be measured when first terminal every time detects different second terminals Whole test items for being supported of application program, therefore, the present embodiment can not have to the second terminal of model with compatibility test, shorten Development cycle.In addition, first terminal can also provide one after obtaining test item for the test item column of tester's selection List file, tester can according to need a part of test item of selection and detect, and keeps test operation more flexible, shortens and survey Try the period.
Referring to Fig. 5, proposing a kind of configurable test for first terminal in one embodiment of the application Method, comprising:
S502 sends test instruction to second terminal, so that second terminal is instructed according to test generates configuration file;
S504 stores configuration file to the first specified path;
S506 is polled to whether the first specified path is stored with configuration file every the first duration, is not inquiring There are repeating this step when configuration file, there are S508 is carried out when configuration file inquiring;
S508, extract configuration file in all can test item, according to all can test item selected instruction generate survey Try Xiang Liebiao;
S510 sends the second specified path of test item list to second terminal;
S512 is polled every the second duration to whether the second specified path is stored with test item list, if When the inquiry of two specified paths is less than test item list, this step is repeated, if inquire test item list, executes S514;
S514 extracts test item list, completes to test according to test item list.
In this embodiment, first terminal and second terminal to be detected are attached, after connection, second terminal to First terminal transmission test instruction, the engineering mode of test instruction meeting pull-up second terminal, second terminal receive test instruction After generate configuration file, after generating configuration file, the specified path that configuration file is sent to first terminal is stored, the One terminal can be polled the first specified path every the first duration, and the first duration is selected as 1 second or other are according to test need Other to be set duration, when under the first specified path inquiry less than configuration file when, then persistently to the first specified path into Row poll, there are configuration files when inquiring under the first specified path, then first terminal can extract in the configuration file stored All second terminal engineering modes in the test item supported of application program, guarantee that configuration file enters the first specified circuit Diameter can be extracted test item by first terminal, and first terminal receives selected instruction after getting test item, to required The test item of test is selected, and is generated final test item list according to selected instruction, test item list is sent to be measured Second terminal, and store arrive second terminal the second specified path, second terminal is every the second duration to the second specified path It is inquired, in inquiry less than there are when test item list, can persistently carry out inquiry until inquiring test item list, works as inquiry To when test item list, the test item in test item list is extracted, automatic one by onechecking is carried out according to test item second terminal.The The application in second terminal engineering mode to be measured can be all reacquired when one terminal every time detects different second terminals Whole test items that program is supported, therefore, the present embodiment can not have to the second terminal of model with compatibility test, shorten exploitation week Phase.In addition, first terminal can also provide a test item listing file for tester's selection after obtaining test item, Tester can according to need a part of test item of selection and detect, and keep test operation more flexible, shorten test period.
In any of the above-described embodiment of the application, the application proposes the configurable test method for being used for first terminal, Further include:
Preferably, in configuration file comprising all can test item and with all can the corresponding identification number of test item.
In the technical scheme, first terminal and second terminal to be detected are attached, after connection, second terminal To first terminal transmission test instruction, the engineering mode of test instruction meeting pull-up second terminal, second terminal receives test and refers to Configuration file is generated after order, first terminal can extract the application program institute in all second terminal engineering modes in configuration file The corresponding ID of the test item and test item of support is numbered, and since the length of ID number is less than the code length of test item, is Display carries out selection processing to test item to facilitate in subsequent step, therefore can use the corresponding ID number substitution of test item Corresponding test item code can directly select ID number in selected processing.
Preferably, by all can test item show to display device, receive for all can test item selected instruction;Root Test item list is generated according to selected instruction.
In the technical scheme, test item can be selected according to demand, first terminal is read in configuration file Test item after, be shown in the display device of first terminal with visual diagrammatic form, tester can be made more straight Sight is clearly seen that all test items, survey to be tested needed for tester can be chosen on chart according to different needs Item is tried, generation test item list after the completion of selection is clicked, the test item that do not choose can be ignored in test, improve second While terminal test efficiency, the corresponding ID number of test item in display cooperation configuration file is also carried out with visual icon Mode simplify the operation of tester, can more efficiently search required test item.
Preferably, the mode being attached with second terminal is that Android debugging bridging connects, wherein Android debugs bridge (ADB) Connection type is using any one of data line of universal serial bus (USB) connection and Wireless LAN (WIFI) connection.
In the technical scheme, the mode that the connection type of first terminal and second terminal selects Android debugging bridging to connect, Specific selection mode is as follows: in the good situation of network environment, WLAN network can be used to first terminal It is attached with second terminal, it is convenient to omit the operation for plugging data line can be direct in the imperfect situation of network environment First terminal and second terminal are attached using data line of universal serial bus, guarantee that it transmits mutually the unimpeded of data.
Referring to Fig. 6, a kind of configurable test device 100 is provided in one embodiment of the application, including, It memory 102, processor 104 and is stored in the computer program that can be run on memory 102 and on processor 104: sending Test instruction is to second terminal, so that second terminal is instructed according to test generates configuration file;Extract the whole in configuration file Can test item, according to all can test item selected instruction generate test item list;Test item list is sent to second terminal, So that second terminal is completed to test according to test item list.
In this embodiment, configurable test device 100, including, memory 102, processor 104 and it is stored in storage On device 102 and the computer program that can be run on processor 104: it is realized when computer program is executed by processor 104 such as: First terminal is attached with second terminal to be detected, and after connection, second terminal sends test instruction to first terminal, is surveyed The engineering mode of examination instruction meeting pull-up second terminal, second terminal generate configuration file, first terminal after receiving test instruction The test item that the application program in all second terminal engineering modes in configuration file is supported can be extracted, first terminal is obtaining Selected instruction is received after getting test item, required test item to be tested is selected, final according to selected instruction generation Test item list is sent to second terminal to be measured, the application in the engineering mode of second terminal to be measured by test item list Program is detected automatically according to test item list.First terminal carries out detection Shi Douhui again to different second terminals every time Whole test items that application program of the second terminal to be measured in engineering mode is supported are obtained, therefore, the present embodiment can be simultaneous Hold the second terminal that test does not have to model, shortens the development cycle.In addition, first terminal can also provide one after obtaining test item A test item listing file for tester's selection, tester can according to need a part of test item of selection and examine It surveys, keeps test operation more flexible, shorten test period.
In one embodiment of the application, a kind of configurable test device is provided, including, memory, processor And store the computer program that can be run on a memory and on a processor: sending test and instruct to second terminal, so that the Two terminals instruct according to test and generate configuration file;Configuration file is stored to the first specified path;It extracts in configuration file All can test item, according to all can test item selected instruction generate test item list;Test item list is sent to second Terminal, so that second terminal is completed to test according to test item list.
In this embodiment, configurable test device, including, memory, processor and storage are on a memory and can The computer program run on a processor: when computer program is executed by processor realize such as: first terminal with it is to be detected Second terminal be attached, after connection, second terminal sends test instruction to first terminal, and test instruction can pull-up second The engineering mode of terminal, second terminal generates configuration file after receiving test instruction, after generating configuration file, by configuration text The specified path that part is sent to first terminal is stored, such as: D:/factorytest/, first terminal can be extracted and be stored Configuration file in all second terminal engineering modes in the test item supported of application program, first terminal getting Selected instruction is received after test item, required test item to be tested is selected, and final test is generated according to selected instruction Item list, is sent to second terminal to be measured for test item list, the application program in the engineering mode of second terminal to be measured It is detected automatically according to test item list.It can all be reacquired when first terminal every time detects different second terminals Whole test items that application program in second terminal engineering mode to be measured is supported, therefore, the present embodiment can be with compatibility test Without the second terminal of model, shorten the development cycle.In addition, first terminal can also be provided after obtaining test item one for The test item listing file of tester's selection, tester can according to need a part of test item of selection and detect, make Test operation is more flexible, shortens test period.
In one embodiment of the application, a kind of configurable test device is provided, including, memory, processor And store the computer program that can be run on a memory and on a processor: sending test and instruct to second terminal, so that the Two terminals instruct according to test and generate configuration file;Configuration file is stored to the first specified path;Every the first duration to Whether one specified path, which is stored with configuration file, is polled, and is not inquiring there are the step is repeated when configuration file, is looking into Ask there are when configuration file carry out in next step;Extract in configuration file all can test item, according to all can test item Selected instruction generate test item list;Test item list is sent to second terminal, so that second terminal is according to test item list Complete test.
In this embodiment, configurable test device, including, memory, processor and storage are on a memory and can The computer program run on a processor: when computer program is executed by processor realize such as: first terminal with it is to be detected Second terminal be attached, after connection, second terminal sends test instruction to first terminal, and test instruction can pull-up second The engineering mode of terminal, second terminal generates configuration file after receiving test instruction, after generating configuration file, by configuration text The specified path that part is sent to first terminal is stored, and first terminal can take turns the first specified path every the first duration It askes, other durations that the first duration is selected as 1 second or other need to set according to test are inquired not when under the first specified path When to configuration file, then persistently the first specified path is polled, when inquiring under the first specified path there are configuration file, What the application program that then first terminal can extract in all second terminal engineering modes in the configuration file stored was supported Test item guarantees that configuration file enters the first specified path and can be extracted test item by first terminal, and first terminal exists Selected instruction is received after getting test item, required test item to be tested is selected, is generated according to selected instruction final Test item list, test item list is sent to second terminal to be measured, second terminal passes through the application journey in engineering mode Sequence extracts the test item in test item list, carries out automatic one by onechecking according to test item second terminal.First terminal is right every time It can all reacquire what the application program in second terminal engineering mode to be measured was supported when different second terminals is detected Whole test items, therefore, the present embodiment can not have to the second terminal of model with compatibility test, shorten the development cycle.In addition, first Terminal can also provide a test item listing file for tester's selection after obtaining test item, and tester can be with It selects a part of test item to be detected as needed, keeps test operation more flexible, shorten test period.
In one embodiment of the application, a kind of configurable test device is provided, including, memory, processor And store the computer program that can be run on a memory and on a processor: sending test and instruct to second terminal, so that the Two terminals instruct according to test and generate configuration file;Configuration file is stored to the first specified path;Every the first duration to Whether one specified path, which is stored with configuration file, is polled, and is not inquiring there are the step is repeated when configuration file, is looking into Ask there are when configuration file carry out in next step;Extract in configuration file all can test item, according to all can test item Selected instruction generate test item list;The second specified path of test item list to second terminal is sent, for second terminal Test item list is extracted in the second specified path by test application program, completes to test according to test item list.
In this embodiment, configurable test device, including, memory, processor and storage are on a memory and can The computer program run on a processor: when computer program is executed by processor realize such as: first terminal with it is to be detected Second terminal be attached, after connection, second terminal sends test instruction to first terminal, and test instruction can pull-up second The engineering mode of terminal, second terminal generates configuration file after receiving test instruction, after generating configuration file, by configuration text The specified path that part is sent to first terminal is stored, and first terminal can take turns the first specified path every the first duration It askes, other durations that the first duration is selected as 1 second or other need to set according to test are inquired not when under the first specified path When to configuration file, then persistently the first specified path is polled, when inquiring under the first specified path there are configuration file, What the application program that then first terminal can extract in all second terminal engineering modes in the configuration file stored was supported Test item guarantees that configuration file enters the first specified path and can be extracted test item by first terminal, and first terminal exists Selected instruction is received after getting test item, required test item to be tested is selected, is generated according to selected instruction final Test item list, test item list is sent to second terminal to be measured, and store the second specified path for arriving second terminal, Second terminal extracts test item list by test application program in the second specified path, extracts the test in test item list , automatic one by onechecking is carried out according to test item second terminal.When first terminal every time detects different second terminals Whole test items that the application program in second terminal engineering mode to be measured is supported, therefore, the present embodiment will be reacquired The second terminal that can not have to model with compatibility test, shortens the development cycle.In addition, first terminal can also after obtaining test item A test item listing file for tester's selection is provided, tester can according to need a part of test item of selection It is detected, keeps test operation more flexible, shorten test period.
In one embodiment of the application, a kind of configurable test device is provided, including, memory, processor And store the computer program that can be run on a memory and on a processor: sending test and instruct to second terminal, so that the Two terminals instruct according to test and generate configuration file;Configuration file is stored to the first specified path;Every the first duration to Whether one specified path, which is stored with configuration file, is polled, and is not inquiring there are the step is repeated when configuration file, is looking into Ask there are when configuration file carry out in next step;Take in configuration file all can test item, according to all can test item Selected instruction generates test item list;Send the second specified path of test item list to second terminal;Every the second duration pair Whether the second specified path, which is stored with test item list, is polled, if inquired in the second specified path less than test item list When, it repeats the step and is performed the next step if inquire test item list;Test item list is extracted, according to test item list Complete test.
In this embodiment, configurable test device, including, memory, processor and storage are on a memory and can The computer program run on a processor: when computer program is executed by processor realize such as: first terminal with it is to be detected Second terminal be attached, after connection, second terminal sends test instruction to first terminal, and test instruction can pull-up second The engineering mode of terminal, second terminal generates configuration file after receiving test instruction, after generating configuration file, by configuration text The specified path that part is sent to first terminal is stored, and first terminal can take turns the first specified path every the first duration It askes, other durations that the first duration is selected as 1 second or other need to set according to test are inquired not when under the first specified path When to configuration file, then persistently the first specified path is polled, when inquiring under the first specified path there are configuration file, What the application program that then first terminal can extract in all second terminal engineering modes in the configuration file stored was supported Test item guarantees that configuration file enters the first specified path and can be extracted test item by first terminal, and first terminal exists Selected instruction is received after getting test item, required test item to be tested is selected, is generated according to selected instruction final Test item list, test item list is sent to second terminal to be measured, and store the second specified path for arriving second terminal, Second terminal inquires the second specified path every the second duration, in inquiry less than there are when test item list, can continue Inquiry is carried out until inquiring test item list, when inquiring test item list, extracts the test item in test item list, root Automatic one by onechecking is carried out according to test item second terminal.Can all be reacquired when being detected every time to different second terminals to Whole test items that the application program surveyed in second terminal engineering mode is supported, therefore, the present embodiment can be with compatibility test not With the second terminal of model, shorten the development cycle.In addition, first terminal can also provide one after obtaining test item for surveying The test item listing file of personnel selection is tried, tester can according to need a part of test item of selection and detect, makes to survey Examination operation is more flexible, shortens test period.
In any of the above-described embodiment of the application, the application proposes the configurable test device for being used for first terminal, Further include:
Preferably, in configuration file comprising all can test item and with all can the corresponding identification number of test item.
In the technical scheme, first terminal and second terminal to be detected are attached, after connection, second terminal To first terminal transmission test instruction, the engineering mode of test instruction meeting pull-up second terminal, second terminal receives test and refers to Configuration file is generated after order, first terminal can extract the application program institute in all second terminal engineering modes in configuration file The corresponding ID number of the test item and test item of support, ID number, which facilitates in subsequent step, carries out selection processing to test item, Directly ID number can be selected in selected processing.
Preferably, by all can test item show to display device, receive for all can test item selected instruction;Root Test item list is generated according to selected instruction.
In the technical scheme, test item can be selected according to demand, first terminal is read in configuration file Test item after, be shown in the display device of first terminal with visual diagrammatic form, tester can be made more straight Sight is clearly seen that all test items, survey to be tested needed for tester can be chosen on chart according to different needs Item is tried, generation test item list after the completion of selection is clicked, the test item that do not choose can be ignored in test, improve second While terminal test efficiency, the corresponding ID number of test item in display cooperation configuration file is also carried out with visual icon Mode simplify the operation of tester, more efficiently search required test item.
Preferably, the mode being attached with second terminal is that Android debugging bridging connects, wherein Android debugs bridge (ADB) Connection type any one of is connected using USB connection with WIFI.
In the technical scheme, the mode that the connection type of first terminal and second terminal selects Android debugging bridging to connect, Specific selection mode is as follows: in the good situation of network environment, WLAN network can be used to first terminal It is attached with second terminal, it is convenient to omit the operation for plugging data line can be direct in the imperfect situation of network environment First terminal and second terminal are attached using data line of universal serial bus, guarantee that it transmits mutually the unimpeded of data.
This application provides a kind of computer readable storage medium, it is stored on computer readable storage medium configurable The configurable of such as any of the above-described is realized when the program of the program of test method, configurable test method is executed by processor The step of test method.
A kind of computer readable storage medium provided by the invention is stored thereon with computer program, computer program quilt The step of test method that any of the above-described can configure is realized when processor executes, therefore the survey that can configure with any of the above-described Whole technical effects of method for testing, details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) method that executes each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (10)

1. a kind of configurable test method is used for first terminal characterized by comprising
Test instruction is sent to second terminal, so that the second terminal is instructed according to the test generates configuration file;
Extract in the configuration file all can test item, according to it is described all can test item selected instruction generate test Item list;
The test item list is sent to the second terminal, so that the second terminal is completed to survey according to the test item list Examination.
2. configurable test method according to claim 1, which is characterized in that comprising described complete in the configuration file Portion can test item and with it is described all can the corresponding identification number of test item.
3. configurable test method according to claim 1, which is characterized in that extracted in the configuration file described All can test item the step of before, further includes:
The configuration file is stored to the first specified path.
4. configurable test method according to claim 3, which is characterized in that further include:
It is polled every the first duration to whether first specified path is stored with the configuration file;
In the case where polling result, which is, is, execute it is described extract in the configuration file all can test item the step of;
In the case where polling result is no, the step being polled every the first duration to the specified path is continued to execute Suddenly.
5. configurable test method according to claim 1, which is characterized in that send the test item list to described Second terminal specifically includes so that the second terminal completes the step of testing according to the test item list:
The second specified path of the test item list to the second terminal is sent, so that the second terminal is answered by test The test item list is extracted in second specified path with program.
6. configurable test method according to claim 5, which is characterized in that the second terminal passes through test application The step of program extracts the test item list in second specified path specifically includes:
It is polled every the second duration to whether second specified path is stored with the test item list;
In the case where polling result, which is, is, the test item list is extracted;
In the case where polling result is no, continues to execute and described second specified path is polled every the second duration The step of.
7. according to claim 1 to test method configurable described in 6, which is characterized in that the basis all may be used to described The selected instruction of test item generates the step of test item list, specifically includes:
By it is described all can test item show to display device, receive for it is described all can test item selected instruction;
The test item list is generated according to the selected instruction.
8. according to claim 1 to test method configurable described in 6 characterized by comprising
It is that Android debugging bridging connects with the mode that the second terminal is attached, wherein
Android debugging bridge connection type any one of is connected using data line of universal serial bus connection with Wireless LAN.
9. a kind of configurable test device, which is characterized in that the configurable test device includes:
Memory, processor and it is stored in the computer program that can be run on the memory and on the processor;
The step such as method described in any item of the claim 1 to 8 is realized when the computer program is executed by the processor Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium configurable Test program, realize when the configurable test program is executed by processor as described in any item of the claim 1 to 8 The step of configurable test method.
CN201910330762.0A 2019-04-23 2019-04-23 Configurable test method, test device and computer readable storage medium Pending CN110221943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910330762.0A CN110221943A (en) 2019-04-23 2019-04-23 Configurable test method, test device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910330762.0A CN110221943A (en) 2019-04-23 2019-04-23 Configurable test method, test device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110221943A true CN110221943A (en) 2019-09-10

Family

ID=67820089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910330762.0A Pending CN110221943A (en) 2019-04-23 2019-04-23 Configurable test method, test device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110221943A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868035A (en) * 2021-08-27 2021-12-31 苏州浪潮智能科技有限公司 Automatic LTP performance testing method and device
CN114554172A (en) * 2022-01-19 2022-05-27 深圳市微特精密科技股份有限公司 Vision test display system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136785A1 (en) * 2004-03-12 2006-06-22 Hon Hai Precision Industry Co., Ltd. System and method for testing hardware devices
CN102665094A (en) * 2012-03-27 2012-09-12 深圳市九洲电器有限公司 Test method of set-top box and test system thereof
CN105093016A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Automation testing method and device for mobile terminal
CN107168832A (en) * 2017-04-26 2017-09-15 中控智慧科技股份有限公司 The method of automatic detection, device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060136785A1 (en) * 2004-03-12 2006-06-22 Hon Hai Precision Industry Co., Ltd. System and method for testing hardware devices
CN102665094A (en) * 2012-03-27 2012-09-12 深圳市九洲电器有限公司 Test method of set-top box and test system thereof
CN105093016A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Automation testing method and device for mobile terminal
CN107168832A (en) * 2017-04-26 2017-09-15 中控智慧科技股份有限公司 The method of automatic detection, device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868035A (en) * 2021-08-27 2021-12-31 苏州浪潮智能科技有限公司 Automatic LTP performance testing method and device
CN113868035B (en) * 2021-08-27 2023-07-18 苏州浪潮智能科技有限公司 Automatic LTP performance test method and device
CN114554172A (en) * 2022-01-19 2022-05-27 深圳市微特精密科技股份有限公司 Vision test display system
CN114554172B (en) * 2022-01-19 2023-08-04 深圳市微特精密科技股份有限公司 Visual test display system

Similar Documents

Publication Publication Date Title
CN105577293B (en) A kind of test method of bluetooth equipment, apparatus and system
JP2005130002A (en) Test apparatus for mobile communication terminal
CN110221943A (en) Configurable test method, test device and computer readable storage medium
CN110069413A (en) Test data communication, test method, device, equipment and storage medium
CN102798833A (en) Automatic test system and method for diagnosis instrument
CN105323748B (en) Test error uploading method and device
CN103108353A (en) Method and apparatus to select an access point
CN104735687B (en) A kind of single verification service test method and device of standing
CN114286363A (en) Off-line production testing method based on Bluetooth serial port
CN105577301B (en) A kind of test method and detection terminal
CN111277303A (en) Production testing method and system based on universal asynchronous receiving and transmitting transmitter to Bluetooth
CN110289890B (en) Near field communication test method, system, mobile terminal and storage medium
CN115103392B (en) ESIM terminal test method, instrument, portal server, device and system
JP5545846B2 (en) Sequence test apparatus and sequence test method
JPWO2018158939A1 (en) COMMUNICATION TEST DEVICE, COMMUNICATION TEST METHOD, AND PROGRAM
JP2012247824A (en) Test system
EP3806438A1 (en) Mobile terminal and method for registering electronic device by mobile terminal
JP5208230B2 (en) Mobile communication terminal test apparatus and message display method
CN110493818B (en) Detection method and device of wireless fidelity module, storage medium and electronic device
JP6878392B2 (en) Mobile terminal test equipment and its test case extraction method
CN104869580A (en) Radio frequency automation test system and method
CN103929768A (en) Test method and device
CN104378805B (en) A kind of method and system connecting mobile network
JP2015129648A (en) Testing system and testing method
CN110572310A (en) Address book-based driving test route sharing method, terminal and storage medium

Legal Events

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

Application publication date: 20190910