CN107832214A - Method of testing, device, storage medium, terminal device and system - Google Patents

Method of testing, device, storage medium, terminal device and system Download PDF

Info

Publication number
CN107832214A
CN107832214A CN201711079277.8A CN201711079277A CN107832214A CN 107832214 A CN107832214 A CN 107832214A CN 201711079277 A CN201711079277 A CN 201711079277A CN 107832214 A CN107832214 A CN 107832214A
Authority
CN
China
Prior art keywords
terminal device
test
closing information
information
closing
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
CN201711079277.8A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711079277.8A priority Critical patent/CN107832214A/en
Publication of CN107832214A publication Critical patent/CN107832214A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Abstract

A kind of method of testing, device, storage medium, terminal device and the system provided in the embodiment of the present application, this method passes through when starting the test to terminal device, opening imformation is sent to the terminal device, the daily record that the terminal device is opened by the opening imformation exports;When terminating the test to the terminal device, closing information is generated according to test result;The closing information is sent to the terminal device, the daily record that the terminal device is closed by the closing information exports, and notifies the terminal device to carry out preservation processing to the log information generated by the default test result in the closing information.The embodiment of the present application according to test starting and at the end of testing by controlling the daily record of terminal device to export, and the log information according to corresponding to obtaining test result, can obtain useful log information and be analyzed and processed to research staff.By using above-mentioned technical proposal, the efficiency tested terminal device can be improved.

Description

