CN108009096B - Test method and terminal - Google Patents

Test method and terminal Download PDF

Info

Publication number
CN108009096B
CN108009096B CN201711441647.8A CN201711441647A CN108009096B CN 108009096 B CN108009096 B CN 108009096B CN 201711441647 A CN201711441647 A CN 201711441647A CN 108009096 B CN108009096 B CN 108009096B
Authority
CN
China
Prior art keywords
test
terminal
control
input
test item
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.)
Active
Application number
CN201711441647.8A
Other languages
Chinese (zh)
Other versions
CN108009096A (en
Inventor
刘银银
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Spreadrise Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Spreadrise Technologies Co Ltd filed Critical Shanghai Spreadrise Technologies Co Ltd
Priority to CN201711441647.8A priority Critical patent/CN108009096B/en
Publication of CN108009096A publication Critical patent/CN108009096A/en
Application granted granted Critical
Publication of CN108009096B publication Critical patent/CN108009096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

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)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a test method and a terminal, wherein the method comprises the following steps: the method comprises the steps that a first terminal outputs a first interface, and the first interface comprises at least one test control; the method comprises the steps that a first terminal detects a first input acting on a first test control, the first input is used for starting a test item corresponding to the first test control, and the first test control is part or all of at least one test control; the first terminal sends a test instruction corresponding to the test item corresponding to the first test control to the second terminal; the test instruction is used for triggering the second terminal to run the function corresponding to the test item corresponding to the first test control; and the first terminal receives the operation data fed back by the second terminal, wherein the operation data is used for representing the operation condition of the corresponding function of the first test control corresponding to the test item. According to the embodiment of the application, the application function test of the terminal can be rapidly executed, and the test time is saved.

Description

