CN109144840A - A kind of test method, device and its equipment - Google Patents
A kind of test method, device and its equipment Download PDFInfo
- Publication number
- CN109144840A CN109144840A CN201710457362.7A CN201710457362A CN109144840A CN 109144840 A CN109144840 A CN 109144840A CN 201710457362 A CN201710457362 A CN 201710457362A CN 109144840 A CN109144840 A CN 109144840A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- class
- action sequence
- test
- event
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Abstract
The application provides a kind of test method, device and its equipment, this method comprises: obtaining action sequence;Wherein, the action sequence is that first kind mobile terminal generates when testing target program;It is tested using the target program of the action sequence to the second class mobile terminal.Pass through the technical solution of the application, the action sequence that mobile terminal available other mobile terminals generate when testing target program, and it is tested using target program of the action sequence to itself, to avoid being tested respectively in a large amount of mobile terminals, the workload reduced repeated labor, test job amount is lower, and working efficiency is higher, it solves the problems, such as that testing efficiency is low, promotes testing efficiency.
Description
Technical field
This application involves Internet technical field more particularly to a kind of test methods, device and its equipment.
Background technique
Automatic test is will to be converted into a kind of process that machine executes taking human as the behavioral test of driving.Usual situation
Under, after devising test case and passing through evaluation, tester's regulation according to described in test case executes survey step by step
Examination, obtains actual result compared with expected result.In the process, it in order to save manpower, time or hardware resource, improves and surveys
Efficiency is tried, the concept of automatic test is just introduced.Automatic test can by using automatic testing instrument, automation it is complete
At functional test and performance test, to reduce the work of tester.Further, in order to guarantee the quality using (i.e. APP),
It usually requires to carry out application automatic test, this automatic test refers to the Experience of Software Testing Work for application, including function
Energy test and performance test, whether functional test includes that the institute of test application is functional can be used, if bug phenomenon etc. occurs, property
Can test includes whether test user's process for using is smooth, such as payment flow, register flow path etc..
Currently, during the test, since application may be installed in the mobile terminal of various models, various systems,
Therefore, it in order to guarantee the quality applied, needs to be tested in the mobile terminal of multiple models, multiple systems.For example, in model
The mobile terminal of 1+ system 1 tested ..., tested, in model 2+ system 1 in the mobile terminal of model 1+ system 6
Mobile terminal is tested, and so on, as such, it is desirable to be tested respectively in a large amount of mobile terminal, test job amount
It is very big, and working efficiency is lower, it is also possible to occur due to repeated labor bring work fatigue, so as to cause the accurate of test
Property reduce.
Summary of the invention
The application provides a kind of test method, is applied to the second class mobile terminal, which comprises
Obtain action sequence;Wherein, the action sequence is production when first kind mobile terminal tests target program
Raw;
It is tested using the target program of the action sequence to the second class mobile terminal.
The application provides a kind of test method, is applied to server-side, which comprises
Receive the action sequence from first kind mobile terminal;Wherein, the action sequence is that the first kind is mobile eventually
What end generated when testing target program;
The action sequence is sent to the second class mobile terminal, so that the second class mobile terminal utilizes the movement
Sequence tests the target program of the second class mobile terminal.
The application provides a kind of test device, is applied to the second class mobile terminal, and described device includes:
Module is obtained, for obtaining action sequence;Wherein, the action sequence is first kind mobile terminal to target program
It is generated when being tested;
Test module, for being surveyed using the target program of the action sequence to the second class mobile terminal
Examination.
The application provides a kind of test device, is applied to server-side, and described device includes:
Receiving module, for receiving the action sequence from first kind mobile terminal;Wherein, the action sequence is described
What first kind mobile terminal generated when testing target program;
Sending module, for the action sequence to be sent to the second class mobile terminal, so that second class is mobile eventually
End is tested using the target program of the action sequence to the second class mobile terminal.
The application provides a kind of second class mobile terminal, and the second class mobile terminal includes:
Processor, for obtaining action sequence;Wherein, the action sequence be first kind mobile terminal to target program into
It is generated when row test;It is tested using the target program of the action sequence to the second class mobile terminal.
The application provides a kind of server-side, and the server-side includes:
Receiver, for receiving the action sequence from first kind mobile terminal;Wherein, the action sequence is described
What a kind of mobile terminal generated when testing target program;
Transmitter, for the action sequence to be sent to the second class mobile terminal, so that the second class mobile terminal
It is tested using the target program of the action sequence to the second class mobile terminal.
Based on the above-mentioned technical proposal, in the embodiment of the present application, the available other mobile terminals of mobile terminal are to target journey
The action sequence generated when sequence is tested, and tested using target program of the action sequence to itself, to avoid
Tested respectively in a large amount of mobile terminals, the workload reduced repeated labor, test job amount is lower, working efficiency compared with
Height solves the problems, such as that testing efficiency is low, promotes testing efficiency.
Detailed description of the invention
It, below will be to the application in order to clearly illustrate the embodiment of the present application or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is only some embodiments as described in this application, for those of ordinary skill in the art, can also be according to this Shen
Please these attached drawings of embodiment obtain other attached drawings.
Fig. 1 is the flow chart of the test method in a kind of embodiment of the application;
Fig. 2 is the flow chart of the test method in the application another embodiment;
Fig. 3 A- Fig. 3 C is the test schematic diagram in a kind of embodiment of the application;
Fig. 4 A and Fig. 4 B are the test schematic diagrams in a kind of embodiment of the application;
Fig. 5 is the structure chart of the test device in a kind of embodiment of the application;
Fig. 6 is the structure chart of the test device in a kind of embodiment of the application.
Specific embodiment
In term used in this application merely for the sake of for the purpose of describing particular embodiments, rather than limit the application.This Shen
Please it is also intended to the "an" of singular used in claims, " described " and "the" including most forms, unless
Context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one or more
Associated any or all of project listed may combine.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, in addition, used word " if " can be construed to " ... when " or " when ... "
Or " in response to determination ".
The embodiment of the present application proposes that a kind of test method, this method can be applied to the second class mobile terminal, referring to Fig. 1 institute
Show, be the flow chart of the test method in the embodiment of the present application, this method may include:
Step 101, action sequence is obtained, which is production when first kind mobile terminal tests target program
Raw, which refers to other mobile terminals except this second class mobile terminal.
Step 102, it is tested using the target program of the action sequence to the second class mobile terminal.
In one example, above-mentioned execution sequence is intended merely to an example for facilitating description given, in practical application
In, it can also change and execute sequence between each step, with no restrictions to this execution sequence.
In one example, first kind mobile terminal is the shifting for referring to for action sequence being supplied to the second class mobile terminal
Dynamic terminal, the second class mobile terminal is the mobile terminal for referring to be tested based on the action sequence of first kind mobile terminal.
In addition, action sequence can also be supplied to other second class mobile terminals by the second class mobile terminal, so that other second classes are moved
Dynamic terminal can be tested based on this as sequence.
In one example, above-mentioned target program can be the application (i.e. APP) installed on mobile terminal, be also possible to move
Some program that dynamic terminal itself is installed, with no restrictions to this target program.
In one example, it for the process of " obtaining action sequence ", can include but is not limited to: receiving server-side and send
Action sequence;Alternatively, receiving the action sequence that first kind mobile terminal is sent.
In one example, which may include test event information, for " using the action sequence to second
The target program of class mobile terminal is tested " process, can include but is not limited to: to the mesh of the second class mobile terminal
Beacon course sequence executes test event corresponding with the test event information.
Wherein, which can include but is not limited to following one or any combination: event type, event
Coding, event value.
In one example, which can also include input equipment type, for " using the action sequence to the
The target program of two class mobile terminals is tested " process, can also include but is not limited to: obtain the second class mobile terminal
Device type, and the input equipment type is revised as to the device type of the second class mobile terminal.
In one example, test corresponding with test event information is executed in the target program to the second class mobile terminal
Before event, event compensation deals can also be carried out to the event value that the test event information includes, this is based on, to the second class
During the target program of mobile terminal executes test event corresponding with the test event information, test used herein
The event value that event information includes just refers to the event value by event compensation deals.
In one example, after being tested using target program of the action sequence to the second class mobile terminal, also
The action sequence that the available second class mobile terminal generates when testing target program;Then, the second class is mobile eventually
The action sequence of generation can be sent to server-side by end, so that the action sequence of generation is sent to the movement of the second class by server-side
Terminal, alternatively, the action sequence of generation directly can be sent to other second class mobile terminals by the second class mobile terminal.
In one example, the second class mobile terminal and first kind mobile terminal can be located in the same equivalence class, the
Two class mobile terminals and other second class mobile terminals can be located in the same equivalence class.
It in one example, can be according to the resolution ratio of the second class mobile terminal and the resolution of other mobile terminals
Rate, determining first kind mobile terminal and/or the shifting of other second classes being located in the same equivalence class with the second class mobile terminal
Dynamic terminal;Alternatively, can according to the performance of the second class mobile terminal and the performance of other mobile terminals, determine with this second
Class mobile terminal is located at first kind mobile terminal and/or other second class mobile terminals in the same equivalence class.
Based on the above-mentioned technical proposal, in the embodiment of the present application, the available other mobile terminals of mobile terminal are to target journey
The action sequence generated when sequence is tested, and tested using target program of the action sequence to itself, to avoid
Tested respectively in a large amount of mobile terminals, the workload reduced repeated labor, test job amount is lower, working efficiency compared with
Height solves the problems, such as that testing efficiency is low, promotes testing efficiency.
The embodiment of the present application proposes a kind of test method, and this method can be applied to server-side, shown in Figure 2, for this
Apply for the flow chart of the test method in embodiment, this method may comprise steps of:
Step 201, the action sequence from first kind mobile terminal is received, it is mobile which can be the first kind
It is generated when terminal tests target program.Wherein, which can include but is not limited to: test event information with
And input equipment type, further, which can include but is not limited to following one or any combination: thing
Part type, event code, event value.
Step 202, which is sent to the second class mobile terminal, so that the second class mobile terminal is dynamic using this
Make sequence to test the target program of the second class mobile terminal.
In one example, above-mentioned execution sequence is intended merely to an example for facilitating description given, in practical application
In, it can also change and execute sequence between each step, with no restrictions to this execution sequence.
In one example, before action sequence to be sent to the second class mobile terminal, test event can also be believed
The event value that breath includes carries out event compensation deals, is based on this, is sent in the action sequence of the second class mobile terminal, tests thing
The event value that part information includes is the event value by event compensation deals.
In one example, the first kind mobile terminal and the second class mobile terminal can be located at the same equivalence class
In, furthermore, it is possible to which the first kind mobile terminal and the second class mobile terminal are divided by the resolution ratio according to each mobile terminal
In the same equivalence class;Alternatively, the first kind mobile terminal and second class can also be moved according to the performance of each mobile terminal
Dynamic terminal is divided into the same equivalence class.
Based on the above-mentioned technical proposal, in the embodiment of the present application, the available other mobile terminals of mobile terminal are to target journey
The action sequence generated when sequence is tested, and tested using target program of the action sequence to itself, to avoid
Tested respectively in a large amount of mobile terminals, the workload reduced repeated labor, test job amount is lower, working efficiency compared with
Height solves the problems, such as that testing efficiency is low, promotes testing efficiency.
Below in conjunction with application scenarios shown in Fig. 3 A, the above scheme of the embodiment of the present application is illustrated.With 3 in Fig. 3 A
It is illustrated for a mobile terminal, the mobile terminal quantity of practical application can be more, these mobile terminals can be difference
The mobile terminal of model, not homologous ray, these mobile terminals refer to the mobile terminal for being equipped with same target program, need at this
To the target program (such as application, for the convenience of description, being illustrated by taking application as an example in subsequent process) on a little mobile terminals
Tested (such as automatic test).
In one example, mobile terminal and the communication mode of server-side can be with are as follows: USB (Universal Serial
Bus, universal serial bus) connecting line mode, cable network mode, wireless network mode etc..
In figure 3 a, server-side can first obtain the sorting parameter of each mobile terminal, and according to sorting parameter to each movement
Terminal divides equivalence class, which can include but is not limited to resolution ratio or performance etc..Further, for " service
End according to resolution ratio to each mobile terminal divide equivalence class " process, the shifting that server-side can be same or similar by resolution ratio
Dynamic terminal is divided into the same equivalence class, and the similar resolution ratio difference referred between mobile terminal of resolution ratio is less than preset threshold.
For the process of " server-side divides equivalence class to each mobile terminal according to performance ", server-side can be same or similar by performance
Mobile terminal be divided into the same equivalence class, the similar performance difference referred between mobile terminal of performance is less than preset threshold.
Certainly, in practical application, equivalence class can also be divided to each mobile terminal using other sorting parameters, details are not described herein.
Assuming that mobile terminal 1, mobile terminal 2, mobile terminal 3 are divided into the same equivalence class, mobile terminal 1 by server-side
Application is tested using traditional approach, such as configures test case on a mobile terminal 1, mobile terminal 1 is by executing the survey
Example on probation repeats no more this test process with testing application.Mobile terminal 2 and mobile terminal 3 are no longer using tradition
Mode tests application, but is tested based on the action sequence that mobile terminal 1 provides.In conclusion can will use
It is known as first kind mobile terminal in the mobile terminal (such as mobile terminal 1) for providing action sequence, and other mobile terminals will be used
The mobile terminal (such as mobile terminal 2 and mobile terminal 3) that the action sequence of offer is tested is known as the second class mobile terminal, and
First kind mobile terminal and the second class mobile terminal can be located in the same equivalence class.Moreover, the second class mobile terminal can also
Action sequence is supplied to other second class mobile terminals, as mobile terminal 2 is surveyed using the action sequence of mobile terminal 1
After examination, action sequence can be supplied to mobile terminal 3.
Under above-mentioned application scenarios, referring to shown in Fig. 3 B, which be may comprise steps of:
Step 301, mobile terminal 1 obtains itself and corresponds to the action sequence generated when being tested.
In one example, which may include timestamp, input equipment type and test event information, the survey
Trying event information may include: event type, event code, event value.Wherein, which is the type of current event,
Such as relative coordinate, absolute coordinate, physical keyboard, synchronous thing etc..The event code is the event code based on event type,
Such as x coordinate, y-coordinate, multipoint operation etc..The event value is the value of current event operation, for example x coordinate value, y-coordinate value are pressed
Surging etc..It as shown in Figure 3 C, is an example of action sequence, first is classified as timestamp, and second is classified as input equipment type,
Third is classified as event type, and the 4th is classified as event code, and the 5th is classified as event value.
Step 302, which is sent to server-side by mobile terminal 1.
In one example, which actively can be sent to server-side by mobile terminal 1;Alternatively, at another
In example, server-side can send the querying command for being used for query actions sequence to mobile terminal 1, and mobile terminal 1 is receiving
To after the querying command, which can be sent to server-side.
Step 303, which is sent to mobile terminal 2 and movement after receiving the action sequence by server-side
Terminal 3.Further, it is identical to receive the processing after the action sequence for mobile terminal 2 and mobile terminal 3, for the convenience of description,
It is subsequent to be illustrated by taking the processing of mobile terminal 2 as an example.
Step 304, mobile terminal 2 tests application using the action sequence after receiving action sequence.
In one example, mobile whole for the process of " mobile terminal 2 tests application using the action sequence "
The 2 available device types to this mobile terminal 2 are held, and the input equipment type in the action sequence is revised as this movement
The device type of terminal 2;Then, mobile terminal 2 can compile the event type in the application execution and the action sequence, event
Code, the corresponding test event of event value.
Wherein, every group of event type, event code, event value just correspond to a test event and are therefore obtaining event class
After type, event code, event value, so that it may execute test event corresponding with the event type, event code, event value.
For example, it is assumed that event type is relative coordinate, event code is x coordinate, y-coordinate, event value be x coordinate value, y-coordinate value, by
Surging, the then test event executed can be in x coordinate value position corresponding with the y-coordinate value, according to the pressing dynamics
Carry out pressing operation.
In one example, agent can be disposed in mobile terminal 2, and is parsed from action sequence by agent
Event type, event code, event value, and execute test event corresponding with the event type, event code, event value.And
And due to that may include multiple groups event type, event code, event value in action sequence, it can concurrently execute and multiple groups
The corresponding test event of event type, event code, event value, that is, execute in batches multiple test events, so as to mention
Rise test execution efficiency.
In one example, test corresponding with the event type, event code, event value is executed for mobile terminal 2
The process of event can also be the event value after event compensation deals for the event value.For example, server-side receive it is dynamic
After making sequence, before action sequence is sent to mobile terminal 2, thing can also be carried out to the event value that the action sequence includes
Part compensation deals, in this way, the event value for being sent to mobile terminal 2 is exactly the event value after event compensation deals, and mobile terminal 2
The event value used when executing test event is exactly the event value by event compensation deals.In another example mobile terminal 2 is receiving
To after action sequence, event compensation deals can also be carried out to the event value that the action sequence includes, in this way, mobile terminal 2 is held
The event value used when row test event is exactly the event value by event compensation deals.
Wherein, server-side/mobile terminal 2 carries out the process of event compensation deals to event value, may include: to be pre-configured with
For the strategy of event compensation deals, event compensation deals are carried out to event value based on this strategy.For example, enhancing/reduction pressing
Dynamics, modification x coordinate value and/or y-coordinate value etc., to this for event compensation deals strategy with no restrictions, it is all can be right
Event value carries out the strategy of event compensation deals.
Based on the above-mentioned technical proposal, in the embodiment of the present application, the available other mobile terminals of mobile terminal to application into
The action sequence generated when row test, and the application of this mobile terminal is tested using the action sequence, to avoid
A large amount of mobile terminal is tested respectively, and the workload reduced repeated labor, test job amount is lower, working efficiency compared with
Height solves the problems, such as that testing efficiency is low, promotes testing efficiency.Moreover, action sequence is abstracted by above scheme, i.e., will use
All operations at family are summarized as clicking and sliding and (realize based on above-mentioned event type, event code, event value), versatility meeting
It greatly promotes.Moreover, above scheme to application without any invasive, greatly reduce use cost.Moreover, because can be multiplexed
The mobile terminal of action sequence is located in the same equivalence class, so as to obtain preferable synchronous effect.For example, it is assumed that mobile
Terminal 2 and mobile terminal 3 are multiplexed the action sequence of mobile terminal 1, and are drawn mobile terminal 2 and mobile terminal 3 based on performance
The same equivalence class is assigned to, in this way, mobile terminal 2 is same or similar with the performance of mobile terminal 3, so that mobile terminal
2 and mobile terminal 3 the same time complete test.Moreover, the operating system of above-mentioned mobile terminal can be android etc..
Below in conjunction with application scenarios shown in Fig. 4 A, the above scheme of the embodiment of the present application is illustrated.Fig. 4 A is with 3
It is illustrated for mobile terminal, the mobile terminal quantity of practical application can be more, these mobile terminals can be different shaped
Number, the mobile terminal of not homologous ray, these mobile terminals refer to the mobile terminal of installation same application, need these movements eventually
(such as automatic test) is tested to application on end.Wherein, the communication mode of mobile terminal and mobile terminal can be wired
Network mode, wireless network mode etc..
In Figure 4 A, each mobile terminal sorting parameter of available mobile terminal and other mobile terminals,
And equivalence class is divided to each mobile terminal according to sorting parameter, which can include but is not limited to resolution ratio or performance
Deng.For example, the same or similar mobile terminal of resolution ratio can be divided into the same equivalence class, resolution ratio is similar to refer to shifting
Resolution ratio difference between dynamic terminal is less than preset threshold.In another example mobile terminal that can also be same or similar by performance
It is divided into the same equivalence class, the similar performance difference referred between mobile terminal of performance is less than preset threshold.Certainly, it actually answers
In, equivalence class can also be divided to each mobile terminal using other sorting parameters, details are not described herein.
Assuming that mobile terminal 1, mobile terminal 2, mobile terminal 3 are divided into the same equivalence class, mobile terminal 1 is using biography
System mode tests application, such as configures test case on a mobile terminal 1, and mobile terminal 1, which passes through, executes the test case,
To test application, this test process is repeated no more.Mobile terminal 2 and mobile terminal 3 no longer use traditional approach pair
Using being tested, but tested based on the action sequence that mobile terminal 1 provides.In conclusion can will be used to provide
The mobile terminal (such as mobile terminal 1) of action sequence is known as first kind mobile terminal, and other mobile terminals will be used to provide
The mobile terminal (such as mobile terminal 2 and mobile terminal 3) that action sequence is tested is known as the second class mobile terminal.Moreover, the
Action sequence can also be supplied to other second class mobile terminals by two class mobile terminals, as mobile terminal 2 utilizes mobile terminal 1
Action sequence tested after, action sequence can be supplied to mobile terminal 3.
Under above-mentioned application scenarios, referring to fig. 4 shown in B, which be may comprise steps of:
Step 401, mobile terminal 1 obtains itself and corresponds to the action sequence generated when being tested.
In one example, which may include timestamp, input equipment type and test event information, the survey
Trying event information may include: event type, event code, event value.Wherein, which is the type of current event,
Such as relative coordinate, absolute coordinate, physical keyboard, synchronous thing etc..The event code is the event code based on event type,
Such as x coordinate, y-coordinate, multipoint operation etc..The event value is the value of current event operation, for example x coordinate value, y-coordinate value are pressed
Surging etc..
Step 402, which is sent to mobile terminal 2 and mobile terminal 3 by mobile terminal 1.
Further, the treatment process after the action sequence is received due to mobile terminal 2 and mobile terminal 3 is identical, is
Facilitate description, it is subsequent to be illustrated by taking the treatment process of mobile terminal 2 as an example.
Step 403, mobile terminal 2 tests application using the action sequence after receiving action sequence.
In one example, mobile whole for the process of " mobile terminal 2 tests application using the action sequence "
The 2 available device types to this mobile terminal 2 are held, and the input equipment type in the action sequence is revised as this movement
The device type of terminal 2;Then, mobile terminal 2 can compile the event type in the application execution and the action sequence, event
Code, the corresponding test event of event value.
In one example, test corresponding with the event type, event code, event value is executed for mobile terminal 2
The process of event can be the event value after event compensation deals for the event value.For example, mobile terminal 2 receive it is dynamic
After making sequence, event compensation deals can be carried out to the event value that action sequence includes, be used when in this way, executing test event
Event value is exactly the event value by event compensation deals.
Based on the above-mentioned technical proposal, in the embodiment of the present application, the available other mobile terminals of mobile terminal to application into
The action sequence generated when row test, and the application of this mobile terminal is tested using the action sequence, to avoid
A large amount of mobile terminal is tested respectively, and the workload reduced repeated labor, test job amount is lower, working efficiency compared with
Height solves the problems, such as that testing efficiency is low, promotes testing efficiency.
Based on similarly applying conceiving with the above method, a kind of test device is also provided in the embodiment of the present application, is applied to
Second class mobile terminal, as shown in figure 5, being the structure chart of the test device, described device includes:
Module 501 is obtained, for obtaining action sequence;Wherein, the action sequence is first kind mobile terminal to target
It is generated when program is tested;Test module 502, for the institute using the action sequence to the second class mobile terminal
Target program is stated to be tested.
In one example, the acquisition module 501 is specifically used for during obtaining action sequence, receives service
Hold the action sequence sent;Alternatively, receiving the action sequence that first kind mobile terminal is sent;
The acquisition module 501 is also used to move second class using the action sequence in the test module 502
After the target program of dynamic terminal is tested, obtains the second class mobile terminal and the target program is tested
When the action sequence that generates;The action sequence of generation is sent to server-side, so that the server-side is by the movement of the generation
Sequence is sent to other second class mobile terminals, alternatively, the action sequence of generation is sent to other second class mobile terminals.
The action sequence includes test event information, the test module 502, is specifically used for utilizing the movement sequence
During column test the target program of the second class mobile terminal, to the institute of the second class mobile terminal
It states target program and executes test event corresponding with the test event information;
Wherein, the test event information includes following one or any combination: event type, event code, event
Value;The test module is also used to execute and the test event in the target program to the second class mobile terminal
Before the corresponding test event of information, event compensation deals are carried out to the event value that the test event information includes;It is described dynamic
It further include input equipment type as sequence, the test module 502 is specifically used in the utilization action sequence to described second
During the target program of class mobile terminal is tested, the input equipment type is revised as second class and is moved
The device type of dynamic terminal.
In one example, the test device further includes (not embodying in figure): determining module, for according to described the
The resolution ratio of two class mobile terminals and the resolution ratio of other mobile terminals, determination are located at same with the second class mobile terminal
First kind mobile terminal and/or other second class mobile terminals in equivalence class;Alternatively, according to the second class mobile terminal
The performance of performance and other mobile terminals, it is determining to be located at the movement of the first kind in same equivalence class with the second class mobile terminal
Terminal and/or other second class mobile terminals.
Based on similarly applying conceiving with the above method, a kind of second class mobile terminal is also provided in the embodiment of the present application,
The second class mobile terminal includes processor and memory: the processor, for obtaining action sequence;Wherein, described dynamic
It is that first kind mobile terminal generates when testing target program as sequence;Using the action sequence to second class
The target program of mobile terminal is tested.
Based on similarly applying conceiving with the above method, a kind of machine readable storage Jie is also provided in the embodiment of the present application
Matter, which can be applied to the second class mobile terminal, if being stored on the machine readable storage medium
Dry computer instruction, the computer instruction, which is performed, to be handled as follows: obtaining action sequence;Wherein, the movement sequence
Column are that first kind mobile terminal generates when testing target program;It is mobile to second class using the action sequence
The target program of terminal is tested.
Based on similarly applying conceiving with the above method, the embodiment of the present application also provides a kind of test device, Ke Yiying
Used in server-side.As shown in fig. 6, being the structure chart of the test device, described device includes:
Receiving module 601, for receiving the action sequence from first kind mobile terminal;Wherein, the action sequence is
What the first kind mobile terminal generated when testing target program;Sending module 602, for sending out the action sequence
The second class mobile terminal is given, so that the second class mobile terminal is using the action sequence to the second class mobile terminal
The target program tested.
In one example, the action sequence includes test event information and input equipment type, the test event
Information includes following one or any combination: event type, event code, event value;
Described device further include: processing module, for the action sequence to be sent to the second class in the sending module
Before mobile terminal, event compensation deals are carried out to the event value that the test event information includes.
Described device further include: division module, it is for the resolution ratio according to each mobile terminal that the first kind is mobile eventually
End and the second class mobile terminal are divided into the same equivalence class;Alternatively, according to the performance of each mobile terminal by described first
Class mobile terminal and the second class mobile terminal are divided into the same equivalence class.
Based on similarly applying conceiving with the above method, a kind of server-side, the service are also provided in the embodiment of the present application
End includes processor, memory, receiver and transmitter;
The receiver, for receiving the action sequence from first kind mobile terminal;Wherein, the action sequence is institute
It states and generates when first kind mobile terminal tests target program;The transmitter, for sending the action sequence
To the second class mobile terminal, so that the second class mobile terminal is using the action sequence to the second class mobile terminal
The target program is tested.
Based on similarly applying conceiving with the above method, a kind of machine readable storage Jie is also provided in the embodiment of the present application
Matter, the machine readable storage medium are applied to server-side, are stored with several computer instructions on the machine readable storage medium,
The computer instruction, which is performed, to be handled as follows: receiving the action sequence from first kind mobile terminal;The movement
Sequence is that the first kind mobile terminal generates when testing target program;The action sequence is sent to the second class
Mobile terminal, so that the second class mobile terminal is using the action sequence to the target of the second class mobile terminal
Program is tested.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when application.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It is generally understood that being realized by computer program instructions each in flowchart and/or the block diagram
The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys
Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with
A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for
Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
Moreover, these computer program instructions also can store be able to guide computer or other programmable datas processing set
In standby computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates
Manufacture including command device, the command device are realized in one process of flow chart or multiple processes and/or block diagram one
The function of being specified in a box or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing devices, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer
Or the instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram
The step of function of being specified in one box or multiple boxes.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, the application can use complete hardware embodiment, complete software embodiment or implementation combining software and hardware aspects
The form of example.Moreover, it wherein includes the calculating of computer usable program code that the application, which can be used at one or more,
The computer implemented in machine usable storage medium (can include but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of program product.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (22)
1. a kind of test method, which is characterized in that be applied to the second class mobile terminal, which comprises
Obtain action sequence;Wherein, the action sequence is that first kind mobile terminal generates when testing target program;
It is tested using the target program of the action sequence to the second class mobile terminal.
2. the method according to claim 1, wherein
The process for obtaining action sequence, specifically includes:
Receive the action sequence that server-side is sent;Alternatively,
Receive the action sequence that first kind mobile terminal is sent.
3. the method according to claim 1, wherein
The action sequence includes test event information, it is described using the action sequence to the institute of the second class mobile terminal
The process that target program is tested is stated, is specifically included:
Test event corresponding with the test event information is executed to the target program of the second class mobile terminal.
4. according to the method described in claim 3, it is characterized in that, the test event information includes following one or any
Combination: event type, event code, event value.
5. according to the method described in claim 4, it is characterized in that,
The target program to the second class mobile terminal executes test thing corresponding with the test event information
Before part, the method also includes:
Event compensation deals are carried out to the event value that the test event information includes.
6. the method according to claim 1, wherein
The action sequence includes input equipment type, it is described using the action sequence to the institute of the second class mobile terminal
The process that target program is tested is stated, is specifically included:
The input equipment type is revised as to the device type of the second class mobile terminal.
7. the method according to claim 1, wherein described mobile to second class using the action sequence
After the target program of terminal is tested, the method also includes:
Obtain the action sequence generated when the second class mobile terminal tests the target program;
The action sequence of generation is sent to server-side so that the server-side action sequence of the generation is sent to it is other
Second class mobile terminal, alternatively, the action sequence of generation is sent to other second class mobile terminals.
8. method according to claim 1 or claim 7, which is characterized in that
The second class mobile terminal and the first kind mobile terminal are located in the same equivalence class;
The second class mobile terminal and other second class mobile terminals are located in the same equivalence class.
9. according to the method described in claim 8, it is characterized in that, the method also includes:
It is determining mobile with second class according to the resolution ratio of the second class mobile terminal and the resolution ratio of other mobile terminals
Terminal is located at first kind mobile terminal and/or other second class mobile terminals in the same equivalence class;Alternatively,
According to the performance of the second class mobile terminal and the performance of other mobile terminals, determining and the second class mobile terminal
First kind mobile terminal and/or other second class mobile terminals in the same equivalence class.
10. a kind of test method, which is characterized in that be applied to server-side, which comprises
Receive the action sequence from first kind mobile terminal;Wherein, the action sequence is the first kind mobile terminal pair
It is generated when target program is tested;
The action sequence is sent to the second class mobile terminal, so that the second class mobile terminal utilizes the action sequence
The target program of the second class mobile terminal is tested.
11. according to the method described in claim 10, it is characterized in that,
The action sequence includes test event information and input equipment type, the test event information include following one or
Person's any combination: event type, event code, event value.
12. according to the method for claim 11, which is characterized in that
It is described the action sequence is sent to the second class mobile terminal before, the method also includes:
Event compensation deals are carried out to the event value that the test event information includes.
13. according to the method described in claim 10, it is characterized in that, the first kind mobile terminal and second class are mobile
Terminal is located in the same equivalence class, the method also includes:
The first kind mobile terminal and the second class mobile terminal be divided into according to the resolution ratio of each mobile terminal same
In a equivalence class;Alternatively,
The first kind mobile terminal and the second class mobile terminal be divided into according to the performance of each mobile terminal same
In equivalence class.
14. a kind of test device, which is characterized in that be applied to the second class mobile terminal, described device includes:
Module is obtained, for obtaining action sequence;Wherein, the action sequence is that first kind mobile terminal carries out target program
It is generated when test;
Test module, for being tested using the target program of the action sequence to the second class mobile terminal.
15. device according to claim 14, which is characterized in that
The acquisition module is specifically used for during obtaining action sequence, receives the action sequence that server-side is sent;Or
Person receives the action sequence that first kind mobile terminal is sent;
The acquisition module is also used to the institute in the test module using the action sequence to the second class mobile terminal
State after target program tested, obtain generated when the second class mobile terminal tests the target program it is dynamic
Make sequence;The action sequence of generation is sent to server-side, so that the action sequence of the generation is sent to by the server-side
Other second class mobile terminals, alternatively, the action sequence of generation is sent to other second class mobile terminals.
16. device according to claim 14, which is characterized in that
The action sequence includes test event information, and the test module is specifically used in the utilization action sequence to institute
State the second class mobile terminal the target program tested during, to the target of the second class mobile terminal
Program executes test event corresponding with the test event information;
Wherein, the test event information includes following one or any combination: event type, event code, event value;Institute
Test module is stated, is also used to execute and the test event information pair in the target program to the second class mobile terminal
Before the test event answered, event compensation deals are carried out to the event value that the test event information includes;
The action sequence further includes input equipment type, and the test module is specifically used for utilizing the action sequence pair
During the target program of the second class mobile terminal is tested, the input equipment type is revised as described
The device type of second class mobile terminal.
17. device according to claim 14 or 15, which is characterized in that further include:
Determining module, for the resolution ratio of resolution ratio and other mobile terminals according to the second class mobile terminal, determine with
The second class mobile terminal is located at first kind mobile terminal and/or other second class mobile terminals in the same equivalence class;
Alternatively, according to the performance of the second class mobile terminal and the performance of other mobile terminals, it is determining mobile eventually with second class
End is located at first kind mobile terminal and/or other second class mobile terminals in the same equivalence class.
18. a kind of test device, which is characterized in that be applied to server-side, described device includes:
Receiving module, for receiving the action sequence from first kind mobile terminal;Wherein, the action sequence is described first
What class mobile terminal generated when testing target program;
Sending module, for the action sequence to be sent to the second class mobile terminal, so that the second class mobile terminal is sharp
It is tested with the target program of the action sequence to the second class mobile terminal.
19. device according to claim 18, which is characterized in that
The action sequence includes test event information and input equipment type, the test event information include following one or
Person's any combination: event type, event code, event value;
Described device further include: processing module, for the action sequence to be sent to the movement of the second class in the sending module
Before terminal, event compensation deals are carried out to the event value that the test event information includes.
20. device according to claim 18, which is characterized in that further include:
Division module, it is for the resolution ratio according to each mobile terminal that the first kind mobile terminal and second class is mobile eventually
End is divided into the same equivalence class;Alternatively, according to the performance of each mobile terminal by the first kind mobile terminal and described
Two class mobile terminals are divided into the same equivalence class.
21. a kind of second class mobile terminal, which is characterized in that the second class mobile terminal includes:
Processor, for obtaining action sequence;Wherein, the action sequence is that first kind mobile terminal surveys target program
It is generated when examination;It is tested using the target program of the action sequence to the second class mobile terminal.
22. a kind of server-side, which is characterized in that the server-side includes:
Receiver, for receiving the action sequence from first kind mobile terminal;Wherein, the action sequence is the first kind
It is generated when mobile terminal tests target program;
Transmitter, for the action sequence to be sent to the second class mobile terminal, so that the second class mobile terminal utilizes
The action sequence tests the target program of the second class mobile terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710457362.7A CN109144840A (en) | 2017-06-16 | 2017-06-16 | A kind of test method, device and its equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710457362.7A CN109144840A (en) | 2017-06-16 | 2017-06-16 | A kind of test method, device and its equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109144840A true CN109144840A (en) | 2019-01-04 |
Family
ID=64830490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710457362.7A Pending CN109144840A (en) | 2017-06-16 | 2017-06-16 | A kind of test method, device and its equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109144840A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109688599A (en) * | 2019-01-11 | 2019-04-26 | 北京华力创通科技股份有限公司 | Terminal tester packet domain dispatching method and device |
CN110362460A (en) * | 2019-07-12 | 2019-10-22 | 腾讯科技(深圳)有限公司 | A kind of application program capacity data processing method, device and storage medium |
CN112416741A (en) * | 2019-12-26 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Application program compatibility testing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064781A (en) * | 2011-10-18 | 2013-04-24 | 飞图科技(北京)有限公司 | Mobile software automated testing method |
CN103514088A (en) * | 2012-06-19 | 2014-01-15 | 珠海世纪鼎利通信科技股份有限公司 | Function regression testing method for terminal application software |
CN104717337A (en) * | 2015-04-03 | 2015-06-17 | 杭州昕云信息科技有限公司 | Method for testing mobile application in batch and equipment used in method |
CN104899046A (en) * | 2015-06-26 | 2015-09-09 | 上海斐讯数据通信技术有限公司 | Multifunctional script running method and multifunctional script running system |
CN105183631A (en) * | 2015-07-16 | 2015-12-23 | 小米科技有限责任公司 | Equipment test methods and devices |
CN105740153A (en) * | 2016-02-29 | 2016-07-06 | 网易(杭州)网络有限公司 | Cloud testing method and device |
-
2017
- 2017-06-16 CN CN201710457362.7A patent/CN109144840A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103064781A (en) * | 2011-10-18 | 2013-04-24 | 飞图科技(北京)有限公司 | Mobile software automated testing method |
CN103514088A (en) * | 2012-06-19 | 2014-01-15 | 珠海世纪鼎利通信科技股份有限公司 | Function regression testing method for terminal application software |
CN104717337A (en) * | 2015-04-03 | 2015-06-17 | 杭州昕云信息科技有限公司 | Method for testing mobile application in batch and equipment used in method |
CN104899046A (en) * | 2015-06-26 | 2015-09-09 | 上海斐讯数据通信技术有限公司 | Multifunctional script running method and multifunctional script running system |
CN105183631A (en) * | 2015-07-16 | 2015-12-23 | 小米科技有限责任公司 | Equipment test methods and devices |
CN105740153A (en) * | 2016-02-29 | 2016-07-06 | 网易(杭州)网络有限公司 | Cloud testing method and device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109688599A (en) * | 2019-01-11 | 2019-04-26 | 北京华力创通科技股份有限公司 | Terminal tester packet domain dispatching method and device |
CN110362460A (en) * | 2019-07-12 | 2019-10-22 | 腾讯科技(深圳)有限公司 | A kind of application program capacity data processing method, device and storage medium |
CN112416741A (en) * | 2019-12-26 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Application program compatibility testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108959059B (en) | Test method and test platform | |
US20190236750A1 (en) | Optimizing compilation of shaders | |
JP2015534688A (en) | Application development, compilation, and debugging method and apparatus | |
CN109144840A (en) | A kind of test method, device and its equipment | |
CN106980571A (en) | The construction method and equipment of a kind of test use cases | |
CN110706147B (en) | Image processing environment determination method, device, electronic equipment and storage medium | |
CN110413510A (en) | A kind of data processing method, device and equipment | |
Canfora et al. | A case study of automating user experience-oriented performance testing on smartphones | |
CN110674047A (en) | Software testing method and device and electronic equipment | |
EP3791319A1 (en) | Computer vision and speech algorithm design service | |
CN116467061B (en) | Task execution method and device, storage medium and electronic equipment | |
CN108052444A (en) | A kind of method and apparatus of performance test for mobile application | |
CN112463634A (en) | Software testing method and device under micro-service architecture | |
CN103605610A (en) | System and method for software testing based on Hadoop | |
CN111008143B (en) | Coverage rate scheduling test method, terminal equipment and computer readable storage medium | |
CN110209565A (en) | A kind of metadata schema adjustment method and its device | |
Cerit et al. | Quality function deployment and its application on a smartphone design | |
CN102004660A (en) | Realizing method and device of business flows | |
CN105022693B (en) | A kind of performance test methods and device of application program | |
CN114880182B (en) | Monitoring platform testing method and device, electronic equipment and readable storage medium | |
CN111078563A (en) | Coverage rate data processing method, terminal device and computer readable storage medium | |
CN111104281A (en) | Game performance monitoring method, device, system and storage medium | |
CN104639403A (en) | Method for calling IxChariot API (Application Program Interface) to test throughput | |
CN105786882B (en) | A kind of tables of data mark generates, method for writing data and device | |
CN112306009B (en) | Control method and device of household appliance, electronic device 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: 20190104 |
|
RJ01 | Rejection of invention patent application after publication |