CN109922484A - A kind of test method and test device - Google Patents

A kind of test method and test device Download PDF

Info

Publication number
CN109922484A
CN109922484A CN201711328291.7A CN201711328291A CN109922484A CN 109922484 A CN109922484 A CN 109922484A CN 201711328291 A CN201711328291 A CN 201711328291A CN 109922484 A CN109922484 A CN 109922484A
Authority
CN
China
Prior art keywords
terminal
test
user
behavioral parameters
test operation
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.)
Granted
Application number
CN201711328291.7A
Other languages
Chinese (zh)
Other versions
CN109922484B (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

Landscapes

  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a kind of test method and test device, method therein includes: to obtain user to execute the first behavioral parameters that test operation generates for the first terminal;The corresponding operational order of the test operation is sent at least one second terminal, it include: the property parameters of first behavioral parameters and the first terminal in the operational order, so that at least one described second terminal is according to first behavioral parameters and the property parameters of the first terminal, it determines that the test operation corresponds to the second behavioral parameters of the second terminal, and executes the test operation according to second behavioral parameters.The embodiment of the present invention can be improved the accuracy of base station pressure testing results and save human cost.

Description

A kind of test method and test device
Technical field
The present invention relates to field of communication technology more particularly to a kind of test methods and test device.
Background technique
Base station refers in certain area of radio coverage, by mobile switching center, with mobile telephone terminal it Between carry out information transmitting transceiving believe radio station.
With the development of mobile communication technology, also there is higher want to the bearing capacity of the multi-user service data of base station It asks, therefore, it is necessary to carry out pressure test to base station, with the bearing capacity of the multi-user service data of testing base station.
Currently, need multiple user distributions in the different location of cell during carrying out pressure test to base station, and Each user holds an at least mobile phone, and multiple users are directed to mobile phone simultaneously and execute identical operation, to carry out pressure to base station Test.However, the test method not only needs higher human cost, but also it is difficult to ensure what multiple users executed for mobile phone The synchronism of operation, causes pressure test to be not enough, and then influences the accuracy of test result.
Summary of the invention
The embodiment of the present invention provides a kind of test method and test device, to solve base station pressure test in the prior art As a result not accurate enough problem.
In a first aspect, being applied to first terminal the embodiment of the invention provides a kind of test method, which comprises
It obtains user and executes the first behavioral parameters that test operation generates for the first terminal;
The corresponding operational order of the test operation is sent at least one second terminal, includes: in the operational order The property parameters of first behavioral parameters and the first terminal, so that at least one described second terminal is according to The property parameters of first behavioral parameters and the first terminal determine that the test operation corresponds to the second of the second terminal Behavioral parameters, and the test operation is executed according to second behavioral parameters.
Optionally, it is right when first behavioral parameters include: that the user executes test operation for the first terminal Click and/or mobile behavior that the first terminal generates correspond to the screen coordinate of the first terminal;The property parameters packet It includes: the screen resolution of the first terminal.
It is optionally, described to send the corresponding operational order of the test operation at least one second terminal, comprising:
At least one described second terminal is grouped, and determines targeted packets;
Second terminal into the targeted packets sends the corresponding operational order of the test operation.
Optionally, the second terminal described into the targeted packets sends the corresponding operational order of the test operation Before, the method also includes:
The network address of second terminal in the targeted packets is sent to server, so that server is to the target Second terminal in grouping carries out initialization detection.
Optionally, the method also includes:
It records the user to execute in test operating procedure for the first terminal, the test that the first terminal generates The operation log of data and/or the user;
The operation log of the test data and/or the user is uploaded to server.
Second aspect, the embodiment of the invention provides a kind of test methods, are applied to second terminal, which comprises
Receive the operational order from first terminal;It include: that user holds for the first terminal in the operational order The property parameters of the first behavioral parameters and the first terminal that row test operation generates;
According to first behavioral parameters and the property parameters of the first terminal, determine that the test operation corresponds to institute The second behavioral parameters of second terminal are stated, and execute the test operation according to second behavioral parameters.
Optionally, it is right when first behavioral parameters include: that the user executes test operation for the first terminal Click and/or mobile behavior that the first terminal generates correspond to the screen coordinate of the first terminal;The property parameters packet It includes: the screen resolution of the first terminal;Second behavioral parameters include: that the click and/or mobile behavior correspond to institute State the screen coordinate of second terminal;
It is described according to first behavioral parameters and the property parameters of the first terminal, determine the test operation pair Answer the second behavioral parameters of the second terminal, comprising:
Click when executing test operation for the first terminal according to the user, to first terminal generation And/or mobile behavior corresponds to the screen coordinate of the first terminal, the screen resolution of the first terminal and described second The screen resolution of terminal determines that the click and/or mobile behavior correspond to the screen coordinate of the second terminal.
Optionally, the method also includes:
The second terminal is recorded to execute in the test operating procedure, test data that the second terminal generates and/ Or the operation log of the user;
The operation log of the test data and/or the user is uploaded to server.
The third aspect, the embodiment of the invention provides a kind of test devices, are applied to first terminal, and described device includes:
Parameter acquisition module executes the first behavior ginseng that test operation generates for the first terminal for obtaining user Number;
Instruction sending module, for sending the corresponding operational order of the test operation, institute at least one second terminal State include: in operational order first behavioral parameters and the first terminal property parameters so that it is described at least one Second terminal determines that the test operation corresponds to institute according to first behavioral parameters and the property parameters of the first terminal The second behavioral parameters of second terminal are stated, and execute the test operation according to second behavioral parameters.
Optionally, it is right when first behavioral parameters include: that the user executes test operation for the first terminal Click and/or mobile behavior that the first terminal generates correspond to the screen coordinate of the first terminal;The property parameters packet It includes: the screen resolution of the first terminal.
Optionally, described instruction sending module, comprising:
Target determines submodule, for being grouped at least one described second terminal, and determines targeted packets;
Sending submodule is instructed, sends the corresponding behaviour of the test operation for the second terminal into the targeted packets It instructs.
Optionally, described device further include:
Address sending module, for the network address of the second terminal in the targeted packets to be sent to server, with Server is set to carry out initialization detection to the second terminal in the targeted packets.
Optionally, described device further include:
First logging modle executes in test operating procedure for recording the user for the first terminal, described The operation log of test data and/or the user that first terminal generates;
First uploading module, for the operation log of the test data and/or the user to be uploaded to server.
Fourth aspect, the embodiment of the invention provides a kind of test devices, are applied to second terminal, and described device includes:
Command reception module, for receiving the operational order from first terminal;It include: user's needle in the operational order The property parameters of the first behavioral parameters and the first terminal that test operation generates are executed to the first terminal;
Instruction execution module is determined for the property parameters according to first behavioral parameters and the first terminal The test operation corresponds to the second behavioral parameters of the second terminal, and executes the test according to second behavioral parameters Operation.
Optionally, it is right when first behavioral parameters include: that the user executes test operation for the first terminal Click and/or mobile behavior that the first terminal generates correspond to the screen coordinate of the first terminal;The property parameters packet It includes: the screen resolution of the first terminal;Second behavioral parameters include: that the click and/or mobile behavior correspond to institute State the screen coordinate of second terminal.
Described instruction execution module, comprising:
Coordinate transform subblock, when for executing test operation for the first terminal according to the user, to described Click and/or mobile behavior that first terminal generates correspond to the screen of the screen coordinate of the first terminal, the first terminal The screen resolution of resolution ratio and the second terminal determines that the click and/or mobile behavior correspond to the second terminal Screen coordinate.
Optionally, described device further include:
Second logging modle executes in the test operating procedure, the second terminal for recording the second terminal The operation log of the test data of generation and/or the user;
Second uploading module, for the operation log of the test data and/or the user to be uploaded to server.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention can obtain user by first terminal and execute test operation generation for the first terminal The first behavioral parameters, and send the corresponding operational order of the test operation, the operation at least one second terminal It include: the property parameters of first behavioral parameters and the first terminal in instruction, so that at least one described second end End can determine that the test operation is corresponding according to the property parameters of the first behavioral parameters and first terminal in operational order Second behavioral parameters of the second terminal, and executed according to second behavioral parameters and grasped with test identical in first terminal Make.Since first terminal can send the corresponding operational order of the test operation to multiple second terminals simultaneously, so that multiple Second terminal, which can synchronize, executes the test operation, and then can sufficiently realize the pressure test to base station, improves pressure and surveys The accuracy of test result can be realized in addition, the embodiment of the present invention only needs a user to execute test operation to first terminal The pressure test that multiple users carry out base station, can greatly save human cost.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 shows a kind of flow chart of test method embodiment one of the invention;
Fig. 2 shows a kind of flow charts of test method embodiment two of the invention;
Fig. 3 shows a kind of structural block diagram of test device embodiment one of the invention;
Fig. 4 shows a kind of structural block diagram of test device embodiment two of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Embodiment of the method one
Referring to Fig.1, a kind of flow chart of test method embodiment one of the invention is shown, the method is applied to first Terminal, the method can specifically include:
Step 101 obtains the first behavioral parameters that user executes test operation generation for the first terminal;
Step 102 sends the corresponding operational order of the test operation, the operational order at least one second terminal In include: first behavioral parameters and the first terminal property parameters so that at least one described second terminal root According to first behavioral parameters and the property parameters of the first terminal, determine that the test operation corresponds to the second terminal The second behavioral parameters, and execute the test operation according to second behavioral parameters.
It is various forms of that the first terminal and second terminal are specifically as follows mobile phone, tablet computer, laptop etc. Terminal, it will be understood that the embodiment of the present invention is without restriction for the concrete form of first terminal and second terminal.For convenient for retouching It states, is illustrated so that first terminal and second terminal are mobile phone as an example in the embodiment of the present invention, other application scene is mutually joined According to.
The first terminal can be used for receiving and executing test operation from the user, and the test operation is corresponding Operational order is sent to multiple second terminals.The second terminal can be used for receiving the operational order from first terminal, and It executes and identical test operation in first terminal.In practical applications, the first terminal and second terminal can be identical The terminal of type, or different types of terminal.
During solving existing base station pressure test, human cost is higher, and is difficult to ensure that multiple users can To synchronize is executed to mobile phone the problem of operating, the embodiment of the present invention can use a first terminal and multiple second terminals Pressure test is carried out to base station.In embodiments of the present invention, test operation can be executed to first terminal by a user, the The corresponding operational order of the test operation is sent to multiple second terminals by one terminal, and in practical applications, first terminal can be with The operational order is sent to multiple second terminals simultaneously, can specifically include in the operational order: the first behavior ginseng The property parameters of the several and described first terminal.The multiple second terminal is after receiving the operational order, Ke Yigen According to the first behavioral parameters therein and the property parameters of the first terminal, determine that the test operation corresponds to described second eventually Second behavioral parameters at end, and execute the test operation according to second behavioral parameters, and then may be implemented by multiple the Two terminals are synchronous to be executed and identical test operation in first terminal.It is appreciated that the number of the first terminal can be 1 Or it is multiple, the number of the second terminal can be one or more, and the embodiment of the present invention is for the first terminal and described The specific number of second terminal is without restriction.
In a kind of application example of the invention, when carrying out the pressure test of multi-user to base station, 201 can be prepared Mobile phone selects 1 mobile phone therein as first terminal, remaining 200 mobile phone is as second terminal, by wireless exchange board, It can be one IP of each mobile phone configuration (Internet Protocol Address, Internet protocol address) address, so that It can be communicated by wireless network between every mobile phone.
When user executes test operation for first terminal, first terminal can refer to the corresponding operation of the test operation Order is sent to 200 second terminals, so that 200 second terminals, which can synchronize, executes the test operation.During the test, Between one terminal and base station and 200 can generate communication data between second terminal and base station, and base station can be to OMC (Operation and Maintenance Center, operation and maintenance center) uploads the corresponding data of the communication data in real time Parameter, user can analyze the data parameters, to detect the performance of base station.For example, the data parameters specifically may be used To include: the switching of X2 (interconnection interface between e-NodeB) interface between e-NodeB (Evolved NodeB, the base station of evolution) Handover success rate, LTE (Long Term Evolution, long term evolution) handover success rate, LTE between success rate, e-NodeB Alien frequencies switching runs succeeded rate, LTE with the rate etc. that runs succeeded is switched frequently, and above-mentioned data parameters are corresponding with preset standard, by right Than the data parameters and preset standard, it can be determined that whether the performance of base station meets preset requirement.
In addition, first terminal and second terminal can also record the test data and user generated in test process Information such as operation behavior, and these information are uploaded to server, so that user is to base station, first terminal, second terminal Function or performance are analyzed.
In embodiments of the present invention, it can be communicated by wireless network between first terminal and second terminal, specifically Ground, first terminal can establish socket (socket) with multiple second terminals and connect, and first terminal can pass through broadcast Mode broadcast the operational order to multiple second terminals.First terminal can be sent to multiple second terminals simultaneously as a result, Operational order, so that multiple second terminals, which can synchronize, executes the corresponding test operation of the operational order, and then can be to base station Sufficient pressure test is carried out, the accuracy of pressure testing results is improved, in addition, the embodiment of the present invention only needs a user couple First terminal executes test operation, and the pressure test of multi-user can be realized to base station, can greatly save human cost.
It is appreciated that the embodiment of the present invention is without restriction for the communication mode between first terminal and second terminal, For example, first terminal can also be communicated with second terminal by LTE network other than wireless communication mode.
In an alternative embodiment of the invention, first behavioral parameters can specifically include: the user is directed to When the first terminal executes test operation, the click and/or mobile behavior generate to the first terminal corresponds to described first The screen coordinate of terminal;The property parameters can specifically include: the screen resolution of the first terminal.
It is appreciated that above-mentioned click behavior is specifically as follows the behavior of clicking or double-clicks behavior.The embodiment of the present invention for The particular content of first behavioral parameters is without restriction, such as first behavioral parameters can also be user described the The input content etc. that input behavior in one terminal generates.In addition, the embodiment of the present invention is for the specific interior of the property parameters Appearance is also without restriction, such as the property parameters can also be screen size, the operating system etc. of first terminal.
In embodiments of the present invention, the test operation at least may include it is following any one: user for mobile phone into Row call, user play video, user by mobile phone online and pass through mobile phone by mobile phone upload or downloading data, user In browser access webpage etc., test, testing throughput etc. can be attached to base station by above-mentioned test operation.It can be with Understand, the embodiment of the present invention is without restriction for the particular content of the test operation.
In practical applications, when user executes test operation to first terminal, first terminal can recorde user to it The click of generation and/or the corresponding screen coordinate of mobile behavior, and send the test operation to multiple second terminals and correspond to Operational order, the click is carried in the operational order and/or mobile behavior corresponds to the screen coordinate of first terminal, And the screen resolution that first terminal is current.Second terminal, can be according to wherein described after receiving the operational order It clicks and/or mobile behavior corresponds to the screen coordinate of first terminal and the screen resolution that first terminal is current, in conjunction with second The click and/or mobile behavior are corresponded to the screen coordinate of first terminal by the current screen resolution of terminal, are converted to described It clicks and/or mobile behavior corresponds to the screen coordinate of second terminal, and then the click and/or mobile behavior correspondence can be executed Test operation, thus second terminal can execute and test operation identical in first terminal.
In embodiments of the present invention, it is assumed that the first end of click and/or mobile behavior correspondence that user generates first terminal The screen coordinate at end is (x1, y1), and the current screen resolution of first terminal is (h1, v1), the current screen of second terminal point Resolution is (h2, v2), then can be by following formula, the click and/or mobile behavior correspondence that user generates first terminal The screen coordinate (x1, y1) of first terminal, is converted to the click and/or mobile behavior corresponds to the screen coordinate of second terminal (x2, y2):
X2=(x1 × h1)/h2
Y2=(y1 × v1)/v2 (1)
In practical applications, multiple second terminals may have different operating system, as (SuSE) Linux OS, Android (Android) operating system, IOS (Mobile operating system of Apple Inc.), Windows (operating system of Microsoft) Deng in order to enable the second terminal of different operating system can be performed and identical test operation in first terminal, present invention reality Example is applied to be packaged the click and/or the corresponding event of mobile behavior.Specifically, when the finger of user is in first terminal When clicking on screen or is mobile, TouchEvent (touch event) can be triggered, primary complete TouchEvent is by a Down (pressing) event, a Up (lift) event and several Move (movement) events composition, and the embodiment of the present invention is to described Down, Up and Move in TouchEvent are packaged, such as are encapsulated as OSP_Down, OSP_Up, OSP_Move, so that envelope Down event, Up event and Move event after dress can be compatible with different operating system.It is appreciated that the embodiment of the present invention pair It is without restriction in specific packaged type.
The embodiment of the present invention can be grasped by synchronous execute of multiple second terminals with test identical in first terminal as a result, Make, the pressure test of multi-user is carried out to base station, and the embodiment of the present invention is for the first terminal and second terminal The specific objects such as model, operating system and resolution ratio are without restriction.
In an alternative embodiment of the invention, described corresponding at least one second terminal transmission test operation Operational order, can specifically include:
At least one described second terminal is grouped, and determines targeted packets;
Second terminal into the targeted packets sends the corresponding operational order of the test operation.
Optionally, the embodiment of the present invention can also be grouped at least one described second terminal, and divide to difference The second terminal of group sends the corresponding operational order of different test operations, to carry out pressure test to base station batch, improves and surveys Try efficiency.
In a kind of application example of the invention, it is assumed that the number of second terminal is 600, can be according to second terminal Network address such as IP address is grouped, it is assumed that this 600 second terminals are divided into three groups, there is 200 in each grouping Two terminals.The IP address of 200 second terminals is IP1-IP200, the IP address of 200 second terminals in grouping 2 in grouping 1 For IP201-IP400, the IP address for being grouped 200 second terminals in 3 is IP401-IP600.
To base station carry out pressure test when, can use it is above-mentioned 3 grouping in second terminal execute respectively it is different Test operation to improve the efficiency of pressure test, and makes pressure test more abundant.For example, executing phone using grouping 1 The test operation of calling, grouping 2 execute the test operation of data downloading, and grouping 3 executes the online test behaviour for playing video Make.Specifically, first terminal can determine that grouping 1 is mesh when executing the test operation of call from above-mentioned 3 groupings Mark grouping, and the second terminal into grouping 1 sends the corresponding operational order of test operation of call, for example, can be with The operational order is broadcasted to IP address IP1-IP200, so that the second terminal in grouping 1 can receive the operational order, and And synchronous execution operational order.Similarly, the test behaviour that first terminal can be downloaded to IP address IP201-IP400 broadcast data Make corresponding operational order, so that the second terminal in grouping 2, which can synchronize, executes the operational order.And first terminal can To play the corresponding operational order of test operation of video to IP address IP401-IP600 broadcast wire, so that second in grouping 3 Terminal, which can synchronize, executes the operational order.
It is appreciated that above-mentioned be grouped multiple second terminals according to IP address, to be grouped test to base station Mode only as it is of the invention it is a kind of apply example, the embodiment of the present invention is without restriction for specific packet mode.In addition, The embodiment of the present invention is without restriction for the number of second terminal in the number and each grouping of grouping.
In an alternative embodiment of the invention, the second terminal described into the targeted packets sends the survey Before examination operates corresponding operational order, the method can also include:
The network address of second terminal in the targeted packets is sent to server, so that server is to the target Second terminal in grouping carries out initialization detection.
The embodiment of the present invention, can be to participation pressure test before carrying out pressure test to base station using second terminal Second terminal carries out initialization detection, so that test result is more accurate.
Specifically, first terminal can determine the targeted packets for needing to be implemented test operation first, and by targeted packets The network address of middle second terminal is sent to server, so that server is according to the network address in the targeted packets Second terminal carries out initialization detection.Wherein, the initialization detection can specifically include: detect the end socket of second terminal Whether the whether occupied, CPU (Central Processing Unit, central processing unit) of mouth and free memory meet test It is required that, network connection it is whether unobstructed etc..If initialization detection does not pass through, user can be notified to match second terminal It sets, after initialization detection passes through, pressure test can be carried out to base station, and user only needs to execute first terminal test behaviour Make, the second terminal of corresponding grouping can synchronize the corresponding test operation of execution and mention so as to execute pressure test in bulk The efficiency of high pressure test.
In an alternative embodiment of the invention, the method can also include:
It records the user to execute in test operating procedure for the first terminal, the test that the first terminal generates The operation log of data and/or the user;
The operation log of the test data and/or the user is uploaded to server.
For the embodiment of the present invention during carrying out pressure test to base station, first terminal can recorde the test of its generation Data, and the test data is uploaded to server, so that tester carries out data analysis.Wherein, the test number According to the indices numerical value that can specifically include first terminal, such as CPU, GPU (Graphics Processing Unit, image Processor), memory, frame number, electricity, flow etc. specific value can also be realized by analyzing these data to The detection of the function and performance of one terminal.Optionally, first terminal can also be analyzed by the test data to record, Performance report is generated, and performance report is uploaded to server.
First terminal can also record the operation log of user during recording test data, with real-time record use The current operation behavior in family.In a kind of application example of the invention, a first terminal and 200 second terminals pair are utilized Base station carries out the pressure test of handling capacity, in order to detect whether the handling capacity of base station meets preset standard, need to upload user/ The peak value of downloading measures, it is assumed that measurement period is 2 hours, according to the test data of record it is known that the most of the time Handling capacity meet preset standard, there is larger fluctuation, do not meet preset standard, then may be used in only 10 seconds the 40th minute handling capacities To check the operation log of the user of first terminal record, to obtain the corresponding specific behaviour of user 10 seconds the 40th minute when Make behavior, so as to behavior depending on the user's operation, accelerates the analysis to problem data.
In another of the invention using in example, using a first terminal and 200 second terminals to base station into Row CS (Circuit Switching, circuit interaction) connecting test, needs to execute mobile phone the test behaviour for dialing/hanging up repeatedly Make, after getting through, the case where Auto-reconnect connects sometime occurring, at this point it is possible to check first terminal record The operation log of user, to obtain the operation behavior of moment user, so that the abnormal conditions to Auto-reconnect are analyzed.
To sum up, the embodiment of the present invention can obtain user by first terminal and execute test operation for the first terminal The first behavioral parameters generated, and the corresponding operational order of the test operation is sent at least one second terminal, it is described Include: the property parameters of first behavioral parameters and the first terminal in operational order so that it is described at least one Two terminals can determine the test operation according to the property parameters of the first behavioral parameters and first terminal in operational order Second behavioral parameters of the corresponding second terminal, and executed and identical survey in first terminal according to second behavioral parameters Examination operation.Since first terminal can send the corresponding operational order of the test operation to multiple second terminals simultaneously, so that Multiple second terminals, which can synchronize, executes the test operation, and then can sufficiently realize the pressure test to base station, improves pressure The accuracy of power test result, in addition, the embodiment of the present invention only needs a user to execute test operation to first terminal It realizes the pressure test that multiple users carry out base station, can greatly save human cost.
Embodiment of the method two
Referring to Fig. 2, a kind of flow chart of test method embodiment two of the invention is shown, the method is whole using second End, the method can specifically include:
Step 201 receives the operational order from first terminal;It include: user in the operational order for described the One terminal executes the property parameters of the first behavioral parameters that test operation generates and the first terminal;
Step 202, according to the property parameters of first behavioral parameters and the first terminal, determine the test behaviour Make the second behavioral parameters of the corresponding second terminal, and executes the test operation according to second behavioral parameters.
In embodiments of the present invention, second terminal can be used for receiving the operational order from first terminal, and then can hold Identical test operation in capable and first terminal, the number of the second terminal can be multiple.Specifically, multiple second terminals The operational order of first terminal broadcast can be received, and according to user's needle in operational order by respective socket port First behavioral parameters of test operation generation, the property parameters and second of the first terminal are executed to the first terminal The user is executed the behavioral parameters that test operation generates, conversion for the first terminal by the property parameters of terminal itself For the behavioral parameters suitable for second terminal, and then the test operation in identical as first terminal can be executed, with to base station into The pressure test of row multi-user.
In an alternative embodiment of the invention, first behavioral parameters can specifically include: the user is directed to When the first terminal executes test operation, the click and/or mobile behavior generate to the first terminal corresponds to described first The screen coordinate of terminal;The property parameters can specifically include: the screen resolution of the first terminal;Second behavior Parameter can specifically include: the click and/or mobile behavior correspond to the screen coordinate of the second terminal;
It is described according to first behavioral parameters and the property parameters of the first terminal, determine the test operation pair The second behavioral parameters for answering the second terminal, can specifically include:
Click when executing test operation for the first terminal according to the user, to first terminal generation And/or mobile behavior corresponds to the screen coordinate of the first terminal, the screen resolution of the first terminal and described second The screen resolution of terminal determines that the click and/or mobile behavior correspond to the screen coordinate of the second terminal.
Specifically, the click and/or mobile behavior correspondence that user generates the first terminal are got in second terminal The current screen resolution of the screen coordinate of the first terminal, the first terminal and the current screen of the second terminal After curtain resolution ratio, the click can be calculated according to above-mentioned formula (1) and/or mobile behavior corresponds to described second eventually The screen coordinate at end, and then the screen coordinate of the second terminal can be corresponded to according to the click and/or mobile behavior, it holds Identical test operation in the capable and first terminal.
In an alternative embodiment of the invention, the method can also include:
The second terminal is recorded to execute in the test operating procedure, test data that the second terminal generates and/ Or the operation log of the user;
The operation log of the test data and/or the user is uploaded to server.
For the embodiment of the present invention during carrying out pressure test to base station, second terminal can recorde the test of its generation Data, and the test data is uploaded to server, so that tester carries out data analysis.Wherein, the test number According to the specific number of the indices numerical value that can specifically include second terminal, such as CPU, GPU, memory, frame number, electricity, flow Value, by analyzing these data, can also realize the functional test and performance test to second terminal.Optionally, Second terminal can also be analyzed by the test data to record, obtain performance report, and performance report is uploaded to Server.
Second terminal can also record the operation log of user during recording test data, with real-time record use The current operation behavior in family.When occurring abnormal data in test data, the operation log of user can be inquired, is occurred to obtain The operation behavior of the user of abnormal data moment record, and then abnormal data can be analyzed.
To sum up, the embodiment of the present invention can receive the operational order from first terminal by multiple second terminals;It is described Including: user in operational order executes the first behavioral parameters that test operation generates and described for the first terminal The property parameters of one terminal;Second terminal can join according to the attribute of the first behavioral parameters and first terminal in operational order Number determines that the test operation corresponds to the second behavioral parameters of the second terminal, and is executed according to second behavioral parameters With test operation identical in first terminal.It is simultaneously emitted by since multiple second terminals can receive from the same first terminal Operational order, therefore multiple second terminals can synchronize and execute the corresponding test operation of the operational order, and then can fill Divide the pressure test realized to base station, the accuracy of pressure testing results is improved, in addition, the embodiment of the present invention only needs a use Family executes test operation to first terminal, does not need user and executes test operation to second terminal, can realize to base station multi-purpose The pressure test at family can greatly save human cost.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Installation practice one
Referring to Fig. 3, a kind of structural block diagram of test device embodiment one of the invention, the test device application are shown In first terminal, described device be can specifically include:
Parameter acquisition module 301 executes the first row that test operation generates for the first terminal for obtaining user For parameter;
Instruction sending module 302, for sending the corresponding operational order of the test operation at least one second terminal, It include: the property parameters of first behavioral parameters and the first terminal in the operational order, so that described at least one A second terminal determines that the test operation is corresponding according to first behavioral parameters and the property parameters of the first terminal Second behavioral parameters of the second terminal, and the test operation is executed according to second behavioral parameters.
Optionally, first behavioral parameters can specifically include: the user executes test for the first terminal When operation, the click and/or mobile behaviors that generate to the first terminal correspond to the screen coordinate of the first terminal;The category Property parameter can specifically include: the screen resolution of the first terminal.
Optionally, described instruction sending module 302, can specifically include:
Target determines submodule, for being grouped at least one described second terminal, and determines targeted packets;
Sending submodule is instructed, sends the corresponding behaviour of the test operation for the second terminal into the targeted packets It instructs.
Optionally, described device can also include:
Address sending module, for the network address of the second terminal in the targeted packets to be sent to server, with Server is set to carry out initialization detection to the second terminal in the targeted packets.
Optionally, described device can also include:
First logging modle executes in test operating procedure for recording the user for the first terminal, described The operation log of test data and/or the user that first terminal generates;
First uploading module, for the operation log of the test data and/or the user to be uploaded to server.
Installation practice two
Referring to Fig. 4, a kind of structural block diagram of test device embodiment two of the invention, the test device application are shown In second terminal, described device be can specifically include:
Command reception module 401, for receiving the operational order from first terminal;It include: use in the operational order Family executes the property parameters of the first behavioral parameters and the first terminal that test operation generates for the first terminal;
Instruction execution module 402, for the property parameters according to first behavioral parameters and the first terminal, really The fixed test operation corresponds to the second behavioral parameters of the second terminal, and executes the survey according to second behavioral parameters Examination operation.
Optionally, first behavioral parameters can specifically include: the user executes test for the first terminal When operation, the click and/or mobile behaviors that generate to the first terminal correspond to the screen coordinate of the first terminal;The category Property parameter can specifically include: the screen resolution of the first terminal;Second behavioral parameters include: it is described click and/ Or mobile behavior corresponds to the screen coordinate of the second terminal.
Described instruction execution module 402, can specifically include:
Coordinate transform subblock, when for executing test operation for the first terminal according to the user, to described Click and/or mobile behavior that first terminal generates correspond to the screen of the screen coordinate of the first terminal, the first terminal The screen resolution of resolution ratio and the second terminal determines that the click and/or mobile behavior correspond to the second terminal Screen coordinate.
Optionally, described device can also include:
Second logging modle executes in the test operating procedure, the second terminal for recording the second terminal The operation log of the test data of generation and/or the user;
Second uploading module, for the operation log of the test data and/or the user to be uploaded to server.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of test method provided by the present invention and test device, it is described in detail, it is used herein A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand Method and its core concept of the invention;At the same time, for those skilled in the art is having according to the thought of the present invention There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention Limitation.

Claims (16)

1. a kind of test method is applied to first terminal, which is characterized in that the described method includes:
It obtains user and executes the first behavioral parameters that test operation generates for the first terminal;
The corresponding operational order of the test operation is sent at least one second terminal, includes: described in the operational order The property parameters of first behavioral parameters and the first terminal, so that at least one described second terminal is according to described first The property parameters of behavioral parameters and the first terminal determine that the test operation corresponds to the second behavior of the second terminal Parameter, and the test operation is executed according to second behavioral parameters.
2. the method according to claim 1, wherein first behavioral parameters include: the user for institute When stating first terminal execution test operation, the click and/or mobile behavior generate to the first terminal corresponds to described first eventually The screen coordinate at end;The property parameters include: the screen resolution of the first terminal.
3. the method according to claim 1, wherein described send the test behaviour at least one second terminal Make corresponding operational order, comprising:
At least one described second terminal is grouped, and determines targeted packets;
Second terminal into the targeted packets sends the corresponding operational order of the test operation.
4. according to the method described in claim 3, it is characterized in that, being sent in the second terminal into the targeted packets Before the corresponding operational order of the test operation, the method also includes:
The network address of second terminal in the targeted packets is sent to server, so that server is to the targeted packets In second terminal carry out initialization detection.
5. the method according to claim 1, wherein the method also includes:
It records the user to execute in test operating procedure for the first terminal, the test data that the first terminal generates And/or the operation log of the user;
The operation log of the test data and/or the user is uploaded to server.
6. a kind of test method is applied to second terminal, which is characterized in that the described method includes:
Receive the operational order from first terminal;Including: user in the operational order executes survey for the first terminal The property parameters of the first behavioral parameters and the first terminal that examination operation generates;
According to first behavioral parameters and the property parameters of the first terminal, determine that the test operation corresponds to described Second behavioral parameters of two terminals, and the test operation is executed according to second behavioral parameters.
7. according to the method described in claim 6, it is characterized in that, first behavioral parameters include: the user for institute When stating first terminal execution test operation, the click and/or mobile behavior generate to the first terminal corresponds to described first eventually The screen coordinate at end;The property parameters include: the screen resolution of the first terminal;Second behavioral parameters include: The click and/or mobile behavior correspond to the screen coordinate of the second terminal;
It is described according to first behavioral parameters and the property parameters of the first terminal, determine that the test operation corresponds to institute State the second behavioral parameters of second terminal, comprising:
According to the user for the first terminal execute test operation when, to the first terminal generate click and/or Mobile behavior corresponds to the screen coordinate of the first terminal, the screen resolution of the first terminal and the second terminal Screen resolution, determine that the click and/or mobile behavior correspond to the screen coordinate of the second terminal.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
It records the second terminal to execute in the test operating procedure, the test data and/or institute that the second terminal generates State the operation log of user;
The operation log of the test data and/or the user is uploaded to server.
9. a kind of test device, it is applied to first terminal, which is characterized in that described device includes:
Parameter acquisition module executes the first behavioral parameters that test operation generates for the first terminal for obtaining user;
Instruction sending module, for sending the corresponding operational order of the test operation, the behaviour at least one second terminal Include: the property parameters of first behavioral parameters and the first terminal in instructing so that it is described at least one second Terminal determines that the test operation corresponds to described according to first behavioral parameters and the property parameters of the first terminal Second behavioral parameters of two terminals, and the test operation is executed according to second behavioral parameters.
10. device according to claim 9, which is characterized in that first behavioral parameters include: the user for institute When stating first terminal execution test operation, the click and/or mobile behavior generate to the first terminal corresponds to described first eventually The screen coordinate at end;The property parameters include: the screen resolution of the first terminal.
11. device according to claim 9, which is characterized in that described instruction sending module, comprising:
Target determines submodule, for being grouped at least one described second terminal, and determines targeted packets;
Sending submodule is instructed, the corresponding operation of the test operation is sent for the second terminal into the targeted packets and refers to It enables.
12. device according to claim 11, which is characterized in that described device further include:
Address sending module, for the network address of the second terminal in the targeted packets to be sent to server, so that clothes Business device carries out initialization detection to the second terminal in the targeted packets.
13. device according to claim 9, which is characterized in that described device further include:
First logging modle executes in test operating procedure for recording the user for the first terminal, described first The operation log of test data and/or the user that terminal generates;
First uploading module, for the operation log of the test data and/or the user to be uploaded to server.
14. a kind of test device, it is applied to second terminal, which is characterized in that described device includes:
Command reception module, for receiving the operational order from first terminal;It include: user in the operational order for institute State the property parameters that first terminal executes the first behavioral parameters and the first terminal that test operation generates;
Instruction execution module, for the property parameters according to first behavioral parameters and the first terminal, determine described in Test operation corresponds to the second behavioral parameters of the second terminal, and executes the test according to second behavioral parameters and grasp Make.
15. device according to claim 14, which is characterized in that first behavioral parameters include: that the user is directed to When the first terminal executes test operation, the click and/or mobile behavior generate to the first terminal corresponds to described first The screen coordinate of terminal;The property parameters include: the screen resolution of the first terminal;The second behavioral parameters packet Include: the click and/or mobile behavior correspond to the screen coordinate of the second terminal.
Described instruction execution module, comprising:
Coordinate transform subblock, when for executing test operation for the first terminal according to the user, to described first The click and/or mobile behavior that terminal generates correspond to the screen coordinate of the first terminal, the screen of the first terminal is differentiated The screen resolution of rate and the second terminal determines that the click and/or mobile behavior correspond to the screen of the second terminal Curtain coordinate.
16. device according to claim 14, which is characterized in that described device further include:
Second logging modle executes in the test operating procedure for recording the second terminal, and the second terminal generates Test data and/or the user operation log;
Second uploading module, for the operation log of the test data and/or the user to be uploaded to 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 true CN109922484A (en) 2019-06-21
CN109922484B 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)

Cited By (3)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011008060A2 (en) * 2009-07-17 2011-01-20 Samsung Electronics Co., Ltd. Method for user pairing test
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
CN105808419A (en) * 2014-12-30 2016-07-27 平安科技(深圳)有限公司 Application test method and terminal
CN107404730A (en) * 2016-05-19 2017-11-28 中兴通讯股份有限公司 Traffic method for testing pressure and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011008060A2 (en) * 2009-07-17 2011-01-20 Samsung Electronics Co., Ltd. Method for user pairing test
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
CN105808419A (en) * 2014-12-30 2016-07-27 平安科技(深圳)有限公司 Application test method and terminal
CN107404730A (en) * 2016-05-19 2017-11-28 中兴通讯股份有限公司 Traffic method for testing pressure and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112445662A (en) * 2019-08-30 2021-03-05 上海哔哩哔哩科技有限公司 Internet data broadcast socket testing method, server and storage medium
CN111026651A (en) * 2019-11-25 2020-04-17 东软集团股份有限公司 Test method, test device, storage medium and electronic equipment
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
CN113204492B (en) * 2021-05-28 2024-06-25 中国工商银行股份有限公司 Android application testing method and device

Also Published As

Publication number Publication date
CN109922484B (en) 2021-01-22

Similar Documents

