CN108073529A - The input and output analogy method and simulation system of mobile terminal - Google Patents

The input and output analogy method and simulation system of mobile terminal Download PDF

Info

Publication number
CN108073529A
CN108073529A CN201710708088.6A CN201710708088A CN108073529A CN 108073529 A CN108073529 A CN 108073529A CN 201710708088 A CN201710708088 A CN 201710708088A CN 108073529 A CN108073529 A CN 108073529A
Authority
CN
China
Prior art keywords
mobile terminal
script command
script
random perturbation
initial
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
CN201710708088.6A
Other languages
Chinese (zh)
Inventor
郭宇
曾冰
陈丹
舒云
林秝
向伊达
宋希东
蒋寒迪
董欣明
丁波涛
惠新宇
谢虹
袁芳
刘琳
赵巡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Micro Software Technology Co Ltd
Original Assignee
Beijing Micro Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Micro Software Technology Co Ltd filed Critical Beijing Micro Software Technology Co Ltd
Priority to CN201710708088.6A priority Critical patent/CN108073529A/en
Publication of CN108073529A publication Critical patent/CN108073529A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/105Program control for peripheral devices where the programme performs an input/output emulation function

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Telephone Function (AREA)

Abstract

The present invention relates to the input and output analogy method and simulation system of mobile terminal, wherein the analogy method includes step:Generation initial script command corresponding with the operational order at PC ends;Random perturbation is carried out to the parameter preset in initial script command according to random perturbation algorithm, generates secondary script command;It encapsulates and sends secondary script command to default mobile terminal, secondary script command is used for mobile terminal execution.The present invention is before generation finally can be by the script command of mobile terminal execution, random perturbation has been carried out to some parameter presets in script command in advance, even so as to perform identical order, also due to the difference of parameter preset, so that the executive mode of the order difference, the otherness of generated order during so as to simulate manual operation mobile terminal, therefore work and manually-operated similarity are improved, therefore, also just reduce and identify that above-mentioned simulated operation is mechanically operated probability by the APP of mobile terminal.

Description