Method of testing, device, storage medium, terminal device and system
Technical field
The invention relates to Computer Simulation testing field, and in particular to a kind of method of testing, device, storage are situated between Matter, terminal device and system.
Background technology
Terminal device was required for carrying out it various emulation testing experiments, to improve terminal device in the development & production stage The stability used.During testing terminal device, terminal device can generate journal file (Log files), day Will file includes terminal device the log in test process, and research staff can be analyzed according to journal file, with And terminal device is optimized.But as the number tested terminal device increases, the day that terminal device is generated Will file is also more and more, and the work that journal file can be so handled to research staff brings more inconvenience, causes test job Efficiency step-down.
The content of the invention
The embodiment of the present application provides a kind of method of testing, device, storage medium, terminal device and system, can improve pair The efficiency that terminal device is tested.
In a first aspect, the embodiment of the present application provides a kind of method of testing, including:
When starting the test to terminal device, opening imformation is sent to the terminal device, passes through the opening imformation Open the daily record output of the terminal device;
When terminating the test to the terminal device, closing information is generated according to test result;
The closing information is sent to the terminal device, the day of the terminal device is closed by the closing information Will exports, and notifies the terminal device to the log information that is generated by the default test result in the closing information Carry out preservation processing.
Second aspect, the embodiment of the present application provide a kind of method of testing, including:
Receive test lead start test when it is transmitted come opening imformation when, open daily record output;
When receiving the test lead and terminating test during transmitted closing information, closing journal output;
Default test result in the closing information carries out preservation processing to the log information generated.
The third aspect, the embodiment of the present application provide a kind of test device, including:
Test starting module, for when starting test to terminal device, sending opening imformation to the terminal device, The daily record that the terminal device is opened by the opening imformation exports;
Terminate module is tested, for when terminating the test to the terminal device, generating and closing according to test result Close information;
Log pattern is controlled, for the closing information to be sent to the terminal device, is closed by the closing information The daily record output of the terminal device is closed, and the terminal device is notified by the default test result in the closing information Preservation processing is carried out to the log information generated.
Fourth aspect, the embodiment of the present application provide a kind of test device, including:
Daily record open module, for receive test lead start test when it is transmitted come opening imformation when, open day Will exports;
Daily record closedown module, for receive the test lead terminate test when it is transmitted come closing information when, close Close daily record output;
Log saving module, the log information generated is entered for the default test result in the closing information Row preservation is handled.
5th aspect, the embodiment of the present application provide a kind of computer-readable recording medium, are stored thereon with computer journey Sequence, a kind of method of testing as described in the embodiment of the present application third aspect is realized when the program is executed by processor.
6th aspect, the embodiment of the present application provide a kind of computer-readable recording medium, are stored thereon with computer journey Sequence, a kind of method of testing as described in the embodiment of the present application fourth aspect is realized when the program is executed by processor.
7th aspect, the embodiment of the present application provide a kind of test lead, including memory, processor and are stored in memory Computer program that is upper and being run in processor, realizes that the application such as is implemented described in the computing device during computer program A kind of method of testing described in the example third aspect.
Eighth aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor and are stored in storage On device and it can be realized in the computer program of processor operation described in the computing device during computer program as the application is real Apply a kind of method of testing described in a fourth aspect.
9th aspect, the embodiment of the present application provide a kind of test system, including test lead, terminal device, control terminal With background server memory;
Test lead sends opening imformation to controlling terminal when starting test to terminal device;
Terminal is controlled to control the terminal device to open daily record output according to the opening imformation;
Test lead generates closing information when terminating the test to the terminal device, according to test result, and will Closing information is sent to the control terminal;
Terminal is controlled to control the terminal device closing journal to export according to the closing information;It is and described detecting When in closing information comprising default test result, the log information that the terminal device is generated is obtained, and the daily record is believed Background server is uploaded to after breath packing.
A kind of testing scheme provided in the embodiment of the present application, by the way that when starting the test to terminal device, transmission is opened Information is opened to the terminal device, the daily record that the terminal device is opened by the opening imformation exports;It is described right in end During the test of the terminal device, closing information is generated according to test result;The closing information is sent to the terminal and set Standby, the daily record that the terminal device is closed by the closing information exports, and passes through the default survey in the closing information Test result notifies the terminal device to carry out preservation processing to the log information generated.The embodiment of the present application passes through according to test Start and test at the end of control the daily record output of terminal device, and the log information according to corresponding to obtaining test result can be with Useful log information is obtained to be analyzed and processed to research staff.By using above-mentioned technical proposal, can improve to terminal The efficiency that equipment is tested.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet for method of testing that the embodiment of the present application provides;
Fig. 2 is the schematic flow sheet for another method of testing that the embodiment of the present application provides;
Fig. 3 is the schematic flow sheet for another method of testing that the embodiment of the present application provides;
Fig. 4 is a kind of structured flowchart for test system that the embodiment of the present application provides;
Fig. 5 is a kind of structured flowchart for test device that the embodiment of the present application provides;
Fig. 6 is the structured flowchart for another test device that the embodiment of the present application provides;
Fig. 7 is a kind of structural representation for test lead that the embodiment of the present application provides;
Fig. 8 is a kind of structural representation for terminal device that the embodiment of the present application provides;
Fig. 9 is the structural representation for another terminal device that the embodiment of the present application provides.
Embodiment
The technical scheme of the application is further illustrated below in conjunction with the accompanying drawings and by embodiment.It is appreciated that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.Further need exist for illustrating , for the ease of description, the part related to the application rather than entire infrastructure are illustrate only in accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of order, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the order of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to the additional step being not included in accompanying drawing.The processing can be with Corresponding to method, function, code, subroutine, subprogram etc..
Fig. 1 is a kind of schematic flow sheet of method of testing provided in an embodiment of the present invention, and this method can be by test device Perform, wherein the device can be realized by software and/or hardware, can typically be integrated in test lead, can also be integrated in it He is provided with the test lead of operating system.As shown in figure 1, this method includes:
S101, when starting test to terminal device, send opening imformation to the terminal device, pass through the unlatching Information opens the daily record output of the terminal device.
Terminal device include as smart mobile phone, tablet personal computer and other possess the equipment of operating system, pass through test lead pair Terminal device carries out emulation testing, to improve the operation stability of terminal device.Exemplarily, test lead can be emulator, For analogue communication base station, simulation communication is carried out to terminal device by emulator, made a phone call or upper net operation, realized pair The test of the communication performance of terminal device.Certain test lead can also be other test equipments, for realizing to terminal device The test of other performances, the embodiment of the present application are not limited thereto.
Log information (Log) typically refers to the record that system or application program carry out a task processes and generated, Can be as the reference information for understanding the task processes.And log information is can to choose whether to export by setting, such as The daily record output of fruit terminal device is opened, then terminal device is remembered in tested stage, the operation that can be exported in test phase Record and generate log information, by log information it will be seen that operation conditions of the terminal device in test process, to research and develop Personnel can make corresponding optimization processing according to log information.If the daily record output of terminal device is opened always, terminal is set It is standby to generate log information always, and transported for the useful log information of test job, only terminal device in test phase The generated log information of row.So when starting the test to terminal device, opening imformation is sent to the terminal device, is made Terminal device opens daily record output, so that subsequent operation can get the daily record letter that terminal device is generated in test phase Breath.
It is alternatively possible to be tested using test case terminal device, correspondingly, any test case pair is being performed When terminal device is tested, opening imformation is sent to the terminal device.In addition it is also possible to performing nominative testing use-case pair When terminal device is tested, opening imformation is sent to the terminal device.
Test case (Test Case) refers to description including testing scheme, the side that test assignment is carried out to a product Method, technology and strategy.The test case of the embodiment of the present application is for testing the performance of terminal device, being implemented as One is enclosed on the software program run on test lead, and test lead is tested terminal device according to the software program.Test case When starting test, its test access function can be called, by detecting whether its test access function is called, it can be determined that survey Whether example on probation is performed test.When test case is performed test, opening imformation can be sent to the terminal device.
S102, when terminating the test to the terminal device, closing information is generated according to test result.
When the test is finished, then, can be in the test to the terminal device without using the log information of terminal device At the end of, generate for controlling the daily record of terminal device to export closing information.Test result generally comprises test and passes through (Pass) Or test crash (Fail), it is also possible to which comprising other results, and the log information useful to research staff is usually test crash Test in, log information that terminal device is generated.The log information that research staff is generated when can be according to test crash, The operation conditions of terminal device is understood, to be optimized to terminal device.Closed so being generated by test result Information, test result is contained in closing information.
Correspondingly, at the end of the test of the test case, generated and closed according to the test result of the test case Information.
Terminal device is tested by test case, at the end of test case, can be called in test case Function is exited to terminate test case.Alternatively, when exiting function and being performed of the test case is being detected, according to described The test result generation closing information of test case.
If test case is abnormal, such as exits function damage or lose, and when can not be called, setting can also be passed through Monitoring script monitors whether test case terminates;Exemplarily, the embodiment of the present application is by setting the detection of Jpyhon scripts to survey Whether example on probation terminates.
S103, the closing information sent to the terminal device, closing the terminal by the closing information sets Standby daily record output, and notify the terminal device to day for being generated by the default test result in the closing information Will information carries out preservation processing.
Wherein, the daily record that the terminal device is closed by the closing information exports, so that terminal device stops generation The log information of operation.Daily record of the terminal device to being generated is notified by the default test result in the closing information Information carries out preservation processing, if the default test result is test crash, i.e., if test knot in the closing information Fruit is test crash, then notifies the terminal device to carry out preservation processing to the log information generated.Daily record to being generated Information, which carries out preservation processing, may include:Log information is stored into default storage device, or the log information by the generation Local is stored in, is called again from local when research staff needs to call.
The embodiment of the present application by test starting and test at the end of control terminal device output journal information respectively, With stopping output journal information, the useful log information in test process can be got;And it will be controlled according to test result Whether terminal device preserves log information, can get the log information required for research staff, improve and terminal device is entered The efficiency of row test.
When being tested using test case terminal device, it is sometimes desirable to by multiple test cases to terminal device one by one Tested.When any test case proceeds by test, control terminal device opens daily record output, in the test case knot Shu Shi, the closing journal output of control terminal device;When next test case starts test, terminal device is controlled to open again Daily record exports, and at the end of the test case, the output of terminal device closing journal is controlled once more, to obtain each test case Corresponding log information;Research staff can be made targetedly to analyze the log information of each test case, effectively Improve the efficiency tested terminal device.
Fig. 2 is the schematic flow sheet for another method of testing that the embodiment of the present application provides, and is provided in above-described embodiment Technical scheme on the basis of, this method includes:
S1010, when starting test to terminal device, send opening imformation to the control terminal, opened by described Opening information makes terminal device described in control terminal control open daily record output.
Wherein, test lead is by controlling terminal device described in terminal control, control terminal can be computer or other Possess the terminal of operating system, terminal device can be smart mobile phone, tablet personal computer or other possess the equipment of operating system.Can Selection of land, test lead send opening imformation to terminal device by socket (Socket), and the opening imformation can be that MMI refers to Order, MMI (Man Machine Interface) instructions instruct for user-machine interface.Terminal is controlled according to the unlatching received Information, control terminal is controlled by operation instrument adb (Android debug bridge), makes the daily record of terminal device Output is opened.
Wherein, socket is a kind of inter-process communication mechanisms, to support the basic operation unit of TCP/IP network service, By the correlation function in socket, communication process can be completed between different communication terminals.MMI instructions are for controlling terminal to set Standby instruction.Adb (Android debug bridge) is the instrument for being used to debug in Android system, and control terminal can pass through Operation instrument adb is debugged and controlled to terminal device.
S102, when terminating the test to the terminal device, closing information is generated according to test result.
Embodiment may be referred to associated description above, will not be repeated here.
S1030, closing information sent to the control terminal, the control terminal control is made by the closing information The terminal device closing journal output.
Wherein, correspondingly, the closing information that test lead is generated it at the end is sent to control eventually by socket End, the closing information also instruct for MMI.Terminal is controlled to control the daily record of terminal device by operation instrument according to closing information Output is closed.
S104, by the closing information make the control terminal in the closing information is detected comprising default test When as a result, the terminal device is controlled to carry out preservation processing to the log information generated.
Wherein, the testing result in the closing information that control end-on receives is judged, if testing result is pre- If testing result, then the log information for controlling the terminal device to generate it carries out preservation processing.
Control terminal can also obtain the log information that terminal device is generated and be packed, and control terminal will can receive To the log information of packing carry out being stored in local.
Alternatively, control terminal can also send the log information of packing to background server at once, so that research and development people Member, which gets the process that log information is analyzed, to test parallel processing with next round, shorten test period, improve test Efficiency.
Fig. 3 is a kind of schematic flow sheet of method of testing provided in an embodiment of the present invention, and this method can be by test device Perform, wherein the device can be realized by software and/or hardware, can typically be integrated in terminal device, can also be integrated in Other are provided with the terminal device of operating system.As shown in figure 3, this method includes:
S111, receive test lead start test when it is transmitted come opening imformation when, open daily record output.
Terminal device be smart mobile phone, tablet personal computer or other possess the equipment of operating system.When terminal device receives To test lead start test when it is transmitted come opening imformation when, open its daily record output so that terminal device generation record survey The log information of examination process.
When test lead is by controlling terminal control terminal device, control terminal is sent out when receiving test lead and starting test During the opening imformation sent, terminal device described in terminal control is controlled to open daily record output.
When S112, the closing information transmitted when receiving the test lead and terminating test, closing journal output.
When terminal device, which receives test lead, terminates the closing information sent during test, closing journal output, no longer Output journal information.
When test lead is by controlling terminal control terminal device, control terminal is sent out when receiving test lead and terminating test During the closing information sent, terminal device closing journal output described in terminal control is controlled.
S113, the default test result in the closing information carry out preservation processing to the log information generated.
Alternatively, if the test result included in the closing information is failure, the log information generated is entered Row preservation is handled.Preservation processing is carried out to the log information generated may include:The log information of generation is subjected to packing generation Journal file, and the journal file is sent to background server.Or, the log information of generation is subjected to packing generation daily record File, and the journal file is sent to control terminal, so that control terminal sends the journal file to background service Device.
Alternatively, corresponding test of test that the journal file includes with the test lead starts identifies.Wherein, terminal Equipment identifies corresponding test of the test started with the test lead, and log information of its generation carries out packing generation day Will file.When research staff obtains the journal file of the packing, it can learn that the journal file is corresponding by testing mark Test, test mark can be test No. or test name, can specifically be changed according to practical application, this Shen Please embodiment be not limited thereto.Exemplarily, when the test lead start test be a test case, then by packing The name of journal file is arranged to title corresponding with the test case, research staff can be made quickly to divide journal file Class, and pointedly analyzed, effectively improve the efficiency tested terminal device.
Fig. 4 is a kind of structured flowchart for test system that the embodiment of the present application provides, as shown in figure 4, the test system bag Include test lead, control terminal, terminal device and background server.
Test lead sends opening imformation to terminal is controlled, control terminal is according to institute when starting the test to terminal device Stating opening imformation controls the terminal device to open daily record output.
Test lead generates closing information when terminating the test to the terminal device, according to test result, and will Closing information is sent to the control terminal.
Terminal is controlled to control the terminal device closing journal to export according to the closing information.
Terminal is controlled to obtain the terminal device when in detecting the closing information comprising default test result and given birth to Into log information, and be uploaded to background server after log information is packed.
Specific embodiment may be referred to associated description above, will not be repeated here.
Fig. 5 is a kind of structured flowchart for test device that the embodiment of the present application provides, and the device can perform method of testing, As shown in figure 5, the device includes:
Test starting module 201, for when starting the test to terminal device, sending opening imformation to the terminal and setting Standby, the daily record that the terminal device is opened by the opening imformation exports;
Terminate module 202 is tested, for when terminating the test to the terminal device, being generated according to test result Closing information;
Log pattern 203 is controlled, for the closing information to be sent to the terminal device, passes through the closing information The daily record output of the terminal device is closed, and notifies the terminal to set by the default test result in the closing information The standby log information to being generated carries out preservation processing.
Alternatively, test starting module is specifically used for:
When any test case of execution is tested terminal device, opening imformation is sent to the terminal device;
Correspondingly, test terminate module is specifically used for:
At the end of the test of the test case, closing information is generated according to the test result of the test case.
Alternatively, test starting module is specifically used for:
Opening imformation is sent to the control terminal, terminal device described in control terminal control is made by the opening imformation Open daily record output;
Correspondingly, test terminate module is specifically used for:
Closing information is sent to the control terminal, made by the closing information described in the control terminal control eventually End equipment closing journal exports.
Alternatively, control log pattern is specifically used for:
Make the control terminal in the closing information is detected comprising default test result by the closing information When, control the terminal device to carry out preservation processing to the log information generated.
Fig. 6 is a kind of structured flowchart for test device that the embodiment of the present application provides, and the device can perform method of testing, As shown in fig. 6, the device includes:
Daily record open module 211, for receive test lead start test when it is transmitted come opening imformation when, open Daily record exports;
Daily record closedown module 212, for receive the test lead terminate test when it is transmitted come closing information when, Closing journal exports;
Log saving module 213, the daily record generated is believed for the default test result in the closing information Breath carries out preservation processing.
Alternatively, log saving module is specifically used for:
If the test result included in the closing information is failure, the log information generated is carried out at preservation Reason.
Alternatively, log saving module is specifically used for:
The log information of generation is subjected to packing generation journal file, and the journal file is sent to background service Device.
Alternatively, corresponding test of test that the journal file includes with the test lead starts identifies.
A kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, its computer can perform The test operation being not limited to the described above is instructed, can also carry out the phase in the method for testing that the application any embodiment is provided Close operation.
The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform Instruction is used to perform method of testing when being performed by computer processor, and this method includes:
When starting the test to terminal device, opening imformation is sent to the terminal device, passes through the opening imformation Open the daily record output of the terminal device;
When terminating the test to the terminal device, closing information is generated according to test result;
The closing information is sent to the terminal device, the day of the terminal device is closed by the closing information Will exports, and notifies the terminal device to the log information that is generated by the default test result in the closing information Carry out preservation processing.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap Include:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetizing mediums (such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can also include other The memory of type or its combination.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide programmed instruction and be used to perform to the first computer." storage is situated between term Matter " can include may reside within diverse location two of (such as in different computer systems by network connection) or More storage mediums.Storage medium can store the programmed instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, its computer Executable instruction is not limited to the described above test operation, and it is arbitrarily corresponding with first aspect of the invention content to can also carry out the application Associative operation in the method for testing that embodiment is provided.
The embodiment of the present application also provides another storage medium for including computer executable instructions, and the computer can be held Row instruction is used to perform prompting message processing method when being performed by computer processor, and this method includes:
Receive test lead start test when it is transmitted come opening imformation when, open daily record output;
When receiving the test lead and terminating test during transmitted closing information, closing journal output;
Default test result in the closing information carries out preservation processing to the log information generated.
Description is with reference to above as described in storage medium, and here is omitted.
Certainly, the another kind that the embodiment of the present application is provided includes the storage medium of computer executable instructions, and it is calculated Machine executable instruction is not limited to the described above test operation, and it is arbitrarily corresponding with second aspect of the invention content to can also carry out the application The method of testing that is provided of embodiment in associative operation.
A kind of test lead that the embodiment of the present application provides, the application and third aspect of the invention content are integrated with the test lead The test device that corresponding embodiment provides.Fig. 7 is a kind of structural representation for test lead that the embodiment of the present application provides.Such as figure Shown in 7, the test lead 20 can include:Memory 21 and processor 22.Memory 21 and processor 22 can by bus or Person's other modes link, in Fig. 7 exemplified by being connected by bus.Memory 21 is used as a kind of non-transient computer readable storage medium Matter, available for storing executable program code, processor 22 by read the executable program code stored in memory 21 come Operation computer program corresponding with the executable program code, to realize following steps:
When starting the test to terminal device, opening imformation is sent to the terminal device, passes through the opening imformation Open the daily record output of the terminal device;
When terminating the test to the terminal device, closing information is generated according to test result;
The closing information is sent to the terminal device, the day of the terminal device is closed by the closing information Will exports, and notifies the terminal device to the log information that is generated by the default test result in the closing information Carry out preservation processing.
It should be understood that diagram test lead 20 is only an example of test lead, the various parts shown in figure Can be in the group of the hardware including one or more signal transactings and/or application specific integrated circuit, software or hardware and software Realized in conjunction.
The embodiment of the present application provides a kind of terminal device, and the application and fourth aspect of the invention can be integrated in the terminal device The test device that embodiment corresponding to content provides.
Fig. 8 is a kind of structural representation for terminal device that the embodiment of the present application provides, and the embodiment of the present application provides one Kind of terminal device, including memory 31, processor 32 and storage on a memory and can in the computer program of processor operation, The method of testing described in above-described embodiment is realized described in the computing device during computer program.What the embodiment of the present application provided Terminal device, the efficiency tested terminal device can be improved.
Fig. 9 is the structural representation for another terminal device that the embodiment of the present application provides.As shown in figure 9, the terminal is set It is standby to include:Housing (not shown), touch-screen (not shown), touch key-press (not shown), memory 301st, central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), circuit board (not shown) and power circuit (not shown).The circuit board is placed in the interior volume that the housing surrounds;Institute State CPU302 and the memory 301 is arranged on the circuit board;The power circuit, for for each of the terminal device Individual circuit or device power supply;The memory 301, for storing executable program code;The CPU302 passes through described in reading The executable program code stored in memory 301 runs computer program corresponding with the executable program code, with Realize following steps:
Receive test lead start test when it is transmitted come opening imformation when, open daily record output;
When receiving the test lead and terminating test during transmitted closing information, closing journal output;
Default test result in the closing information carries out preservation processing to the log information generated.
The terminal device also includes:Peripheral Interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio-frequency electric Road 306, loudspeaker 311, power management chip 308, input/output (I/O) subsystem 309, touch-screen 312, other input/controls Control equipment 310 and outside port 304, these parts are communicated by one or more communication bus or signal wire 307.
It should be understood that graphic terminal 300 is only an example of terminal device, and terminal device 300 Can have than more or less parts shown in figure, can combine two or more parts, or can be with Configured with different parts.Various parts shown in figure can be including one or more signal transactings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
The terminal device for being used to perform test job that the present embodiment provides is described in detail below, the terminal is set For by taking mobile phone as an example.
Memory 301, the memory 301 can be accessed by CPU302, Peripheral Interface 303 etc., and the memory 301 can Including high-speed random access memory, can also include nonvolatile memory, such as one or more disk memories, Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU302 and deposited by Peripheral Interface 303, the Peripheral Interface 303 Reservoir 301.
I/O subsystems 309, the I/O subsystems 309 can be by the input/output peripherals in equipment, such as touch-screen 312 With other input/control devicess 310, Peripheral Interface 303 is connected to.I/O subsystems 309 can include the He of display controller 3091 For controlling one or more input controllers 3092 of other input/control devicess 310.Wherein, one or more input controls Device 3092 processed receives electric signal from other input/control devicess 310 or sends electric signal to other input/control devicess 310, Other input/control devicess 310 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole, click on roller.What deserves to be explained is input controller 3092 can with it is following any one be connected:Keyboard, infrared port, The instruction equipment of USB interface and such as mouse.
Touch-screen 312, the touch-screen 312 are the input interface and output interface between subscriber terminal equipment and user, Visual output display can be included into figure, text, icon, video etc. to user, visual output.
Display controller 3091 in I/O subsystems 309 receives electric signal from touch-screen 312 or sent out to touch-screen 312 Electric signals.Touch-screen 312 detects the contact on touch-screen, and the contact detected is converted to and shown by display controller 3091 The interaction of user interface object on touch-screen 312, that is, realize man-machine interaction, the user interface being shown on touch-screen 312 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse is not show the touch sensitive surface visually exported, or the extension of the touch sensitive surface formed by touch-screen.
RF circuits 305, it is mainly used in establishing the communication of mobile phone and wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 305 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 305 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 305 can include being used to perform The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identify mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 306, it is mainly used in receiving voice data from Peripheral Interface 303, the voice data is converted into telecommunications Number, and the electric signal is sent to loudspeaker 311.
Loudspeaker 311, for the voice signal for receiving mobile phone from wireless network by RF circuits 305, it is reduced to sound And play the sound to user.
Power management chip 308, the hardware for being connected by CPU302, I/O subsystem and Peripheral Interface are powered And power management.
The terminal device that the embodiment of the present application provides, can improve the efficiency tested terminal device.
Test device, storage medium and the terminal device provided in above-described embodiment can perform the application any embodiment institute The method of testing of offer, possess and perform the corresponding functional module of this method and beneficial effect.It is not detailed in the above-described embodiments to retouch The ins and outs stated, reference can be made to the method for testing that the application any embodiment is provided.
Pay attention to, above are only preferred embodiment and the institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also Other more equivalent embodiments can be included, and scope of the present application is determined by scope of the appended claims.

