CN110232022A - Network environment test method, device and terminal device - Google Patents

Network environment test method, device and terminal device Download PDF

Info

Publication number
CN110232022A
CN110232022A CN201910422544.XA CN201910422544A CN110232022A CN 110232022 A CN110232022 A CN 110232022A CN 201910422544 A CN201910422544 A CN 201910422544A CN 110232022 A CN110232022 A CN 110232022A
Authority
CN
China
Prior art keywords
network environment
collection
implementing result
brake
measured
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910422544.XA
Other languages
Chinese (zh)
Inventor
梅锦振华
孙锦程
徐志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910422544.XA priority Critical patent/CN110232022A/en
Publication of CN110232022A publication Critical patent/CN110232022A/en
Priority to PCT/CN2019/121680 priority patent/WO2020233065A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The present invention is suitable for technical field of data processing, provide network environment test method, device, terminal device and computer readable storage medium, include: that the touch event monitored is added to object event collection during executing to the corresponding program of brake, determines the first implementing result to the corresponding program of brake;At least one network environment collection is obtained, network environment collection includes source network environment and purpose network environment;Any network environment collection is determined as set of circumstances to be measured, dispose the source network environment in set of circumstances to be measured, performance objective event set, in the process of implementation by source network environment changing to purpose network environment, the second implementing result is determined, until obtaining the second implementing result corresponding with each network environment collection;Export the prompt that network environment collection corresponding with the second implementing result that the first implementing result is consistent is successfully tested.The present invention improves the efficiency of network environment test by carrying out functional test automatically under different network environment collection.

Description

Network environment test method, device and terminal device
Technical field
The invention belongs to technical field of data processing more particularly to network environment test method, device, terminal device and Computer readable storage medium.
Background technique
With the fast development of software technology, the software on terminal device can realize more and more functions, such as data Statistics, motion monitoring and online shopping etc..Basic thought based on soft project, in software development process, functional test It is a wherein essential ring, especially for the test of network environment switch instances.
In the prior art, the switching of network environment is mainly completed by manually, specifically tester execute to When the corresponding program of brake, while the switching of network environment is carried out manually, for one side, the efficiency of manual switching is lower, When network environment to be tested is more, test is more troublesome;For another aspect, manual operation also brings along test inaccuracy The problem of, that is, it not can guarantee operation and handover network environment of the execution to the corresponding program of brake and carry out simultaneously.To sum up, Efficiency and the accuracy for carrying out network environment test in the prior art are low.
Summary of the invention
It can in view of this, the embodiment of the invention provides network environment test method, device, terminal device and computers Storage medium is read, to solve the problems, such as that the efficiency for carrying out network environment test in the prior art and accuracy are low.
The first aspect of the embodiment of the present invention provides a kind of network environment test method, comprising:
Monitoring executes under preset standard network environments to touch event caused by the corresponding program of brake, will supervise The touch event controlled is added to object event collection, and executes knot to the first of the corresponding program of brake described in determination Fruit, wherein the touch event includes touch location;
At least one network environment collection is obtained, the network environment collection includes source network environment and purpose network environment;
Any network environment collection that at least one described network environment is concentrated is determined as set of circumstances to be measured, deployment it is described to The source network environment in set of circumstances is surveyed, the object event collection is executed, it will in the implementation procedure of the object event collection The purpose network environment in the source network environment changing to the set of circumstances to be measured, determines the second implementing result, until Until obtaining second implementing result corresponding with each network environment collection;
If second implementing result is consistent with first implementing result, it is corresponding to export second implementing result The prompt that the network environment collection is successfully tested.
The second aspect of the embodiment of the present invention provides a kind of network environment test device, comprising:
Adding unit executes under preset standard network environments to caused by the corresponding program of brake for monitoring The touch event monitored is added to object event collection by touch event, and is determined described to the corresponding program of brake The first implementing result, wherein the touch event include touch location;
Acquiring unit, for obtaining at least one network environment collection, the network environment collection includes source network environment and mesh Network environment;
Switch unit, any network environment collection for concentrating at least one described network environment are determined as environment to be measured Collection disposes the source network environment in the set of circumstances to be measured, the object event collection is executed, in the object event collection By the purpose network environment in the source network environment changing to the set of circumstances to be measured in implementation procedure, determine that second holds Row is as a result, until obtaining second implementing result corresponding with each network environment collection;
Output unit exports described second if being consistent for second implementing result with first implementing result The prompt that the corresponding network environment collection of implementing result is successfully tested.
The third aspect of the embodiment of the present invention provides a kind of terminal device, and the terminal device includes memory, processing Device and storage in the memory and the computer program that can run on the processor, described in the processor execution Following steps are realized when computer program:
Monitoring executes under preset standard network environments to touch event caused by the corresponding program of brake, will supervise The touch event controlled is added to object event collection, and executes knot to the first of the corresponding program of brake described in determination Fruit, wherein the touch event includes touch location;
At least one network environment collection is obtained, the network environment collection includes source network environment and purpose network environment;
Any network environment collection that at least one described network environment is concentrated is determined as set of circumstances to be measured, deployment it is described to The source network environment in set of circumstances is surveyed, the object event collection is executed, it will in the implementation procedure of the object event collection The purpose network environment in the source network environment changing to the set of circumstances to be measured, determines the second implementing result, until Until obtaining second implementing result corresponding with each network environment collection;
If second implementing result is consistent with first implementing result, it is corresponding to export second implementing result The prompt that the network environment collection is successfully tested.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and the computer program realizes following steps when being executed by processor:
Monitoring executes under preset standard network environments to touch event caused by the corresponding program of brake, will supervise The touch event controlled is added to object event collection, and executes knot to the first of the corresponding program of brake described in determination Fruit, wherein the touch event includes touch location;
At least one network environment collection is obtained, the network environment collection includes source network environment and purpose network environment;
Any network environment collection that at least one described network environment is concentrated is determined as set of circumstances to be measured, deployment it is described to The source network environment in set of circumstances is surveyed, the object event collection is executed, it will in the implementation procedure of the object event collection The purpose network environment in the source network environment changing to the set of circumstances to be measured, determines the second implementing result, until Until obtaining second implementing result corresponding with each network environment collection;
If second implementing result is consistent with first implementing result, it is corresponding to export second implementing result The prompt that the network environment collection is successfully tested.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
In embodiments of the present invention, the touch event monitored during executing to the corresponding program of brake is added to mesh Event set is marked, while determining the first implementing result to the corresponding program of brake, then disposes different network environment collection, Execute the source to the corresponding program of brake, network environment concentrated during executing to the corresponding program of brake during deployment Network environment switching is purpose network environment, determines the second implementing result, exports second to be consistent with the first implementing result and executes As a result the prompt that corresponding network environment collection is successfully tested, the embodiment of the present invention are executed by monitoring to the corresponding program of brake When the touch event that generates, realize the automatic test to different network environments collection, improve network environment test efficiency and Accuracy.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart for the network environment test method that the embodiment of the present invention one provides;
Fig. 2 is the implementation flow chart of network environment test method provided by Embodiment 2 of the present invention;
Fig. 3 is the implementation flow chart for the network environment test method that the embodiment of the present invention three provides;
Fig. 4 is the implementation flow chart for the network environment test method that the embodiment of the present invention four provides;
Fig. 5 is the structural block diagram for the network environment test device that the embodiment of the present invention five provides;
Fig. 6 is the schematic diagram for the terminal device that the embodiment of the present invention six provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of network environment test method provided in an embodiment of the present invention, and details are as follows:
In S101, monitoring is executed under preset standard network environments to touch caused by the corresponding program of brake The touch event monitored is added to object event collection by event, and determines the to the corresponding program of brake One implementing result, wherein the touch event includes touch location.
In embodiments of the present invention, monitoring executes under preset standard network environments to the corresponding program of brake first All touch events monitored are added to object event collection by generated touch event, and determination is corresponding to brake First implementing result of program can be manually performed under standard network environments to brake pair in this step by tester The program answered, standard network environments are network environment of the expected execution to the corresponding program of brake, can be according to practical application Scene is configured, for example standard network environments can be 4G environment or Wi-Fi environment etc..The touch event monitored includes to touch Position, the touch location are touch event corresponding coordinate on the terminal device.It is worth noting that object event collection only indicates Classified and stored is carried out to the touch event monitored, without referring to a certain specific storage format.
For the ease of identifying to which whether the corresponding program of brake executes, can be preset with to the corresponding journey of brake The corresponding test instruction of sequence, and by test instruction as the mark for starting to execute to the corresponding program of brake, test instruction It can be preset function, can also be the preset request comprising specific data, it is not limited in the embodiment of the present invention.It is testing Personnel manually perform after the corresponding program of brake, and terminal device can be by whether detect that test instruction is to be measured to judge Whether the corresponding program of function starts to execute.It, can be by tester for the first implementing result to the corresponding program of brake Member's customized setting in advance can also be manually entered after the completion of the corresponding program of brake executes by tester, such as To the corresponding program of brake be login function the case where, the first implementing result can be " logining successfully ".
It, can be by specific in operating system applied by terminal device in the touch event occurred in monitor terminal equipment Monitor mode be monitored, for example, can be by Android operation system if terminal device application Android operation system OnTouchEvent method carry out touch event monitoring, certainly, this does not constitute the restriction to the embodiment of the present invention, such as also It can be monitored by third-party control or tool.
In S102, at least one network environment collection is obtained, the network environment collection includes source network environment and purpose net Network environment.
For obtaining at least one corresponding network environment collection to brake, each network environment collection includes Source network environment and purpose network environment, network environment collection, which is used to indicate, waits for that the corresponding program of brake carries out network environment to this The mode of switching, can specifically be selected according to practical application scene with to the corresponding network environment collection of brake.The embodiment of the present invention In the network environment that is related to include but is not limited to 3G, 4G, Wi-Fi, Edge and Wireless Application Protocol (Wireless Application Protocol, WAP), it can also be subdivided under 3G and 4G and be mentioned by different operators (movement, connection or telecommunications etc.) The network environment of confession.
In S103, any network environment collection that at least one described network environment is concentrated is determined as set of circumstances to be measured, The source network environment in the set of circumstances to be measured is disposed, the object event collection is executed, in holding for the object event collection By the purpose network environment in the source network environment changing to the set of circumstances to be measured during row, the second execution is determined As a result, until obtaining second implementing result corresponding with each network environment collection.
After getting at least one network environment collection, the corresponding program of brake is treated according to each network environment collection Executive condition is tested.Specifically, any network environment collection is determined as set of circumstances to be measured, disposed on the terminal device to be measured Source network environment in set of circumstances, and the touch event under the source network environment in performance objective event set (touch event Execution sequence and its execution sequence consensus in step s101), it then, will be in source network environment changing to the set of circumstances to be measured Purpose network environment, determine performance objective event set generate the second implementing result, repeat the above process until obtain with often Until corresponding second implementing result of a network environment collection.It is noted that from source network environment to purpose network environment Switching can be by calling the tool such as Fidder tool of open source to realize.
Optionally it is determined that the execution duration of the first implementing result, according to execution duration threshold value duration, the execution duration It indicates since executing to the corresponding program of brake to the duration determined the first implementing result;In performance objective event set Threshold value duration after, the implementing result of appearance is determined as the second implementing result.On the basis of having disposed set of circumstances to be measured, it is Promotion testing efficiency, prevents the test process of the set of circumstances to be measured from taking considerable time, determines the execution of the first implementing result Duration, when execution it is a length of since executing to the corresponding program of brake to the duration determined the first implementing result, so Afterwards according to executing duration threshold value duration, the embodiment of the present invention without limitation, but limits threshold to the method for determination of threshold value duration It is worth duration and is greater than or equal to execution duration, increases on the basis of can such as growing when being executed ten minutes and be used as threshold value duration.In portion A set of circumstances to be measured is affixed one's name to, and after the threshold value duration of beginning performance objective event set, the implementing result of appearance is determined as second Implementing result.It can avoid influencing test process because the test process of some network environment collection is too long by the above method.
In S104, if second implementing result is consistent with first implementing result, exports described second and execute As a result the prompt that the corresponding network environment collection is successfully tested.
After obtaining the second implementing result, if the second implementing result is consistent with the first implementing result, knot such as is executed first In the case that fruit is " logining successfully ", the second implementing result is also " logining successfully ", then it is corresponding to export second implementing result The prompt that network environment collection is successfully tested;Conversely, if the second implementing result is not consistent with the first implementing result, export this second The prompt of the corresponding network environment collection test crash of implementing result.By exporting different prompts, looked into convenient for tester It sees.
By embodiment illustrated in fig. 1 it is found that in embodiments of the present invention, being incited somebody to action during being executed to the corresponding program of brake The touch event monitored is added to object event collection, determines the first implementing result to the corresponding program of brake, obtains extremely A few network environment collection, is determined as set of circumstances to be measured for any network environment collection, disposes the source network ring in set of circumstances to be measured Border, performance objective event set, by the mesh in source network environment changing to set of circumstances to be measured in the implementation procedure of object event collection Network environment, determine the second implementing result, until obtaining the second implementing result corresponding with each network environment collection, if Second implementing result is consistent with the first implementing result, then exports what the corresponding network environment collection of second implementing result was successfully tested Prompt, the embodiment of the present invention realize the automatic test to different network environments collection, mention by being monitored to touch event The efficiency and accuracy of network environment test are risen.
It is to be added to object event to by the touch event monitored on the basis of the embodiment of the present invention one shown in Fig. 2 A kind of network environment test method that the process of collection obtains after being refined.The embodiment of the invention provides network environment test sides The implementation flow chart of method, as shown in Fig. 2, the network environment test method may comprise steps of:
In S201, the alternative events in the object event collection are determined, wherein the alternative events are for being performed When triggering server between interaction.
The embodiment of the present invention treats brake by disposing different network environment collection, the network environment collection to check different The influence of the executive condition of corresponding program.Since the change of network environment influences whether the friendship between terminal device and server Mutually, it therefore in order to promote the accuracy tested, is executing to the corresponding program of brake and the progress of terminal device and server When interaction, the replacement of network environment is executed.Specifically, the touch event monitored is being added to the same of object event concentration When, determine the alternative events in object event collection, which is used for the interaction between triggering and server when executed, Since touch event is to be triggered manually by tester, therefore can also be concentrated by tester in object event and determine interaction thing Other methods of determination also may be present in part, certainly, alternative events.
In S202, be carrying out the alternative events if detecting, by the source network environment changing to it is described to Survey the purpose network environment in set of circumstances.
It after determining alternative events, if being carrying out object event collection, and detects and is carrying out alternative events, then will Purpose network environment in source network environment changing to the set of circumstances to be measured currently disposed, convenient for analysis handover network environment Operate the influence to server interaction.
By embodiment illustrated in fig. 2 it is found that in embodiments of the present invention, determining the alternative events in object event collection, In, alternative events are carrying out alternative events if detecting for the interaction when executed between triggering and server, will Purpose network environment in source network environment changing to set of circumstances to be measured, the embodiment of the present invention are carried out in terminal device and server Handover network environment when interaction further improves the accuracy of network environment test.
It is on the basis of the embodiment of the present invention two, to the process for determining the alternative events in object event collection shown in Fig. 3 A kind of network environment test method obtained after being refined.The embodiment of the invention provides the realizations of network environment test method Flow chart, as shown in figure 3, the network environment test method may comprise steps of:
In S301, running log is grabbed.
When determining alternative events, running log relevant to terminal device can be grabbed, the embodiment of the present invention is to specific Grasp mode is without limitation.
In S302, if finding interaction request in the running log, by the recent touch event It is determined as the alternative events, the interaction request with the server for interacting.
For the running log of crawl, interaction request is searched wherein, the format of interaction request can be preset, for example hand over Mutually request can request for hypertext transfer protocol (HyperText Transfer Protocol, HTTP).If in running log Interaction request is found, then recently by the time of origin distance with the interaction request, and time of origin is earlier than the hair of interaction request The touch event of raw time is determined as alternative events.
By embodiment illustrated in fig. 3 it is found that in embodiments of the present invention, running log is grabbed, if looking into running log Interaction request is found, then recent touch event is determined as alternative events, which is used to carry out with server Interaction, the embodiment of the present invention determine alternative events by searching for interaction request, reduce manual operation, and improve determination The accuracy of alternative events out.
It is a kind of network environment test side obtained after being extended on the basis of the embodiment of the present invention one shown in Fig. 4 Method.The embodiment of the invention provides the implementation flow charts of network environment test method, as shown in figure 4, the network environment test side Method may comprise steps of:
In S401, it will execute and described save as original state to the state before the corresponding program of brake, wherein institute Stating original state is to obtain the precondition of first implementing result.
It may be different types of function to brake, such as may be can to weigh to brake in practical application scene The function of executing again, such as voting function or refresh function can directly repeat to dispose different network environments in this case Collection, and performance objective event set.But the function that can not be executed once again after brake may also be to execute, that is, executing to measurement of power Can be after corresponding program, the state of terminal device can change, for example to brake be some button in click page A, The function of jumping to page B, due to executing once after the corresponding program of brake, current page is page B, natural nothing Method clicks the button in page A again.For above situation, in embodiments of the present invention, will execute to the corresponding program of brake State before saves as original state, which is to obtain the precondition of the first implementing result, i.e., in terminal device State when being original state, just available first implementing result, original state concretely page status or data mode etc., It is determined according to practical application scene.
In S402, if detecting institute in the standard network environments or under the network environment that the network environment is concentrated It states to the corresponding program finishes execution of brake, then current state is switched to the original state.
If in standard network environments or the network environment (source network environment or purpose network environment) concentrated in network environment Under detect after the corresponding program finishes execution of brake, the current state of terminal device is switched into original state so that It can support to repeat to the corresponding program of brake.For example, if being page turn function, and initial shape to brake State includes an initial page, then when detecting the corresponding program finishes execution of the page turn function, the triggering page is returned Current page is switched to initial page by function;If being data manipulation function to brake, obtain and data manipulation function pair The first action statement answered creates the second action statement corresponding with the first action statement, wherein the first action statement and second (even the first action statement is to increase data A to server to action statement contrary, then the second action statement is to delete in server Data A), when detecting the corresponding program finishes execution of the data manipulation function, the second action statement is executed, to eliminate Because of influence caused by executing the corresponding program of the data manipulation function, the format of the first action statement and the second action statement can root It is set according to practical application scene, for example the format of the first action statement and the second action statement can be structured query language (Structured Query Language, SQL).
By embodiment illustrated in fig. 4 it is found that in embodiments of the present invention, before executing to the corresponding program of brake State saves as original state, if detecting to the corresponding program finishes execution of brake, current state is switched to initially State, the embodiment of the present invention, which is eliminated, to be influenced because executing to the corresponding program bring of brake, avoids the hand of tester It is dynamic to eliminate operation, improve the applicability of network environment test.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to network environment test method described in foregoing embodiments, Fig. 5 shows net provided in an embodiment of the present invention The structural block diagram of network environment measuring device, referring to Fig. 5, which includes:
Adding unit 51 executes under preset standard network environments to produced by the corresponding program of brake for monitoring Touch event, the touch event monitored is added to object event collection, and determine described to the corresponding journey of brake First implementing result of sequence, wherein the touch event includes touch location;
Acquiring unit 52, for obtaining at least one network environment collection, the network environment collection include source network environment and Purpose network environment;
Switch unit 53, any network environment collection for concentrating at least one described network environment are determined as ring to be measured Border collection disposes the source network environment in the set of circumstances to be measured, the object event collection is executed, in the object event collection Implementation procedure in by the purpose network environment in the source network environment changing to the set of circumstances to be measured, determine second Implementing result, until obtaining second implementing result corresponding with each network environment collection;
Output unit 54 exports described if being consistent for second implementing result with first implementing result The prompt that the corresponding network environment collection of two implementing results is successfully tested.
Optionally, adding unit 51 includes:
Determination unit, for determining the alternative events in the object event collection, wherein the alternative events are used in quilt Interaction when execution between triggering and server;
Switch unit 53 includes:
Switching subelement, if being carrying out the alternative events for detecting, extremely by the source network environment changing The purpose network environment in the set of circumstances to be measured.
Optionally it is determined that unit includes:
Picking unit, for grabbing running log;
Subelement is determined, if for finding interaction request in the running log, by the recent touching The event of touching is determined as the alternative events, and the interaction request with the server for interacting.
Optionally, network environment test device further include:
Storage unit, for will execute it is described save as original state to the state before the corresponding program of brake, In, the original state is to obtain the precondition of first implementing result;
Status toggle unit, if in the standard network environments or under the network environment that the network environment is concentrated To the corresponding program finishes execution of brake described in detecting, then current state is switched to the original state.
Optionally, switch unit 53 further include:
Threshold value determination unit is determined for determining the execution duration of first implementing result according to the execution duration Threshold value duration, execution duration instruction from execute it is described to the corresponding program of brake to determination first implementing result it Between duration;
Second implementing result determination unit, for will occur after the threshold value duration for executing the object event collection Implementing result be determined as second implementing result.
Therefore, network environment test device provided in an embodiment of the present invention is by being monitored touch event, and portion Affix one's name to different network environment collection, realize the automatic test to network environment collection, improve network environment test efficiency and Accuracy.
Fig. 6 is the schematic diagram of terminal device provided in an embodiment of the present invention.As shown in fig. 6, the terminal device 6 of the embodiment Include: processor 60, memory 61 and is stored in the calculating that can be run in the memory 61 and on the processor 60 Machine program 62, such as network environment test program.The processor 60 is realized above-mentioned each when executing the computer program 62 Step in network environment test method embodiment, such as step S101 to S104 shown in FIG. 1.Alternatively, the processor 60 The function of each unit in above-mentioned each network environment test device embodiment, such as Fig. 5 are realized when executing the computer program 62 The function of shown unit 51 to 54.
Illustratively, the computer program 62 can be divided into one or more units, one or more of Unit is stored in the memory 61, and is executed by the processor 60, to complete the present invention.One or more of lists Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 62 in the terminal device 6.For example, the computer program 62 can be divided into adding unit, obtain Unit, switch unit and output unit are taken, each unit concrete function is as follows:
Adding unit executes under preset standard network environments to caused by the corresponding program of brake for monitoring The touch event monitored is added to object event collection by touch event, and is determined described to the corresponding program of brake The first implementing result, wherein the touch event include touch location;
Acquiring unit, for obtaining at least one network environment collection, the network environment collection includes source network environment and mesh Network environment;
Switch unit, any network environment collection for concentrating at least one described network environment are determined as environment to be measured Collection disposes the source network environment in the set of circumstances to be measured, the object event collection is executed, in the object event collection By the purpose network environment in the source network environment changing to the set of circumstances to be measured in implementation procedure, determine that second holds Row is as a result, until obtaining second implementing result corresponding with each network environment collection;
Output unit exports described second if being consistent for second implementing result with first implementing result The prompt that the corresponding network environment collection of implementing result is successfully tested.
The terminal device 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of terminal device 6 does not constitute the restriction to terminal device 6, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, such as the hard disk or interior of terminal device 6 It deposits.The memory 61 is also possible to the External memory equipment of the terminal device 6, such as be equipped on the terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions Unit is completed, i.e., the internal structure of the terminal device is divided into different functional units, to complete whole described above Or partial function.Each functional unit in embodiment can integrate in one processing unit, be also possible to each unit list It is solely physically present, can also be integrated in one unit with two or more units, above-mentioned integrated unit can both use Formal implementation of hardware can also be realized in the form of software functional units.In addition, the specific name of each functional unit also only It is the protection scope that is not intended to limit this application for the ease of mutually distinguishing.The specific work process of unit in above system, It can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed terminal device and method can pass through it Its mode is realized.For example, terminal device embodiment described above is only schematical, for example, the unit is drawn Point, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling or direct-coupling or communication connection of opinion can be through some interfaces, the INDIRECT COUPLING of device or unit Or communication connection, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-described embodiment side All or part of the process in method can also instruct relevant hardware to complete, the computer by computer program Program can be stored in a computer readable storage medium, and the computer program is when being executed by processor, it can be achieved that above-mentioned each The step of a embodiment of the method.Wherein, the computer program includes computer program code, and the computer program code can Think source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium can be with It include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, light that can carry the computer program code Disk, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described computer-readable The content that medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice, such as at certain A little jurisdictions do not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of network environment test method characterized by comprising
Monitoring executes under preset standard network environments to touch event caused by the corresponding program of brake, will monitor The touch event be added to object event collection, and determine first implementing result to the corresponding program of brake, In, the touch event includes touch location;
At least one network environment collection is obtained, the network environment collection includes source network environment and purpose network environment;
Any network environment collection that at least one described network environment is concentrated is determined as set of circumstances to be measured, disposes the ring to be measured The source network environment that border is concentrated, executes the object event collection, will be described in the implementation procedure of the object event collection The purpose network environment in source network environment changing to the set of circumstances to be measured, determines the second implementing result, until obtaining Until second implementing result corresponding with each network environment collection;
If second implementing result is consistent with first implementing result, it is corresponding described to export second implementing result The prompt that network environment collection is successfully tested.
2. network environment test method as described in claim 1, which is characterized in that the touch event that will be monitored It is added to object event collection, comprising:
Determine the alternative events in the object event collection, wherein the alternative events are for triggering when executed and service Interaction between device;
It is described will be in the source network environment changing to the set of circumstances to be measured in the implementation procedure of the object event collection The purpose network environment, comprising:
The alternative events are carrying out if detecting, by the institute in the source network environment changing to the set of circumstances to be measured State purpose network environment.
3. network environment test method as claimed in claim 2, which is characterized in that in the determination object event collection Alternative events, comprising:
Grab running log;
If finding interaction request in the running log, the recent touch event is determined as the interaction Event, the interaction request with the server for interacting.
4. network environment test method as described in claim 1, which is characterized in that further include:
It will execute and described save as original state to the state before the corresponding program of brake, wherein the original state is Obtain the precondition of first implementing result;
If detecting in the standard network environments or under the network environment that the network environment is concentrated described to brake pair Current state is then switched to the original state by the program finishes execution answered.
5. network environment test method as described in claim 1, which is characterized in that second implementing result of determination, comprising:
The execution duration for determining first implementing result, according to the execution duration threshold value duration, the execution duration It indicates from the execution duration to the corresponding program of brake to determination first implementing result;
After the threshold value duration for executing the object event collection, the implementing result of appearance is determined as described second and executes knot Fruit.
6. a kind of network environment test device characterized by comprising
Adding unit executes under preset standard network environments to touch caused by the corresponding program of brake for monitoring The touch event monitored is added to object event collection by event, and determines the to the corresponding program of brake One implementing result, wherein the touch event includes touch location;
Acquiring unit, for obtaining at least one network environment collection, the network environment collection includes source network environment and purpose net Network environment;
Switch unit, any network environment collection for concentrating at least one described network environment are determined as set of circumstances to be measured, The source network environment in the set of circumstances to be measured is disposed, the object event collection is executed, in holding for the object event collection By the purpose network environment in the source network environment changing to the set of circumstances to be measured during row, the second execution is determined As a result, until obtaining second implementing result corresponding with each network environment collection;
Output unit exports described second and executes if being consistent for second implementing result with first implementing result As a result the prompt that the corresponding network environment collection is successfully tested.
7. a kind of terminal device, which is characterized in that the terminal device includes memory, processor and is stored in the storage In device and the computer program that can run on the processor, the processor are realized as follows when executing the computer program Step:
Monitoring executes under preset standard network environments to touch event caused by the corresponding program of brake, will monitor The touch event be added to object event collection, and determine first implementing result to the corresponding program of brake, In, the touch event includes touch location;
At least one network environment collection is obtained, the network environment collection includes source network environment and purpose network environment;
Any network environment collection that at least one described network environment is concentrated is determined as set of circumstances to be measured, disposes the ring to be measured The source network environment that border is concentrated, executes the object event collection, will be described in the implementation procedure of the object event collection The purpose network environment in source network environment changing to the set of circumstances to be measured, determines the second implementing result, until obtaining Until second implementing result corresponding with each network environment collection;
If second implementing result is consistent with first implementing result, it is corresponding described to export second implementing result The prompt that network environment collection is successfully tested.
8. terminal device as claimed in claim 7, which is characterized in that the touch event that will be monitored is added to target thing Part collection, comprising:
Determine the alternative events in the object event collection, wherein the alternative events are for triggering when executed and service Interaction between device;
It is described will be in the source network environment changing to the set of circumstances to be measured in the implementation procedure of the object event collection The purpose network environment, comprising:
The alternative events are carrying out if detecting, by the institute in the source network environment changing to the set of circumstances to be measured State purpose network environment.
9. terminal device as claimed in claim 7, which is characterized in that further include:
It will execute and described save as original state to the state before the corresponding program of brake, wherein the original state is Obtain the precondition of first implementing result;
If detecting in the standard network environments or under the network environment that the network environment is concentrated described to brake pair Current state is then switched to the original state by the program finishes execution answered.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realizing the network environment test method as described in any one of claim 1 to 5 when the computer program is executed by processor Step.
CN201910422544.XA 2019-05-21 2019-05-21 Network environment test method, device and terminal device Pending CN110232022A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910422544.XA CN110232022A (en) 2019-05-21 2019-05-21 Network environment test method, device and terminal device
PCT/CN2019/121680 WO2020233065A1 (en) 2019-05-21 2019-11-28 Network environment testing method and apparatus, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910422544.XA CN110232022A (en) 2019-05-21 2019-05-21 Network environment test method, device and terminal device