The input and output analogy method and simulation system of mobile terminal
Technical field
The invention belongs to moving communicating field, the input and output analogy method of more particularly to a kind of mobile terminal and simulation are System.
Background technology
Mobile terminal, commonly referred to as mobile phone, radio telephone, script is a kind of means of communication.But with communication skill The rapid development of art and advancing by leaps and bounds for hardware technology, mobile terminal also evolve into smart machine from simple means of communication, Smart mobile phone is evolved into from non-smart mobile phone.For non-smart mobile phone, the dominant frequency of usual smart mobile phone is higher, operation Speed, processing routine task are rapider.
At present, smart mobile phone is had evolved to as PC, has oneself independent operating system, the screen of bigger Curtain, more powerful function.In addition, smart mobile phone is also integrated with Touch Screen, so that physical keyboard slowly becomes History.The APP provided with the third party service provider is gradually diversified, and functionalization, the practicability of smart mobile phone constantly obtains Expand.Therefore, for another angle, smart mobile phone not only possesses common communication function, but also has been also equipped with PDA Most of function, such as:Personal information management, the web page browsing function based on wireless data communication, e-mail function etc., So that operation of the user on smart mobile phone is more and more frequent.
In order to improve the operating efficiency for mobile terminal, multiple mobile terminals can be collected by a PC end In manipulation;In this control mode, it is necessary to by the PC such as keyboard and mouse ends input equipment by way of making command script Operational order be converted to suitable for mobile terminal finger touch, slide etc. operations, so as to reach the defeated of simulating mobile terminal Enter the purpose of output.
Inventor has found that the realization method of the input and output of simulating mobile terminal in the prior art, at least also There are it is following the defects of:
The APP for being easily moved terminal identifies that the execution of above-mentioned simulated operation is not manual operation, so as to cause the behaviour of simulation The adverse consequences such as it is prohibited as behavior.
Above-mentioned background technology is only that inventor possesses to export embodiment of the present invention or in export process The technical information of middle acquistion not necessarily has been disclosed in the known skill of general public before the submission of embodiment of the present invention Art.
The content of the invention
The object of the present invention is to provide the analogy method and simulation system of mobile terminal input and output, to overcome existing skill The defects of not manual operation is easily identified in art.
To achieve the above object, the present invention provides a kind of input and output analogy method of mobile terminal, including:
Generation initial script command corresponding with the operational order at PC ends;
Random perturbation is carried out to the parameter preset in the initial script command according to random perturbation algorithm, generates secondary script life Order;
It encapsulates and sends the secondary script command to default mobile terminal, the secondary script command is for described mobile whole End performs.
In the another side of the embodiment of the present invention, the input and output analogy method of another mobile terminal is additionally provided, including:
Generation initial script command corresponding with the operational order at PC ends;
It encapsulates and sends the initial script command to default mobile terminal;
The mobile terminal carries out random perturbation according to random perturbation algorithm to the parameter preset in the initial script command, raw Into secondary script command;The secondary script command is suitable for the mobile terminal execution;
Secondary script command described in the mobile terminal execution.
Preferably, in embodiments of the present invention, the random perturbation algorithm includes multiple, each random perturbation algorithm with Default order species is corresponding;The order species includes clicking, double-clicking, sliding, in long-press, input, button and delay A kind of and its any combination;
It is described that random perturbation is carried out to the parameter preset in the initial script command according to random perturbation algorithm, including:
According to random perturbation algorithm corresponding with the order species of the initial script command, in the initial script command Parameter preset carries out random perturbation.
Preferably, in embodiments of the present invention, the parameter preset includes:
Coordinate value, dead time, sliding speed in the initial script command and one kind in sliding distance and its arbitrary group It closes.
Preferably, in embodiments of the present invention, the mobile terminal includes smart mobile phone.
In the another side of the embodiment of the present invention, a kind of input and output simulation system of mobile terminal is additionally provided, including:PC End and mobile terminal;
The PC ends include script and make module, script disturbance module and package module;The mobile terminal includes execution module;
The script makes module for generating initial script command corresponding with the operational order at PC ends;
Script disturbance module be used to carrying out the parameter preset in the initial script command according to random perturbation algorithm with Machine disturbs, and generates secondary script command;
The package module sends the secondary script command for encapsulation and to default mobile terminal;
The execution module is used to perform the secondary script command.
In the another side of the embodiment of the present invention, the input and output simulation system of another mobile terminal is additionally provided, including PC ends and mobile terminal;
The PC ends include script and make module and package module;The mobile terminal includes script disturbance module and performs mould Block;
The script makes module for generating initial script command corresponding with the operational order at PC ends;
The package module sends the initial script command for encapsulation and to default mobile terminal;
Script disturbance module be used to carrying out the parameter preset in the initial script command according to random perturbation algorithm with Machine disturbs, and generates secondary script command;The secondary script command is suitable for the mobile terminal execution;
The execution module is used to perform the secondary script command.
Preferably, in embodiments of the present invention, the random perturbation algorithm includes multiple, each random perturbation algorithm with Default order species is corresponding;The order species includes clicking, double-clicking, sliding, in long-press, input, button and delay A kind of and its any combination;
It is described that random perturbation is carried out to the parameter preset in the initial script command according to random perturbation algorithm, including:
According to random perturbation algorithm corresponding with the order species of the initial script command, in the initial script command Parameter preset carries out random perturbation.
Preferably, in embodiments of the present invention, the parameter preset includes:
Coordinate value, dead time, sliding speed in the initial script command and one kind in sliding distance and its arbitrary group It closes.
Preferably, in embodiments of the present invention, the mobile terminal includes smart mobile phone.
As seen from the above, in embodiments of the present invention, before generation finally can be by the script command of mobile terminal execution, Random perturbation has been carried out to some parameter presets in script command in advance, even so as to perform identical order, it also can be by In the difference of parameter preset so that the executive mode of the order difference, for example, can cause the specific behaviour in mobile terminal The difference such as sliding distance, sliding speed when generating time interval when clicking on, sliding;Due to being implemented by the present invention Example when carrying out the simulation of the input and output of mobile terminal, can simulate people at PC ends by way of making command script The otherness of generated order when work operates mobile terminal(The difference includes, error of coordinate, velocity error per subcommand And range error and, order perform the time interval simultaneously differ), so as to improve the operation simulated and manually behaviour Therefore the similarity of work, also just reduces and identifies above-mentioned simulated operation by the APP of mobile terminal as mechanically operated probability, And then caused by also just reducing therefrom the problems such as simulated operation failure.
Description of the drawings
It in order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the step schematic diagram of the input and output analogy method of mobile terminal described in the embodiment of the present invention;
Fig. 2 is the another step schematic diagram of the input and output analogy method of mobile terminal described in the embodiment of the present invention
Fig. 3 is the structure diagram of the input and output simulation system of mobile terminal described in the embodiment of the present invention;
Fig. 4 is the another structure diagram of the input and output simulation system of mobile terminal described in the embodiment of the present invention.
Specific embodiment
The present invention can carry out numerous variations, can have various embodiments, illustrate specific embodiment in the accompanying drawings, and It is described in detail in specific embodiment.If it is expressly understood that while referring to the drawings with reference to the embodiment described in detail The effect and feature of the present invention and the method for realizing these.But the present invention can be realized and is not only restricted in many ways Embodiment as disclosed below.
Below in an example, first, second grade terms are so that an element and other elements to be distinguished Purpose use, without the meaning of restriction.
Below in an example, the statement on singulative, as long as not being to conclusively show other contain in article Justice, the then statement of the singulative also include the statement of plural form.
Below in an example, the terms such as " comprising " or " having " mean that feature recorded in specification or composition will The presence of element, is not the additional possibility for excluding more than one other feature or element in advance.
Below in an example, when film, region and element when part be located at other parts above and over when, no Only include the situation positioned at the surface of other parts, be also included between it and be provided with other films, region and element etc. Situation.
The size of element can be zoomed in or out for convenience of explanation in the accompanying drawings.For example, for convenience of explanation, Arbitrarily represent the size and thickness of attached each structure shown in figure, therefore the present invention might not be limited to the content of diagram.
Below in an example, x-axis, y-axis and z-axis are not limited to three axis that rectangular co-ordinate is fastened, and can use bag These broad sense is included to explain the x-axis, y-axis and z-axis.For example, x-axis, y-axis and z-axis may be orthogonal to each other, it is also possible to refer to each other Non-orthogonal mutually different direction.
In the case where a certain embodiment can be realized as other modes, specific process sequence can also with it is illustrated suitable Sequence is differently implemented.For example, the two kinds of processes continuously illustrated can essentially be realized simultaneously, and can also with it is illustrated Sequentially opposite order carries out.
In the following, referring to the drawings, the embodiment of the present invention is described in detail, when being described with reference to the accompanying drawings, to phase With or corresponding element put on identical reference numeral, and omit the repeated explanation to the element.
Embodiment one
The defects of simulated operation goes out not manual operation is easily identified in the prior art in order to overcome, in the embodiment of the present invention In, a kind of control method of mobile terminal is provided, as shown in Figure 1, including step:
S11, generation initial script command corresponding with the operational order at PC ends;
Technological means same as the prior art may be employed in this step in the embodiment of the present invention, and movement can be simulated to generate In embodiments of the present invention, the script command generated according to conventional means is referred to as just for the script command of terminal input and output Beginning script command.
According to the difference of order species, it is necessary to set different parameters in script in initial script command, for example, it is double It hits in order, it is necessary to the time interval for setting the coordinate value of click and double-clicking;And for slide order, then setting is needed to slide The sliding length of dynamic process(It can be set by the origin coordinates value and end coordinate value of operation)And sliding speed etc..
In practical applications, order species can specifically include clicking, double-click, sliding, long-press, input, button and delay Deng.
S12, random perturbation, generation two carry out the parameter preset in the initial script command according to random perturbation algorithm Secondary script command;
Inventor has found why the simulated operation of mobile terminal can be identified, major reason just includes, The operational order simulated in the prior art according to script command has apparent mechanical property;Specifically, for example, when existing When the operational order simulated in technology is repetitive operation, then operation can all have complete uniformity every time, every time Sliding distance during slide is identical, sliding speed identical each double click operation when time interval it is mutually equal;And why There is apparent mechanical property when being present with analog manual operation, be because the parameter value of above-mentioned parameter is general in the prior art It is being all to determine or have that certain rule is governed, so that also corresponding according to the operational order that these parameters generate It is provided with apparent mechanicalness.
Based on above cognition, in embodiments of the present invention, there is provided random perturbation mechanism, i.e. passes through random perturbation algorithm A certain range of random perturbation is carried out to parameter preset, is not influencing the implementation effect of its operational order generated to realize Under the premise of, each parameter is made all to be varied from.
In embodiments of the present invention, typical parameter preset can include initial script command in coordinate value, pause when Between, sliding speed and sliding distance etc..The setting of parameter preset can be according to the different and different of operational order species, only Can influence the uniformity of the operational order simulated, those skilled in the art can sets itself as needed, herein simultaneously Specific restriction is not done.
Specifically, exemplified by sliding and order, in initial script command, by the sliding distance of the slip order, this is pre- The parameter value of setting parameter is set to 3 centimetres(In practical applications, which can be embodied by the difference of coordinate value), in order to It is all otherwise varied when the operational order being made to perform every time, then we can be using random forcing function come to each slip life Sliding distance in order is rewritten;For example, if 3 centimetres of positive and negative 10% sliding distance does not all interfere with the slip order Implementation effect, then, we can set include random forcing function random perturbation algorithm come it is right in the range This parameter preset of sliding distance is into row stochastic rewriting, in this way, in secondary script command, the value of the parameter preset can at certain 3.1 centimetres can be rewritten as, just 2.9 centimetres are rewritten as again next time;So as to be no longer to include identical ginseng every time Numerical value.
S13, encapsulation simultaneously send secondary script command to default mobile terminal, and secondary script command is for described mobile whole End performs.
After secondary script command is generated, PC ends are packaged secondary script command, then can be by the script Order is sent to mobile terminal.
For mobile terminal after the secondary script command is got, default application program can start the script command to hold Row operational order corresponding with secondary script command.
Since in the embodiment of the present invention, the parameter in each secondary script command all can be different, therefore will influence To the mode of the concrete operations in mobile terminal;For example, the slip that the slip simulated according to first time script command is ordered Distance is 3.1 centimetres, and the sliding distance that the slip simulated according to second of script command is ordered is 2.9 centimetres;Similar, In embodiments of the present invention, can also change every time double-click order click time interval and, change slide when Sliding speed;Even, by the embodiment of the present invention, can also realize the pause of slide process, come simulate people thinking or It is operating characteristic when hesitating.
In conclusion the embodiment of the present invention generation finally can be by the script command of mobile terminal execution before, in advance to foot Some parameter presets in this order have carried out random perturbation, even so as to perform identical order, also due to default ginseng Several difference so that the executive mode of the order difference, for example, it is all so that the concrete operations in mobile terminal generate Time interval when such as clicking on, sliding distance when sliding, sliding speed difference;Due to by the embodiment of the present invention, in PC End when carrying out the simulation of the input and output of mobile terminal, can simulate manual operation by way of making command script and move The otherness of generated order during dynamic terminal(The difference includes, per the error of coordinate of subcommand, velocity error and apart from by mistake Difference and, order perform the time interval simultaneously differ), so as to improve the operation simulated to it is manually-operated similar Therefore degree, also just reduces and identifies above-mentioned simulated operation by the APP of mobile terminal as mechanically operated probability, and then also The problems such as simulated operation caused by reducing therefrom fails.
Embodiment two
In the another side of the embodiment of the present invention, the input and output analogy method of another mobile terminal is additionally provided, such as Fig. 2 institutes Show, including step:
S21, generation initial script command corresponding with the operational order at PC ends;
Firstly the need of explanation, the embodiment of the present invention is consistent with the invention thinking of embodiment one, the difference is that the present invention is real Apply in example, the main body for implementing random perturbation has been arranged on this one side of mobile terminal, rather than in embodiment one like that by random perturbation Executive agent be arranged on PC ends.
Based on above-mentioned variation, in embodiments of the present invention, it is according to routine of the prior art first that PC ends, which need to perform, Means generate initial script command corresponding with the operational order at PC ends.
According to the difference of order species, it is necessary to set different parameters in script in initial script command, for example, it is double It hits in order, it is necessary to the time interval for setting the coordinate value of click and double-clicking;And for slide order, then setting is needed to slide The sliding length of dynamic process(It can be set by the origin coordinates value and end coordinate value of operation)And sliding speed etc..
In practical applications, order species can specifically include clicking, double-click, sliding, long-press, input, button and delay Deng.
S22, encapsulation simultaneously send initial script command to default mobile terminal;
In the embodiment of the present invention, initial script command is not modified, but is directly packaged and sends.
S23, mobile terminal carry out random perturbation according to random perturbation algorithm to the parameter preset in initial script command, raw Into secondary script command;The secondary script command is suitable for the mobile terminal execution;
Acquisition for mobile terminal carries out parameter preset by random perturbation algorithm a certain range of random to initial script command Disturbance to realize on the premise of the implementation effect of operational order of its generation is not influenced, makes each parameter all be varied from.
In embodiments of the present invention, typical parameter preset can include initial script command in coordinate value, pause when Between, sliding speed and sliding distance etc..The setting of parameter preset can be according to the different and different of operational order species, only Can influence the uniformity of the operational order simulated, those skilled in the art can sets itself as needed, herein simultaneously Specific restriction is not done.
Specifically, exemplified by sliding and order, in initial script command, by the sliding distance of the slip order, this is pre- The parameter value of setting parameter is set to 3 centimetres(In practical applications, which can be embodied by the difference of coordinate value), in order to It is all otherwise varied when the operational order being made to perform every time, then we can be using random forcing function come to each slip life Sliding distance in order is rewritten;For example, if 3 centimetres of positive and negative 10% sliding distance does not all interfere with the slip order Implementation effect, then, we can set include random forcing function random perturbation algorithm come it is right in the range This parameter preset of sliding distance is into row stochastic rewriting, in this way, in secondary script command, the value of the parameter preset can at certain 3.1 centimetres can be rewritten as, just 2.9 centimetres are rewritten as again next time;So as to be no longer to include identical ginseng every time Numerical value.
The secondary script command of S24, mobile terminal execution.
For mobile terminal after secondary script command is generated, default application program can start the script command to perform Operational order corresponding with secondary script command.
Since in the embodiment of the present invention, the parameter in each secondary script command all can be different, therefore will influence To the mode of the concrete operations in mobile terminal;For example, the slip that the slip simulated according to first time script command is ordered Distance is 3.1 centimetres, and the sliding distance that the slip simulated according to second of script command is ordered is 2.9 centimetres;Similar, In embodiments of the present invention, can also change every time double-click order click time interval and, change slide when Sliding speed;Even, by the embodiment of the present invention, can also realize the pause of slide process, come simulate people thinking or It is operating characteristic when hesitating.
In conclusion the embodiment of the present invention generation finally can be by the script command of mobile terminal execution before, in advance to foot Some parameter presets in this order have carried out random perturbation, even so as to perform identical order, also due to default ginseng Several difference so that the executive mode of the order difference, for example, it is all so that the concrete operations in mobile terminal generate Time interval when such as clicking on, sliding distance when sliding, sliding speed difference;Due to by the embodiment of the present invention, in PC End when carrying out the simulation of the input and output of mobile terminal, can simulate manual operation by way of making command script and move The otherness of generated order during dynamic terminal(The difference includes, per the error of coordinate of subcommand, velocity error and apart from by mistake Difference and, order perform the time interval simultaneously differ), so as to improve the operation simulated to it is manually-operated similar Therefore degree, also just reduces and identifies above-mentioned simulated operation by the APP of mobile terminal as mechanically operated probability, and then also The problems such as simulated operation caused by reducing therefrom fails.
Embodiment three
In the another side of the embodiment of the present invention, a kind of input and output simulation system of mobile terminal is additionally provided, PC ends 10 and move Dynamic terminal 20;PC ends 10 include script and make module 11, script disturbance module 12 and package module 13;Mobile terminal 20 includes holding Row module 21;
Script makes module 11 for generating initial script command corresponding with the operational order at PC ends;Script disturbance module 12 is used In carrying out random perturbation to the parameter preset in initial script command according to random perturbation algorithm, secondary script command is generated;Envelope Secondary script command is sent for encapsulation and to default mobile terminal for die-filling piece 13;Execution module 21 is used to perform secondary script Order.
In practical applications, script included by the PC ends 10 in the embodiment of the present invention makes module 11, script disturbance module 12 and package module 12 and, execution module 21 included by mobile terminal 20 can be realized by the form of software;Tool The working method of body can include:
At PC ends, script makes module 11 and initial foot corresponding with the operational order at PC ends 10 is generated by conventional technical means This order;Then, script disturbance module 12 implements random perturbation mechanism, parameter preset is carried out by random perturbation algorithm certain In the range of random perturbation, with realize do not influence its generation operational order implementation effect on the premise of, make each ginseng Number is all varied from.After secondary script command is generated, secondary script command is packaged by package module 13, then should Script command is sent to mobile terminal 10.
It is logical for performing the execution module 21 of secondary script command after getting the secondary script command in mobile terminal It crosses and starts the script command to perform operational order corresponding with secondary script command.
Since in the embodiment of the present invention, the parameter in each secondary script command all can be different, therefore will influence To the mode of the concrete operations in mobile terminal;For example, the slip that the slip simulated according to first time script command is ordered Distance is 3.1 centimetres, and the sliding distance that the slip simulated according to second of script command is ordered is 2.9 centimetres;Similar, In embodiments of the present invention, can also change every time double-click order click time interval and, change slide when Sliding speed;Even, by the embodiment of the present invention, can also realize the pause of slide process, come simulate people thinking or It is operating characteristic when hesitating.
In conclusion the embodiment of the present invention generation finally can be by the script command of mobile terminal execution before, in advance to foot Some parameter presets in this order have carried out random perturbation, even so as to perform identical order, also due to default ginseng Several difference so that the executive mode of the order difference, for example, it is all so that the concrete operations in mobile terminal generate Time interval when such as clicking on, sliding distance when sliding, sliding speed difference;Due to by the embodiment of the present invention, in PC End when carrying out the simulation of the input and output of mobile terminal, can simulate manual operation by way of making command script and move The otherness of generated order during dynamic terminal(The difference includes, per the error of coordinate of subcommand, velocity error and apart from by mistake Difference and, order perform the time interval simultaneously differ), so as to improve the operation simulated to it is manually-operated similar Therefore degree, also just reduces and identifies above-mentioned simulated operation by the APP of mobile terminal as mechanically operated probability, and then also The problems such as simulated operation caused by reducing therefrom fails.
Example IV
In the another side of the embodiment of the present invention, the input and output simulation system of another mobile terminal, 30 He of PC ends are additionally provided Mobile terminal 40;PC ends 330 include script and make module 31 and package module 32;Mobile terminal 40 includes script and disturbs module 41 and execution module 42;
Script makes module 31 for generating initial script command corresponding with the operational order at PC ends 30;Package module 32 is used for It encapsulates and sends initial script command to default mobile terminal 40;Script disturbance module 41 is used for according to random perturbation algorithm pair Parameter preset in initial script command carries out random perturbation, generates secondary script command;Secondary script command is suitable for mobile whole End 40 performs;Execution module 42 is used to perform the secondary script command.
In practical applications, script included by the PC ends 30 in the embodiment of the present invention makes module 31 and script disturbance module 32 and, package module 41 included by mobile terminal 40 and execution module 42 can be realized by the form of software;Tool The working method of body can include:
At PC ends, script makes module 31 and initial foot corresponding with the operational order at PC ends 30 is generated by conventional technical means This order;Then, initial script command is packaged by package module 32, and will the script command be sent to mobile terminal 40。
In mobile terminal, after getting the initial script command, module 41 is disturbed by its script to implement random perturbation Mechanism carries out a certain range of random perturbation to parameter preset by random perturbation algorithm, is not influencing its generation to realize Operational order implementation effect on the premise of, each parameter is made all to be varied from.After secondary script command is generated, use Behaviour corresponding with secondary script command is performed by starting the script command in the execution module 42 for performing secondary script command It orders.
Since in the embodiment of the present invention, the parameter in each secondary script command all can be different, therefore will influence To the mode of the concrete operations in mobile terminal;For example, the slip that the slip simulated according to first time script command is ordered Distance is 3.1 centimetres, and the sliding distance that the slip simulated according to second of script command is ordered is 2.9 centimetres;Similar, In embodiments of the present invention, can also change every time double-click order click time interval and, change slide when Sliding speed;Even, by the embodiment of the present invention, can also realize the pause of slide process, come simulate people thinking or It is operating characteristic when hesitating.
In conclusion the embodiment of the present invention generation finally can be by the script command of mobile terminal execution before, in advance to foot Some parameter presets in this order have carried out random perturbation, even so as to perform identical order, also due to default ginseng Several difference so that the executive mode of the order difference, for example, it is all so that the concrete operations in mobile terminal generate Time interval when such as clicking on, sliding distance when sliding, sliding speed difference;Due to by the embodiment of the present invention, in PC End when carrying out the simulation of the input and output of mobile terminal, can simulate manual operation by way of making command script and move The otherness of generated order during dynamic terminal(The difference includes, per the error of coordinate of subcommand, velocity error and apart from by mistake Difference and, order perform the time interval simultaneously differ), so as to improve the operation simulated to it is manually-operated similar Therefore degree, also just reduces and identifies above-mentioned simulated operation by the APP of mobile terminal as mechanically operated probability, and then also The problems such as simulated operation caused by reducing therefrom fails.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light The various media that can store program code such as disk.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used To modify to the technical solution recorded in foregoing embodiments or carry out equivalent substitution to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical solution spirit and Scope.

Claims (10)

1. a kind of input and output analogy method of mobile terminal, which is characterized in that including:
Generation initial script command corresponding with the operational order at PC ends;
Random perturbation is carried out to the parameter preset in the initial script command according to random perturbation algorithm, generates secondary script life Order;
It encapsulates and sends the secondary script command to default mobile terminal, the secondary script command is for described mobile whole End performs.
2. a kind of input and output analogy method of mobile terminal, which is characterized in that including:
Generation initial script command corresponding with the operational order at PC ends;
It encapsulates and sends the initial script command to default mobile terminal;
The mobile terminal carries out random perturbation according to random perturbation algorithm to the parameter preset in the initial script command, raw Into secondary script command;The secondary script command is suitable for the mobile terminal execution;
Secondary script command described in the mobile terminal execution.
3. the input and output analogy method of the mobile terminal according to claim 1 or 2, which is characterized in that described to disturb at random Dynamic algorithm includes multiple, and each random perturbation algorithm is corresponding with default order species;The order species include click, Double-click, slip, long-press, input, button and one kind and its any combination in delay;
It is described that random perturbation is carried out to the parameter preset in the initial script command according to random perturbation algorithm, including:
According to random perturbation algorithm corresponding with the order species of the initial script command, in the initial script command Parameter preset carries out random perturbation.
4. the input and output analogy method of the mobile terminal according to claim 1 or 2, which is characterized in that the default ginseng Number includes:
Coordinate value, dead time, sliding speed in the initial script command and one kind in sliding distance and its arbitrary group It closes.
5. the input and output analogy method of the mobile terminal according to claim 1 or 2, which is characterized in that described mobile whole End includes smart mobile phone.
6. a kind of input and output simulation system of mobile terminal, which is characterized in that including:PC ends and mobile terminal;
The PC ends include script and make module, script disturbance module and package module;The mobile terminal includes execution module;
The script makes module for generating initial script command corresponding with the operational order at PC ends;
Script disturbance module be used to carrying out the parameter preset in the initial script command according to random perturbation algorithm with Machine disturbs, and generates secondary script command;
The package module sends the secondary script command for encapsulation and to default mobile terminal;
The execution module is used to perform the secondary script command.
7. the input and output simulation system of a kind of mobile terminal, which is characterized in that including PC ends and mobile terminal;
The PC ends include script and make module and package module;The mobile terminal includes script disturbance module and performs mould Block;
The script makes module for generating initial script command corresponding with the operational order at PC ends;
The package module sends the initial script command for encapsulation and to default mobile terminal;
Script disturbance module be used to carrying out the parameter preset in the initial script command according to random perturbation algorithm with Machine disturbs, and generates secondary script command;The secondary script command is suitable for the mobile terminal execution;
The execution module is used to perform the secondary script command.
8. the input and output simulation system of the mobile terminal according to claim 6 or 7, which is characterized in that described to disturb at random Dynamic algorithm includes multiple, and each random perturbation algorithm is corresponding with default order species;The order species include click, Double-click, slip, long-press, input, button and one kind and its any combination in delay;
It is described that random perturbation is carried out to the parameter preset in the initial script command according to random perturbation algorithm, including:
According to random perturbation algorithm corresponding with the order species of the initial script command, in the initial script command Parameter preset carries out random perturbation.
9. the input and output simulation system of the mobile terminal according to claim 6 or 7, which is characterized in that the default ginseng Number includes:
Coordinate value, dead time, sliding speed in the initial script command and one kind in sliding distance and its arbitrary group It closes.
10. the input and output simulation system of the mobile terminal according to claim 6 or 7, which is characterized in that described mobile whole End includes smart mobile phone.
CN201710708088.6A 2017-08-17 2017-08-17 The input and output analogy method and simulation system of mobile terminal Pending CN108073529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710708088.6A CN108073529A (en) 2017-08-17 2017-08-17 The input and output analogy method and simulation system of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710708088.6A CN108073529A (en) 2017-08-17 2017-08-17 The input and output analogy method and simulation system of mobile terminal

