CN105468513B - Test method, device and system based on mobile terminal - Google Patents

Test method, device and system based on mobile terminal Download PDF

Info

Publication number
CN105468513B
CN105468513B CN201410462584.4A CN201410462584A CN105468513B CN 105468513 B CN105468513 B CN 105468513B CN 201410462584 A CN201410462584 A CN 201410462584A CN 105468513 B CN105468513 B CN 105468513B
Authority
CN
China
Prior art keywords
test
testing
mobile terminal
subtasks
historical
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
CN201410462584.4A
Other languages
Chinese (zh)
Other versions
CN105468513A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410462584.4A priority Critical patent/CN105468513B/en
Publication of CN105468513A publication Critical patent/CN105468513A/en
Application granted granted Critical
Publication of CN105468513B publication Critical patent/CN105468513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

A test method based on a mobile terminal comprises the following steps: dividing the received test task into a plurality of test subtasks, respectively distributing the test subtasks to a plurality of test mobile terminals for parallel testing, receiving a notification that the test subtasks reported by each test mobile terminal are completed, acquiring test result data of the test subtask corresponding to the notification, and counting all the test result data of each test mobile terminal and outputting a statistical result when each test mobile terminal completes all the test subtasks. In addition, the invention also provides a testing device and a testing system based on the mobile terminal. The mobile terminal-based testing method, the mobile terminal-based testing device and the mobile terminal-based testing system can distribute the testing tasks to a plurality of testing mobile terminals for parallel testing, and improve the testing efficiency.

Description

Test method, device and system based on mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a test method, device, and system based on a mobile terminal.
Background
With the popularization of mobile terminals in daily life of people, more and more special software for the mobile terminals appears. In order to detect the quality of the special software, the test is required to be carried out on the mobile terminal for test, and the test is formally released after reaching a certain success rate.
In the prior art, a test task is allocated to a mobile terminal for testing in a test system, and analysis is performed according to test result data of each mobile terminal, but the mobile terminal performs testing sequentially and singly without a platform for processing a cluster task. That is, one mobile terminal sequentially executes test tasks to be completed, which takes a long time. Moreover, when the mobile terminals of various models need to execute the test tasks, deployment and distribution are complicated, the mobile terminals waiting for the task to be completed finally can count the test data, the mobile terminals cannot be effectively utilized, and great waste of resources is caused.
Disclosure of Invention
In view of this, the present invention provides a mobile terminal-based testing method, apparatus and system, which can distribute testing tasks to a plurality of testing mobile terminals for parallel testing, thereby improving testing efficiency.
The test method based on the mobile terminal provided by the embodiment of the invention comprises the following steps: dividing the received test task into a plurality of test subtasks, and respectively distributing the test subtasks to a plurality of test mobile terminals for parallel testing; receiving a notification that the test subtask reported by each test mobile terminal is completed; acquiring test result data of the test subtask corresponding to the notification; and when all the test mobile terminals finish all the test subtasks, counting all the test result data of all the test mobile terminals and outputting a statistical result.
The testing device based on the mobile terminal provided by the embodiment of the invention comprises: the distribution unit is used for dividing the received test task into a plurality of test subtasks and respectively distributing the test subtasks to a plurality of test mobile terminals for parallel testing; a receiving unit, configured to receive a notification that the test subtask reported by each test mobile terminal is completed; the acquisition unit is used for acquiring the test result data of the test subtask corresponding to the notification; the statistical unit is used for counting all the test result data of each test mobile terminal when each test mobile terminal completes all the test subtasks; and the output unit is used for outputting the statistical result.
The test system based on the mobile terminal provided by the embodiment of the invention comprises: a server and a test mobile terminal; the server is used for dividing the received test task into a plurality of test subtasks, respectively distributing the test subtasks to a plurality of test mobile terminals for parallel testing, receiving a notification that the test subtasks reported by each test mobile terminal are completed, acquiring test result data of the test subtasks corresponding to the notification, and counting all the test result data of each test mobile terminal and outputting a statistical result when each test mobile terminal completes all the test subtasks; and the testing mobile terminal is used for receiving the testing subtask distributed by the server and testing the testing subtask, and reporting that the distributed testing subtask is completed to the server when the distributed testing subtask is completed.
According to the mobile terminal-based testing method, device and system provided by the embodiment of the invention, the server divides the testing task into a plurality of testing subtasks and distributes the testing subtasks to the plurality of testing mobile terminals for parallel testing, so that the resources can be utilized to the maximum extent in the shortest time, the testing task can be completed at the fastest speed, and the processing efficiency of the testing data is improved. And the test result data are obtained, the output result is counted, and the data processing is dispersed, so that the test data processing efficiency can be further improved.
In order to make the aforementioned and other objects, features and advantages of the invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
Fig. 1 is a schematic structural diagram of a mobile terminal-based test system according to an embodiment of the present invention;
FIG. 2 shows a block diagram of a server;
fig. 3 shows a block diagram of a mobile terminal;
fig. 4 is a flowchart of a mobile terminal-based testing method according to a first embodiment of the present invention;
fig. 5 is a flowchart of a mobile terminal-based testing method according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a testing apparatus based on a mobile terminal according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a testing apparatus based on a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the embodiments, structures, features and effects according to the present invention will be made with reference to the accompanying drawings and preferred embodiments.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a mobile terminal-based test system according to an embodiment of the present invention.
The server 100 and the plurality of test mobile terminals 200 are connected in a wireless manner, and specifically, the server 100 and the test mobile terminals 200 are connected in a wireless manner in a TCPIP manner without occupying USB (Universal Serial Bus) ports for connection. Wherein, TCP is a short for Transmission Control Protocol, IP is a short for Internet Protocol, and TCPIP is a network communication Protocol composed of TCP Protocol and IP Protocol.
The server 100 is configured to divide a received test task into a plurality of test subtasks, distribute the test subtasks to a plurality of test mobile terminals for parallel testing, receive a notification that the test subtask reported by each test mobile terminal 200 is completed, obtain test result data of the test subtask corresponding to the notification, and when each test mobile terminal 200 completes all the test subtasks, count all the test result data of each test mobile terminal 200 and output a statistical result.
The testing mobile terminal 200 is configured to receive the testing subtask distributed by the server 100, perform testing, and report that the distributed testing subtask is completed to the server 100 when the distributed testing subtask is completed.
Further, the server 100 may comprise a first module 101 and a second module 102;
the server 100 and the testing mobile terminal 200 in the technical solution of the present invention may be configured based on a MapReduce (map reduce) wireless large-scale test distribution platform, where the MapReduce is derived from mapping and simplifying operations in a functional language such as lisp (list processor), and then a framework for efficient large-scale data processing of MapReduce is proposed, but the framework is a parallel computing framework applied to a large-scale data operation service of a large-scale server, a small computer cluster, or a Personal Computer (PC). Hadoop, Hive, et al are all frameworks based on MapReduce development. In the technical scheme of the invention, the mobile terminal replaces a PC to realize the clustering, thereby completing large-scale test or calculation service.
The first module 101 may be a Map module, and is configured to divide the test task into a plurality of test subtasks, and distribute the plurality of test subtasks to the plurality of test mobile terminals 200 for parallel simultaneous testing. Each testing mobile terminal 200 is distributed with one or more testing subtasks. Fig. 1 shows that each test mobile terminal 200 is distributed with a test subtask.
Each testing mobile terminal 200 receives the testing subtask distributed by the first module 101 of the server 100, performs testing, reports that the testing subtask of the server 100 is completed after the testing subtask is completed, and the server 100 receives a notification that the testing subtask reported by each testing mobile terminal 200 is completed. The second module 102 obtains the test result data of the test subtask corresponding to the notification, and when each test mobile terminal 200 completes all the test subtasks, the second module 102 performs statistics on all the test result data of each test mobile terminal 200 and outputs a statistical result. Specifically, the information can be output to the display terminal 300 and displayed for the user to view.
The above implementation process is described in detail in the following embodiments.
Fig. 2 is a block diagram of a server. As shown in FIG. 2, the server 100 may vary greatly due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 122 (e.g., one or more processors) and memory 132, one or more storage media 130 (e.g., one or more mass storage devices) storing applications 142 or data 144. Memory 132 and storage medium 130 may be, among other things, transient or persistent storage. The program stored in the storage medium 130 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 122 may be configured to communicate with the storage medium 130 to execute a series of instruction operations in the storage medium 130 on the server 100. The Server 100 may also include one or more power supplies 126, one or more wired or wireless network interfaces 150, one or more input-output interfaces 158, and/or one or more operating systems 141, such as a Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTMAnd so on. The steps performed by the servers in the embodiments shown in the following figures may be based on the server architecture shown in this figure 2.
Fig. 3 shows a block diagram of a mobile terminal. As shown in fig. 3, the mobile terminal 200 includes a memory 202, a memory controller 204, one or more processors 206 (only one shown), a peripheral interface 208, a radio frequency module 210, a positioning module 212, a camera module 214, an audio module 216, a touch screen 218, and a key module 220. These components communicate with one another via one or more communication buses/signal lines 222.
It is to be understood that the configuration shown in fig. 3 is merely exemplary, and that mobile terminal 200 may include more or fewer components than shown in fig. 3, or may have a different configuration than shown in fig. 3. The components shown in fig. 3 may be implemented in hardware, software, or a combination thereof.
The memory 202 may be used to store software programs and modules, such as program instructions/modules corresponding to the mobile terminal-based testing method, apparatus and system in the embodiments of the present invention, and the processor 206 executes various functional applications and data processing by running the software programs and modules stored in the memory 202, so as to implement the mobile terminal-based testing method.
The memory 202 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 202 may further include memory located remotely from the processor 206, which may be connected to the mobile terminal 200 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 202 by the processor 206, and possibly other components, may be under the control of the memory controller 204.
The peripheral interface 208 couples various input/output devices to the CPU and to the memory 202. Processor 206 executes various software, instructions within memory 202 to perform various functions of mobile terminal 200 and to perform data processing.
In some embodiments, the peripheral interface 208, the processor 206, and the memory controller 204 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 210 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The rf module 210 may include various existing circuit elements for performing these functions, such as an antenna, an rf transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 210 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11 a, IEEE802.11b, IEEE802.11g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), VoIP, world wide mail for internet, Wi-Max, and any other suitable protocol for short message Communication, and may even include those protocols that have not yet been developed.
The positioning module 212 is used for acquiring the current position of the mobile terminal 200. Examples of the positioning module 212 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 214 is used to take a picture or video. The pictures or videos taken may be stored in memory 202 and transmitted via radio frequency module 210.
The audio module 216 provides an audio interface to the user, which may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from the peripheral interface 208, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to the peripheral interface 208 for further processing. The audio data may be retrieved from the memory 202 or through the radio frequency module 210. In addition, the audio data may also be stored in the memory 202 or transmitted through the radio frequency module 210. In some examples, the audio module 216 may also include a headphone jack for providing an audio interface to headphones or other devices.
The touch screen 218 provides both an output and an input interface between the mobile terminal 200 and the user. In particular, the touch screen 218 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. The touch screen 218 also receives user inputs, such as user clicks, swipes, and other gesture operations, so that the user interface objects respond to these user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen 218 display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The key module 220 also provides an interface for a user to input to the mobile terminal 200, and the user may press different keys to cause the mobile terminal 200 to perform different functions.
The mobile terminal 200 may be any mobile terminal with a touch screen, such as a mobile phone, a palm computer, a tablet computer, etc., and for convenience of description, the following embodiments take the mobile phone as an example.
First embodiment
Referring to fig. 4, fig. 4 is a flowchart illustrating a mobile terminal-based testing method according to a first embodiment of the invention. As shown in fig. 4, the test method based on the mobile terminal provided in this embodiment includes:
step S401, dividing the received test task into a plurality of test subtasks, and respectively distributing the test subtasks to a plurality of test mobile terminals for parallel testing;
the server 100 receives the test task, divides the test task into a plurality of test subtasks, and distributes the plurality of test subtasks to a plurality of test mobile terminals in the test platform respectively for parallel testing. Each testing mobile terminal 200 is distributed with one or more testing subtasks. Each testing mobile terminal 200 runs its own testing subtask in parallel at the same time. The configuration of each test mobile terminal may be the same or different.
Step S402, receiving the notification that the test subtask reported by each test mobile terminal is completed;
after completing the test subtasks, the mobile terminal 200 reports the test subtasks to the server 100, and the server 100 receives a notification that the test subtasks reported by the mobile terminals have been completed. That is, the server 100 may monitor the status of the mobile terminal 200 to perform the test subtask.
Step S403, obtaining test result data of the test subtask corresponding to the notification;
the server 100 obtains the test result data of the test subtask from the test mobile terminal 200 that completes the test subtask corresponding to the notification.
Step S404, when all the test mobile terminals finish all the test subtasks, all the test result data of all the test mobile terminals are counted and the counted result is output.
When each testing mobile terminal completes all the testing subtasks and the server 100 receives the notification of completion of all the testing subtasks, all the testing result data of each testing mobile terminal are counted and the counted result is output, and specifically, the counted result can be output to the display terminal 300 and displayed for the user to check.
In the embodiment, the server divides the test task into a plurality of test subtasks and distributes the test subtasks to a plurality of test mobile terminals for parallel testing, so that resources can be utilized to the maximum extent in the shortest time, the test task can be completed at the fastest speed, and the test data processing efficiency is improved. And the test result data are obtained, the output result is counted, and the data processing is dispersed, so that the test data processing efficiency can be further improved.
Second embodiment
Referring to fig. 5, a second embodiment provides a method for testing a mobile terminal, including:
step S501, dividing the received test task into a plurality of test subtasks through a first module;
the server 100 receives a test task, which is divided into a plurality of test subtasks by the first module 101. The first module 101 may be a Map module based on a Map Reduce framework.
Step S502, generating and displaying an interface of the appointed testing mobile terminal, and providing an interface for a user to appoint a plurality of testing subtasks to be distributed to the appointed testing mobile terminal for testing;
and generating and displaying an interface of the specified test mobile terminal, wherein the interface can comprise two click buttons which respectively indicate that each test subtask is allocated to the specified test mobile terminal, and each test subtask is allocated to all test mobile terminals.
Step S503, acquiring records of historical test duration of each test mobile terminal for completing the historical test subtasks;
when each testing mobile terminal completes one testing subtask each time, recording the testing time used for completing the testing subtask, and taking the record as the record of the historical testing time for completing the historical testing subtask of each testing mobile terminal, so as to be used as the basis for determining the testing capability value of each testing mobile terminal when the testing mobile terminal is allocated with the testing subtask next time.
Step S504, according to the average value of the historical test duration in the record, determining the test capability value of each test mobile terminal;
the average value of the historical test duration and the test capability value may exist in the form of a relational correspondence table, for example, the average value of the historical test duration is 20 seconds, and the test capability value is 80; the average value of the history test time period was 30 seconds, and the test ability value was 70.
Wherein, the lower the average value of the historical test duration, the higher the test capability value. That is, the shorter the duration of completing the historical testing task, the greater the testing capability.
Further, the total historical testing time length (the sum of the historical testing time lengths of all the historical testing subtasks which are respectively corresponding to the testing mobile terminals and completed by the testing mobile terminals) of all the historical testing subtasks which are respectively corresponding to the testing mobile terminals last time can be calculated, and the testing capability value of each testing mobile terminal is determined according to the total historical testing time length of each testing mobile terminal and the performance parameters of each testing mobile terminal. For example: different weights can be set for different total durations of historical tests and performance parameters, wherein the longer the total duration is, the smaller the corresponding weight value is; the better the performance is, the larger the performance parameter value is, the larger the corresponding weight value is; and then carrying out weighted operation on the total historical test duration and the weight thereof, the performance parameters and the weight thereof corresponding to each test mobile terminal, and taking the value obtained after the operation as the test capability value of each test mobile terminal.
Step S505, distributing the testing subtasks according to the testing capability value, so that the difference value of the total time length of all the testing subtasks distributed by each testing mobile terminal at this time is less than or equal to a preset value;
that is, each time the first module 101 allocates a test subtask, it allocates test subtasks equally to each test mobile terminal as much as possible, allocates more test subtasks to the test mobile terminals with higher test capability values, and allocates less test subtasks to the test mobile terminals with lower test capability values, so that the time for each test mobile terminal to complete all the test subtasks allocated at this time is substantially the same, and it is not necessary to wait for a certain test mobile terminal to complete the test subtask allocated to it, which affects the completion of the entire test.
Step S506, receiving the notification that the test subtasks reported by each test mobile terminal are completed;
after completing the test subtasks, the mobile terminal 200 reports the test subtasks to the server 100, and the server 100 receives a notification that the test subtasks reported by the mobile terminals have been completed. That is, the server 100 may monitor the status of the mobile terminal 200 to perform the test subtask.
Further, the server 100 monitors the test working state of each test mobile terminal through the first module, and if it is detected that the test working state of the test mobile terminal is abnormal, distributes the corresponding test subtask to the mobile terminal in the idle state for testing.
Step S507, test result data of the test subtask corresponding to the notification is obtained through a second module;
after receiving the notification that the test subtask reported by each test mobile terminal is completed, the server 100 obtains, through the second module, test result data of the test subtask corresponding to the notification to the test mobile terminal 200 that completes the test subtask corresponding to the notification. The second module 102 may be a Reduce module based on a Map Reduce framework.
Step S508, when all the testing mobile terminals complete all the testing subtasks, all the testing result data of all the testing mobile terminals are counted and the counting result is output through the second module.
The server 100 counts all the test result data of each test mobile terminal through the second module 102 and outputs the statistical result, which may be specifically output to the display terminal 300 for being displayed to the user for viewing. The statistical result includes the corresponding relation between the test subtask and the test mobile terminal completing the test.
In the embodiment, the server divides the test task into a plurality of test subtasks through the first module and distributes the test subtasks to the plurality of test mobile terminals for parallel testing, so that resources can be utilized to the maximum extent in the shortest time, the test task can be completed to the fastest extent, and the test data processing efficiency is improved. And the second module acquires the test result data, counts the output result, integrates all the test data, and outputs the result, so that the complexity of MapReduce concurrent processing is hidden for a user, and the test data processing efficiency can be further improved.
Third embodiment
Referring to fig. 6, fig. 6 is a testing apparatus based on a mobile terminal according to a third embodiment of the present invention, which can be applied to the server 100 shown in fig. 1 to implement the testing method based on a mobile terminal. As shown in fig. 6, the test apparatus 61 includes:
the distribution unit 61 is used for dividing the received test task into a plurality of test subtasks and distributing the test subtasks to a plurality of test mobile terminals for parallel testing;
a receiving unit 62, configured to receive a notification that the test subtask reported by each test mobile terminal is completed;
an obtaining unit 63, configured to obtain test result data of the test subtask corresponding to the notification;
a statistic unit 64, configured to count all test result data of each test mobile terminal when each test mobile terminal completes all test subtasks;
and an output unit 65 for outputting the statistical result.
In this embodiment, please refer to the description of the embodiment of the mobile terminal-based testing method shown in fig. 4, and details thereof are not repeated herein.
In the embodiment of the invention, the server divides the test task into a plurality of test subtasks and distributes the test subtasks to a plurality of test mobile terminals for parallel test, so that the resource can be utilized to the maximum extent in the shortest time, the test task can be completed at the fastest speed, and the test data processing efficiency is improved. And the test result data are obtained, the output result is counted, and the data processing is dispersed, so that the test data processing efficiency can be further improved.
Fourth embodiment
Referring to fig. 7, fig. 7 is a testing apparatus based on a mobile terminal according to a fourth embodiment of the present invention. The testing device can be applied to the server 100 shown in fig. 1, and realizes the testing method based on the mobile terminal. As shown in fig. 7, the test apparatus 70 includes:
the distribution unit 61 is used for dividing the received test task into a plurality of test subtasks and distributing the test subtasks to a plurality of test mobile terminals for parallel testing;
a receiving unit 62, configured to receive a notification that the test subtask reported by each test mobile terminal is completed;
an obtaining unit 63, configured to obtain test result data of the test subtask corresponding to the notification;
a statistic unit 64, configured to count all test result data of each test mobile terminal when each test mobile terminal completes all test subtasks;
and an output unit 65 for outputting the statistical result.
Preferably, the distributing unit 61 is further configured to divide the received test task into a plurality of test subtasks through the first module, and distribute the test subtasks to the plurality of test mobile terminals respectively for parallel testing;
the obtaining unit 63 is further configured to obtain, through the second module, test result data of the test subtask corresponding to the notification;
the counting unit 64 is further configured to count all test result data of each test mobile terminal through the second module when each test mobile terminal completes all test subtasks.
Preferably, the test device 70 further comprises:
a monitoring unit 76, configured to monitor a test operating state of each test mobile terminal through the first module;
the distributing unit 61 is further configured to, if the monitoring unit 76 detects that the test working state of the test mobile terminal is abnormal, distribute the corresponding test subtask to the test mobile terminal in the idle state for testing.
Preferably, the dispensing unit 61 further comprises:
an obtaining unit 611, configured to obtain a record of a historical test duration for each testing mobile terminal to complete a historical test subtask;
a determining unit 612, configured to determine a testing capability value of each testing mobile terminal according to an average value of the historical testing durations in the record, where the lower the average value of the historical testing durations is, the higher the testing capability value is;
the task allocating unit 613 is further configured to allocate the testing subtasks according to the testing capability value, so that a difference between total durations of all the testing subtasks allocated by each testing mobile terminal this time is less than or equal to a preset value.
Preferably, the test device 70 further comprises:
a generating unit 77, configured to generate an interface of the specified test mobile terminal, so as to provide an interface for a user to specify that a plurality of test subtasks are allocated to the specified test mobile terminal for testing;
a display unit 78 for displaying the interface of the specified test mobile terminal generated by the generation unit 77.
Preferably, the statistical result includes a corresponding relationship between the test subtask and the mobile terminal that has completed the test.
In this embodiment, please refer to the description of the embodiments of the mobile terminal-based testing method shown in fig. 4 and 5, and details thereof are not repeated herein.
In the embodiment of the invention, the server divides the test task into a plurality of test subtasks through the first module and distributes the test subtasks to a plurality of test mobile terminals for parallel test, so that the resource can be utilized to the maximum extent in the shortest time, the test task can be completed at the fastest speed, and the test data processing efficiency is improved. And the second module is used for acquiring the test result data, counting the output result and performing data processing dispersedly, so that the test data processing efficiency can be further improved.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A test method based on a mobile terminal is characterized by comprising the following steps:
dividing the received test task into a plurality of test subtasks through a Map module of a MapReduce framework;
generating and displaying an interface of the appointed testing mobile terminal to provide an interface for a user to appoint a plurality of testing subtasks to be distributed to the appointed testing mobile terminal for testing;
respectively obtaining records of historical test duration of a plurality of test mobile terminals in a test platform for completing a historical test subtask; each testing mobile terminal is distributed with one or more historical testing subtasks, and the record of the historical testing duration is recorded when each testing mobile terminal completes one historical testing subtask;
respectively calculating the total historical test duration of all the distributed historical test subtasks completed by each test mobile terminal according to the records;
respectively determining a weight value corresponding to the total historical test duration of each test mobile terminal, and determining a weight value corresponding to the performance parameter of each test mobile terminal;
respectively performing weighted operation on the total historical test duration and the performance parameters corresponding to the test mobile terminals based on the weight values corresponding to the total historical test duration of the test mobile terminals and the weight values corresponding to the performance parameters of the test mobile terminals, and taking the value of the weighted operation as the test capability value of each test mobile terminal; the longer the total duration of the historical test is, the larger the value of the performance parameter is, and the higher the test capability value is;
according to each testing capability value, the plurality of testing subtasks are respectively distributed to corresponding testing mobile terminals through the interface to carry out simultaneous parallel testing, so that the difference value of the total time length of all the testing subtasks distributed by each testing mobile terminal is smaller than or equal to a preset value;
receiving a notification that the test subtask reported by each test mobile terminal is completed;
obtaining test result data of the test subtask corresponding to the notification through a Reduce module of the MapReduce framework;
and when all the test mobile terminals finish all the test subtasks, counting all the test result data of all the test mobile terminals through the Reduce module and outputting a counting result to a display terminal.
2. The method according to claim 1, wherein after distributing the plurality of test subtasks to the corresponding test mobile terminals respectively for simultaneous parallel testing, the method further comprises:
monitoring the test working state of each test mobile terminal through the Map module;
and if the test mobile terminal is detected to be abnormal in the test working state, distributing the corresponding test subtasks to the test mobile terminal in the idle state for testing.
3. The method according to claim 1, wherein the statistical result includes a corresponding relationship between the test subtask and the mobile terminal that completed the test.
4. A testing device based on a mobile terminal is characterized by comprising:
the distribution unit is used for dividing the received test task into a plurality of test subtasks through a Map module of the MapReduce framework;
generating and displaying an interface of the appointed testing mobile terminal to provide an interface for a user to appoint a plurality of testing subtasks to be distributed to the appointed testing mobile terminal for testing;
respectively obtaining records of historical test duration of a plurality of test mobile terminals in a test platform for completing a historical test subtask; each testing mobile terminal is distributed with one or more historical testing subtasks, and the record of the historical testing duration is recorded when each testing mobile terminal completes one historical testing subtask;
respectively calculating the total historical test duration of all the distributed historical test subtasks completed by each test mobile terminal according to the records;
respectively determining a weight value corresponding to the total historical test duration of each test mobile terminal, and determining a weight value corresponding to the performance parameter of each test mobile terminal;
respectively performing weighted operation on the total historical test duration and the performance parameters corresponding to the test mobile terminals based on the weight values corresponding to the total historical test duration of the test mobile terminals and the weight values corresponding to the performance parameters of the test mobile terminals, and taking the value of the weighted operation as the test capability value of each test mobile terminal; the longer the total duration of the historical test is, the larger the value of the performance parameter is, and the higher the test capability value is;
according to each testing capability value, the plurality of testing subtasks are respectively distributed to corresponding testing mobile terminals through the interface to carry out simultaneous parallel testing, so that the difference value of the total time length of all the testing subtasks distributed by each testing mobile terminal is smaller than or equal to a preset value;
a receiving unit, configured to receive a notification that the test subtask reported by each test mobile terminal is completed;
an obtaining unit, configured to obtain, by a Reduce module of the MapReduce framework, test result data of the test subtask corresponding to the notification;
the statistical unit is used for counting all test result data of each test mobile terminal through the Reduce module when each test mobile terminal completes all test subtasks;
and the output unit is used for outputting the statistical result to the display terminal.
5. The apparatus of claim 4, further comprising:
the monitoring unit is used for monitoring the test working state of each test mobile terminal through the first module;
and the distribution unit is also used for distributing the corresponding test subtasks to the test mobile terminal in the idle state for testing if the monitoring unit detects that the test mobile terminal is abnormal in the test working state.
6. The apparatus according to claim 4, wherein the statistical result comprises a corresponding relationship between the test subtask and the mobile terminal that completes the test.
7. A mobile terminal based test system, comprising:
a server and a test mobile terminal;
the server is used for dividing the received test task into a plurality of test subtasks through a Map module of a MapReduce framework, generating and displaying an interface of a specified test mobile terminal, providing an interface for a user to specify the plurality of test subtasks to be distributed to the specified test mobile terminal for testing, and respectively obtaining records of historical test duration of the plurality of test mobile terminals in the test platform for completing the historical test subtasks; each testing mobile terminal is distributed with one or more historical testing subtasks, and the record of the historical testing duration is recorded when each testing mobile terminal completes one historical testing subtask; respectively calculating the total historical test duration of all the distributed historical test subtasks completed by each test mobile terminal according to the records; respectively determining a weight value corresponding to the total historical test duration of each test mobile terminal, and determining a weight value corresponding to the performance parameter of each test mobile terminal; respectively performing weighted operation on the total historical test duration and the performance parameters corresponding to the test mobile terminals based on the weight values corresponding to the total historical test duration of the test mobile terminals and the weight values corresponding to the performance parameters of the test mobile terminals, and taking the value of the weighted operation as the test capability value of each test mobile terminal; the longer the total duration of the historical test is, the larger the value of the performance parameter is, and the higher the test capability value is; according to each testing capability value, distributing the plurality of testing subtasks to corresponding testing mobile terminals through the interface to perform simultaneous parallel testing, enabling the difference value of the total time length of all testing subtasks distributed this time to be smaller than or equal to a preset value by each testing mobile terminal, receiving a notification that the testing subtasks reported by each testing mobile terminal are completed, acquiring testing result data of the testing subtasks corresponding to the notification through a Reduce module of the MapReduce frame, and when each testing mobile terminal completes all testing subtasks, counting all testing result data of each testing mobile terminal through the Reduce module and outputting a counting result to a display terminal;
and the testing mobile terminal is used for receiving the testing subtask distributed by the server and testing the testing subtask, and reporting that the distributed testing subtask is completed to the server when the distributed testing subtask is completed.
8. A computer-readable storage medium having stored thereon executable instructions for causing a processor to perform the mobile terminal-based testing method of any one of claims 1 to 3 when executed.
CN201410462584.4A 2014-09-11 2014-09-11 Test method, device and system based on mobile terminal Active CN105468513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410462584.4A CN105468513B (en) 2014-09-11 2014-09-11 Test method, device and system based on mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410462584.4A CN105468513B (en) 2014-09-11 2014-09-11 Test method, device and system based on mobile terminal

Publications (2)

Publication Number Publication Date
CN105468513A CN105468513A (en) 2016-04-06
CN105468513B true CN105468513B (en) 2021-03-12

Family

ID=55606244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410462584.4A Active CN105468513B (en) 2014-09-11 2014-09-11 Test method, device and system based on mobile terminal

Country Status (1)

Country Link
CN (1) CN105468513B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055471A (en) * 2016-05-20 2016-10-26 深圳天珑无线科技有限公司 Testing method and terminal
TWI615005B (en) * 2016-06-24 2018-02-11 財團法人電信技術中心 Testing system and testing method for network performance
CN108415820B (en) * 2017-02-09 2021-05-14 腾讯科技(深圳)有限公司 Test method and device of application installation package
CN108415398B (en) * 2017-02-10 2021-07-16 上海辇联网络科技有限公司 Automatic test system and test method for automobile information safety
CN108536578A (en) * 2017-03-06 2018-09-14 阿里巴巴集团控股有限公司 A kind of test method and device
CN109710513B (en) * 2018-12-07 2020-10-13 天津津航计算技术研究所 Engine for automatic test of CBTC (communication based train control) system
CN111338924B (en) * 2020-03-09 2022-06-14 苏州浪潮智能科技有限公司 Server performance test method, system, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159498A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 Method of testing radio frequency hardware module
CN101754246A (en) * 2009-12-11 2010-06-23 中兴通讯股份有限公司 Method and system for testing mobile multimedia broadcasting function of mobile terminal device
CN101917306A (en) * 2010-08-20 2010-12-15 北京星网锐捷网络技术有限公司 Method, system and device for automatic test
CN103546345A (en) * 2013-10-24 2014-01-29 广东欧珀移动通信有限公司 Method and device for testing performance of communication equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080037435A1 (en) * 2006-08-10 2008-02-14 Nethawk Oyj Method and device arrangement for debugging telecommunication network connections

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159498A (en) * 2007-11-07 2008-04-09 中兴通讯股份有限公司 Method of testing radio frequency hardware module
CN101754246A (en) * 2009-12-11 2010-06-23 中兴通讯股份有限公司 Method and system for testing mobile multimedia broadcasting function of mobile terminal device
CN101917306A (en) * 2010-08-20 2010-12-15 北京星网锐捷网络技术有限公司 Method, system and device for automatic test
CN103546345A (en) * 2013-10-24 2014-01-29 广东欧珀移动通信有限公司 Method and device for testing performance of communication equipment

Also Published As

Publication number Publication date
CN105468513A (en) 2016-04-06

Similar Documents

Publication Publication Date Title
CN105468513B (en) Test method, device and system based on mobile terminal
CN108959000B (en) Server pressure testing method, system and terminal
CN108182140B (en) Determining and monitoring performance capabilities of computer resource services
US10956280B2 (en) Data backup method, electronic device, and storage medium
CN108471376B (en) Data processing method, device and system
CN105701122B (en) Log collection method, device and system
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
US20190335032A1 (en) Incoming call management method and apparatus
WO2015085963A1 (en) Distributed system-based monitoring method, device, and system
CN106708240B (en) Power saving method, server and power saving system
US10238333B2 (en) Daily cognitive monitoring of early signs of hearing loss
CN108234659B (en) Data processing method, device and system
CN111224832B (en) Method, control equipment, proxy server and system for capturing network data
US20180069958A1 (en) Systems, non-transitory computer-readable media and methods for voice quality enhancement
WO2019072180A1 (en) Method and apparatus for allocating resources to application
EP4113985A1 (en) Multimedia conference data processing method and apparatus, and electronic device
US8984078B2 (en) Systems and methods for device-to-cloud message delivery
CN106155468B (en) Alarm display method and terminal
US20190196917A1 (en) Data backup method, storage medium, and terminal
US10158896B2 (en) Video channel allocation management method and related device, and communication system
US8417222B1 (en) Systems and methods for delivering messages based on a device radio status
CN106294087B (en) Statistical method and device for operation frequency of business execution operation
CN114327846A (en) Cluster capacity expansion method and device, electronic equipment and computer readable storage medium
CN113271228B (en) Bandwidth resource scheduling method, device, equipment and computer readable storage medium
US10616081B2 (en) Application aware cluster monitoring

Legal Events

Date Code Title Description
C06 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