Publications (1)

Publication Number Publication Date
CN110232022A true CN110232022A (en) 2019-09-13

Family

ID=67860920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910422544.XA Pending CN110232022A (en) 2019-05-21 2019-05-21 Network environment test method, device and terminal device

Country Status (2)

Country Link
CN (1) CN110232022A (en)
WO (1) WO2020233065A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
WO2020233065A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Network environment testing method and apparatus, and terminal device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116225576B (en) * 2023-05-08 2023-07-28 成都赛力斯科技有限公司 Application program data environment switching method and device, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN106817180A (en) * 2015-11-30 2017-06-09 展讯通信(上海)有限公司 A kind of automatization test system and method
CN108897692A (en) * 2018-07-06 2018-11-27 武汉斗鱼网络科技有限公司 Dynamic switching method and system, the server and storage medium of network environment
CN109218136A (en) * 2018-09-30 2019-01-15 广州掌动智能科技有限公司 WIFI switching performance test method, device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060179350A1 (en) * 2005-02-10 2006-08-10 Microsoft Corporation Dynamic marshaling testing
CN106375138B (en) * 2015-07-20 2019-10-18 深圳市中兴微电子技术有限公司 The test device and method of Interoperability between different network formats
CN109634648B (en) * 2017-10-09 2022-02-08 武汉斗鱼网络科技有限公司 Method and device for rapidly switching SDK network interface environment
CN110232022A (en) * 2019-05-21 2019-09-13 深圳壹账通智能科技有限公司 Network environment test method, device and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014137014A1 (en) * 2013-03-08 2014-09-12 (주)인프라웨어테크놀러지 Auto-verification method of smart application using terminal automatic execution control
CN106817180A (en) * 2015-11-30 2017-06-09 展讯通信(上海)有限公司 A kind of automatization test system and method
CN108897692A (en) * 2018-07-06 2018-11-27 武汉斗鱼网络科技有限公司 Dynamic switching method and system, the server and storage medium of network environment
CN109218136A (en) * 2018-09-30 2019-01-15 广州掌动智能科技有限公司 WIFI switching performance test method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜博;龙翔;高小鹏;: "嵌入式智能设备的测试方法研究", 微计算机信息, no. 02 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020233064A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Function test-based factor influence degree determination method and apparatus, and terminal device
WO2020233065A1 (en) * 2019-05-21 2020-11-26 深圳壹账通智能科技有限公司 Network environment testing method and apparatus, and terminal device

