CN112241372A - Terminal testing method and device and electronic equipment - Google Patents

Terminal testing method and device and electronic equipment Download PDF

Info

Publication number
CN112241372A
CN112241372A CN202011142315.1A CN202011142315A CN112241372A CN 112241372 A CN112241372 A CN 112241372A CN 202011142315 A CN202011142315 A CN 202011142315A CN 112241372 A CN112241372 A CN 112241372A
Authority
CN
China
Prior art keywords
test
mobile terminal
test case
information
case sequence
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
CN202011142315.1A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202011142315.1A priority Critical patent/CN112241372A/en
Publication of CN112241372A publication Critical patent/CN112241372A/en
Pending legal-status Critical Current

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
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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

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)

Abstract

The embodiment of the disclosure discloses a terminal testing method and device and electronic equipment. One embodiment of the method comprises: sending a test instruction to a mobile terminal to be tested; and acquiring the operation parameter information of the mobile terminal in the process that the mobile terminal executes the corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to operate the application operation simulating the user behavior. This embodiment can carry out pressure test to mobile terminal through automatic mode, can save the test manpower in a large number, and efficiency is higher.

Description

Terminal testing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a terminal testing method and apparatus, and an electronic device.
Background
With the development of the internet, users increasingly use mobile terminal devices to complete various operations. As the time for a user to operate the mobile terminal is longer and longer, the overall performance of the mobile terminal expressed in various scenes increasingly affects the overall experience of the user. However, the current mobile terminal usually needs to perform a pressure test through a real environment, mostly depends on a manipulator, a high-speed camera and other modes, needs manual intervention, has low test efficiency, and cannot effectively complete corresponding tests for high-frequency applications and scenes needing to perform a pressure test for long-term use.
Disclosure of Invention
This disclosure is provided to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides a terminal testing method and device and electronic equipment, which can realize pressure testing on a mobile terminal in an automatic mode, thereby greatly saving testing manpower and improving efficiency.
In a first aspect, an embodiment of the present disclosure provides a terminal testing method, where the method includes: sending a test instruction to a mobile terminal to be tested; and acquiring the operation parameter information of the mobile terminal in the process that the mobile terminal executes the corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to operate the application operation simulating the user behavior.
In a second aspect, an embodiment of the present disclosure provides a terminal testing method, where the method includes: receiving a test instruction sent by test equipment; executing a corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to run application operation simulating user behavior; acquiring operation parameter information of the mobile terminal in the process that the mobile terminal executes the test case sequence; and sending the operation parameter information to the test equipment.
In a third aspect, an embodiment of the present disclosure provides a terminal testing apparatus, including: the sending unit is used for sending a test instruction to the mobile terminal to be tested; and the obtaining unit is used for obtaining the operation parameter information of the mobile terminal in the process that the mobile terminal executes the corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to operate the application operation simulating the user behavior.
In a fourth aspect, an embodiment of the present disclosure provides another terminal testing apparatus, including: the receiving unit is used for receiving a test instruction sent by the test equipment; the execution unit is used for executing a corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to run application operation simulating user behavior; the obtaining unit is used for obtaining the operation parameter information of the mobile terminal in the process that the mobile terminal executes the test case sequence; and the sending unit is used for sending the operation parameter information to the test equipment.
In a fifth aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the terminal testing method according to the first aspect or the second aspect.
In a sixth aspect, the disclosed embodiments provide a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the steps of the terminal testing method according to the first or second aspect.
According to the terminal testing method and device and the electronic equipment, simulation of real user behaviors and corresponding pressure testing can be achieved through an automatic means, manual intervention behaviors in a testing process can be reduced, testing manpower can be greatly saved, and efficiency is higher.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 is a flow chart diagram of one embodiment of a terminal testing method according to the present disclosure;
FIG. 2 is a flow chart diagram illustrating one embodiment of another method for terminal testing according to the present disclosure;
FIG. 3 is a schematic block diagram of one embodiment of a terminal testing device according to the present disclosure;
FIG. 4 is a schematic block diagram illustrating one embodiment of another termination test device according to the present disclosure;
FIG. 5 is an exemplary system architecture to which the terminal test method of one embodiment of the present disclosure may be applied;
fig. 6 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Referring to fig. 1, a flow of one embodiment of a terminal testing method according to the present disclosure is shown. The terminal testing method is applied to testing equipment such as desktop equipment, servers or embedded equipment. As shown in fig. 1, the terminal testing method includes the following steps:
step 101, sending a test instruction to a mobile terminal to be tested.
The user can use the testing device as a tool to perform a stress test on the mobile terminal to be tested, i.e. a performance state test of a long-time running state, which may generally include a test of whether the mobile terminal is stuck or not. The testing device can automatically start a testing process according to a preset program or script to send a corresponding testing instruction to the mobile terminal to be tested, or can send the testing instruction in response to the operation of a user on the testing terminal. For example, after a user inputs and executes a corresponding command through a test interface of the test device, the test device may send a corresponding test instruction.
And 102, acquiring the operation parameter information of the mobile terminal in the process that the mobile terminal executes the corresponding test case sequence according to the test instruction. And each case in the test case sequence is used for controlling the mobile terminal to run application operation simulating user behavior.
In this embodiment, the mobile terminal to be tested may execute the corresponding test case sequence after receiving the test instruction. The test instructions are typically used to stress test the device. Because each case in the test case sequence is used for controlling the mobile terminal to run the application operation simulating the user behavior, the mobile terminal can run various application operations simulating the user behavior according to a certain sequence when executing the test case sequence. The test case sequences may be pre-stored locally in the mobile terminal, or may be stored on a remote server for the mobile terminal to obtain through a network and execute.
The applications for which the user behavior is simulated can be system applications carried by the mobile terminal operating system, such as a calendar application, a weather application, a telephone dialing application and the like, and can also be applications installed from a third party, such as social software, short video software, a video website application, a news application and a weather application. Correspondingly, the application operation may be, for example, operations of sending text, sending voice, sending pictures, sharing, third-party service, applet, scanning, game, sending video, friend dynamics, and the like to the social software; operating a main interface, a city-sharing interface, a live interface, a shooting interface and a friend-paying interface of the short video software; aiming at the operations of entering a video interface, a main interface, a live interface and the like of video software; but also browsing news, playing music, viewing a calendar or operating a system application or a three-party application for weather, phone dialing, etc.
In the test case sequence, the specific test case types and the specific test case sequences can be preset and can be determined after the sequence of the real user when using the mobile phone is constructed according to the habit of the ordinary user to use the mobile phone daily. For example, the application operation may be performed in the following order, for example, when the user starts in the morning: and lightening a screen, unlocking and checking a social software message, replying to a friend-swiping circle, returning to a main page, checking weather conditions, swiping news, playing games, switching to an instant messaging software pause sign in a game in a multitask mode, sending an instant messaging message, and combining test cases corresponding to application operations simulating the user behaviors according to a corresponding sequence to form a required test case sequence.
In the process of running the application operations of the mobile terminal, the test equipment can acquire running parameter information of the mobile terminal. Generally, the mobile terminal may record operation parameter information during its operation process through a log file, and the operation parameter information may be used to characterize whether an abnormal condition exists during the operation process of the mobile terminal. For example, the operation parameter information may be operation parameter information of hardware such as a CPU, a memory, a disk, a GPU, and the like on the mobile terminal.
In some optional implementations of this embodiment, the operating parameter information may include frame rate information. The frame rate information may be interface frame loss information, such as frame loss duration, frame loss time, frame loss times, frame rate, and other data. The frame rate information of the user interface can well represent the feeling of smoothness when the user performs application operation of the mobile terminal, and the smoothness is an important factor influencing the user experience and is used as the pressure test information to facilitate subsequent performance quality analysis.
In some optional implementation manners of this embodiment, the test instruction includes test case order information, and the test case sequence is determined by the mobile terminal from a preset test case set according to the test case order information. The mobile terminal may store a set of test cases in advance, and the set of test cases may be integrated into the mobile terminal in advance by installing a test application on the mobile terminal. When the stress test is performed, the test instruction sent by the test equipment to the mobile terminal may include test case order information, where the test case order information may include sequence numbers of respective cases in the test case sequence set and an order in which the cases need to be executed. When executing the test instruction, the mobile terminal can select the test cases to be executed from the preset test case set according to the test case sequence information and sequentially combine the test cases into a test case sequence for execution. In the implementation mode, the test device can flexibly select the actually executed test cases from the test case set to be selected according to requirements, so that the mode can be used for simulating user behavior combinations under different scenes and carrying out targeted pressure tests, and the test convenience is higher.
In some optional implementation manners of this embodiment, the terminal testing method may further include: and sending a test case updating instruction to the mobile terminal so that the mobile terminal updates the test case set. In this implementation, the test device may first send a test case update instruction to the mobile terminal to be tested. The test case updating instruction can be an instruction for adding, deleting and modifying the test case. Generally, the test case update instruction may include the content of the test case that needs to be updated. For example, when the test case update instruction is a new test case, the test instruction may include the content of the test case that needs to be added. In the implementation mode, the content of the test case set can be updated according to the requirement, so that the whole test scheme has stronger expansibility.
In some optional implementation manners of this embodiment, the terminal testing method further includes the following steps: comparing the pressure test information with preset pressure test reference information; and generating a test result of the mobile terminal according to the comparison result. For example, the pressure test reference information may be a normal operation parameter in normal operation, which may be a single threshold value or a certain value range. When the pressure test information is compared with the preset pressure test reference information, the acquired operation parameter information can be compared with the normal operation parameters, so that a test result that the execution process of the mobile terminal is normal or abnormal can be generated according to the comparison result. For example, when the operating parameter information includes frame rate information, and the specific frame rate information may further include a frame dropping time average value, the pressure test reference information may include a katon time threshold of 100 ms. Generally, for a handset with a screen refresh rate of 60Hz, 1 frame is about 16.7ms, 6 frames are about 100ms, and when the pause time exceeds 100ms, the user perceived pause can be caused. By comparing the indexes, the test result of the pressure test can be obtained, so that the performance quality of the system running for a long time can be evaluated.
In some optional implementations of this embodiment, the test cases in the test case sequence are extracted based on at least one of the following information: the application operation abnormal information fed back by the user and the application operation abnormal information detected by the mobile terminal. In one aspect, the test case sequence may be generated according to application operation exception information fed back by the user. For example, a user may actively submit various performance problems in a mobile phone system, or may collect various performance problems of a mobile phone through forums and customer service, and the abnormality based on the feedback may be designed into a corresponding test case sequence. On the other hand, the test case sequence may also be generated according to application operation abnormality information detected by the mobile terminal. For example, the application operation abnormality can be detected through the frame loss information, that is, after the system detects that the user is stuck, the data of the stuck application interface and the stuck duration are collected and reported to the server, and it can be reflected that the user encounters a frame drop on which APP interfaces. In practice, the application operation abnormal information detected by the mobile terminal can be collected and uploaded only after the user agrees. In the implementation mode, the test case is generated based on the real use scene of the active feedback of the user or the system acquisition, so that the pressure test based on the test case has higher pertinence.
In this embodiment, before the testing device starts to execute the steps of the method of this embodiment, the mobile terminal may be initialized in advance, and the user may set the execution turn. The whole processing procedure of the embodiment can be automatically processed in a script mode and the like. Therefore, by the method in the embodiment, the pressure test for simulating the real user behavior operation can be realized by using an automatic means, the manual intervention behaviors in the test process can be reduced, a large amount of test manpower can be saved, and the efficiency is higher.
With continued reference to fig. 2, a flow of yet another embodiment of a terminal testing method according to the present disclosure is shown. The terminal testing method is applied to the mobile terminal. As shown in fig. 2, the terminal testing method includes the following steps:
step 201, receiving a test instruction sent by a test device.
In this embodiment, the testing device may send a testing instruction to the mobile terminal to be tested in advance, and the mobile terminal may receive the corresponding testing instruction. The operation of sending the test instruction by the test equipment can be a response to the test command input by the user, or can be automatically executed according to a preset program.
Step 202, executing a corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to run an application operation simulating user behavior.
In this embodiment, the mobile terminal may execute the test case sequence after receiving the test instruction. Each case in the test case sequence is used for controlling the mobile terminal to run the application operation simulating the user behavior, that is, the mobile terminal can run the application operation simulating the user behavior according to a certain sequence.
Step 203, obtaining the operation parameter information of the mobile terminal in the process of executing the test case sequence by the mobile terminal.
In this embodiment, the mobile terminal may obtain the operation parameter information of the mobile terminal in the process of executing the test case sequence. Generally, the mobile terminal may save the operation parameter information by means of a log file. That is, the mobile terminal may obtain the relevant operating parameter information by analyzing the log file.
And step 204, sending the operation parameter information to the test equipment.
In this embodiment, the mobile terminal may send the operation parameter information back to the testing device as the stress test information. Generally, the operation parameter information can be used as pressure test information for a tester or a system to perform further abnormality judgment.
In some optional implementations of this embodiment, the operation parameter information includes frame rate information. The frame rate information may be interface frame loss information, such as frame loss duration, frame loss time, frame loss times, frame rate, and other data. The frame rate information of the user interface can well represent the smooth experience of the user when the user operates the application of the mobile terminal.
In some optional implementations of this embodiment, the test instruction includes test case order information; and, in step 202, executing a corresponding test case sequence according to the test instruction, including: determining a test case sequence from a preset test case set according to the test case sequence information; and executing the determined test case sequence. In this implementation manner, the test instruction sent by the test device may include test case order information, so that the mobile terminal may select a test case sequence to be executed from a preset test case set according to the test case order information. In the implementation mode, the test equipment can flexibly select the actually executed test cases from the test case set to be selected according to requirements, and the test convenience is higher.
In some optional implementations of this embodiment, the test cases in the test case sequence are extracted based on at least one of the following information: the application operation abnormal information fed back by the user and the application operation abnormal information detected by the mobile terminal. In the implementation mode, the test case is generated based on the real use scene of the active feedback of the user or the system acquisition, so that the pressure test based on the test case has higher pertinence.
In the embodiment, the test process can be carried out through an automatic means, so that a large amount of test manpower can be saved, and the efficiency is higher.
With further reference to fig. 3 and 4, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of a terminal testing apparatus, where the embodiment of the apparatus shown in fig. 3 corresponds to the embodiment of the method shown in fig. 1, and the apparatus may be specifically applied to various testing devices; the embodiment of the apparatus shown in fig. 4 corresponds to the embodiment of the method shown in fig. 2, and the apparatus can be applied to various mobile terminals.
As shown in fig. 3, the terminal test apparatus of the present embodiment includes: a transmitting unit 301 and an acquiring unit 302. The sending unit 301 is configured to send a test instruction to a mobile terminal to be tested; an obtaining unit 302, configured to obtain operation parameter information of the mobile terminal in a process that the mobile terminal executes a corresponding test case sequence according to the test instruction, where each case in the test case sequence is used to control the mobile terminal to run an application operation that simulates a user behavior.
In this embodiment, specific processing of the sending unit 301 and the obtaining unit 302 of the terminal testing apparatus and technical effects thereof can refer to related descriptions of step 101 and step 102 in the corresponding embodiment of fig. 1, which are not described herein again.
In some optional implementations of this embodiment, the operation parameter information includes frame rate information.
In some optional implementation manners of this embodiment, the test instruction includes test case order information, and the test case sequence is determined by the mobile terminal from a preset test case set according to the test case order information.
In some optional implementations of this embodiment, the apparatus further includes: and the updating unit is used for sending a test case updating instruction to the mobile terminal so that the mobile terminal can update the test case set.
In some optional implementations of this embodiment, the apparatus further includes: a comparison unit (not shown) for comparing the pressure test information with preset pressure test reference information; a generating unit (not shown) for generating a test result of the mobile terminal according to the comparison result.
As shown in fig. 4, the terminal test apparatus of the present embodiment includes: receiving section 401, executing section 402, acquiring section 403, and transmitting section 404. The receiving unit 401 is configured to receive a test instruction sent by a test device; the execution unit 402 is configured to execute a corresponding test case sequence according to the test instruction, where each case in the test case sequence is used to control the mobile terminal to run an application operation that simulates a user behavior; an obtaining unit 403, configured to obtain operation parameter information of the mobile terminal in a process in which the mobile terminal executes the test case sequence; the sending unit 404 is configured to send the operation parameter information to the testing device.
In this embodiment, specific processes of the receiving unit 401, the executing unit 402, the obtaining unit 403, and the sending unit 404 of the terminal testing apparatus and technical effects thereof may refer to the related descriptions of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of this embodiment, the operation parameter information includes frame rate information.
In some optional implementations of this embodiment, the operation parameter information includes frame rate information. The test instruction comprises test case sequence information; and the execution unit 402 is further configured to: determining a test case sequence from a preset test case set according to the test case sequence information; and executing the determined test case sequence.
In some optional implementations of this embodiment, the test cases in the test case sequence are extracted based on at least one of the following information: the application operation abnormal information fed back by the user and the application operation abnormal information detected by the mobile terminal.
Referring to fig. 5, fig. 5 illustrates an exemplary system architecture to which the terminal test method of one embodiment of the present disclosure may be applied.
As shown in fig. 5, the system architecture may include a mobile terminal 501, a transmission medium 502, and a test device 503. The transmission medium 502 is a medium for data transmission between the mobile terminal 501 and the test apparatus 503. The transmission medium 502 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others, and may also be a USB transmission line.
The mobile terminal 501 may interact with the test equipment 503 via the transmission medium 502 to receive or send messages or the like. The mobile terminal 501 may have various client applications installed thereon, such as a web browser application, a search-type application, and a news-information-type application. The mobile terminal 501 may receive the test instruction transmitted from the other device and execute it.
The mobile terminal 501 may be various mobile electronic devices with a display screen, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), and so on. When the testing device 503 is software, it can be installed in the electronic devices listed above. It may be implemented as multiple pieces of software or software modules (e.g., software or software modules used to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The test device 503 may be an electronic device providing various functions, such as a device for sending information to the mobile terminal device 501 and for obtaining information from the mobile terminal device 501, and may further process the relevant data.
It should be noted that the terminal testing method provided by the embodiment disclosed in fig. 1 may be executed by the testing device 503, and accordingly, the terminal testing apparatus shown in fig. 3 may be disposed in the testing device 503. In addition, the terminal testing method provided by the embodiment disclosed in fig. 2 can be executed by the mobile terminal 501, and accordingly, the terminal testing apparatus shown in fig. 4 can be disposed in the mobile terminal 501.
It should be understood that the number of mobile terminals, networks and test equipment in fig. 5 is merely illustrative. There may be any number of mobile terminals, networks and test equipment, as desired for an implementation.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., the mobile terminal device or the test device of fig. 5) suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (hypertext transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: sending a test instruction to a mobile terminal to be tested; and acquiring the operation parameter information of the mobile terminal in the process that the mobile terminal executes the corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to operate the application operation simulating the user behavior. Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a test instruction sent by test equipment; executing a corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to run application operation simulating user behavior; acquiring operation parameter information of the mobile terminal in the process that the mobile terminal executes the test case sequence; and sending the operation parameter information of the mobile terminal to the test equipment in the process of executing the test case sequence by the mobile terminal.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Python, Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a definition of the unit itself, for example, the sending unit may also be described as a "unit sending test instructions to the mobile terminal to be tested".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (14)

1. A terminal testing method is characterized by comprising the following steps:
sending a test instruction to a mobile terminal to be tested;
and acquiring the operation parameter information of the mobile terminal in the process that the mobile terminal executes the corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to operate the application operation simulating the user behavior.
2. The method of claim 1, wherein the operational parameter information comprises frame rate information.
3. The method according to claim 1 or 2, wherein the test instruction comprises test case sequence information, and the test case sequence is determined by the mobile terminal from a preset test case set according to the test case sequence information.
4. The method of claim 3, further comprising:
and sending a test case updating instruction to the mobile terminal so that the mobile terminal updates the test case set.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
comparing the pressure test information with preset pressure test reference information;
and generating a test result of the mobile terminal according to the comparison result.
6. The method according to claim 1 or 2, wherein the test cases in the test case sequence are extracted based on at least one of the following information: the application operation abnormal information fed back by the user and the application operation abnormal information detected by the mobile terminal.
7. A terminal testing method is characterized by comprising the following steps:
receiving a test instruction sent by test equipment;
executing a corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to run application operation simulating user behavior;
acquiring operation parameter information of the mobile terminal in the process that the mobile terminal executes the test case sequence;
and sending the operation parameter information to the test equipment.
8. The method of claim 7, wherein the operational parameter information comprises frame rate information.
9. The method of claim 7 or 8, wherein the test instructions comprise test case order information; and
the executing of the corresponding test case sequence according to the test instruction includes:
determining a test case sequence from a preset test case set according to the test case sequence information;
and executing the determined test case sequence.
10. The method according to claim 7 or 8, wherein the test cases in the test case sequence are extracted based on at least one of the following information: the application operation abnormal information fed back by the user and the application operation abnormal information detected by the mobile terminal.
11. A terminal testing device, comprising:
the sending unit is used for sending a test instruction to the mobile terminal to be tested;
and the obtaining unit is used for obtaining the operation parameter information of the mobile terminal in the process that the mobile terminal executes the corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to operate the application operation simulating the user behavior.
12. A terminal testing device, comprising:
the receiving unit is used for receiving a test instruction sent by the test equipment;
the execution unit is used for executing a corresponding test case sequence according to the test instruction, wherein each case in the test case sequence is used for controlling the mobile terminal to run application operation simulating user behavior;
the obtaining unit is used for obtaining the operation parameter information of the mobile terminal in the process that the mobile terminal executes the test case sequence;
and the sending unit is used for sending the operation parameter information to the test equipment.
13. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-10.
14. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN202011142315.1A 2020-10-22 2020-10-22 Terminal testing method and device and electronic equipment Pending CN112241372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011142315.1A CN112241372A (en) 2020-10-22 2020-10-22 Terminal testing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011142315.1A CN112241372A (en) 2020-10-22 2020-10-22 Terminal testing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112241372A true CN112241372A (en) 2021-01-19

Family

ID=74169728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011142315.1A Pending CN112241372A (en) 2020-10-22 2020-10-22 Terminal testing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112241372A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553257A (en) * 2021-07-14 2021-10-26 北京字节跳动网络技术有限公司 Test method, test device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844426A (en) * 2017-11-24 2018-03-27 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN108932191A (en) * 2017-05-23 2018-12-04 北京嘀嘀无限科技发展有限公司 Automated testing method, system, computer equipment and readable storage medium storing program for executing
CN108959078A (en) * 2018-06-26 2018-12-07 郑州云海信息技术有限公司 A kind of end Windows automatic software test method and system
CN108984388A (en) * 2018-06-01 2018-12-11 平安壹钱包电子商务有限公司 A kind of method and terminal device generating automatic test cases
CN111124911A (en) * 2019-12-20 2020-05-08 苏州浪潮智能科技有限公司 Automatic testing method, device, equipment and readable storage medium
CN111274154A (en) * 2020-02-19 2020-06-12 北京蜜莱坞网络科技有限公司 Automatic testing method, device, equipment and storage medium
CN111708824A (en) * 2020-06-17 2020-09-25 龙芯中科技术有限公司 Data processing method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932191A (en) * 2017-05-23 2018-12-04 北京嘀嘀无限科技发展有限公司 Automated testing method, system, computer equipment and readable storage medium storing program for executing
CN107844426A (en) * 2017-11-24 2018-03-27 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN108984388A (en) * 2018-06-01 2018-12-11 平安壹钱包电子商务有限公司 A kind of method and terminal device generating automatic test cases
CN108959078A (en) * 2018-06-26 2018-12-07 郑州云海信息技术有限公司 A kind of end Windows automatic software test method and system
CN111124911A (en) * 2019-12-20 2020-05-08 苏州浪潮智能科技有限公司 Automatic testing method, device, equipment and readable storage medium
CN111274154A (en) * 2020-02-19 2020-06-12 北京蜜莱坞网络科技有限公司 Automatic testing method, device, equipment and storage medium
CN111708824A (en) * 2020-06-17 2020-09-25 龙芯中科技术有限公司 Data processing method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113553257A (en) * 2021-07-14 2021-10-26 北京字节跳动网络技术有限公司 Test method, test device, storage medium and electronic equipment
CN113553257B (en) * 2021-07-14 2024-04-26 北京字节跳动网络技术有限公司 Test method, device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110809189B (en) Video playing method and device, electronic equipment and computer readable medium
CN110658961B (en) Information display method and device and electronic equipment
CN112311656B (en) Message aggregation and display method and device, electronic equipment and computer readable medium
CN111061956A (en) Method and apparatus for generating information
CN110098998B (en) Method and apparatus for processing information
CN112312225B (en) Information display method and device, electronic equipment and readable medium
CN111290819B (en) Method and device for displaying operation prompt and electronic equipment
CN109862100B (en) Method and device for pushing information
CN111459364B (en) Icon updating method and device and electronic equipment
CN111246228B (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110619096B (en) Method and apparatus for synchronizing data
CN110781432A (en) Page jump method and device, electronic equipment and computer readable storage medium
CN111209306A (en) Business logic judgment method and device, electronic equipment and storage medium
CN110837334B (en) Method, device, terminal and storage medium for interactive control
CN111752834A (en) Automatic testing method and device
CN112257478A (en) Code scanning method, device, terminal and storage medium
CN111209432A (en) Information acquisition method and device, electronic equipment and computer readable medium
CN112241372A (en) Terminal testing method and device and electronic equipment
CN113144620A (en) Detection method, device, platform, readable medium and equipment for frame synchronization game
CN110619101B (en) Method and apparatus for processing information
CN112306826A (en) Method and apparatus for processing information for terminal
CN112287171A (en) Information processing method and device and electronic equipment
CN113885741A (en) Multimedia processing method, device, equipment and medium
CN110708425A (en) Message display method and device and electronic equipment

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