Publication Publication Date Title
TWI578727B (en) Virtualization of natural radio environments to test a radio device
CN105764024B (en) A kind of test method and device of wireless device handling capacity
CN104113458B (en) The method and device that a kind of mobile terminal is interconnected with intelligent appliance equipment
CN103152458B (en) Testing mobile phone, remote mobile phone test system, remote handset method of testing and device
CN104581785B (en) wireless network test method, test device and mobile terminal
CN104778121A (en) Game program test method, device and system
CN111611121B (en) Hardware simulation test method, device and equipment
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN104852937B (en) Method for network access and device for mobile application
CN109922484A (en) A kind of test method and test device
CN102984028A (en) Remote centralized test method for mobile terminals
CN113434101B (en) Control method and device of equipment, storage medium and electronic device
CN106658545A (en) Test method, mobile terminal and server
US9699674B2 (en) Technique for testing wireless network load produced by mobile app-carrying devices
CN107769986B (en) Network performance test system, extension system and test method
CN104008055B (en) The method of software test, equipment and system
CN105634876B (en) A kind of terminal capabilities test method and system
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN113055101B (en) 3-frequency MESH product performance test system and test method
CN102315981B (en) Equipment and method for testing evolved packet core network equipment
CN107015906A (en) Method of testing and device, port generation method and port maker and test system
CN110505352A (en) Call quality test method, system, computer equipment and computer storage medium
CN114466395A (en) Method and device for testing performance of base station, storage medium and electronic device
CN106686640A (en) System used for constructing and configuring weak network system environment and method thereof
CN116233907B (en) AP performance detection method and detection system based on simulation multi-concurrent STA

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