Also Published As

Publication number Publication date
WO2020233065A1 (en) 2020-11-26

Similar Documents

Publication Publication Date Title
CN110232022A (en) Network environment test method, device and terminal device
CN110134659B (en) Log monitoring system, method, medium, and apparatus for running program
CN105144118A (en) Application testing and analysis
CN110245076A (en) Method, apparatus and terminal device are determined based on the factor influence degree of functional test
CN109885452A (en) Method for monitoring performance, device and terminal device
CN108459958A (en) The creation method of function and performance test script, device, equipment and storage medium
CN110119307B (en) Data processing request processing method and device, storage medium and electronic device
CN105159832B (en) A kind of methods, devices and systems collected in application is tested using exception information
US20150378868A1 (en) Technologies for determining binary loop trip count using dynamic binary instrumentation
CN107066600A (en) Automatic method, system, mobile terminal and the readable storage medium storing program for executing for skipping advertising page
WO2015094315A1 (en) Discarding data points in a time series
CN113608969A (en) Service system operation monitoring system and method
CN103903312A (en) Method and device for executing automatic inspection
CN111552521A (en) Application data reporting method, device, server and storage medium
CN105677569B (en) Android automated test tools and method of testing based on event handler
CN112069029B (en) Domestic platform PMU self-adaptive performance acquisition monitoring system
US20130007525A1 (en) Test architecture based on intelligent test sequence
CN107436839A (en) Process load acquisition methods, electric terminal and computer-readable recording medium
CN111376255B (en) Robot data acquisition method and device and terminal equipment
WO2024093005A1 (en) Battery capacity prediction method and apparatus, and electronic device
CN116679139A (en) Cable replacement monitoring system and method
CN107656849B (en) Method and device for positioning performance problem of software system
CN107818501B (en) Actuarial method and device
CN113656292B (en) Multi-dimensional cross-space-time basic software performance bottleneck detection method
CN103020132B (en) The testing result display packing of database performance and device

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