Test method and terminal
Technical Field
The present application relates to the field of communications technologies, and in particular, to a test method and a terminal.
Background
At present, intelligent terminals, such as mobile phones, tablet computers and the like, are widely applied to daily life of people. In the process of terminal manufacture or later maintenance, test software and communication software need to be developed for different terminals to realize development and test of the terminals.
Because the current terminal test needs to adopt the cmd window to search, the adb command must be memorized thoroughly, special memory is needed for checking GPRS parameters, operators and the like, and files generated by screenshot, exported screenshot, recorded video, exported video and the like are various and complicated. If the user wants to perform Monkey test on the terminal, the user needs to memorize the Monkey test command and then input the Monkey test command in the cmd window step by step, so that the test process is complex and inconvenient to execute.
Disclosure of Invention
The embodiment of the application provides a test method, which can quickly execute the application function test of a terminal and save the test time.
In a first aspect, an embodiment of the present application provides a testing method, where the method includes:
the method comprises the steps that a first terminal outputs a first interface, and the first interface comprises at least one test control; the at least one test control respectively corresponds to different test items; the test control is used for receiving input for starting a test item corresponding to the test control;
the method comprises the steps that a first terminal detects a first input acting on a first test control, the first input is used for starting a test item corresponding to the first test control, and the first test control is part or all of at least one test control;
the first terminal sends a test instruction corresponding to the test item corresponding to the first test control to the second terminal; the test instruction is used for triggering the second terminal to run the function corresponding to the test item corresponding to the first test control;
and the first terminal receives the operation data fed back by the second terminal, wherein the operation data is used for representing the operation condition of the corresponding function of the first test control corresponding to the test item.
With reference to the first aspect, in a first implementation manner of the first aspect, before the first terminal outputs the first interface, the method further includes:
the first terminal acquires the equipment identification of at least one terminal connected with the first terminal;
the first terminal detects a second input, and the second input is used for selecting the equipment identifier of the second terminal from the equipment identifiers of at least one terminal connected with the first terminal;
and the first terminal determines the second terminal according to the equipment identifier of the second terminal.
With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the first interface further includes: testing item adding controls; the test item adding control is used for receiving an added test item and the test instruction corresponding to the test item;
the method further comprises the following steps:
the first terminal detects a third input acting on the test item adding control, wherein the third input is used for adding a test item and the test instruction corresponding to the test item on the first interface;
and the terminal responds to the detected third input and adds the test item and the test instruction corresponding to the test item.
With reference to the second aspect or the first to the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the first interface further includes: testing item modification controls; the test item modification control is used for modifying the test instruction corresponding to the test item;
the method further comprises the following steps:
the first terminal detects a fourth input acting on the test item modification control, wherein the fourth input is used for modifying a test instruction corresponding to the test item on the first interface;
and the first terminal responds to the detected fourth input and modifies the test instruction corresponding to the test item.
With reference to the first aspect or the first to third implementation manners of the first aspect, the first interface further includes: ending the test control; the test ending control is used for triggering the second terminal to end running of the function corresponding to the test item corresponding to the first test control;
the method further comprises the following steps:
the first terminal detects a fifth input acting on the test ending control, wherein the fifth input is used for ending a test item corresponding to the first test control;
the first terminal judges whether the second terminal is running the function corresponding to the test item corresponding to the first test control, if so, the first terminal sends an ending instruction to the second terminal, and the ending instruction is used for indicating the second terminal to stop running the function corresponding to the test item corresponding to the first test control.
In a second aspect, an embodiment of the present invention provides a terminal, where the terminal includes:
the output unit is used for outputting a first interface, and the first interface comprises at least one test control; the at least one test control respectively corresponds to different test items; the test control is used for receiving input for starting a test item corresponding to the test control;
the device comprises a detection unit, a control unit and a control unit, wherein the detection unit is used for detecting a first input acting on a first test control, the first input is used for starting a test item corresponding to the first test control, and the first test control is part or all of at least one test control;
the sending unit is used for sending a test instruction corresponding to the test item corresponding to the first test control to the second terminal; the test instruction is used for triggering the second terminal to run the function corresponding to the test item corresponding to the first test control;
and the receiving unit is used for receiving the operation data fed back by the second terminal, and the operation data is used for representing the operation condition of the corresponding function of the first test control corresponding to the test item.
With reference to the second aspect, in a first implementation manner of the second aspect, before the outputting, by the output unit, the method further includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the equipment identification of at least one terminal connected with a first terminal;
the detection unit is further configured to detect a second input, where the second input is used to select a device identifier of the second terminal from device identifiers of at least one terminal connected to the first terminal;
and the processing unit is used for determining the second terminal according to the equipment identifier of the second terminal.
With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the first interface further includes: testing item adding controls; the test item adding control is used for receiving an added test item and the test instruction corresponding to the test item;
the terminal further comprises:
the detection unit is further configured to detect a third input acting on the test item addition control, where the third input is used to add a test item and a test instruction corresponding to the test item on the first interface;
the processing unit is further configured to add the test item and the test instruction corresponding to the test item in response to the third input detected by the detection unit.
With reference to the second aspect or the first to second implementation manners of the second aspect, in a third implementation manner of the second aspect, the first interface further includes: testing item modification controls; the test item modification control is used for receiving input of the test instruction corresponding to the modified test item;
the terminal further comprises:
the detection unit is further configured to detect a fourth input acting on the test item modification control, where the fourth input is used to modify a test instruction corresponding to the test item on the first interface;
the processing unit is further configured to modify a test instruction corresponding to the test item in response to the detected fourth input.
With reference to the second aspect or the first to third implementation manners of the second aspect, in a fourth implementation manner of the second aspect, the first interface further includes: ending the test control; the test ending control is used for triggering the second terminal to end running of the function corresponding to the test item corresponding to the first test control;
the terminal further comprises:
the detection unit is further configured to detect a fifth input acting on the test termination control, where the fifth input is used to terminate the test item corresponding to the first test control;
and the judging unit is used for judging whether the second terminal is operating the function corresponding to the test item corresponding to the first test control, if so, the sending unit sends an ending instruction to the second terminal, and the ending instruction is used for indicating the second terminal to stop operating the function corresponding to the test item corresponding to the first test control.
In a third aspect, an embodiment of the present invention provides another terminal, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store an application program code that supports the terminal to execute the foregoing method, and the processor is configured to execute the foregoing method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, the computer program comprising program instructions, which, when executed by a processor, cause the processor to perform the method of the first aspect.
In a fifth aspect, an embodiment of the present invention provides a computer program, which includes program instructions, which, when executed by a processor, cause the processor to perform the method of the first aspect.
The embodiment of the application has the following beneficial effects:
the first terminal can be used for a user to select the test control input on the first interface by outputting the first interface with the test control, the test control is used for starting the test item corresponding to the first test control of at least one second terminal, the first terminal sends a test instruction to each second terminal, and the second terminal is triggered to run the function corresponding to the test item corresponding to the first test control. After the second terminal runs the function corresponding to the test item corresponding to the first test control, the second terminal feeds back the running data of the running function to the first terminal, and the first terminal outputs the test log to the user. Therefore, the application function test of the terminal can be quickly executed, and the test time is saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic flow chart diagram of a testing method provided by an embodiment of the present application;
FIGS. 2A-2E are schematic diagrams of a terminal interface of a testing method according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another terminal provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is to be understood that the terminology used in the embodiments of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, a schematic flow chart of a testing method provided in the embodiments of the present application is shown, and as shown in the figure, the method includes, but is not limited to, the following steps: S101-S105.
S101, a first terminal outputs a first interface, and the first interface can comprise at least one test control.
Specifically, the at least one test control corresponds to different test items respectively. The test control is used for receiving input for starting the test item corresponding to the test control. By way of example, as can be seen in fig. 2A, the test controls of the first interface may include: the GPRS parameter testing control is led, the video recording testing control, the video leading testing control, the camera testing control, the information testing control, the screenshot and leading-out testing control, the picture testing control, the game testing control, the calculator testing control, the FM testing control, the VideoPlayer testing control and the like. The test items respectively corresponding to the test controls may be: lead GPRS parameters, record video, lead video, camera, information, capture and lead out, picture, Theme, calculator, FM, VideoPlayer, etc. The examples are merely illustrative of the present application and should not be construed as limiting.
Optionally, the first interface output by the first terminal may further include: and testing item addition control. The test item adding control is used for receiving the input of the test item adding and the test instruction corresponding to the test item. The first terminal may detect a third input for the test item addition control, where the third input may be used to add the first test item and the first test instruction corresponding to the first test item on the first interface. For example, as shown in fig. 2B, the first interface may further include a control for adding the test item, and after the user triggers the control for adding the test item, the first terminal may pop up a prompt box for adding the test item, for receiving a third input from the user. The third input may be adding the name of the first test item and a test instruction to add the first test item within the add first test item prompt box. For example, the name of the first test item added by the first terminal receiving the user and the third input may be "Music", and the instruction of the first test item added may be a test instruction for "Music", and the test instruction may be a file of a test instruction code or may be directly a test instruction code. After the terminal receives that the user adds the first test item, the first terminal can display a first test control corresponding to the first test item on the first interface. As shown in fig. 2C, after the user has added the first test item of "Music", the first terminal may display a control corresponding to "Music" on the first interface. The examples are merely illustrative of the present application and should not be construed as limiting.
Optionally, the first interface output by the first terminal may further include: and testing item modification control. The test item modification control is used for receiving input of a test instruction corresponding to the modified test item. The first terminal can also detect a fourth input of the user for the test item modification control, wherein the fourth input is used for modifying the test instruction corresponding to the test item. The terminal can respond to the detected fourth input and modify the test instruction corresponding to the test item. For example, as shown in fig. 2D, the first interface may further include a control for modifying the test item, and after the user triggers the control for modifying the test item, the first terminal may pop up a prompt box for modifying the test item, which is used to receive the name of the modified test item and the instruction corresponding to the modified test item, input by the user. For example, the modify test item prompt box may display the test item names corresponding to all test item controls included on the current first interface. The user can select the test item name to be modified, such as "VideoPlayer", and the first terminal can call and output the VideoPlayer test instruction corresponding to the VideoPlayer to be modified, according to the test item name VideoPlayer to be modified. The first terminal can accept the modification of the VideoPlayer test instruction by the user and associate the modified test instruction with the VideoPlayer control in the first interface. The examples are merely illustrative of the present application and should not be construed as limiting.
The first terminal displays the controls of various different functions aiming at the test item on the first interface, so that the test item can be rapidly added and modified, and the maintenance time of the application function test is saved.
S102, a first terminal detects a first input acting on a first test control, wherein the first input is used for starting a test item corresponding to the first test control. The first test control is part or all of at least one test control.
Optionally, before the first terminal detects the first input acting on the test control, the first terminal may obtain a device identifier of at least one terminal that establishes a communication connection with the first terminal. The first terminal may detect a second input, which may be used to select the device identity of the at least one second terminal from the device identities of the at least one terminal to which the first terminal is connected. The first terminal may determine at least one second terminal according to the device identifier of the second terminal. As shown in fig. 2A, the first terminal may obtain device identifiers of three second terminals, T1(02245106C1), T2(02365107C2), and T3(02471208C 3). The first terminal may determine two second terminals (T1 and T2) based on the user-entered device identification or the selected device identification (02245106C1 and 02365107C 2). The user may select test items for the two second terminals on the first interface, respectively, for example, for the second terminal T1(02245106C1), the test items selected by the user may be lead GPRS parameters, pictures and information. For the second terminal T2(02365107C2), the test items selected by the user may be a recorded video, a guided video and a camera. The examples are merely illustrative of the present application and should not be construed as limiting. The first terminal can test the application functions of the second terminals at the same time by acquiring the device identifiers of the second terminals, so that the time for testing the application functions of the second terminals is greatly saved.
Specifically, the first input may be used to start a test item corresponding to the first test control, and the test item corresponding to the first test control may be a test item that the first input acts on the test control. As shown in fig. 2A, the test item control of the first interface on the first terminal may include: lead GPRS parameters, record video, lead video, camera, information, capture and lead out, picture, Theme, calculator, FM, VideoPlayer. The test item corresponding to the first test control selected by the user on the first interface of the first terminal and directed to the second terminal T1 may be "lead GPRS parameter, information, picture". The test items corresponding to the first test control for the second terminal T2 selected by the user on the first interface of the first terminal may be "lead GPRS parameters, information, pictures" as the second terminal T1, or "record video, lead video, camera" differently. The examples are merely illustrative of the present application and should not be construed as limiting.
S103, the first terminal sends a test instruction corresponding to the test item corresponding to the first test control to the second terminal, and the test instruction is used for triggering the second terminal to run a function corresponding to the test item corresponding to the first test control.
Specifically, the first terminal may send, to each second terminal, a test instruction of the test item corresponding to the plurality of first test controls corresponding to the device identifier according to the device identifier of the second terminal selected by the user. For example, if the second terminal device selected by the user is identified by T1(02245106C1), T2(02365107C2), the first terminal may perform application function test on the second terminal T1 and the second terminal T2. The test item corresponding to the first test control selected by the user for the second terminal T1 may be lead GPRS parameters, information, or pictures. The test item corresponding to the first test control selected by the user for the second terminal T2 may be a recorded video, a guided video, or a camera. The first terminal can call the test instruction of the GPRS parameters, the test instruction of the information and the test instruction of the picture, and send the call to the second terminal T1. The first terminal may call the test instruction of the recorded video, the test instruction of the guided video, and the test instruction of the camera, and send them to the second terminal T2. The examples are merely illustrative of the present application and should not be construed as limiting.
Optionally, the first interface output by the first terminal may further include: and ending the test control. The test ending control may be configured to trigger the second terminal to end running the function corresponding to the target test. The first terminal may detect a sixth input for the end test control, so as to end the test item corresponding to the first test control. The first terminal can judge whether the second terminal is operating the function corresponding to the target item, if so, the first terminal sends an end instruction to the second terminal, and the end instruction is used for indicating the second terminal to stop operating the function corresponding to the test item corresponding to the first test control. For example, when the second terminal T1 is testing "lead GPRS parameters, information and pictures" and the first terminal receives the end test operation of the user, the first terminal may send an end instruction to the second terminal T1. The second terminal T1 stops the test for "lead GPRS parameters, messages and pictures" after receiving the end command. The examples are merely illustrative of the present application and should not be construed as limiting. Therefore, when a user needs to use the terminal, the user can finish the test of the terminal by directly clicking the test finishing control without spending time and the like to finish the test of the terminal, and great convenience is provided for the user.
And S104, the first terminal receives operation data fed back by the second terminal, wherein the operation data are used for representing the operation condition of the corresponding function of the first test control corresponding to the test item.
Specifically, after the second terminal receives the test instruction of the first terminal, the second terminal may execute one or more application functions associated with the test instruction according to the test instruction. For example, if the second terminal T1 receives that the test command of the first terminal may be a test command of GPRS parameters, a test command of information, and a test command of pictures, the second terminal T1 may run the setting application to invoke GPRS parameters, run the information application, and run the picture library application. The second terminal T1 may operate the above three application functions simultaneously, or may sequentially operate the above three application functions, for example, first operate the setting application to invoke GPRS parameters, then operate the information application, and finally operate the picture library application. The examples are merely illustrative of the present application and should not be construed as limiting.
Further, after the second terminal completes running the application function corresponding to the test item corresponding to the first test control, the first terminal may receive running data for the application function, which is fed back by the second terminal. The first terminal may receive the operation data fed back by the second terminal after all the test items corresponding to the first test control are completed, or may receive the operation data fed back by the second terminal after each test item is completed. For example, the second terminal T1 may feed back "lead GPRS parameter" operation data, "information" operation data, and "picture" operation data to the first terminal after completing the lead GPRS parameter test, the information test, and the picture test. The second terminal T1 may feed back the "lead GPRS parameter" operation data to the first terminal after the completion of the lead GPRS parameter test, feed back the "information" operation data to the first terminal after the completion of the information test, and feed back the "picture" operation data to the first terminal after the completion of the picture test. The examples are merely illustrative of the present application and should not be construed as limiting.
Optionally, after the first terminal receives the operation data fed back by the second terminal, the first terminal may further output a test log, where the test log is used to display the operation data of the function corresponding to the test item corresponding to the first test control.
Specifically, referring to fig. 2E, the first terminal may output a test log file after all test items corresponding to the first test control are completed. The log file may include: "GPRS parameter txt", "video recording txt", "guide video rmvb", "camera txt", "information txt", "screen capture txt", "picture JPEG", "heat txt", "calculator txt", "fm. txt", "videoplayer rmvb". ". txt and JPEG are data types of the operation data, the literal data type can be". txt ", the picture type can be". JPEG ", the video file can be". rmvb ", etc., without limitation.
Optionally, the first terminal may output a test log of each second terminal according to the device identifier of the second terminal. For example, for the second terminal T1(02245106C1), the test log file output by the first terminal may include: "GPRS parameter. txt", "picture. JPEG", and "info. txt". For the second terminal T2((02365107C2), the test log file output by the first terminal may include "video recording. txt", "guide video. rmvb", and "camera. txt".
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 3, the terminal 30 may include: an output unit 310, a detection unit 320, a processing unit 330, a sending unit 340, an obtaining unit 350, a receiving unit 360, wherein,
the output unit 310 may be configured to output a first interface, where the first interface includes at least one test control. The at least one test control respectively corresponds to different test items. The test control is used for receiving and starting the input of the test control corresponding to the test item.
The detecting unit 320 may be configured to detect a first input acting on the first testing control, where the first input is used to start a testing item corresponding to the first testing control, and the first testing control is part or all of at least one testing control.
The sending unit 340 may be configured to send a test instruction corresponding to the test item corresponding to the first test control to the second terminal. The test instruction is used for triggering the second terminal to run the function corresponding to the test item corresponding to the first test control.
The receiving unit 360 may be configured to receive operation data fed back by the second terminal, where the operation data is used to characterize an operation condition of a function corresponding to the test item corresponding to the first test control.
Optionally, before the output unit 310 outputs the first interface, the obtaining unit 350 may be configured to obtain a device identifier of at least one terminal connected to the first terminal.
The detecting unit 320 may be further configured to detect a second input, where the second input is used to select a device identifier of the second terminal from device identifiers of at least one terminal connected to the first terminal.
The processing unit 330 may be configured to determine the second terminal according to the device identifier of the second terminal.
Optionally, the first interface further includes: and testing item addition control. The test item adding control is used for receiving the test item adding and the input of the test instruction corresponding to the test item.
The detection unit 320 may also be configured to detect a third input for the test item addition control, where the third input is used to add a test item and a test instruction corresponding to the test item on the first interface.
The processing unit 330 is configured to add the test item and the test instruction corresponding to the test item in response to the third input detected by the detecting unit 320.
Optionally, the first interface further includes: and testing item modification control. The test item modification control is used for receiving input of a test instruction corresponding to the modified test item.
The detecting unit 320 may be further configured to detect a fourth input of the user, where the fourth input is used to modify the test instruction corresponding to the test item on the first interface.
Optionally, the first interface further includes: and ending the test control. And the test ending control is used for receiving and triggering the second terminal to end the operation of the input of the function corresponding to the test item corresponding to the first test control.
The detecting unit 320 may be further configured to detect a fifth input acting on the end test control, where the fifth input is used to end the test item corresponding to the first test control;
the terminal 30 further includes: a determining unit, configured to determine whether the second terminal is running a function corresponding to the test item corresponding to the first test control, if so, the sending unit 340 sends an end instruction to the second terminal, where the end instruction is used to instruct the second terminal to stop running the function corresponding to the test item corresponding to the first test control.
It can be understood that specific implementations of each functional unit included in the terminal 30 may refer to the respective corresponding embodiments in fig. 1, and are not described herein again.
Fig. 4 is a schematic structural diagram of another terminal provided in the embodiment of the present application. As shown in fig. 4, the terminal 40 may include: at least one processor 401, e.g., a CPU, at least one network interface 404, a memory 405, a clock module 403, at least one communication bus 402, an audio circuit 406, a display screen 407. The clock module 403 is mainly used for generating clocks required for data transmission and timing control for the processor 401. Memory 405 is coupled to processor 401 via communication bus 402. memory 405 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The network interface 404 may communicate with other terminals.
The Processor 401 may be a Central Processing Unit (CPU), and may also be other general purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field-Programmable Gate arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and so forth. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In this application, processor 401 may be used to read and execute computer readable instructions. Specifically, the processor 401 may be configured to call a program in the memory 409, such as an implementation program of the application function testing method (in the embodiment corresponding to fig. 1) provided in this application, and execute instructions contained in the program.
It should be noted that the terminal 40 shown in fig. 4 is only one implementation manner of the embodiment of the present application, and in practical applications, the terminal 40 may also include more or less components, and is not limited herein.
In another embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the method of fig. 1 described above.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the server, the terminal and the unit described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed method, server and terminal may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
While the invention has been described with reference to specific embodiments, the scope of the invention is not limited thereto, and those skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A method of testing, comprising:
the first interface comprises at least one test control, the at least one test control corresponds to different test items respectively, the test control is used for receiving and starting input of a test item corresponding to the test control, and the first interface also comprises a test item modification control, and the test item modification control is used for receiving and modifying input of a test instruction corresponding to the test item;
the method comprises the steps that a first terminal detects a first input acting on a first test control, the first input is used for starting a test item corresponding to the first test control, and the first test control is part or all of at least one test control;
the first terminal detects a fourth input acting on the test item modification control, the fourth input is used for modifying a test instruction corresponding to the test item on the first interface, the first terminal responds to the detected fourth input to modify the test instruction corresponding to the test item, and the first terminal pops up a test item modification prompt box to receive a test item name modification instruction and a test item modification instruction input by a user;
the first terminal sends a test instruction corresponding to the test item corresponding to the first test control to a second terminal; the test instruction is used for triggering the second terminal to run the function corresponding to the test item corresponding to the first test control;
the first terminal receives operation data fed back by the second terminal, and the operation data is used for representing the operation condition of the first test control corresponding to the function corresponding to the test item;
and the first terminal outputs a test log, and the test log is used for displaying the running data of the function corresponding to the test item corresponding to the first test control.
2. The method of claim 1, before the first terminal outputs the first interface, further comprising:
the first terminal acquires the equipment identification of at least one terminal connected with the first terminal;
the first terminal detects a second input, and the second input is used for selecting the equipment identifier of the second terminal from the equipment identifiers of at least one terminal connected with the first terminal;
and the first terminal determines the second terminal according to the equipment identifier of the second terminal.
3. The method of claim 1, wherein the first interface further comprises: testing item adding controls; the test item adding control is used for receiving the input of an added test item and a test instruction corresponding to the test item;
the method further comprises the following steps:
the first terminal detects a third input acting on the test item adding control, wherein the third input is used for adding a test item and a test instruction corresponding to the test item on the first interface;
and the terminal responds to the detected third input and adds the test item and the test instruction corresponding to the test item.
4. The method of claim 1, wherein the first interface further comprises: ending the test control; the test ending control is used for receiving and triggering the second terminal to end running the input of the function corresponding to the test item corresponding to the first test control;
the method further comprises the following steps:
the first terminal detects a fifth input acting on the test ending control, wherein the fifth input is used for ending a test item corresponding to the first test control;
the first terminal judges whether the second terminal is running the function corresponding to the test item corresponding to the first test control, if so, the first terminal sends an ending instruction to the second terminal, and the ending instruction is used for indicating the second terminal to stop running the function corresponding to the test item corresponding to the first test control.
5. A terminal, comprising:
the first interface comprises at least one test control, the test control is used for receiving and starting the input of a test item corresponding to the test control, and the test item modification control is used for receiving and modifying the input of a test instruction corresponding to the test item;
the device comprises a detection unit, a control unit and a control unit, wherein the detection unit is used for detecting a first input acting on a first test control, the first input is used for starting a test item corresponding to the first test control, and the first test control is part or all of at least one test control;
the detection unit is further configured to detect a fourth input acting on the test item modification control, where the fourth input is used to modify a test instruction corresponding to the test item on the first interface;
the processing unit is further used for responding to the fourth input detected by the detection unit and modifying a test instruction corresponding to the test item;
a sending unit, configured to send a test instruction corresponding to the test item corresponding to the first test control to a second terminal, where the test instruction is used to trigger the second terminal to run a function corresponding to the test item corresponding to the first test control;
the receiving unit is used for receiving the operation data fed back by the second terminal, and the operation data is used for representing the operation condition of the first test control corresponding to the function corresponding to the test item;
the output unit is further configured to output a test log, where the test log is used to display the running data of the function corresponding to the test item corresponding to the first test control.
6. The terminal of claim 5, further comprising, before the outputting the first interface by the output unit:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the equipment identification of at least one terminal connected with a first terminal;
the detection unit is further configured to detect a second input, where the second input is used to select a device identifier of the second terminal from device identifiers of at least one terminal connected to the first terminal;
and the processing unit is used for determining the second terminal according to the equipment identifier of the second terminal.
7. The terminal of claim 5, wherein the first interface further comprises: testing item adding controls; the test item adding control is used for receiving the input of the test item adding and the test instruction corresponding to the test item;
the terminal further comprises:
the detection unit is further configured to detect a third input acting on the test item addition control, where the third input is used to add a test item and a test instruction corresponding to the test item on the first interface;
the processing unit is further configured to add the test item and the test instruction corresponding to the test item in response to the third input detected by the detection unit.
8. The terminal of claim 5, wherein the first interface further comprises: ending the test control; the test ending control is used for receiving and triggering the second terminal to end running the input of the function corresponding to the test item corresponding to the first test control;
the terminal further comprises:
the detection unit is further configured to detect a fifth input acting on the test termination control, where the fifth input is used to terminate the test item corresponding to the first test control;
and the judging unit is used for judging whether the second terminal is operating the function corresponding to the test item corresponding to the first test control, if so, the sending unit sends an ending instruction to the second terminal, and the ending instruction is used for indicating the second terminal to stop operating the function corresponding to the test item corresponding to the first test control.
CN201711441647.8A 2017-12-26 2017-12-26 Test method and terminal Active CN108009096B (en)

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 CN108009096A (en) 2018-05-08
CN108009096B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461904B (en) * 2014-12-29 2018-02-09 北京畅游天下网络技术有限公司 The method of testing and device of mobile terminal
CN105808419B (en) * 2014-12-30 2018-08-10 平安科技(深圳)有限公司 Application testing 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

Also Published As

Publication number Publication date
CN108009096A (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN111782492B (en) Page first screen loading duration testing method and device, computer equipment and medium
CN109032746B (en) Display interface self-defining method and system of wearable device and electronic device
CN108009096B (en) Test method and terminal
CN113498594B (en) Control method and device of smart home system, electronic equipment and storage medium
CN111552633A (en) Interface abnormal call testing method and device, computer equipment and storage medium
CN107329659B (en) Permission setting method and device, electronic equipment and storage medium
CN113672441B (en) Method and device for testing intelligent equipment
US11531702B2 (en) Electronic device for generating video comprising character and method thereof
CN103888601A (en) Method, device and terminal for information warning
CN105183493A (en) Display method and device of network information
CN106249995B (en) Notification method and device
KR102340251B1 (en) Method for managing data and an electronic device thereof
CN108197955B (en) Terminal verification method, terminal device and computer readable storage medium
CN105550260A (en) Picture display method and device
CN107608923B (en) Test processing method and related product
US10133408B2 (en) Method, system and computer program product
CN107819944A (en) Delet method, device, equipment and the storage medium of short message
CN109213580A (en) Using exchange method and device
CN106201930B (en) A kind of device port determining device, terminal and method
CN111050217A (en) Video playing method and device
CN110175114A (en) Test terminal, APP and camera compatibility test method and storage medium
CN117171000A (en) Application program APP testing method and device, electronic equipment and storage medium
CN113810240B (en) Communication protocol analysis method, device and computer readable storage medium
CN105025482B (en) Communication information processing method and equipment thereof
CN106155863A (en) Terminal anticipatory behavior control method and 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
GR01 Patent grant
GR01 Patent grant
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.

TR01 Transfer of patent right