CN108009096A - A kind of test method and terminal - Google Patents
A kind of test method and terminal Download PDFInfo
- Publication number
- CN108009096A CN108009096A CN201711441647.8A CN201711441647A CN108009096A CN 108009096 A CN108009096 A CN 108009096A CN 201711441647 A CN201711441647 A CN 201711441647A CN 108009096 A CN108009096 A CN 108009096A
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- control
- input
- event
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
This application discloses a kind of test method and terminal, wherein method includes:First terminal exports the first interface, and first interface includes at least one test control;The first terminal detects the first input for acting on the first test control, and first input is used to start the corresponding test event of the first test control, and the first test control is the part or all of test control at least one test control;The first terminal sends the first test control to the second terminal and corresponds to the corresponding test instruction of test event;The test instruction corresponds to the corresponding function of test event for triggering the second terminal operation the first test control;The first terminal receives the operation data of the second terminal feedback, and the operation data are used to characterize the operating condition that the first test control corresponds to test event corresponding function.The embodiment of the present application, can be performed quickly the application function test to terminal, save the time of test.
Description
Technical field
This application involves field of communication technology, more particularly to a kind of test method and terminal.
Background technology
At present, intelligent terminal, such as mobile phone, tablet computer, are widely used in daily life.In terminal
During making or later maintenance, it is necessary to for different terminal development test softwares and communication software, to realize to terminal
Exploitation and test.
Due to needing to use cmd windows to terminal test at present, scan for, must just learn adb orders by heart, and for
Checking for GPRS parameters, operator etc. needs to carry out special memory, for sectional drawing, export sectional drawing, recorded video, export video
File Deng generation is various numerous and diverse.If wanting to carry out Monkey tests to terminal, it is also necessary to user learns the order of Monkey tests by heart,
Then inputted step by step in cmd windows so that test process is complicated, and inconvenience performs.
The content of the invention
The embodiment of the present application provides a kind of test method, and the application function test to terminal can be performed quickly, save
Time of test.
In a first aspect, the embodiment of the present application provides a kind of test method, this method includes:
First terminal exports the first interface, and first interface includes at least one test control;At least one survey
Examination control corresponds to different test events respectively;The test control is used for the reception startup test control and corresponds to test event
Input;
The first terminal detects the first input for acting on the first test control, and first input is used to start institute
The corresponding test event of the first test control is stated, the first test control is part or all of at least one test control
Test control;
The first terminal sends the first test control to the second terminal and corresponds to the corresponding test of test event
Instruction;The test instruction corresponds to the corresponding work(of test event for triggering the second terminal operation the first test control
Energy;
The first terminal receives the operation data of the second terminal feedback, and the operation data are used to characterizing described the
One test control corresponds to the operating condition of test event corresponding function.
With reference to first aspect, in the first implementation of first aspect, the first interface is exported in the first terminal
Before, further include:
The first terminal obtains the device identification of at least one terminal of the first terminal connection;
The first terminal detects the second input, and second input is used at least one from first terminal connection
The device identification of the second terminal is selected in the device identification of a terminal;
The first terminal determines the second terminal according to the device identification of the second terminal.
With reference to the first of second aspect or second aspect implementation, in second of implementation of second aspect,
First interface further includes:Test event adds control;The test event addition control is used to receive addition test event
And the corresponding test instruction of the test event;
The method further includes:
The first terminal detection acts on the 3rd input of the test event addition control, and the 3rd input is used for
Test event and the corresponding test instruction of the test event are added on first interface;
The terminal response adds the test event and the test event corresponds in the 3rd input detected
The test instruction.
With reference to the first of second aspect or second aspect to second of implementation, in the third realization of second aspect
In mode, first interface further includes:Test event changes control;The test event modification control is used to change the survey
The corresponding test instruction of examination project;
The method further includes:
The first terminal detection acts on the 4th input of the test event modification control, and the 4th input is used for
Corresponding test of the test event on first interface is changed to instruct;
The first terminal is changed the corresponding test of the test event and is referred in response to the 4th input detected
Order.
With reference to first aspect or first aspect first is into the third implementation, and first interface further includes:Terminate
Test control;It is described to terminate test control and be used to triggering the second terminal to terminate to run the first test control and correspond to test
The corresponding function of project;
The method further includes:
The first terminal detection acts on the 5th input for terminating test control, and the 5th input is used to terminate
The first test control corresponds to test event;
The first terminal judges whether the second terminal is currently running test item corresponding with the described first test control
The corresponding function of mesh, if so, then the first terminal sends END instruction to the second terminal, the END instruction is used to refer to
Show that the second terminal the first test control out of service corresponds to the corresponding function of test event.
Second aspect, an embodiment of the present invention provides a kind of terminal, which includes:
Output unit, for exporting the first interface, first interface includes at least one test control;Described at least one
A test control corresponds to different test events respectively;The test control is used for the reception startup test control and corresponds to test
The input of project;
Detection unit, the first input of the first test control is acted on for detecting, first input is used to start
Described first tests the corresponding test event of control, and the first test control is the part or complete at least one test control
Portion tests control;
Transmitting element, the corresponding test of test event is corresponded to for sending the first test control to the second terminal
Instruction;The test instruction corresponds to the corresponding work(of test event for triggering the second terminal operation the first test control
Energy;
Receiving unit, for receiving the operation data of the second terminal feedback, the operation data are used to characterize described
First test control corresponds to the operating condition of test event corresponding function.
With reference to second aspect, in the first implementation of second aspect, the first interface is exported in the output unit
Before, further include:
Acquiring unit, for obtaining the device identification at least one terminal being connected with first terminal;
The detection unit, is additionally operable to detect the second input, second input is used to connect from the first terminal
At least one terminal device identification in select the device identification of the second terminal;
Processing unit, for the device identification according to the second terminal, determines the second terminal.
With reference to the first of second aspect or second aspect implementation, in second of implementation of second aspect,
First interface further includes:Test event adds control;The test event addition control is used to receive addition test event
And the corresponding test instruction of the test event;
The terminal further includes:
The detection unit, is additionally operable to the 3rd input that detection acts on test event addition control, and the described 3rd
Input is used to add test event and the corresponding test instruction of the test event on first interface;
The processing unit, is additionally operable to the 3rd input detected in response to the detection unit, adds the survey
Examination project and the corresponding test instruction of the test event.
With reference to second aspect or the first to second implementation of second aspect, in the third realization side of second aspect
In formula, first interface further includes:Test event changes control;The test event modification control is used to receive described in modification
The input of the corresponding test instruction of test event;
The terminal further includes:
The detection unit, is additionally operable to the 4th input that detection acts on test event modification control, and the described 4th
Input is used to change corresponding test of the test event on first interface and instructs;
The processing unit, is additionally operable to the 4th input in response to detecting, it is corresponding to change the test event
Test instruction.
With reference to second aspect or second aspect first to the third implementation, in the 4th kind of realization side of second aspect
In formula, first interface further includes:Terminate test control;The test control that terminates terminates for triggering the second terminal
Run the first test control and correspond to the corresponding function of test event;
The terminal further includes:
The detection unit, is additionally operable to detection and acts on the 5th input for terminating test control, the 5th input
Test event is corresponded to for terminating the first test control;
Judging unit, for judging whether the second terminal is currently running test item corresponding with the described first test control
The corresponding function of mesh, if so, then the transmitting element sends END instruction to the second terminal, the END instruction is used to refer to
Show that the second terminal the first test control out of service corresponds to the corresponding function of test event.
The third aspect, an embodiment of the present invention provides another terminal, including processor, input equipment, output equipment and
Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, the memory is used to store branch
The application code that terminal performs the above method is held, the processor is arranged to the method for performing above-mentioned first aspect.
Fourth aspect, an embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage medium
Computer program is stored with, the computer program includes programmed instruction, and described program instruction makes institute when being executed by a processor
State the method that processor performs above-mentioned first aspect.
5th aspect, an embodiment of the present invention provides a kind of computer program, the computer program includes programmed instruction,
Described program instruction makes the method that the processor performs above-mentioned first aspect when being executed by a processor.
Implement the embodiment of the present application, have the advantages that:
First terminal selects to input on the first interface by exporting the first interface with test control, for user
Control is tested, the first test control for starting at least one second terminal corresponds to test event, first terminal
Send test instruction and correspond to the corresponding work(of test event to each second terminal, triggering second terminal operation the first test control
Energy.Second terminal run it is described first test control corresponds to the corresponding function of test event after, second terminal feedback transports
For the operation data of row function to first terminal, first terminal can export test log to user.In this manner it is achieved that rapidly hold
Row tests the application function of terminal, saves the time of test.
Brief description of the drawings
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description
Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area
For logical technical staff, without creative efforts, other attached drawings can also be obtained according to these attached drawings.
Fig. 1 is a kind of schematic flow diagram of test method provided by the embodiments of the present application;
Fig. 2A -2E are a kind of terminal interface schematic diagrames of test method provided by the embodiments of the present application;
Fig. 3 is a kind of structure diagram of terminal provided by the embodiments of the present application;
Fig. 4 is the structure diagram of another terminal provided by the embodiments of the present application.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without making creative work
Example, belongs to the scope of protection of the invention.
It should be noted that the term used in embodiments of the present invention is only merely for the mesh of description specific embodiment
, and it is not intended to be limiting the present invention." the one of the embodiment of the present invention and singulative used in the attached claims
Kind ", " described " and "the" are also intended to including most forms, unless context clearly shows that other implications.It is also understood that this
Term "and/or" used herein refers to and comprising any or all possible group associated of list items purpose of one or more
Close.
It is that the embodiment of the present application provides a kind of schematic flow diagram of test method, as shown in the figure, this method bag referring to Fig. 1
Include but be not limited to following steps:S101-S105.
S101, first terminal export the first interface, and first interface can include at least one test control.
Specifically, at least one test control corresponds to different test events respectively.The test control is used to connect
Receive and start the input that the test control corresponds to test event.For example, reference can be made to shown in Fig. 2A, the test control at the first interface
Part can include:GPRS parameter testing controls are led, record video measurement control, lead video measurement control, camera test control, information
Control is tested, sectional drawing simultaneously exports test control, picture test control, Theme test controls, calculator test control, FM tests
Control, VideoPlayer test controls etc..The corresponding test event of above-mentioned test control can be:GPRS parameters are led, record regards
Frequently, guide frequency, camera, information, sectional drawing simultaneously export, picture, Theme, calculator, FM, VideoPlayer etc..Example is only used
In explaining the application, restriction should not be formed.
Optionally, the first interface of first terminal output can also include:Test event adds control.The test event
Add the input that control is used to receive addition test event and the corresponding test instruction of the test event.First terminal can be examined
Threeth input of the stylus to above-mentioned test event addition control, the 3rd input can be used for adding first on above-mentioned first interface
Test event and the corresponding first test instruction of the first test event.For example, as shown in Figure 2 B, the first interface can also wrap
The control of addition test event is included, after the control that user triggers addition test event, first terminal can eject addition and survey
Examination project prompting frame, for receiving the 3rd input of user.3rd input can be in the addition the first test event prompting
The test instruction of the first test event of the title of the first test event of addition and addition in frame.For example, first terminal receives user
First test event title of the 3rd input addition of sum can be " Music ", and the instruction of the first addition test event can be
Test for " Music " instructs, and test instruction can test the file of instruction code, can also directly be test instruction
Code.After terminal reception user has added the first test event, first terminal can show the first survey on the first interface
The corresponding first test control of examination project.As shown in Figure 2 C, after user has added first test event of " Music ", the
One terminal can show " Music " corresponding control on the first interface.Example is used only for explaining the application, should not form limit
It is fixed.
Optionally, the first interface of first terminal output can also include:Test event changes control.The test event
Change the input that control is used to receive the corresponding test instruction of modification test event.First terminal can also detect user for survey
4th input of examination project modification control, the 4th input are used to change the corresponding test instruction of the test event.Terminal
The corresponding test instruction of the test event can be changed in response to the 4th input detected.For example, such as Fig. 2 D
Shown, the first interface can further include the control of modification test event, after the control that user triggers modification test event, the
One terminal can eject modification test event prompting frame, be tested for receiving modification test event title input by user and modification
The corresponding instruction of project.For example, modification test event prompting frame can show all test items included on current first interface
The corresponding test event title of mesh control.User can select to need the test event title changed, such as " VideoPlayer ",
The test event title VideoPlayer that first terminal can be changed as needed, needs to transfer and export the second prompting display
The corresponding VideoPlayer tests instructions of the VideoPlayer to be changed.First terminal can receive user couple
The modification of VideoPlayer test instructions, and amended test instruction is closed with VideoPlayer controls in the first interface
Connection.Example is used only for explaining the application, should not form restriction.
First terminal is by going out the controls of a variety of difference in functionality for test event in the first interface display, it is possible to achieve
Quick addition and modification to test event, have saved the maintenance time of application function test.
S102, first terminal detect the first input for acting on the first test control, and first input is used to start
Described first tests the corresponding test event of control.The first test control is the part or complete at least one test control
Portion tests control.
Optionally, before first terminal detects and acts on the first input of test control, first terminal can obtain
The device identification of at least one terminal of communication connection is established with first terminal.First terminal can detect the second input, the
Two inputs can be used for from the device identification of at least one terminal of first terminal connection selecting described at least one
The device identification of second terminal.First terminal can determine at least one second eventually according to the device identification of the second terminal
End.As shown in Figure 2 A, first terminal can get the device identification of three second terminals, T1 (02245106C1), T2
(02365107C2), T3 (02471208C3).First terminal is according to device identification input by user or this device identification selected
(02245106C1 and 02365107C2), it may be determined that two second terminals (T1 and T2).User can divide on the first interface
It is other that test event is selected to two second terminals, for example, second terminal T1 (02245106C1) is directed to, the test item of user's selection
Mesh can lead GPRS parameters, picture and information.For second terminal T2 (02365107C2), the test event of user's selection can
To be to record video, guide frequency and camera.Example is used only for explaining the application, should not form restriction.First terminal passes through acquisition
The device identification of multiple second terminals, it is possible to achieve while the application function of multiple second terminals is tested, greatly save
Time of the multiple second terminal application functions of test.
Specifically, the first input can be used for starting the corresponding test event of the first test control, described first surveys
It can be that the first input action tests the corresponding test event of control in described that examination control, which corresponds to test event,.As shown in Figure 2 A,
The test event control at the first interface on first terminal can include:GPRS parameters are led, record video, guide frequency, camera, letter
Breath, sectional drawing simultaneously export, picture, Theme, calculator, FM, VideoPlayer.User chooses on the first interface of first terminal
The first test control for second terminal T1 to correspond to test event can be " leading GPRS parameters, information, picture ".With
The first test control for second terminal T2 that family is chosen on the first interface of first terminal corresponds to test event can
With, for " leading GPRS parameters, information, picture ", can not also equally be as second terminal T1 " record video, guide frequency, phase
Machine ".Example is used only for explaining the application, should not form restriction.
S103, first terminal correspond to the corresponding test of test event to second terminal transmission the first test control and refer to
Order, the test instruction correspond to the corresponding function of test event for triggering second terminal operation the first test control.
Specifically, the device identification for the second terminal that first terminal can be selected according to user, sends out to each second terminal
The corresponding multiple first test controls of device identification are sent to correspond to the test instruction of test event.For example, the of user's selection
Two Terminal Equipment Identifiers have T1 (02245106C1), T2 (02365107C2), then first terminal can be to second terminal T1 and
Two terminal T2 carry out application function test.User corresponds to test event for the first test control of second terminal T1 selections
Can lead GPRS parameters, information, picture.User corresponds to test item for the first test control of second terminal T2 selections
Mesh can record video, guide frequency, camera.First terminal can transfer the test instruction of GPRS parameters, the test of information instruction
Test with picture instructs, and is sent to second terminal T1.First terminal can transfer test instruction, the survey of guide frequency of record video
Examination instruction and the test of camera instruct, and are sent to second terminal T2.Example is used only for explaining the application, should not form restriction.
Optionally, the first interface of first terminal output can also include:Terminate test control.Terminating test control can be with
Terminate to run the corresponding function of the target detection for triggering the second terminal.First terminal can be detected for the knot
6th input of beam test control, test event is corresponded to for terminating the first test control.First terminal may determine that institute
State whether second terminal is currently running function corresponding with the destination item, if so, then first terminal send END instruction to
Second terminal, END instruction are used to indicate that second terminal the first test control out of service corresponds to the corresponding work(of test event
Energy.For example, when second terminal T1 is testing " leading GPRS parameters, information and picture ", first terminal receives the end of user
During test operation, first terminal can send END instruction and give second terminal T1.Second terminal T1 receive END instruction it
After will stop to " leading GPRS parameters, information and picture " test.Example is used only for explaining the application, should not form restriction.
In this way, can be when user needs using terminal, it is not necessary to take time to wait until to complete terminal test, click directly on end and survey
Try control, you can terminate the test to terminal, provide the user great convenience.
S104, first terminal receive the operation data of second terminal feedback, and the operation data are used to characterize described first
Test control corresponds to the operating condition of test event corresponding function.
Specifically, second terminal, after the test for receiving first terminal instructs, second terminal can refer to according to test
Order operation instructs associated one or more application function with test.For example, second terminal T1 receives the test of first terminal
Instruction can be the test instruction of GPRS parameters, the test instruction of information and the test of picture instruction, then second terminal T1 can be with
Operation sets application to transfer GPRS parameters, and operation information application, runs picture library application.Second terminal T1 can be run at the same time
Three kinds of application functions are stated, above-mentioned three kinds of application functions can also be run successively, for example, first operation sets application to transfer GPRS ginsengs
Number, rerun Information application, finally runs picture library application.Example is used only for explaining the application, should not form restriction.
Further, complete operation the first test control in second terminal and correspond to the corresponding application function of test event
Afterwards, first terminal can receive the operation data for application function of second terminal feedback.First terminal can be in institute
Have it is described first test control corresponds to test event complete after receive second terminal feed back operation data or
The operation data of second terminal feedback are received after each test event is completed.For example, second terminal T1 can be complete
Into GPRS parameter testings are led, after information test and picture test, feedback " leading GPRS parameters " runs data, " information " operation number
Data are run to first terminal according to " picture ".Second terminal T1 " can be led completing to feed back after leading GPRS parameter testings
GPRS parameters " run data to first terminal, after information test is completed feedback " information " operation data to first terminal,
Feedback " picture " runs data to first terminal after completing picture test.Example is used only for explaining the application, should not form
Limit.
Optionally, after the operation data that first terminal receives second terminal feedback, first terminal can also export survey
Daily record is tried, the test log is used for the operation number for showing that the first test control corresponds to test event corresponding function
According to.
Specifically, with reference to shown in figure 2E, it is complete that first terminal can correspond to test event in all first test controls
Into the test log file exported afterwards.Journal file can include:" GPRS parameter .txt ", " record video .txt ", " guide
Frequency .rmvb ", " camera .txt ", " information .txt ", " screenshotss .txt ", " picture .JPEG ", " Theme.txt ", " calculator
.txt ", " FM.txt ", " VideoPlayer.rmvb "." .txt " and " .JPEG " be operation data data type, word number
Can be " .txt " according to type, picture/mb-type can be " .JPEG ", and video class file can be " .rmvb " etc., be not construed as limiting.
Optionally, first terminal can export the test log of each second terminal according to the device identification of second terminal.
For example, being directed to second terminal T1 (02245106C1), the test log file of first terminal output can include:" GPRS parameters
" .txt " picture .JPEG " and " information .txt ".For second terminal T2 ((02365107C2), the test of first terminal output
Journal file can include:" record video .txt ", " guide frequency .rmvb ", " camera .txt ".In this way, to multiple second terminals
In the case of test, the corresponding test log of different terminals can be exported, allows what user can be clear to check each second
The test log of terminal, alleviates the work load of user.
It is a kind of structure diagram of terminal provided in an embodiment of the present invention referring to Fig. 3.As shown in figure 3, terminal 30 can be with
Including:Output unit 310, detection unit 320, processing unit 330, transmitting element 340, acquiring unit 350, receiving unit 360,
Wherein,
Output unit 310 can be used for the first interface of output, and first interface includes at least one test control.It is described extremely
Few test control corresponds to different test events respectively.The test control is used for the reception startup test control and corresponds to
The input of the test event.
Detection unit 320 can be used for detecting the first input for acting on the first test control, first input
Test event is corresponded to for starting the first test control, the first test control is the portion at least one test control
Divide or all test control.
Transmitting element 340 is corresponding available for test event is corresponded to second terminal transmission the first test control
Test instruction.The test instruction corresponds to test event correspondence for triggering the second terminal operation the first test control
Function.
Receiving unit 360 can be used for the operation data for receiving the second terminal feedback, and the operation data are used to characterize
The first test control corresponds to the operating condition of test event corresponding function.
Optionally, before the output unit 310 exports the first interface, acquiring unit 350 can be used for obtaining described the
The device identification of at least one terminal of one terminal connection.
The detection unit 320 can be additionally used in the input of detection second, and second input is used to connect from the first terminal
The device identification of the second terminal is selected in the device identification of at least one terminal connect.
Processing unit 330 can be used for the device identification according to the second terminal, determine the second terminal.
Optionally, first interface further includes:Test event adds control.The test event addition control is used to connect
Receive addition test event and the test event corresponds to the input of test instruction.
The detection unit 320 can be additionally used in threeth input of the detection for test event addition control, and described the
Three inputs are used to add test event and the corresponding test instruction of the test event on first interface.
The processing unit 330 can be used for the 3rd input detected in response to the detection unit 320, add institute
State test event and the corresponding test instruction of the test event.
Optionally, first interface further includes:Test event changes control.The test event modification control is used to connect
Receive and change the input that the test event corresponds to test instruction.
The detection unit 320 can be additionally used in the 4th input for detecting user, and the 4th input is used to change described the
The test event is corresponding on one interface tests instruction.
Optionally, first interface further includes:Terminate test control.The test control that terminates is used to receive triggering institute
Second terminal is stated to terminate to run the input that the first test control corresponds to the corresponding function of test event.
The detection unit 320 can be additionally used in detection act on it is described terminate test control the 5th input, the described 5th
Input corresponds to test event for terminating the first test control;
Terminal 30 further includes:Judging unit, the judging unit can be used for judging whether the second terminal is currently running
Function corresponding with the described first correspondings test event of test control, if so, then the transmission END instruction of transmitting element 340 to
The second terminal, the END instruction are used to indicate that the second terminal the first test control out of service corresponds to test
The corresponding function of project.
It is understood that to may be referred to Fig. 1 corresponding for the specific implementation for each functional unit that terminal 30 includes
Embodiment, which is not described herein again.
It is the structure diagram of another terminal provided by the embodiments of the present application referring to Fig. 4.As shown in figure 4, terminal 40 can
With including:At least one processor 401, such as CPU, at least one network interface 404, memory 405, clock module 403, extremely
A few communication bus 402, voicefrequency circuit 406, display screen 407.Clock module 403 is mainly used for producing number for processor 401
According to transmission and the required clock of timing control.Memory 405 is coupled with processor 401 by communication bus 402, memory
405 can tell RAM memory or non-labile memory (non-volatile memory), for example, at least
One magnetic disk storage.Network interface 404 can communicate with other-end.
Processor 401 can be central processing unit (Central Processing Unit, CPU), which may be used also
To be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
In the application, processor 401 can be used for reading and performing computer-readable instruction.Specifically, processor 401 can
For calling the program in memory 409, such as the application function test method (the corresponding embodiments of Fig. 1) that the application provides
Realize program, and perform the instruction that the program includes.
It should be noted that the terminal 40 shown in Fig. 4 is only a kind of implementation of the embodiment of the present application, practical application
In, terminal 40 can also include more or fewer components, not be restricted here.
A kind of computer-readable recording medium, the computer-readable storage medium are provided in another embodiment of the application
Matter is stored with computer program, and the computer program realizes above-mentioned Fig. 1 methods when being executed by processor.
The computer-readable recording medium can be the internal storage unit of the terminal described in foregoing any embodiment, example
Such as the hard disk or memory of terminal.The computer-readable recording medium can also be the External memory equipment of the terminal, such as
The plug-in type hard disk being equipped with the terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer-readable recording medium can also be wrapped both
Including the internal storage unit of the terminal also includes External memory equipment.The computer-readable recording medium is used to store described
Other programs and data needed for computer program and the terminal.The computer-readable recording medium can be also used for temporarily
When store the data that has exported or will export.
Those of ordinary skill in the art may realize that each exemplary list described with reference to the embodiments described herein
Member and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical solution.Specially
Industry technical staff can realize described function to each specific application using distinct methods, but this realization is not
It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the clothes of foregoing description
The specific work process of business device, terminal and unit, may be referred to the corresponding process in preceding method embodiment, no longer superfluous herein
State.
In several embodiments provided herein, it should be understood that disclosed method, server and terminal, can
To realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, be only a kind of division of logic function, can have other dividing mode, such as multiple units or group when actually realizing
Part can combine or be desirably integrated into another system, or some features can be ignored, or not perform.In addition, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit
Close or communication connection or electricity, the connection of mechanical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
In network unit.Some or all of unit therein can be selected to realize the embodiment of the present application scheme according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, can also
It is that unit is individually physically present or two or more units integrate in a unit.It is above-mentioned integrated
Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to contribute in other words to the prior art, or all or part of the technical solution can be in the form of software product
Embody, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment the method for the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, is only the embodiment of the application, but the protection domain of the application is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced
Change, these modifications or substitutions should all cover within the protection domain of the application.Therefore, the protection domain of the application should be with right
It is required that protection domain subject to.
Claims (10)
- A kind of 1. test method, it is characterised in that including:First terminal exports the first interface, and first interface includes at least one test control;At least one test control Part corresponds to different test events respectively;The test control is used for the reception startup test control and corresponds to the defeated of test event Enter;The first terminal detects the first input for acting on the first test control, and first input is used to start described the The corresponding test event of one test control, the first test control are the part or all of test at least one test control Control;The first terminal sends the first test control to the second terminal and corresponds to the corresponding test instruction of test event; The test instruction corresponds to the corresponding function of test event for triggering the second terminal operation the first test control;The first terminal receives the operation data of the second terminal feedback, and the operation data are used to characterize first survey Examination control corresponds to the operating condition of test event corresponding function.
- 2. method according to claim 1, it is characterised in that before the first terminal exports the first interface, further include:The first terminal obtains the device identification of at least one terminal of the first terminal connection;The first terminal detects the second input, and second input is used at least one end from first terminal connection The device identification of the second terminal is selected in the device identification at end;The first terminal determines the second terminal according to the device identification of the second terminal.
- 3. method according to claim 1, it is characterised in that first interface further includes:Test event adds control;Institute State the input that test event addition control is used to receive addition test event and test event correspondence test instruction;The method further includes:The first terminal detection acts on the 3rd input of the test event addition control, and the 3rd input is used in institute State and test event and the corresponding test instruction of the test event are added on the first interface;The terminal response adds the test event and the corresponding survey of the test event in the 3rd input detected Examination instruction.
- 4. method according to claim 1, it is characterised in that first interface further includes:Test event changes control;Institute Test event modification control is stated to be used to receive the input that modification test event corresponds to test instruction;The method further includes:The first terminal detection acts on the 4th input of the test event modification control, and the 4th input is used to change The test event is corresponding on first interface tests instruction;The first terminal changes the corresponding test instruction of the test event in response to the 4th input detected.
- 5. method according to claim 1, it is characterised in that first interface further includes:Terminate test control;The knot Beam test control, which is used to receive, to be triggered the second terminal and terminates to run the first test control to correspond to test event corresponding The input of function;The method further includes:The first terminal detection acts on the 5th input for terminating test control, and the 5th input is used to terminate described First test control corresponds to test event;The first terminal judges whether the second terminal is currently running test event pair corresponding with the described first test control The function of answering, if so, then the first terminal sends END instruction to the second terminal, the END instruction is used to indicate institute State second terminal the first test control out of service and correspond to the corresponding function of test event.
- A kind of 6. terminal, it is characterised in that including:Output unit, for exporting the first interface, first interface includes at least one test control;At least one survey Examination control corresponds to different test events respectively;The test control is used for the reception startup test control and corresponds to test event Input;Detection unit, the first input of the first test control is acted on for detecting, first input is used to start described The corresponding test event of first test control, the first test control are the part or all of survey at least one test control Try control;Transmitting element, refers to for corresponding to the corresponding test of test event to second terminal transmission the first test control Order;The test instruction corresponds to the corresponding work(of test event for triggering the second terminal operation the first test control Energy;Receiving unit, for receiving the operation data of the second terminal feedback, the operation data are used to characterize described first Test control corresponds to the operating condition of test event corresponding function.
- 7. terminal according to claim 6, it is characterised in that before the output unit exports the first interface, further include:Acquiring unit, for obtaining the device identification at least one terminal being connected with first terminal;The detection unit, is additionally operable to detect the second input, second input be used for from first terminal connection to The device identification of the second terminal is selected in the device identification of a few terminal;Processing unit, for the device identification according to the second terminal, determines the second terminal.
- 8. terminal according to claim 6, it is characterised in that first interface further includes:Test event adds control;Institute State the input that test event addition control is used to receive addition test event and the corresponding test instruction of the test event;The terminal further includes:The detection unit, is additionally operable to the 3rd input that detection acts on the test event addition control, the 3rd input For adding test event and the corresponding test instruction of the test event on first interface;The processing unit, is additionally operable to the 3rd input detected in response to the detection unit, adds the test item Mesh and the corresponding test instruction of the test event.
- 9. terminal according to claim 6, it is characterised in that first interface further includes:Test event changes control;Institute Test event modification control is stated to be used to receive the input for changing the corresponding test instruction of the test event;The terminal further includes:The detection unit, is additionally operable to the 4th input that detection acts on the test event modification control, the 4th input For changing, the test event on first interface is corresponding to test instruction.The processing unit, is additionally operable to the 4th input detected in response to the detection unit, changes the test item The corresponding test instruction of mesh.
- 10. terminal according to claim 6, it is characterised in that first interface further includes:Terminate test control;It is described Terminate test control and be used to receive to trigger the second terminal and terminate to run the first test control to correspond to test event and correspond to Function input;The terminal further includes:The detection unit, is additionally operable to detection and acts on the 5th input for terminating test control, the 5th input is used for Terminate the first test control and correspond to test event;Judging unit, for judging whether the second terminal is currently running test event pair corresponding with the described first test control The function of answering, if so, then the transmitting element sends END instruction to the second terminal, the END instruction is used to indicate institute State second terminal the first test control out of service and correspond to the corresponding function of test event.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711441647.8A CN108009096B (en) | 2017-12-26 | 2017-12-26 | Test method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711441647.8A CN108009096B (en) | 2017-12-26 | 2017-12-26 | Test method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108009096A true CN108009096A (en) | 2018-05-08 |
CN108009096B CN108009096B (en) | 2021-02-09 |
Family
ID=62061738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711441647.8A Active CN108009096B (en) | 2017-12-26 | 2017-12-26 | Test method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108009096B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061630A (en) * | 2019-11-26 | 2020-04-24 | 歌尔股份有限公司 | Product debugging method, debugging device and readable storage medium |
CN111162962A (en) * | 2019-12-06 | 2020-05-15 | 中盈优创资讯科技有限公司 | Method and system for detecting tunnel state of ring network channel type service |
CN112098769A (en) * | 2020-08-07 | 2020-12-18 | 中国人民解放军海军七0一工厂 | Component testing method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461904A (en) * | 2014-12-29 | 2015-03-25 | 北京畅游天下网络技术有限公司 | Method and device for testing mobile terminal |
CN105808419A (en) * | 2014-12-30 | 2016-07-27 | 平安科技(深圳)有限公司 | Application test method and terminal |
US9747191B1 (en) * | 2015-10-05 | 2017-08-29 | Amazon Technologies, Inc. | Tool to replicate actions across devices in real time for improved efficiency during manual application testing |
-
2017
- 2017-12-26 CN CN201711441647.8A patent/CN108009096B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461904A (en) * | 2014-12-29 | 2015-03-25 | 北京畅游天下网络技术有限公司 | Method and device for testing mobile terminal |
CN105808419A (en) * | 2014-12-30 | 2016-07-27 | 平安科技(深圳)有限公司 | Application test method and terminal |
US9747191B1 (en) * | 2015-10-05 | 2017-08-29 | Amazon Technologies, Inc. | Tool to replicate actions across devices in real time for improved efficiency during manual application testing |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061630A (en) * | 2019-11-26 | 2020-04-24 | 歌尔股份有限公司 | Product debugging method, debugging device and readable storage medium |
CN111162962A (en) * | 2019-12-06 | 2020-05-15 | 中盈优创资讯科技有限公司 | Method and system for detecting tunnel state of ring network channel type service |
CN112098769A (en) * | 2020-08-07 | 2020-12-18 | 中国人民解放军海军七0一工厂 | Component testing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN108009096B (en) | 2021-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101156153B (en) | System and apparatus for in-system programming | |
CN109101381A (en) | Configuration file update method, system, electronic equipment and storage medium | |
CN108009096A (en) | A kind of test method and terminal | |
CN106951364A (en) | Method of testing and device | |
CN107133174A (en) | Test case code automatically generating device and method | |
CN106557424A (en) | Internal storage testing method, measured terminal, test client and system | |
CN104598380A (en) | Method and system for automatic testing based on control | |
CN103440144B (en) | A kind of method to set up to the default software that equipment uses and device | |
CN103201729A (en) | High speed interchip universal serial bus monitoring | |
CN113672441B (en) | Method and device for testing intelligent equipment | |
CN110334007A (en) | A kind of functional interface calls verification method and device, electronic equipment and storage medium | |
CN110113391A (en) | A kind of client loading method, device and a kind of client operation method, device | |
CN109933402A (en) | A kind of methods of exhibiting of function menu, system and relevant device | |
CN110134574A (en) | A kind of software performance testing method, system, medium and electronic equipment | |
CN110442502A (en) | A kind of method, apparatus buried a little, equipment and storage medium | |
CN111198797B (en) | Operation monitoring method and device and operation analysis method and device | |
CN110134593A (en) | Method for testing software, device, electronic equipment and storage medium | |
CN107368406A (en) | The method, apparatus and equipment of test application program | |
CN106980442A (en) | A kind of icon management method and electronic equipment | |
CN108776604A (en) | The execution method and system of goal task | |
CN105740117B (en) | Chip adjustment method and device | |
CN108520043A (en) | Data object acquisition method, apparatus and system, computer readable storage medium | |
CN113359010A (en) | Core board test system and test method thereof | |
CN105354142A (en) | Middleware test method and apparatus | |
CN106997313A (en) | A kind of signal processing method of application program, system and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221219 Address after: 201203 1st floor, building 1, Lane 36, Xuelin Road, Pudong New Area Free Trade Zone, Shanghai Patentee after: SHANGHAI TRANSSION INFORMATION TECHNOLOGY Ltd. Address before: Room 922 / 926, block a, No.1 Lane 399, shengxia Road, Pudong New Area pilot Free Trade Zone, Shanghai 201203 Patentee before: SHANGHAI SPREADRISE COMMUNICATION TECHNOLOGY Ltd. |