Publications (1)

Publication Number Publication Date
CN108073529A true CN108073529A (en) 2018-05-25

Family

ID=62159169

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710708088.6A Pending CN108073529A (en) 2017-08-17 2017-08-17 The input and output analogy method and simulation system of mobile terminal

Country Status (1)

Country Link
CN (1) CN108073529A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455403A (en) * 2013-08-26 2013-12-18 百度在线网络技术(北京)有限公司 Testing method and device
CN103761096A (en) * 2014-01-22 2014-04-30 广东欧珀移动通信有限公司 Automatic input method and device achieved based on IBinder mechanism
CN104679627A (en) * 2013-12-02 2015-06-03 腾讯科技(深圳)有限公司 Testing method and device
CN105572130A (en) * 2015-12-11 2016-05-11 宁波普天通信技术有限公司 Touch screen terminal test method and device
CN106973399A (en) * 2017-03-25 2017-07-21 努比亚技术有限公司 A kind of data transmission disposal method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455403A (en) * 2013-08-26 2013-12-18 百度在线网络技术(北京)有限公司 Testing method and device
CN104679627A (en) * 2013-12-02 2015-06-03 腾讯科技(深圳)有限公司 Testing method and device
CN103761096A (en) * 2014-01-22 2014-04-30 广东欧珀移动通信有限公司 Automatic input method and device achieved based on IBinder mechanism
CN105572130A (en) * 2015-12-11 2016-05-11 宁波普天通信技术有限公司 Touch screen terminal test method and device
CN106973399A (en) * 2017-03-25 2017-07-21 努比亚技术有限公司 A kind of data transmission disposal method and mobile terminal

Similar Documents

Publication Publication Date Title
CN106874174B (en) Method and device for realizing interface test and function test
CN109446570B (en) Business process display method, device, computer equipment and storage medium
CN104699591A (en) Reappearing method and device of test scenes
KR20160125401A (en) Inline and context aware query box
CN103984626A (en) Method and device for generating test-case script
CN106774028A (en) A kind of robot control method and device based on time shaft
WO2016148837A1 (en) Optimization of hardware monitoring for computing devices
CN106293470A (en) The execution method and device of touch control operation
US20150007130A1 (en) Software development using gestures
CN104267931A (en) Electronic equipment and method for processing information
CN106201308A (en) A kind of pressing operation method and electronic equipment
US9451423B2 (en) Method and apparatus for recording information during a call
CN104216646A (en) Method and device for creating application program based on gesture
CN102968313B (en) The generation method and terminal of a kind of desktop widget
CN104267867A (en) Content input method and device
WO2021233115A1 (en) Method and apparatus for modifying file name, and storage medium
CN104090724A (en) Method and device for operating files through gestures of double fingers in intelligent terminal
CN103902161A (en) Interface display method and device of application programs
CN108073529A (en) The input and output analogy method and simulation system of mobile terminal
CN106020712B (en) Touch gesture recognition method and device
CN109521914A (en) Restore the methods, devices and systems of data in file
CN103678383B (en) A kind of data processing method and electronic equipment
CN106937001A (en) A kind of audio store method and mobile terminal
CN104881222B (en) Man-machine interaction method and device
CN107193736A (en) Method of testing, device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180525

RJ01 Rejection of invention patent application after publication