Claims (15)

  1. A kind of 1. method of testing, it is characterised in that including:
    When starting the test to terminal device, opening imformation is sent to the terminal device, is opened by the opening imformation The daily record output of the terminal device;
    When terminating the test to the terminal device, closing information is generated according to test result;
    The closing information is sent to the terminal device, the daily record that the terminal device is closed by the closing information is defeated Go out, and notify the terminal device to carry out the log information generated by the default test result in the closing information Preservation is handled.
  2. 2. the method as described in claim 1, it is characterised in that when starting the test to terminal device, send opening imformation To the terminal device, including:
    When any test case of execution is tested terminal device, opening imformation is sent to the terminal device;
    Correspondingly, when terminating the test to terminal device, closing information is generated according to test result, including:
    At the end of the test of the test case, closing information is generated according to the test result of the test case.
  3. 3. method as claimed in claim 1 or 2, it is characterised in that opening imformation is sent to the terminal device, by described The daily record output that opening imformation opens the terminal device includes:
    Opening imformation is sent to terminal is controlled, opens terminal device described in the control terminal control by the opening imformation Daily record exports;
    Correspondingly, closing information is sent to the terminal device, the day of the terminal device is closed by the closing information Will output includes:
    Closing information is sent to the control terminal, sets terminal described in the control terminal control by the closing information Standby closing journal exports.
  4. 4. method as claimed in claim 3, it is characterised in that institute is notified by the default test result in the closing information State terminal device and preservation processing is carried out to the log information generated, including:
    The control terminal is made when in detecting the closing information comprising default test result by the closing information, control Make the terminal device and preservation processing is carried out to the log information generated.
  5. A kind of 5. method of testing, it is characterised in that including:
    Receive test lead start test when it is transmitted come opening imformation when, open daily record output;
    When receiving the test lead and terminating test during transmitted closing information, closing journal output;
    Default test result in the closing information carries out preservation processing to the log information generated.
  6. 6. method as claimed in claim 5, it is characterised in that the default test result pair in the closing information The log information generated, which carries out preservation processing, to be included:
    If the test result included in the closing information is failure, preservation processing is carried out to the log information generated.
  7. 7. method as claimed in claim 6, it is characterised in that the log information of described pair of generation, which carries out preservation processing, to be included:
    The log information of generation is subjected to packing generation journal file, and the journal file is sent to background server.
  8. 8. method as claimed in claim 7, it is characterised in that the journal file includes the test started with the test lead Corresponding test mark.
  9. 9. a kind of test device, is configured on test lead, it is characterised in that including:
    Test starting module, for when starting the test to terminal device, sending opening imformation to the terminal device, passing through The opening imformation opens the daily record output of the terminal device;
    Terminate module is tested, for when terminating the test to the terminal device, being generated according to test result and closing letter Breath;
    Log pattern is controlled, for the closing information to be sent to the terminal device, institute is closed by the closing information The daily record output of terminal device is stated, and notifies the terminal device to institute by the default test result in the closing information The log information of generation carries out preservation processing.
  10. 10. a kind of test device, configuration is on the terminal device, it is characterised in that including:
    Daily record open module, for receive test lead start test when it is transmitted come opening imformation when, open daily record it is defeated Go out;
    Daily record closedown module, for receive the test lead terminate test when it is transmitted come closing information when, close day Will exports;
    Log saving module, the log information generated is protected for the default test result in the closing information Deposit processing.
  11. 11. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method of testing as any one of claim 1-4 is realized during execution.
  12. 12. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method of testing as any one of claim 5-8 is realized during execution.
  13. 13. a kind of test lead, it is characterised in that including memory, processor and storage can transport on a memory and in processor Capable computer program, it is characterised in that realized described in the computing device during computer program as claim 1-4 is any Method of testing described in.
  14. 14. a kind of terminal device, it is characterised in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, it is characterised in that realize that claim 5-8 such as appoints described in the computing device during computer program Method of testing described in one.
  15. 15. a kind of test system, it is characterised in that including test lead, terminal device, control terminal and background server;
    The test lead sends opening imformation to the control terminal when starting the test to the terminal device;
    The control terminal controls the terminal device to open daily record output according to the opening imformation;
    The test lead generates closing information when terminating the test to the terminal device, according to test result, and will The closing information is sent to the control terminal;
    The control terminal controls the terminal device closing journal to export according to the closing information;It is and described detecting When in closing information comprising default test result, the log information that the terminal device is generated is obtained, and the daily record is believed The background server is uploaded to after breath packing.
CN201711079277.8A 2017-11-06 2017-11-06 Method of testing, device, storage medium, terminal device and system Pending CN107832214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711079277.8A CN107832214A (en) 2017-11-06 2017-11-06 Method of testing, device, storage medium, terminal device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711079277.8A CN107832214A (en) 2017-11-06 2017-11-06 Method of testing, device, storage medium, terminal device and system

Publications (1)

Publication Number Publication Date
CN107832214A true CN107832214A (en) 2018-03-23

Family

ID=61654524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711079277.8A Pending CN107832214A (en) 2017-11-06 2017-11-06 Method of testing, device, storage medium, terminal device and system

Country Status (1)

Country Link
CN (1) CN107832214A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109243425A (en) * 2018-08-13 2019-01-18 百度在线网络技术(北京)有限公司 Speech recognition test method, device, system, computer equipment and storage medium
CN109828875A (en) * 2019-01-11 2019-05-31 虫极科技(北京)有限公司 Intelligent cargo cabinet stability test device and method
CN110211364A (en) * 2019-05-30 2019-09-06 深圳创维-Rgb电子有限公司 A kind of test macro, test method, electronic equipment and storage medium
CN110320048A (en) * 2018-03-28 2019-10-11 上海擎感智能科技有限公司 A kind of method and apparatus storing log in vehicle automatic on/off test of computer
CN110502383A (en) * 2019-08-27 2019-11-26 Oppo(重庆)智能科技有限公司 The test method and device of terminal device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119243A (en) * 2007-09-12 2008-02-06 中兴通讯股份有限公司 Automatic testing method and automatic testing system of journal
CN103441900A (en) * 2013-08-27 2013-12-11 上海新炬网络技术有限公司 Centralization cross-platform automated testing system and control method thereof
US20160306737A1 (en) * 2012-01-06 2016-10-20 Iii Holdings 4, Llc Automated error checking system for a software application and method therefor
CN106155907A (en) * 2016-07-04 2016-11-23 厦门美图移动科技有限公司 A kind of automated testing method, device and computing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119243A (en) * 2007-09-12 2008-02-06 中兴通讯股份有限公司 Automatic testing method and automatic testing system of journal
US20160306737A1 (en) * 2012-01-06 2016-10-20 Iii Holdings 4, Llc Automated error checking system for a software application and method therefor
CN103441900A (en) * 2013-08-27 2013-12-11 上海新炬网络技术有限公司 Centralization cross-platform automated testing system and control method thereof
CN106155907A (en) * 2016-07-04 2016-11-23 厦门美图移动科技有限公司 A kind of automated testing method, device and computing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110320048A (en) * 2018-03-28 2019-10-11 上海擎感智能科技有限公司 A kind of method and apparatus storing log in vehicle automatic on/off test of computer
CN109243425A (en) * 2018-08-13 2019-01-18 百度在线网络技术(北京)有限公司 Speech recognition test method, device, system, computer equipment and storage medium
CN109828875A (en) * 2019-01-11 2019-05-31 虫极科技(北京)有限公司 Intelligent cargo cabinet stability test device and method
CN110211364A (en) * 2019-05-30 2019-09-06 深圳创维-Rgb电子有限公司 A kind of test macro, test method, electronic equipment and storage medium
CN110502383A (en) * 2019-08-27 2019-11-26 Oppo(重庆)智能科技有限公司 The test method and device of terminal device

Similar Documents

Publication Publication Date Title
CN107832214A (en) Method of testing, device, storage medium, terminal device and system
CN107944259A (en) Using the management-control method of startup, device and storage medium and mobile terminal
CN109376056A (en) Abnormal log analysis method, device, storage medium, mobile terminal and server
CN109840418A (en) Jump control method, device, storage medium and the terminal of application program
CN108762837A (en) Application program preloads method, apparatus, storage medium and terminal
CN109947449B (en) System upgrading method and device, storage medium and electronic equipment
CN107678823A (en) Control method, device and the storage medium and mobile terminal of mobile terminal application
CN109254793B (en) Engine isolation method, related device and computer readable storage medium
CN107783803A (en) System optimization method, device, storage medium and the intelligent terminal of intelligent terminal
CN109284142A (en) File preloads method, apparatus, electronic equipment and computer readable storage medium
WO2020052307A1 (en) Permission configuration method and related product
CN107748684A (en) Realize processing method, device, storage medium and the mobile terminal of self-starting
CN111625381A (en) Method, device and equipment for reproducing running scene of application program and storage medium
CN106294027A (en) A kind of data back up method, device, carrier server and mobile terminal
CN108804138A (en) application operating optimization method, device, storage medium and terminal device
CN107577542A (en) Log information report method, device, storage medium and mobile terminal
CN107862203A (en) Control method, device, storage medium and the terminal of application program
CN106339617A (en) Unlocking method and unlocking device of terminal equipment
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN107450951B (en) Application processing method and device, storage medium and terminal
CN107766218A (en) system optimization method, device, storage medium and terminal device
CN107329844A (en) A kind of method for message interaction, device, storage medium and terminal
CN106375368A (en) Data recovery method and device, mobile terminal and SIM (Subscriber Identification Module) card
CN106101361A (en) The display packing of cell phone address book, device and mobile phone
CN107566215A (en) Wireless network cutout detection method, device, storage medium and mobile terminal

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: 20180323