CN105677561A - Mobile product multi-platform testing method and system - Google Patents

Mobile product multi-platform testing method and system Download PDF

Info

Publication number
CN105677561A
CN105677561A CN201511034469.8A CN201511034469A CN105677561A CN 105677561 A CN105677561 A CN 105677561A CN 201511034469 A CN201511034469 A CN 201511034469A CN 105677561 A CN105677561 A CN 105677561A
Authority
CN
China
Prior art keywords
operational order
platform
target
execution
target execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201511034469.8A
Other languages
Chinese (zh)
Other versions
CN105677561B (en
Inventor
吴承浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201511034469.8A priority Critical patent/CN105677561B/en
Publication of CN105677561A publication Critical patent/CN105677561A/en
Application granted granted Critical
Publication of CN105677561B publication Critical patent/CN105677561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention discloses a mobile product multi-platform testing method. The method comprises the steps that an operating behavior on a first testing terminal is obtained to serve as a first operating behavior; a first corresponding operating instruction bank and a second corresponding operating instruction bank are determined according to target execution platforms respectively; operating functions corresponding to the first operating behavior are searched for in the first operating instruction bank and the second operating instruction bank to serve as a first operating instruction and a second operating instruction; meanwhile, the first operating instruction is transmitted to the first target execution platform, and the second operating instruction is transmitted to the second target execution platform. When mobile products of the same type are applied to different mobile platforms, only one-time automatic testing logic needs to be achieved, efficiency is improved greatly, and the method is unrelated to target mobile application and can be suitable for different kinds of mobile application.

Description

The multi-platform testing method of mobile product and system
Technical field
The application relates to mobile product field tests, concrete, it relates to a kind of unification cover test code that can pass through is to the method for the testing equipment of installation different operating system and system.
Background technology
In recent years, Mobile solution market is burning hot, and application upgrades frequent, and platform is also diversified, and in order to complete to issue front testing authentication efficiently, automatization testing technique is paid attention to and developed. Current most of mobile product can issue raising share of market at multiple platform such as Android, iOS, windows simultaneously, and its software action is also basically identical at each platform. But owing to Android (Android), iOS system, windows system adhere to different technical systems separately, most automatization test at present only completes a series of automatization test for single platform, although the software action of two different platforms is basically identical, but still need again to write a set of automatization test code according to plateform system characteristic and realize the test for system platform, inefficiency, and waste resource, such as automatic test cases for Android platform cannot directly be multiplexed on iOS platform.
Therefore, a set of test script how can be utilized to be tested by the mobile product of two kinds of different operating systems, it is to increase the efficiency of test simultaneously, become the technical problem that prior art needs solution badly.
Summary of the invention
It is an object of the invention to propose a kind of multi-platform test set of mobile product and method, it is possible to solve current Android and iOS two platforms and can not share the problem that a set of test script realizes UI automatization test.
For reaching this object, the present invention by the following technical solutions:
A kind of multi-platform testing method of mobile product, comprising:
Obtain the operation behavior in the first test terminal as the first operation behavior;
The first operational order storehouse that described first operation behavior is corresponding and the 2nd operational order storehouse is determined respectively according to target execution platform;
Operation function corresponding to described first operation behavior is searched respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse;
Described first operational order is sent to the first target execution platform, described 2nd operational order is sent to the 2nd target execution platform.
Preferably, described first operational order is being sent to the first target execution platform, after described 2nd operational order is sent to the 2nd target execution platform, is also comprising:
Described first target execution platform according to described first operational order transfer the first routine interface of the first target execution platform, perform described first operational order by described first routine interface;
Described 2nd target execution platform according to described 2nd operational order transfer the 2nd routine interface of the 2nd target execution platform, perform described 2nd operational order by described 2nd routine interface.
Preferably, also comprise:
Receive the first execution result of described first target execution platform and the 2nd execution result of described 2nd target execution platform, execution result is sent to described first test terminal.
Preferably, execution result is sent to described first test terminal, is specially:
By receive described first target execution platform by described first routine interface send first execution result, using described execution result as the first operational order execution result feedback give described first test terminal;
By receive described 2nd target execution platform by described 2nd routine interface send the 2nd execution result, using described execution result as the 2nd operational order execution result feedback give described first test terminal.
Preferably, also comprise: when the feedback result value of target execution platform exists certain difference, described feedback result value is processed by the function then called in described first operational order storehouse and the 2nd operational order storehouse, converts the information that described first test terminal can identify to.
A kind of multi-platform test set of mobile product, comprising: command reception module, stage function identification module, instruction transformation module and function sending module;
Described command reception module, for the operation behavior received on the first mobile terminal;
Described stage function identification module, for determining the first operational order storehouse that the first operation behavior is corresponding and the 2nd operational order storehouse respectively according to target execution platform;
Described instruction transformation module, for searching operation function corresponding to described first operation behavior respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse;
Described function sending module, for described first operational order being sent to the first target execution platform simultaneously, is sent to the 2nd target execution platform by described 2nd operational order.
Preferably, also comprise: result feedback module;
Described result feedback module, for receive described first target execution platform send first execution result, using described execution result as the first operational order execution result feedback give described first test terminal; Receive described 2nd target execution platform send the 2nd execution result, using described execution result as the 2nd operational order execution result feedback give described first test terminal.
A kind of multi-platform test macro of mobile product, comprising: the first test terminal, platform operations switch endpoint and operation perform terminal;
Described first test terminal, for obtaining the first operation behavior of program, is sent to described platform operations switch endpoint by described first operation behavior;
Described platform operations switch endpoint, for determining the first operational order storehouse that described first operation behavior is corresponding and the 2nd operational order storehouse respectively according to target execution platform; Operation function corresponding to described first operation behavior is searched respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse; Described first operational order is sent to the first target execution platform, described 2nd operational order is sent to the 2nd target execution platform;
Described operation performs terminal, for receiving the routine interface transferring institute's the first target execution platform according to described first operational order that receives, by described routine interface described first operational order of execution;
According to described 2nd operational order received transfer the routine interface of the 2nd target execution platform, perform described 2nd operational order by described routine interface.
Preferably, also comprise:
Described platform operations switch endpoint receives the execution result that described operation performs terminal, and execution result is sent to described first test terminal.
Preferably, described platform operations switch endpoint receives the execution result that described operation performs terminal, execution result is sent to described first test terminal, is specially:
Described operation performs the execution result that terminal is sent to described platform operations switch endpoint by routine interface;
Described platform operations turn using described execution result as the first operational order execution result feedback give described first test terminal.
Relative to prior art, various embodiments of the present invention have the following advantages:
The methods, devices and systems of the present invention have passed the various operations of test procedure thoroughly, and the various instructions that the mobile terminal being converted to target Mobile solution place can identify, drive the interface of mobile terminal bottom to be tested by target Mobile solution according to instruction. Therefore, the business of the present invention and target product is without any associating, namely unrelated with target Mobile solution, so being also applicable to other Mobile solution, it is possible to is applicable to various different Mobile solution and uses. The present invention realizes only needing to realize automatization test logic on different mobile platform with money Mobile solution, reaches the object of improved efficiency.
Accompanying drawing explanation
Form an embodiment of the present invention part accompanying drawing be used to provide to the embodiment of the present invention it is further understood that the schematic description and description of the present invention is for explaining the present invention, do not form inappropriate limitation of the present invention. In the accompanying drawings:
Fig. 1 is the schema of a kind of mobile product provided by the invention multi-platform testing method first embodiment;
Fig. 2 is the moving boundary schematic diagram of the use-case of the login of specific embodiment provided by the invention;
Fig. 3 is the schema of the use-case of the login of specific embodiment provided by the invention;
Fig. 4 is the functional block diagram of a kind of mobile product provided by the invention multi-platform test set first embodiment;
Fig. 5 is the functional block diagram of my platform testing system first embodiment of a kind of mobile product provided by the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only the present invention's part embodiment, instead of whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, this figure is the schema of a kind of mobile product provided by the invention multi-platform testing method first embodiment.
In the present embodiment, comprising:
S101: obtain the operation behavior in the first test terminal as the first operation behavior.
S102: determine the first operational order storehouse that described first operation behavior is corresponding and the 2nd operational order storehouse according to target execution platform respectively.
S103: search operation function corresponding to described first operation behavior respectively in described first operational order storehouse and the 2nd operational order storehouse, as the first operational order and the 2nd operational order.
S104: described first operational order is sent to the first target execution platform, is sent to the 2nd target execution platform by described 2nd operational order.
In the present embodiment, first operate in the first test terminal. Here the first test terminal can for being provided with the terminal of a certain operating system, it is possible to thinks a certain mobile terminal being provided with test environment system and code.And carry out operating on the terminal can for people, it is possible to think program. Such as, by carrying out clicking at screen, slide, the operation such as input, it is also possible to carry out switching etc. by program between object, interface in difference. When first test terminal operates, it is necessary to get operation behavior wherein, as the first operation behavior. For illustrating conveniently, operation behavior in the present embodiment carries out target and moves or input characters.
Searching afterwards and need the target execution platform performing this operation, it is determined that the type of this platform, such as, target execution platform is the IOS platform of Android Andriod platform and Apple.
Due to the just actual operation behavior got before, but not computer code, it is thus desirable to this operation behavior to be converted to the code that reality can perform for computer, such as, operate function etc. And due to different function storehouses corresponding to different target execution platform, it is thus desirable to it is different actually operating function by the operation behavior got according to the different switching of target execution platform. Such as, UIAutomator test frame is the APPUI automatization test Java storehouse that the SDK in Android platform carries, and only includes the function in Andriod storehouse in this storehouse; And the UIAutomation storehouse automated test frame that to be IOS carry, it is possible to it is used in the testing apparatus of real equipment and such as iphone simulator and performs automatization test.
When implementing, search in Andriod storehouse and IOS storehouse respectively according to the first operation behavior, find the operation function that this operation behavior is corresponding. Generate based on this function as the first operational order and the 2nd operational order. Here instruction is made up of function. Such as, the instruction of input characters includes input () function.
Finally, the different instruction (the first operational order and the 2nd operational order) generated is issued different target execution platform respectively and synchronously perform test. Concrete, described first operational order is sent to the first target execution platform, described 2nd operational order is sent to the 2nd target execution platform.
In addition, in the 2nd embodiment of the multi-platform testing method of a kind of mobile product provided by the invention, in addition to the above, described first operational order is being sent to the first target execution platform, after described 2nd operational order is sent to the 2nd target execution platform, also comprise:
Described first target execution platform according to described first operational order transfer the first routine interface of the first target execution platform, perform described first operational order by described first routine interface. Also, namely in Andriod system, corresponding operational order is performed by the routine interface (API) in calling system. Such as, at Android end by calling UIAutomator interface (API4.2+) or instrumentation (API2.3+) drives target to move or input data to complete test.
Owing to being send instructions to two target execution platform simultaneously, then meanwhile described 2nd target execution platform according to described 2nd operational order transfer the 2nd routine interface of the 2nd target execution platform, perform described 2nd operational order by described 2nd routine interface. Also, namely in IOS system, corresponding operational order is performed by the routine interface (API) in calling system. Such as, move or input Information application at IOS end by the UIAutomation interface driver target called in physical layer interface Instrument and complete test.
Like this, two target execution platform can receive instruction simultaneously and start to test simultaneously, thus realize multi-platform synchronous operation.
In addition, in the 3rd embodiment of the multi-platform testing method of a kind of mobile product provided by the invention, it is also possible to comprising:
Receive the first execution result of described first target execution platform and the 2nd execution result of described 2nd target execution platform, execution result is sent to described first test terminal.
Step before can realize the synchronism detection operation that different target performs platform, but further, the first test terminal also needs to receive the result information of test. Such as, after a certain target execution platform performs a certain operation, a certain result value can usually be fed back. If this operation is performed normally, then returns " TRUE " value, it is not performed normally, return " FALSE " value. Therefore, after the first target execution platform and the 2nd target execution platform perform, result value is sent to the first test terminal. Concrete, the first execution result will received described first target execution platform and sent by described first routine interface, gives described first to test terminal as the execution result feedback of the first operational order described execution result;
By described 2nd target execution platform by described 2nd routine interface send the 2nd execution result, using described execution result as the 2nd operational order execution result feedback give described first test terminal.
Here routine interface can for performing the operational system of this command functions, it is possible to thinking can the program port of transmitting and receiving data.
In addition, if the feedback result of different target execution platform also exists certain difference, then also need to call the function in the first operational order storehouse and the 2nd operational order storehouse and this result value is processed, convert the information that the first test terminal can identify to.
Below in conjunction with the operation of reality to further being described of method of the present invention:
The test of a kind of exemplary Mobile solution is shown see Fig. 2.
This Mobile solution just can enter the main interface of application after having needed login to operate.
Test case scenario: simultaneously perform a use-case logged in Android and iOS target detection machine:
Use-case content:
Step:
1. start target mobile product
Receive start-up operation order--> and start-up operation changed--> transmission instruction--> perform at target detection platform.
2. input account, password
Receive input operation order--> and input operation changed--> transmission instruction--> perform at target detection platform.
3. click login button
Receive click operating command--> and clicking operation changed--> transmission instruction--> perform at target detection platform.
Net result: enter the homepage page after login
The method implementation that this use-case uses the present invention is as shown in Figure 3:
With the use of above method, it is possible to thoroughly pass the various operations of test procedure, and the various instructions that the mobile terminal being converted to target Mobile solution place can identify, drive the interface of mobile terminal bottom to be tested by target Mobile solution according to instruction. Therefore, the business of the present invention and target product is without any associating, namely unrelated with target Mobile solution, so being also applicable to other Mobile solution, it is possible to is applicable to various different Mobile solution and uses. The present invention realizes only needing to realize automatization test logic on different mobile platform with money Mobile solution, reaches the object of improved efficiency.
It is more than the multi-platform testing method of a kind of mobile product of the present invention, based on foregoing, present invention also offers a kind of multi-platform test set of mobile product.
See Fig. 4, this figure is the functional block diagram of my platform test method first embodiment of a kind of mobile product provided by the invention.
In the present embodiment, comprising: command reception module 10, stage function identification module 20, instruction transformation module 30 and function sending module 40.
Described command reception module 10, for the operation behavior received on the first mobile terminal.
Described stage function identification module 20, for according to target execution platform the first operational order storehouse that determination operation behavior is corresponding respectively and the 2nd operational order storehouse.
Described instruction transformation module 30, for searching operation function corresponding to described first operation behavior respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse.
Described function sending module 40, for described first operational order being sent to the first target execution platform simultaneously, is sent to the 2nd target execution platform by described 2nd operational order.
In the present embodiment, first command reception module 10, for the operation behavior received on the first mobile terminal. Here the first test terminal can for being provided with the terminal of a certain operating system, it is possible to thinks a certain mobile terminal being provided with test environment system and code. And carry out operating on the terminal can for people, it is possible to think program. Such as, carry out clicking at screen by human body, slide, the operation such as input, it is also possible to carry out switching etc. by program between object, interface in difference. When first test terminal operates, it is necessary to get operation behavior wherein, as the first operation behavior. For illustrating conveniently, operation behavior in the present embodiment carries out target and moves or input characters.
The module of stage function identification afterwards 20 is searched and is needed the target execution platform performing this operation, it is determined that the type of this platform. Preferably, target execution platform is the IOS platform of Android Andriod platform and Apple.
Due to the just actual operation behavior got before, but not computer code, it is thus desirable to this operation behavior is converted to the code that reality can perform for computer by instruction transformation module 30, such as, operate function etc. And due to different function storehouses corresponding to different target execution platform, it is thus desirable to it is different actually operating function by the operation behavior got according to the different switching of target execution platform. Such as, UIAutomator test frame is the APPUI automatization test Java storehouse that the SDK in Android platform carries, and only includes the function in Andriod storehouse in this storehouse; And the UIAutomation storehouse automated test frame that to be IOS carry, it is possible to it is used in the testing apparatus of real equipment and such as iphone simulator and performs automatization test.
When implementing, search in Andriod storehouse and IOS storehouse respectively according to the first operation behavior, find the operation function that this operation behavior is corresponding. Generate based on this function as the first operational order and the 2nd operational order. Here instruction is made up of function. Such as, the instruction of input characters includes input () function.
Finally, the different instruction (the first operational order and the 2nd operational order) generated is issued different target execution platform is simultaneously synchronously performed test by function sending module 40. Concrete, described first operational order is sent to the first target execution platform, described 2nd operational order is sent to the 2nd target execution platform.
In addition, in the 2nd embodiment of the multi-platform test set of a kind of mobile product provided by the invention, it is also possible to comprising: result feedback module;
Described result feedback module, for receive described first target execution platform send first execution result, using described execution result as the first operational order execution result feedback give described first test terminal; Receive described 2nd target execution platform send the 2nd execution result, using described execution result as the 2nd operational order execution result feedback give described first test terminal.
Operation before can realize the synchronism detection operation that different target performs platform, but further, the first test terminal also needs to receive the result information of test. Such as, after a certain target execution platform performs a certain operation, a certain result value can usually be fed back. If this operation is performed normally, then returns " TRUE " value, it is not performed normally, return " FALSE " value. Therefore, after the first target execution platform and the 2nd target execution platform perform, in addition it is also necessary to result value is sent to the first test terminal by result feedback module. Concrete, the first execution result will received described first target execution platform and sent by described first routine interface, gives described first to test terminal as the execution result feedback of the first operational order described execution result;
By receive described 2nd target execution platform by described 2nd routine interface send the 2nd execution result, using described execution result as the 2nd operational order execution result feedback give described first test terminal.
Here routine interface can for performing the operational system of this command functions, it is possible to thinking can the program port of transmitting and receiving data.
In addition, if also there is certain difference in the feedback result of different target execution platform, this result value is processed by the function then also needing result feedback module to be called by instruction transformation module 30 in first operational order storehouse and the 2nd operational order storehouse, converts the information that the first test terminal can identify to.
With the use of above device, it is possible to thoroughly pass the various operations of test procedure, and the various instructions that the mobile terminal being converted to target Mobile solution place can identify, drive the interface of mobile terminal bottom to be tested by target Mobile solution according to instruction. Therefore, the business of the present invention and target product is without any associating, namely unrelated with target Mobile solution, so being also applicable to other Mobile solution, it is possible to is applicable to various different Mobile solution and uses. The present invention realizes only needing to realize automatization test logic on different mobile platform with money Mobile solution, reaches the object of improved efficiency.
On the basis of the above multi-platform test set of a kind of mobile product, the present invention also provides a kind of multi-platform test macro of mobile product.
Specifically comprise: comprising: the first test terminal 100, platform operations switch endpoint 200 and operation perform terminal 300;
Described first test terminal 100, for obtaining the first operation behavior of program, is sent to described platform operations switch endpoint by described first operation behavior.
Described platform operations switch endpoint 200, for determining the first operational order storehouse that described first operation behavior is corresponding and the 2nd operational order storehouse respectively according to target execution platform; Operation function corresponding to described first operation behavior is searched respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse;Described first operational order is sent to the first target execution platform, described 2nd operational order is sent to the 2nd target execution platform;
Described operation performs terminal 300, for receiving the routine interface transferring institute's the first target execution platform according to described first operational order that receives, by described routine interface described first operational order of execution; According to described 2nd operational order received transfer the routine interface of the 2nd target execution platform, perform described 2nd operational order by described routine interface.
In the present embodiment, first operate in the first test terminal 100. Here the first test terminal 100 can for being provided with the terminal of a certain operating system, it is possible to thinks a certain mobile terminal being provided with test environment system and code. And carry out operating on the terminal can for people, it is possible to think program. Such as, carry out clicking at screen by human body, slide, the operation such as input, it is also possible to carry out switching etc. by program between object, interface in difference. When first test terminal operates, it is necessary to getting operation behavior wherein, as the first operation behavior, send is to platform operations switch endpoint 200. For illustrating conveniently, operation behavior in the present embodiment carries out target and moves or input characters.
Platform operations switch endpoint 200 is searched afterwards needs the target execution platform performing this operation, it is determined that the type of this platform. Preferably, target execution platform is the IOS platform of Android Andriod platform and Apple.
Due to the just actual operation behavior got before, but not computer code, it is thus desirable to this operation behavior to be converted to the code that reality can perform for computer, such as, operate function etc. And due to different function storehouses corresponding to different target execution platform, it is thus desirable to it is different actually operating function by the operation behavior got according to the different switching of target execution platform. Such as, UIAutomator test frame is the APPUI automatization test Java storehouse that the SDK in Android platform carries, and only includes the function in Andriod storehouse in this storehouse; And the UIAutomation storehouse automated test frame that to be IOS carry, it is possible to it is used in the testing apparatus of real equipment and such as iphone simulator and performs automatization test.
When implementing, search in Andriod storehouse and IOS storehouse respectively according to the first operation behavior, find the operation function that this operation behavior is corresponding. Generate based on this function as the first operational order and the 2nd operational order. Here instruction is made up of function. Such as, the instruction of input characters includes input () function.
Finally, by generate different instruction (the first operational order and the 2nd operational order) issue simultaneously a certain operation perform terminal 300 (including some target execution platform), or be sent to simultaneously multiple operation execution terminal 300 (having only included a target execution platform) synchronously perform test. Concrete, described first operational order is sent to the first target execution platform (operation performs terminal 300), described 2nd operational order is sent to the 2nd target execution platform (operation performs terminal 300).
In addition, in the 2nd embodiment of the multi-platform test macro of a kind of mobile product provided by the invention, in addition to the above, described first operational order is being sent to the first target execution platform (operation performs terminal 300), after described 2nd operational order is sent to the 2nd target execution platform (operation performs terminal 300), also comprise:
Described first target execution platform according to described first operational order transfer the first routine interface of the first target execution platform, perform described first operational order by described first routine interface.Also, namely in Andriod system, corresponding operational order is performed by the routine interface (API) in calling system. Such as, at Android end by calling UIAutomator interface (API4.2+) or instrumentation (API2.3+) drives target to move or input data to complete test.
Owing to being send instructions to two target execution platform simultaneously, then meanwhile described 2nd target execution platform according to described 2nd operational order transfer the 2nd routine interface of the 2nd target execution platform, perform described 2nd operational order by described 2nd routine interface. Also, namely in IOS system, corresponding operational order is performed by the routine interface (API) in calling system. Such as, move or input Information application at IOS end by the UIAutomation interface driver target called in physical layer interface Instrument and complete test.
Like this, two target execution platform can receive instruction simultaneously and start to test simultaneously, thus realize multi-platform synchronous operation.
In addition, in the 3rd embodiment of the multi-platform testing method of a kind of mobile product provided by the invention, it is also possible to comprising:
Described platform operations switch endpoint 200 receives the execution result that described operation performs terminal 300, and execution result is sent to described first test terminal.
Step before can realize the synchronism detection operation that different target performs platform, but further, the first test terminal 100 also needs to receive the result information of test. Such as, after a certain target execution platform performs a certain operation, a certain result value can usually be fed back. If this operation is performed normally, then returns " TRUE " value, it is not performed normally, return " FALSE " value. Therefore, after the first target execution platform and the 2nd target execution platform perform, result value is sent to the first test terminal. Concrete, described operation performs the execution result that terminal is sent to described platform operations switch endpoint by routine interface. Described platform operations turn using described execution result as the first operational order execution result feedback give described first test terminal.
Here routine interface can for performing the operational system of this command functions, it is possible to thinking can the program port of transmitting and receiving data.
In addition, if also there is certain difference in the feedback result of different target execution platform (operation performs terminal 300), this result value is processed by the function then also needing platform operations switch endpoint 200 to call in the first operational order storehouse and the 2nd operational order storehouse, converts the information that the first test terminal can identify to.
3 parts of the multi-platform test set of the mobile product in the present invention can integrate, it is also possible to lays respectively at automatization test lead, and on mobile terminal; Can also with hardware implementing with software simulating; As long as realizing relevant function, above-mentioned all within the scope of protection of present invention.
With the use of above system, it is possible to thoroughly pass the various operations of test procedure, and the various instructions that the mobile terminal being converted to target Mobile solution place can identify, drive the interface of mobile terminal bottom to be tested by target Mobile solution according to instruction. Therefore, the business of the present invention and target product is without any associating, namely unrelated with target Mobile solution, so being also applicable to other Mobile solution, it is possible to is applicable to various different Mobile solution and uses. The present invention realizes only needing to realize automatization test logic on different mobile platform with money Mobile solution, reaches the object of improved efficiency.
The foregoing is only embodiments of the invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment of doing, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the multi-platform testing method of mobile product, it is characterised in that, comprising:
Obtain the operation behavior in the first test terminal as the first operation behavior;
The first operational order storehouse that described first operation behavior is corresponding and the 2nd operational order storehouse is determined respectively according to target execution platform;
Operation function corresponding to described first operation behavior is searched respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse;
Described first operational order is sent to the first target execution platform, described 2nd operational order is sent to the 2nd target execution platform.
2. method according to claim 1, it is characterised in that, described first operational order is being sent to the first target execution platform, after described 2nd operational order is sent to the 2nd target execution platform, is also comprising:
Described first target execution platform according to described first operational order transfer the first routine interface of the first target execution platform, perform described first operational order by described first routine interface;
Described 2nd target execution platform according to described 2nd operational order transfer the 2nd routine interface of the 2nd target execution platform, perform described 2nd operational order by described 2nd routine interface.
3. method according to claim 2, it is characterised in that, also comprise:
Receive the first execution result of described first target execution platform and the 2nd execution result of described 2nd target execution platform, execution result is sent to described first test terminal.
4. method according to claim 3, it is characterised in that, execution result is sent to described first test terminal, is specially:
By receive described first target execution platform by described first routine interface send first execution result, using described execution result as the first operational order execution result feedback give described first test terminal;
By receive described 2nd target execution platform by described 2nd routine interface send the 2nd execution result, using described execution result as the 2nd operational order execution result feedback give described first test terminal.
5. method according to claim 1, it is characterised in that, also comprise:
When the feedback result value of target execution platform exists certain difference, then described feedback result value is processed by the function called in described first operational order storehouse and the 2nd operational order storehouse, converts the information that described first test terminal can identify to.
6. the multi-platform test set of mobile product, it is characterised in that, comprising: command reception module, stage function identification module, instruction transformation module and function sending module;
Described command reception module, for the operation behavior received on the first mobile terminal;
Described stage function identification module, for determining the first operational order storehouse that the first operation behavior is corresponding and the 2nd operational order storehouse respectively according to target execution platform;
Described instruction transformation module, for searching operation function corresponding to described first operation behavior respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse;
Described function sending module, for described first operational order being sent to the first target execution platform simultaneously, is sent to the 2nd target execution platform by described 2nd operational order.
7. device according to claim 6, it is characterised in that, also comprise: result feedback module;
Described result feedback module, for receive described first target execution platform send first execution result, using described execution result as the first operational order execution result feedback give described first test terminal; Receive described 2nd target execution platform send the 2nd execution result, using described execution result as the 2nd operational order execution result feedback give described first test terminal.
8. the multi-platform test macro of mobile product, it is characterised in that, comprising: the first test terminal, platform operations switch endpoint and operation perform terminal;
Described first test terminal, for obtaining the first operation behavior of program, is sent to described platform operations switch endpoint by described first operation behavior;
Described platform operations switch endpoint, for determining the first operational order storehouse that described first operation behavior is corresponding and the 2nd operational order storehouse respectively according to target execution platform; Operation function corresponding to described first operation behavior is searched respectively, as the first operational order and the 2nd operational order in described first operational order storehouse and the 2nd operational order storehouse; Described first operational order is sent to the first target execution platform, described 2nd operational order is sent to the 2nd target execution platform;
Described operation performs terminal, for receiving the routine interface transferring institute's the first target execution platform according to described first operational order that receives, by described routine interface described first operational order of execution;
According to described 2nd operational order received transfer the routine interface of the 2nd target execution platform, perform described 2nd operational order by described routine interface.
9. system according to claim 8, it is characterised in that, also comprise:
Described platform operations switch endpoint receives the execution result that described operation performs terminal, and execution result is sent to described first test terminal.
10. system according to claim 9, it is characterised in that, described platform operations switch endpoint receives the execution result that described operation performs terminal, execution result is sent to described first test terminal, is specially:
Described operation performs the execution result that terminal is sent to described platform operations switch endpoint by routine interface;
Described platform operations turn using described execution result as the first operational order execution result feedback give described first test terminal.
CN201511034469.8A 2015-12-31 2015-12-31 The multi-platform test method of mobile product and system Active CN105677561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511034469.8A CN105677561B (en) 2015-12-31 2015-12-31 The multi-platform test method of mobile product and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511034469.8A CN105677561B (en) 2015-12-31 2015-12-31 The multi-platform test method of mobile product and system

Publications (2)

Publication Number Publication Date
CN105677561A true CN105677561A (en) 2016-06-15
CN105677561B CN105677561B (en) 2019-01-29

Family

ID=56189995

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511034469.8A Active CN105677561B (en) 2015-12-31 2015-12-31 The multi-platform test method of mobile product and system

Country Status (1)

Country Link
CN (1) CN105677561B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528434A (en) * 2016-12-16 2017-03-22 上海携程国际旅行社有限公司 Processing method and system for preposing key word during automated test
CN107066379A (en) * 2017-01-23 2017-08-18 广州唯品会信息科技有限公司 software interface compatibility test method and system
CN107102950A (en) * 2017-07-04 2017-08-29 天津云聚科技有限公司 A kind of applied program testing method and device
CN108427636A (en) * 2018-01-09 2018-08-21 阿里巴巴集团控股有限公司 Test method, system and the electronic equipment of application
CN108614774A (en) * 2018-04-24 2018-10-02 百度在线网络技术(北京)有限公司 Automated testing method and device
CN109144857A (en) * 2018-08-01 2019-01-04 武汉普利商用机器有限公司 Cross-platform test of heuristics method and system
CN111147530A (en) * 2018-10-16 2020-05-12 深圳市冠旭电子股份有限公司 System architecture, multi-voice platform switching method, intelligent terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812982A (en) * 2014-02-24 2014-05-21 中国移动(深圳)有限公司 Method and system for monitoring and testing cell phone client side by computer through cross-operating system
CN104281518A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Terminal application test method, device, system and platform and mobile terminal
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system
CN104636147A (en) * 2015-03-09 2015-05-20 北京恒华伟业科技股份有限公司 Cross-platform mobile application implementation method and cross-platform mobile application implementation system
US20150227449A1 (en) * 2012-09-29 2015-08-13 Zte Corporation Method and device for developing, compiling and debugging
CN104850476A (en) * 2015-06-03 2015-08-19 东方网力科技股份有限公司 Cross-platform interface automated testing method and cross-platform interface automated testing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150227449A1 (en) * 2012-09-29 2015-08-13 Zte Corporation Method and device for developing, compiling and debugging
CN104281518A (en) * 2013-07-02 2015-01-14 腾讯科技(深圳)有限公司 Terminal application test method, device, system and platform and mobile terminal
CN103812982A (en) * 2014-02-24 2014-05-21 中国移动(深圳)有限公司 Method and system for monitoring and testing cell phone client side by computer through cross-operating system
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system
CN104636147A (en) * 2015-03-09 2015-05-20 北京恒华伟业科技股份有限公司 Cross-platform mobile application implementation method and cross-platform mobile application implementation system
CN104850476A (en) * 2015-06-03 2015-08-19 东方网力科技股份有限公司 Cross-platform interface automated testing method and cross-platform interface automated testing system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528434A (en) * 2016-12-16 2017-03-22 上海携程国际旅行社有限公司 Processing method and system for preposing key word during automated test
CN107066379A (en) * 2017-01-23 2017-08-18 广州唯品会信息科技有限公司 software interface compatibility test method and system
CN107102950A (en) * 2017-07-04 2017-08-29 天津云聚科技有限公司 A kind of applied program testing method and device
CN108427636A (en) * 2018-01-09 2018-08-21 阿里巴巴集团控股有限公司 Test method, system and the electronic equipment of application
CN108614774A (en) * 2018-04-24 2018-10-02 百度在线网络技术(北京)有限公司 Automated testing method and device
CN109144857A (en) * 2018-08-01 2019-01-04 武汉普利商用机器有限公司 Cross-platform test of heuristics method and system
CN111147530A (en) * 2018-10-16 2020-05-12 深圳市冠旭电子股份有限公司 System architecture, multi-voice platform switching method, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN105677561B (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN105677561A (en) Mobile product multi-platform testing method and system
CN102567198B (en) System and method for testing application program in physical system environment
CN104461903B (en) The method and apparatus of test client based on browser
CN105898678B (en) A kind of matching method and electronic equipment
CN103312850A (en) Mobile phone automation testing system and work method
CN105677329A (en) Controlling method and electronic device
CN106326104A (en) Terminal control test method and apparatus
CN107688529B (en) Component debugging method and device
CN105354118B (en) Automatic test approach, the apparatus and system of intelligent terminal
CN105279435A (en) Webpage vulnerability detecting method and webpage vulnerability detecting device
CN104426990A (en) Control method and control device
CN104954894A (en) Video traffic guiding method and device as well as electronic equipment
CN103455413A (en) Method, device and system for interaction scenario test data processing of communication terminals
CN103647775A (en) Method and apparatus for registration in webpage
CN103177096B (en) Page elements localization method and equipment based on text attribute
JP2018502404A (en) Message display method, message display device, and message display device
CN102681780A (en) Intelligent Linux device and input method switching method for same
CN101964923A (en) Configuration system and method for interactive commands
CN103793321B (en) application program detection method and system
CN108769175B (en) Remote real machine access control method and device, storage medium and electronic equipment
CN102087596B (en) Embedded browsing device and multi-page mixed display method thereof
CN104503694A (en) Drawing data instant messaging based method, client and system
CN106302011A (en) Method of testings based on multiterminal and terminal
CN105979316A (en) Input method and device
CN105496431A (en) X-ray imaging method and X-ray imaging system

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
CB02 Change of applicant information

Address after: 511442 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo, No. 79, No. two road, Business District Wanda Commercial Plaza, North building, B-1 floor, floor

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655 3-08 building, Yangcheng Creative Industry Park, Whampoa Road, Guangzhou, Guangdong, Tianhe District

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant