CN109922484B - Test method and test device - Google Patents

Test method and test device Download PDF

Info

Publication number
CN109922484B
CN109922484B CN201711328291.7A CN201711328291A CN109922484B CN 109922484 B CN109922484 B CN 109922484B CN 201711328291 A CN201711328291 A CN 201711328291A CN 109922484 B CN109922484 B CN 109922484B
Authority
CN
China
Prior art keywords
terminal
test
user
test operation
behavior
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
CN201711328291.7A
Other languages
Chinese (zh)
Other versions
CN109922484A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201711328291.7A priority Critical patent/CN109922484B/en
Publication of CN109922484A publication Critical patent/CN109922484A/en
Application granted granted Critical
Publication of CN109922484B publication Critical patent/CN109922484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a test method and a test device, wherein the method comprises the following steps: acquiring a first behavior parameter generated by a user executing a test operation aiming at the first terminal; sending an operation instruction corresponding to the test operation to at least one second terminal, wherein the operation instruction comprises: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and the test operation is executed according to the second behavior parameter. The embodiment of the invention can improve the accuracy of the base station pressure test result and save the labor cost.

Description

Test method and test device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a test method and a test apparatus.
Background
A base station refers to a radio transceiver station for information transmission with a mobile phone terminal through a mobile communication switching center in a certain radio coverage area.
With the development of mobile communication technology, there is a higher requirement for the carrying capacity of multi-user service data of a base station, and therefore, a pressure test needs to be performed on the base station to test the carrying capacity of multi-user service data of the base station.
At present, in the process of performing a stress test on a base station, a plurality of users are required to be distributed in different places of a cell, each user holds at least one mobile phone, and the plurality of users perform the same operation on the mobile phones at the same time to perform the stress test on the base station. However, the testing method not only requires high labor cost, but also is difficult to ensure the synchronism of the operations executed by a plurality of users for the mobile phone, so that the pressure test is insufficient, and the accuracy of the test result is affected.
Disclosure of Invention
The embodiment of the invention provides a test method and a test device, which aim to solve the problem that the base station pressure test result in the prior art is not accurate enough.
In a first aspect, an embodiment of the present invention provides a testing method, which is applied to a first terminal, and the method includes:
acquiring a first behavior parameter generated by a user executing a test operation aiming at the first terminal;
sending an operation instruction corresponding to the test operation to at least one second terminal, wherein the operation instruction comprises: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and the test operation is executed according to the second behavior parameter.
Optionally, the first behavior parameter includes: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal.
Optionally, the sending, to at least one second terminal, an operation instruction corresponding to the test operation includes:
grouping the at least one second terminal and determining a target group;
and sending an operation instruction corresponding to the test operation to a second terminal in the target grouping.
Optionally, before the sending the operation instruction corresponding to the test operation to the second terminal in the target packet, the method further includes:
and sending the network address of the second terminal in the target group to a server so that the server performs initialization detection on the second terminal in the target group.
Optionally, the method further comprises:
recording test data and/or an operation log of the user generated by the first terminal in the process that the user executes the test operation aiming at the first terminal;
and uploading the test data and/or the operation log of the user to a server.
In a second aspect, an embodiment of the present invention provides a testing method, which is applied to a second terminal, and the method includes:
receiving an operation instruction from a first terminal; the operation instruction comprises the following steps: a first behavior parameter generated by a user executing a test operation aiming at the first terminal and an attribute parameter of the first terminal;
and determining a second behavior parameter of the test operation corresponding to the second terminal according to the first behavior parameter and the attribute parameter of the first terminal, and executing the test operation according to the second behavior parameter.
Optionally, the first behavior parameter includes: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal; the second behavior parameter includes: the clicking and/or moving behavior corresponds to the screen coordinate of the second terminal;
the determining, according to the first behavior parameter and the attribute parameter of the first terminal, a second behavior parameter of the second terminal corresponding to the test operation includes:
and determining the screen coordinate of the second terminal corresponding to the clicking and/or moving behavior generated by the first terminal when the user executes the test operation on the first terminal, wherein the clicking and/or moving behavior corresponds to the screen coordinate of the first terminal, the screen resolution of the first terminal and the screen resolution of the second terminal.
Optionally, the method further comprises:
recording test data and/or an operation log of the user generated by the second terminal in the process of executing the test operation by the second terminal;
and uploading the test data and/or the operation log of the user to a server.
In a third aspect, an embodiment of the present invention provides a testing apparatus, which is applied to a first terminal, and the apparatus includes:
the parameter acquisition module is used for acquiring a first behavior parameter generated by a user aiming at the first terminal to execute a test operation;
an instruction sending module, configured to send an operation instruction corresponding to the test operation to at least one second terminal, where the operation instruction includes: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and the test operation is executed according to the second behavior parameter.
Optionally, the first behavior parameter includes: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal.
Optionally, the instruction sending module includes:
a target determination submodule, configured to group the at least one second terminal and determine a target group;
and the instruction sending submodule is used for sending the operation instruction corresponding to the test operation to the second terminal in the target grouping.
Optionally, the apparatus further comprises:
and the address sending module is used for sending the network address of the second terminal in the target grouping to a server so that the server can carry out initialization detection on the second terminal in the target grouping.
Optionally, the apparatus further comprises:
the first recording module is used for recording test data generated by the first terminal and/or an operation log of the user in the process that the user executes the test operation aiming at the first terminal;
and the first uploading module is used for uploading the test data and/or the operation log of the user to a server.
In a fourth aspect, an embodiment of the present invention provides a testing apparatus, which is applied to a second terminal, and the apparatus includes:
the instruction receiving module is used for receiving an operation instruction from the first terminal; the operation instruction comprises the following steps: a first behavior parameter generated by a user executing a test operation aiming at the first terminal and an attribute parameter of the first terminal;
and the instruction execution module is used for determining a second behavior parameter corresponding to the second terminal in the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and executing the test operation according to the second behavior parameter.
Optionally, the first behavior parameter includes: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal; the second behavior parameter includes: and the clicking and/or moving behavior corresponds to the screen coordinate of the second terminal.
The instruction execution module comprises:
and the coordinate conversion sub-module is used for determining the screen coordinate of the second terminal corresponding to the clicking and/or moving behavior generated by the first terminal when the user executes the test operation on the first terminal, according to the screen coordinate of the first terminal corresponding to the clicking and/or moving behavior, the screen resolution of the first terminal and the screen resolution of the second terminal.
Optionally, the apparatus further comprises:
the second recording module is used for recording test data generated by the second terminal and/or an operation log of the user in the process of executing the test operation by the second terminal;
and the second uploading module is used for uploading the test data and/or the operation log of the user to a server.
The embodiment of the invention has the following advantages:
the embodiment of the invention can acquire a first behavior parameter generated by a user aiming at a first terminal to execute a test operation, and send an operation instruction corresponding to the test operation to at least one second terminal, wherein the operation instruction comprises: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter in the operation instruction and the attribute parameter of the first terminal, and executing the same test operation as that in the first terminal according to the second behavior parameter. In addition, the embodiment of the invention can realize the pressure test of the base station by a plurality of users only by executing the test operation on the first terminal by one user, thereby greatly saving the labor cost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 shows a flow chart of a first embodiment of a test method of the present invention;
FIG. 2 is a flow chart of a second embodiment of a testing method of the present invention;
FIG. 3 is a block diagram of a first embodiment of a testing apparatus according to the present invention;
fig. 4 shows a block diagram of a second embodiment of the testing apparatus according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Method embodiment one
Referring to fig. 1, a flowchart of a first embodiment of a testing method according to the present invention is shown, where the method is applied to a first terminal, and the method specifically may include:
step 101, acquiring a first behavior parameter generated by a user executing a test operation aiming at the first terminal;
step 102, sending an operation instruction corresponding to the test operation to at least one second terminal, wherein the operation instruction comprises: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and the test operation is executed according to the second behavior parameter.
The first terminal and the second terminal may specifically be terminals in various forms, such as a mobile phone, a tablet computer, and a notebook computer, and it can be understood that the specific forms of the first terminal and the second terminal are not limited in the embodiments of the present invention. For convenience of description, in the embodiments of the present invention, the first terminal and the second terminal are taken as mobile phones for illustration, and other application scenarios may be referred to each other.
The first terminal can be used for receiving and executing test operation from a user, and sending an operation instruction corresponding to the test operation to the plurality of second terminals. The second terminal may be configured to receive an operation instruction from the first terminal and perform the same test operation as in the first terminal. In practical applications, the first terminal and the second terminal may be terminals of the same type or terminals of different types.
In order to solve the problems that the labor cost is high and it is difficult to ensure that a plurality of users can synchronously execute operations on mobile phones in the process of the pressure test of the existing base station, the embodiment of the invention can adopt one first terminal and a plurality of second terminals to perform the pressure test on the base station. In the embodiment of the present invention, a user may execute a test operation on a first terminal, and the first terminal sends an operation instruction corresponding to the test operation to a plurality of second terminals, and in practical applications, the first terminal may send the operation instruction to the plurality of second terminals at the same time, where the operation instruction may specifically include: the first behavior parameter, and an attribute parameter of the first terminal. After receiving the operation instruction, the plurality of second terminals may determine, according to the first behavior parameter and the attribute parameter of the first terminal, a second behavior parameter of the second terminal corresponding to the test operation, and execute the test operation according to the second behavior parameter, thereby implementing synchronous execution of the same test operation as that in the first terminal by the plurality of second terminals. It is to be understood that the number of the first terminals may be 1 or more, the number of the second terminals may be 1 or more, and the specific number of the first terminals and the second terminals is not limited in the embodiments of the present invention.
In an application example of the present invention, when a multi-user stress test is performed on a base station, 201 mobile phones may be prepared, 1 of the mobile phones may be selected as a first terminal, and the remaining 200 mobile phones may be selected as second terminals, and each mobile phone may be configured with an IP (Internet Protocol Address) Address through a wireless switch, so that each mobile phone may communicate with another mobile phone through a wireless network.
When a user executes a test operation on a first terminal, the first terminal may send an operation instruction corresponding to the test operation to 200 second terminals, so that the 200 second terminals may execute the test operation synchronously. In the test process, communication data are generated between the first terminal and the base station and between 200 second terminals and the base station, the base station can upload data parameters corresponding to the communication data to an Operation and Maintenance Center (OMC) in real time, and a user can analyze the data parameters to detect the performance of the base station. For example, the data parameters may specifically include: the method comprises the steps of determining the success rate of switching of X2 (interconnection interfaces between e-NodeBs) interfaces between e-NodeBs (Evolved NodeBs, Evolved base stations), the success rate of switching between e-NodeBs, the success rate of switching between LTE (Long Term Evolution), the success rate of executing LTE pilot frequency switching, the success rate of executing LTE co-frequency switching and the like, wherein the data parameters correspond to preset standards, and judging whether the performance of the base station meets the preset requirements or not by comparing the data parameters with the preset standards.
In addition, the first terminal and the second terminal can also record test data generated in the test process, information such as user operation behavior and the like, and upload the information to the server so that the user can analyze the functions or performances of the base station, the first terminal and the second terminal.
In the embodiment of the present invention, the first terminal and the second terminal may communicate with each other through a wireless network, specifically, the first terminal may establish socket connection with the plurality of second terminals, and the first terminal may broadcast the operation instruction to the plurality of second terminals in a broadcast manner. Therefore, the first terminal can simultaneously send the operation instruction to the plurality of second terminals, so that the plurality of second terminals can synchronously execute the test operation corresponding to the operation instruction, further, the base station can be fully tested in pressure, and the accuracy of the pressure test result is improved.
It can be understood that the communication method between the first terminal and the second terminal is not limited in the embodiments of the present invention, for example, the first terminal and the second terminal may communicate through an LTE network in addition to the wireless network communication method.
In an optional embodiment of the present invention, the first behavior parameter may specifically include: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters may specifically include: a screen resolution of the first terminal.
It is understood that the click behavior may be a single click behavior or a double click behavior. The specific content of the first behavior parameter is not limited in the embodiment of the present invention, for example, the first behavior parameter may also be an input content generated by an input behavior of a user in the first terminal, and the like. In addition, the embodiment of the present invention does not limit the specific content of the attribute parameter, for example, the attribute parameter may also be a screen size, an operating system, and the like of the first terminal.
In an embodiment of the present invention, the test operation may include at least any one of the following: the user calls the mobile phone, plays video on line through the mobile phone, uploads or downloads data through the mobile phone, and accesses a webpage through a browser in the mobile phone, and the like, and the connection test, throughput test and the like can be performed on the base station through the test operation. It is understood that the specific content of the test operation is not limited by the embodiments of the present invention.
In practical application, when a user executes a test operation on a first terminal, the first terminal may record screen coordinates corresponding to a click and/or movement behavior generated by the user on the first terminal, and send an operation instruction corresponding to the test operation to a plurality of second terminals, where the operation instruction carries the screen coordinates of the first terminal corresponding to the click and/or movement behavior and a current screen resolution of the first terminal. After the second terminal receives the operation instruction, the screen coordinate of the first terminal corresponding to the clicking and/or moving behavior can be converted into the screen coordinate of the second terminal corresponding to the clicking and/or moving behavior by combining the current screen resolution of the second terminal according to the screen coordinate of the first terminal corresponding to the clicking and/or moving behavior and the current screen resolution of the first terminal, and then the test operation corresponding to the clicking and/or moving behavior can be executed, so that the second terminal can execute the same test operation as that in the first terminal.
In the embodiment of the present invention, assuming that the screen coordinates of the first terminal corresponding to the click and/or movement behavior generated by the user on the first terminal are (x1, y1), the current screen resolution of the first terminal is (h1, v1), and the current screen resolution of the second terminal is (h2, v2), the click and/or movement behavior generated by the user on the first terminal corresponding to the screen coordinates of the first terminal (x1, y1) may be converted into the screen coordinates of the second terminal corresponding to the click and/or movement behavior (x2, y2) by the following formula:
x2=(x1×h1)/h2
y2=(y1×v1)/v2(1)
in practical applications, the plurality of second terminals may have different operating systems, such as a Linux operating system, an Android operating system, an IOS (apple mobile operating system), a Windows (microsoft operating system), and the like, and in order that the second terminals with different operating systems can all perform the same test operation as that in the first terminal, the embodiment of the present invention encapsulates the event corresponding to the click and/or the mobile behavior. Specifically, when a finger of a user clicks or moves on a screen of the first terminal, a touch event is triggered, and a complete touch event consists of a Down event, an Up event and a plurality of Move events. It is understood that the embodiment of the present invention does not limit the specific packaging manner.
Therefore, the embodiment of the present invention can perform the same test operation as that in the first terminal by the plurality of second terminals synchronously, and perform a multi-user stress test on the base station, and the embodiment of the present invention does not limit specific attributes such as models, operating systems, resolutions, and the like of the first terminal and the second terminals.
In an optional embodiment of the present invention, the sending, to the at least one second terminal, the operation instruction corresponding to the test operation may specifically include:
grouping the at least one second terminal and determining a target group;
and sending an operation instruction corresponding to the test operation to a second terminal in the target grouping.
Optionally, the embodiment of the present invention may further group the at least one second terminal, and send an operation instruction corresponding to different test operations to the differently grouped second terminals, so as to perform a pressure test on the base station in batch, thereby improving the test efficiency.
In an application example of the present invention, it is assumed that the number of the second terminals is 600, and the grouping may be performed according to the network address, such as the IP address, of the second terminals, and it is assumed that the 600 second terminals are divided into three groups, and there are 200 second terminals in each group. The IP addresses of 200 second terminals in packet 1 are IP1-IP200, the IP addresses of 200 second terminals in packet 2 are IP201-IP400, and the IP addresses of 200 second terminals in packet 3 are IP401-IP 600.
When the base station is subjected to the pressure test, the second terminals in the 3 groups can be utilized to respectively execute different test operations, so that the efficiency of the pressure test is improved, and the pressure test is more sufficient. For example, a test operation of a telephone call is performed using packet 1, a test operation of data download is performed using packet 2, and a test operation of playing a video online is performed using packet 3. Specifically, when performing a test operation of a telephone call, the first terminal may determine that packet 1 is a target packet from the above-mentioned 3 packets, and send an operation instruction corresponding to the test operation of the telephone call to the second terminal in packet 1, for example, the operation instruction may be broadcast to IP address IP1-IP200 so that the second terminal in packet 1 may receive the operation instruction and execute the operation instruction synchronously. Similarly, the first terminal may broadcast an operation instruction corresponding to the test operation of data download to the IP addresses IP201-IP400, so that the second terminal in the packet 2 may execute the operation instruction synchronously. And the first terminal can broadcast an operation instruction corresponding to the video test operation to the IP addresses IP401-IP600 broadcast line, so that the second terminal in the group 3 can synchronously execute the operation instruction.
It can be understood that the manner of grouping the plurality of second terminals according to the IP addresses and performing the grouping test on the base station is only one application example of the present invention, and the specific grouping manner is not limited in the embodiment of the present invention. In addition, the embodiment of the present invention does not limit the number of packets and the number of second terminals in each packet.
In an optional embodiment of the present invention, before sending the operation instruction corresponding to the test operation to the second terminal in the target packet, the method may further include:
and sending the network address of the second terminal in the target group to a server so that the server performs initialization detection on the second terminal in the target group.
The embodiment of the invention can carry out initialization detection on the second terminal participating in the pressure test before the second terminal is used for carrying out the pressure test on the base station, so that the test result is more accurate.
Specifically, the first terminal may first determine a target packet that needs to perform a test operation, and send a network address of the second terminal in the target packet to the server, so that the server performs initialization detection on the second terminal in the target packet according to the network address. The initialization detection specifically may include: whether a socket port of the second terminal is occupied, whether a Central Processing Unit (CPU) and a residual memory meet a test requirement, whether network connection is smooth and the like are detected. If the initialization detection is not passed, the user can be informed to configure the second terminal, after the initialization detection is passed, the base station can be subjected to pressure test, and the user only needs to execute the test operation on the first terminal, and the corresponding test operation can be synchronously executed by the second terminals which are correspondingly grouped, so that the pressure test can be executed in batches, and the efficiency of the pressure test is improved.
In an optional embodiment of the invention, the method may further comprise:
recording test data and/or an operation log of the user generated by the first terminal in the process that the user executes the test operation aiming at the first terminal;
and uploading the test data and/or the operation log of the user to a server.
In the pressure test process of the base station, the first terminal can record the test data generated by the first terminal and upload the test data to the server so as to be used by a tester for data analysis. The test data may specifically include various index values of the first terminal, such as specific values of a CPU, a GPU (Graphics Processing Unit), a memory, a frame number, an electric quantity, a flow rate, and the like, and by analyzing the data, the function and performance of the first terminal may be detected. Optionally, the first terminal may further generate a performance report by analyzing the recorded test data, and upload the performance report to the server.
In the process of recording the test data, the first terminal can also record an operation log of the user so as to record the current operation behavior of the user in real time. In an application example of the present invention, a base station is subjected to a throughput pressure test by using one first terminal and 200 second terminals, in order to detect whether the throughput of the base station meets a preset standard, a peak value uploaded/downloaded by a user needs to be measured, assuming that a measurement period is 2 hours, it can be known from recorded test data that the throughput of most of time meets the preset standard, and only if the throughput of 10 seconds in 40 minutes fluctuates greatly and does not meet the preset standard, an operation log of the user recorded by the first terminal can be checked to obtain a specific operation behavior corresponding to the user in 10 seconds in 40 minutes, so that analysis of problem data can be accelerated according to the operation behavior of the user.
In another application example of the present invention, one first terminal and 200 second terminals are used to perform a CS (Circuit Switching) connection test on a base station, a test operation of repeatedly dialing/hanging up a mobile phone needs to be performed, after a call is made, an automatic reconnection situation occurs at a certain time, and at this time, an operation log of a user recorded by the first terminal may be checked to obtain an operation behavior of the user at the certain time, so as to analyze an abnormal situation of the automatic reconnection.
To sum up, in the embodiment of the present invention, a first behavior parameter generated by a user executing a test operation for a first terminal may be acquired by the first terminal, and an operation instruction corresponding to the test operation is sent to at least one second terminal, where the operation instruction includes: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter in the operation instruction and the attribute parameter of the first terminal, and executing the same test operation as that in the first terminal according to the second behavior parameter. In addition, the embodiment of the invention can realize the pressure test of the base station by a plurality of users only by executing the test operation on the first terminal by one user, thereby greatly saving the labor cost.
Method embodiment two
Referring to fig. 2, a flowchart of a second embodiment of a testing method according to the present invention is shown, where the method is applied to a second terminal, and the method specifically includes:
step 201, receiving an operation instruction from a first terminal; the operation instruction comprises the following steps: a first behavior parameter generated by a user executing a test operation aiming at the first terminal and an attribute parameter of the first terminal;
step 202, determining a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and executing the test operation according to the second behavior parameter.
In the embodiment of the present invention, the second terminal may be configured to receive the operation instruction from the first terminal, and may further perform the same test operation as that in the first terminal, where the number of the second terminals may be multiple. Specifically, the plurality of second terminals may receive an operation instruction broadcasted by the first terminal through respective socket ports, and convert, according to a first behavior parameter generated by a user in the operation instruction aiming at the first terminal to perform a test operation, an attribute parameter of the first terminal, and an attribute parameter of the second terminal itself, a behavior parameter generated by the user aiming at the first terminal to perform the test operation into a behavior parameter suitable for the second terminal, so that a test operation identical to that of the first terminal may be performed, so as to perform a multi-user pressure test on the base station.
In an optional embodiment of the present invention, the first behavior parameter may specifically include: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters may specifically include: a screen resolution of the first terminal; the second behavior parameter may specifically include: the clicking and/or moving behavior corresponds to the screen coordinate of the second terminal;
the determining, according to the first behavior parameter and the attribute parameter of the first terminal, a second behavior parameter of the second terminal corresponding to the test operation may specifically include:
and determining the screen coordinate of the second terminal corresponding to the clicking and/or moving behavior generated by the first terminal when the user executes the test operation on the first terminal, wherein the clicking and/or moving behavior corresponds to the screen coordinate of the first terminal, the screen resolution of the first terminal and the screen resolution of the second terminal.
Specifically, after the second terminal obtains the screen coordinate of the first terminal corresponding to the click and/or movement behavior generated by the user on the first terminal, the current screen resolution of the first terminal, and the current screen resolution of the second terminal, the screen coordinate of the second terminal corresponding to the click and/or movement behavior may be obtained through calculation according to the above formula (1), and then the same test operation as that in the first terminal may be performed according to the screen coordinate of the second terminal corresponding to the click and/or movement behavior.
In an optional embodiment of the invention, the method may further comprise:
recording test data and/or an operation log of the user generated by the second terminal in the process of executing the test operation by the second terminal;
and uploading the test data and/or the operation log of the user to a server.
In the pressure test process of the base station, the second terminal can record the test data generated by the second terminal and upload the test data to the server so as to be used by a tester for data analysis. The test data may specifically include various index values of the second terminal, such as specific values of a CPU, a GPU, a memory, a frame number, an electric quantity, a flow rate, and the like, and by analyzing these data, a function test and a performance test of the second terminal may also be implemented. Optionally, the second terminal may further obtain a performance report by analyzing the recorded test data, and upload the performance report to the server.
The second terminal can also record the operation log of the user in the process of recording the test data so as to record the current operation behavior of the user in real time. When abnormal data occurs in the test data, the operation log of the user can be inquired to obtain the operation behavior of the user recorded at the moment when the abnormal data occurs, and then the abnormal data can be analyzed.
To sum up, the embodiment of the present invention may receive an operation instruction from the first terminal through the plurality of second terminals; the operation instruction comprises the following steps: a first behavior parameter generated by a user executing a test operation aiming at the first terminal and an attribute parameter of the first terminal; the second terminal may determine, according to the first behavior parameter in the operation instruction and the attribute parameter of the first terminal, a second behavior parameter of the second terminal corresponding to the test operation, and execute the same test operation as that in the first terminal according to the second behavior parameter. In addition, the embodiment of the invention can realize the pressure test of multiple users on the base station only by executing the test operation on the first terminal by one user without executing the test operation on the second terminal by the user, thereby greatly saving the labor cost.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Apparatus embodiment one
Referring to fig. 3, a block diagram of a first embodiment of a testing apparatus according to the present invention is shown, where the testing apparatus is applied to a first terminal, and the apparatus may specifically include:
a parameter obtaining module 301, configured to obtain a first behavior parameter generated by a user performing a test operation on the first terminal;
an instruction sending module 302, configured to send an operation instruction corresponding to the test operation to at least one second terminal, where the operation instruction includes: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and the test operation is executed according to the second behavior parameter.
Optionally, the first behavior parameter may specifically include: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters may specifically include: a screen resolution of the first terminal.
Optionally, the instruction sending module 302 may specifically include:
a target determination submodule, configured to group the at least one second terminal and determine a target group;
and the instruction sending submodule is used for sending the operation instruction corresponding to the test operation to the second terminal in the target grouping.
Optionally, the apparatus may further include:
and the address sending module is used for sending the network address of the second terminal in the target grouping to a server so that the server can carry out initialization detection on the second terminal in the target grouping.
Optionally, the apparatus may further include:
the first recording module is used for recording test data generated by the first terminal and/or an operation log of the user in the process that the user executes the test operation aiming at the first terminal;
and the first uploading module is used for uploading the test data and/or the operation log of the user to a server.
Device embodiment II
Referring to fig. 4, a block diagram of a second embodiment of a testing apparatus according to the present invention is shown, where the testing apparatus is applied to a second terminal, and the apparatus may specifically include:
an instruction receiving module 401, configured to receive an operation instruction from a first terminal; the operation instruction comprises the following steps: a first behavior parameter generated by a user executing a test operation aiming at the first terminal and an attribute parameter of the first terminal;
an instruction executing module 402, configured to determine, according to the first behavior parameter and the attribute parameter of the first terminal, a second behavior parameter of the second terminal corresponding to the test operation, and execute the test operation according to the second behavior parameter.
Optionally, the first behavior parameter may specifically include: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters may specifically include: a screen resolution of the first terminal; the second behavior parameter includes: and the clicking and/or moving behavior corresponds to the screen coordinate of the second terminal.
The instruction execution module 402 may specifically include:
and the coordinate conversion sub-module is used for determining the screen coordinate of the second terminal corresponding to the clicking and/or moving behavior generated by the first terminal when the user executes the test operation on the first terminal, according to the screen coordinate of the first terminal corresponding to the clicking and/or moving behavior, the screen resolution of the first terminal and the screen resolution of the second terminal.
Optionally, the apparatus may further include:
the second recording module is used for recording test data generated by the second terminal and/or an operation log of the user in the process of executing the test operation by the second terminal;
and the second uploading module is used for uploading the test data and/or the operation log of the user to a server.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be 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 terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is provided for the testing method and the testing apparatus provided by the present invention, and the principle and the implementation of the present invention are explained by applying specific examples, and the description of the above examples is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (16)

1. A testing method is applied to a first terminal, and is characterized by comprising the following steps:
acquiring a first behavior parameter generated by a user executing a test operation aiming at the first terminal;
sending an operation instruction corresponding to the test operation to at least one second terminal, wherein the operation instruction comprises: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and executing the test operation according to the second behavior parameter;
sending test data and the test operation generated in the test process to a server so that the server can analyze the performance of the first terminal;
the test operation comprises any one of telephone calling of a user aiming at the first terminal or the second terminal, online video playing of the user through the first terminal or the second terminal, data uploading or downloading of the user through the first terminal or the second terminal, and webpage access of the user through a browser in the first terminal or the second terminal.
2. The method of claim 1, wherein the first behavior parameter comprises: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal.
3. The method according to claim 1, wherein the sending the operation instruction corresponding to the test operation to the at least one second terminal includes:
grouping the at least one second terminal and determining a target group;
and sending an operation instruction corresponding to the test operation to a second terminal in the target grouping.
4. The method according to claim 3, wherein before the sending of the operation instruction corresponding to the test operation to the second terminal in the target packet, the method further comprises:
and sending the network address of the second terminal in the target group to a server so that the server performs initialization detection on the second terminal in the target group.
5. The method of claim 1, further comprising:
recording test data and/or an operation log of the user generated by the first terminal in the process that the user executes the test operation aiming at the first terminal;
and uploading the test data and/or the operation log of the user to a server.
6. A testing method is applied to a second terminal, and is characterized in that the method comprises the following steps:
receiving an operation instruction from a first terminal; the operation instruction comprises the following steps: a first behavior parameter generated by a user executing a test operation aiming at the first terminal and an attribute parameter of the first terminal;
determining a second behavior parameter of the test operation corresponding to the second terminal according to the first behavior parameter and the attribute parameter of the first terminal, and executing the test operation according to the second behavior parameter;
sending test data and the test operation generated in the test process to a server so that the server can analyze the performance of the second terminal;
the test operation comprises any one of telephone calling of a user aiming at the first terminal and the second terminal, online video playing of the user through the first terminal and the second terminal, data uploading or downloading of the user through the first terminal and the second terminal, and webpage access of the user through browsers in the first terminal and the second terminal.
7. The method of claim 6, wherein the first behavior parameter comprises: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal; the second behavior parameter includes: the clicking and/or moving behavior corresponds to the screen coordinate of the second terminal;
the determining, according to the first behavior parameter and the attribute parameter of the first terminal, a second behavior parameter of the second terminal corresponding to the test operation includes:
and determining the screen coordinate of the second terminal corresponding to the clicking and/or moving behavior generated by the first terminal when the user executes the test operation on the first terminal, wherein the clicking and/or moving behavior corresponds to the screen coordinate of the first terminal, the screen resolution of the first terminal and the screen resolution of the second terminal.
8. The method of claim 6, further comprising:
recording test data and/or an operation log of the user generated by the second terminal in the process of executing the test operation by the second terminal;
and uploading the test data and/or the operation log of the user to a server.
9. A testing apparatus applied to a first terminal, the apparatus comprising:
the parameter acquisition module is used for acquiring a first behavior parameter generated by a user aiming at the first terminal to execute a test operation;
an instruction sending module, configured to send an operation instruction corresponding to the test operation to at least one second terminal, where the operation instruction includes: the first behavior parameter and the attribute parameter of the first terminal are used for enabling the at least one second terminal to determine a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and executing the test operation according to the second behavior parameter;
the apparatus is further configured to:
sending test data and the test operation generated in the test process to a server so that the server can analyze the performance of the first terminal;
the test operation comprises any one of telephone calling of a user aiming at the first terminal or the second terminal, online video playing of the user through the first terminal or the second terminal, data uploading or downloading of the user through the first terminal or the second terminal, and webpage access of the user through a browser in the first terminal or the second terminal.
10. The apparatus of claim 9, wherein the first behavior parameter comprises: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal.
11. The apparatus of claim 9, wherein the instruction sending module comprises:
a target determination submodule, configured to group the at least one second terminal and determine a target group;
and the instruction sending submodule is used for sending the operation instruction corresponding to the test operation to the second terminal in the target grouping.
12. The apparatus of claim 11, further comprising:
and the address sending module is used for sending the network address of the second terminal in the target grouping to a server so that the server can carry out initialization detection on the second terminal in the target grouping.
13. The apparatus of claim 9, further comprising:
the first recording module is used for recording test data generated by the first terminal and/or an operation log of the user in the process that the user executes the test operation aiming at the first terminal;
and the first uploading module is used for uploading the test data and/or the operation log of the user to a server.
14. A testing apparatus applied to a second terminal, the apparatus comprising:
the instruction receiving module is used for receiving an operation instruction from the first terminal; the operation instruction comprises the following steps: a first behavior parameter generated by a user executing a test operation aiming at the first terminal and an attribute parameter of the first terminal;
the instruction execution module is used for determining a second behavior parameter of the second terminal corresponding to the test operation according to the first behavior parameter and the attribute parameter of the first terminal, and executing the test operation according to the second behavior parameter;
the apparatus is further configured to:
sending test data and the test operation generated in the test process to a server so that the server can analyze the performance of the second terminal;
the test operation comprises any one of telephone calling of a user aiming at the first terminal and the second terminal, online video playing of the user through the first terminal and the second terminal, data uploading or downloading of the user through the first terminal and the second terminal, and webpage access of the user through browsers in the first terminal and the second terminal.
15. The apparatus of claim 14, wherein the first behavior parameter comprises: when the user executes a test operation on the first terminal, the click and/or movement behavior generated on the first terminal corresponds to the screen coordinate of the first terminal; the attribute parameters include: a screen resolution of the first terminal; the second behavior parameter includes: the clicking and/or moving behavior corresponds to the screen coordinate of the second terminal;
the instruction execution module comprises:
and the coordinate conversion sub-module is used for determining the screen coordinate of the second terminal corresponding to the clicking and/or moving behavior generated by the first terminal when the user executes the test operation on the first terminal, according to the screen coordinate of the first terminal corresponding to the clicking and/or moving behavior, the screen resolution of the first terminal and the screen resolution of the second terminal.
16. The apparatus of claim 14, further comprising:
the second recording module is used for recording test data generated by the second terminal and/or an operation log of the user in the process of executing the test operation by the second terminal;
and the second uploading module is used for uploading the test data and/or the operation log of the user to a server.
CN201711328291.7A 2017-12-13 2017-12-13 Test method and test device Active CN109922484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711328291.7A CN109922484B (en) 2017-12-13 2017-12-13 Test method and test device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711328291.7A CN109922484B (en) 2017-12-13 2017-12-13 Test method and test device

Publications (2)

Publication Number Publication Date
CN109922484A CN109922484A (en) 2019-06-21
CN109922484B true CN109922484B (en) 2021-01-22

Family

ID=66958754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711328291.7A Active CN109922484B (en) 2017-12-13 2017-12-13 Test method and test device

Country Status (1)

Country Link
CN (1) CN109922484B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445662B (en) * 2019-08-30 2022-12-02 上海哔哩哔哩科技有限公司 Internet data broadcast socket testing method, server and storage medium
CN111026651B (en) * 2019-11-25 2024-01-16 东软集团股份有限公司 Test method, device, storage medium and electronic equipment
CN113204492A (en) * 2021-05-28 2021-08-03 中国工商银行股份有限公司 Android application testing method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101959305A (en) * 2009-07-17 2011-01-26 北京三星通信技术研究有限公司 Method for trying to pair users
CN102355688A (en) * 2011-09-05 2012-02-15 大唐移动通信设备有限公司 Equipment testing system and method
CN105204986A (en) * 2014-06-24 2015-12-30 广州市动景计算机科技有限公司 Automated product testing method, server and mobile equipment
CN105808419B (en) * 2014-12-30 2018-08-10 平安科技(深圳)有限公司 Application testing method and terminal
CN107404730A (en) * 2016-05-19 2017-11-28 中兴通讯股份有限公司 Traffic method for testing pressure and device

Also Published As

Publication number Publication date
CN109922484A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
KR100948217B1 (en) Apparatus and methods for product acceptance testing on a wireless device
US9538404B2 (en) Apparatus and methods for product acceptance testing on a wireless device
CN109922484B (en) Test method and test device
US8320904B1 (en) Method and system for remotely accessing and troubleshooting cellular wireless communication devices
CN108132850B (en) Code positioning method and device and electronic equipment
CN107770786B (en) Method, equipment and system for testing network performance
CN105487966A (en) Program testing method, device and system
US10320650B2 (en) Testing a network using a communication device
CN110798380A (en) Data acquisition method, system, device, test equipment and test server
CN109041267B (en) Network connection fault processing method and device and electronic equipment
CN113434101A (en) Device control method, device, storage medium, and electronic apparatus
CN107769986B (en) Network performance test system, extension system and test method
CN105515887A (en) Application test method, server and system
CN105988925A (en) Method, device and system for testing start-up time of application program
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN108512682B (en) Method and device for determining false terminal identification
CN102802172B (en) Wireless communication quality testing method and device based on intelligent terminal
CN104182331A (en) Browser performance test method, browser performance test system and terminal
CN110505352B (en) Call quality testing method, system, computer device and computer storage medium
CN107493587B (en) Media gateway testing method, device and system
CN115190057A (en) Automatic testing method and device and electronic equipment
US20180063251A1 (en) System and method for remotely accessing a computing device
CN114466395A (en) Method and device for testing performance of base station, storage medium and electronic device
CN114390574A (en) Wireless network throughput testing method, device and computer readable storage medium
CN112929914A (en) System and method for network link simulation auxiliary test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant