CN109600282A - Test macro and test method based on cloud prototype - Google Patents

Test macro and test method based on cloud prototype Download PDF

Info

Publication number
CN109600282A
CN109600282A CN201811598078.2A CN201811598078A CN109600282A CN 109600282 A CN109600282 A CN 109600282A CN 201811598078 A CN201811598078 A CN 201811598078A CN 109600282 A CN109600282 A CN 109600282A
Authority
CN
China
Prior art keywords
prototype
cloud
screen picture
server
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811598078.2A
Other languages
Chinese (zh)
Inventor
刘言
陈志坚
张颖
马幸晖
邓捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Digital Life Technology Co Ltd
Original Assignee
CENTURY DRAGON INFORMATION NETWORK 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 CENTURY DRAGON INFORMATION NETWORK Co Ltd filed Critical CENTURY DRAGON INFORMATION NETWORK Co Ltd
Priority to CN201811598078.2A priority Critical patent/CN109600282A/en
Publication of CN109600282A publication Critical patent/CN109600282A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention relates to the test macro based on cloud prototype, including web client and server, the web client is connect with the server communication;The server is also used to connect multiple cloud prototypes;Web client shows the screen picture of at least two cloud prototypes by webpage simultaneously, obtains and is sent to the server for the operational order for setting software in target cloud prototype;The test received instruction is sent to target cloud prototype by server;And obtain target cloud prototype and execute the screen picture tested after instruction, the web client is sent to as new screen picture;Web client updates the screen picture of the target cloud prototype shown in the webpage.The embodiment of the present invention solves the problems, such as that existing remote testing environment can not compare and analyze practical executive condition of the software in different types of prototype, is conducive to improve test effect.

Description

Test macro and test method based on cloud prototype
Technical field
The present invention relates to cloud control platform technology fields, more particularly to test macro and test method based on cloud prototype.
Background technique
Intelligent terminal application software testing is a key task in intelligent terminal software Development Life Cycle, main to appoint Business is the compatibility and testing efficiency etc. for testing the tested software that do not issue on different test type devices.
In order to facilitate intelligent terminal application software testing, tested in industry using cloud prototype control platform.Cloud prototype Control platform includes test terminal and remote control terminal, and test terminal connects one or more cloud prototypes.Wherein, long-range control Terminal for remotely controlling the cloud prototype connecting with test terminal, while being received from test eventually by network connection test terminal Hold the feedback information of forwarding;It tests terminal and the control instruction that remote control terminal is sent is forwarded to corresponding cloud prototype, by cloud Prototype executes corresponding operating, alternatively, the control instruction that test terminal parsing remote control terminal is sent, parses long-range control eventually The corresponding cloud prototype remotely controlled and specific control command are held, and corresponding cloud prototype is controlled according to specific control command and is executed Corresponding operating.
In the implementation of the present invention, following problem exists in the prior art in inventor, and cloud prototype controls at present Platform, tester are once only able to display the test result of a cloud prototype by remote control terminal, can not be to software not Practical executive condition in the prototype of same type compares and analyzes, and influences test effect.
Summary of the invention
Based on this, it is necessary to can not be to reality of the software in different types of prototype for the test platform of existing way The problem of executive condition compares and analyzes provides a kind of test macro and test method based on cloud prototype.
On the one hand, the embodiment of the present invention provides a kind of test macro based on cloud prototype, including web client and service Device, the web client are connect with the server communication;The server is also used to connect multiple cloud prototypes;
The web client, for by webpage simultaneously show at least two cloud prototypes screen picture in the state of, It obtains for the operational order for setting software in target cloud prototype, as the first test instruction, by the first test instruction hair Give the server;The target cloud prototype is the cloud prototype in at least two clouds prototype;
The server is held for controlling setting software described in the target cloud prototype according to the first test instruction Row the first test instruction;And it obtains setting software described in the target cloud prototype and executes the first test instruction The new screen picture is sent to the web client as new screen picture by screen picture afterwards;
The web client, for updating the target cloud prototype shown in the webpage according to the screen picture Screen picture.
The web client in one of the embodiments, is also used to receive the operation for starting the same screen of multimachine and refers to It enables, as the second test instruction, the second test instruction is sent to the server;It is described to be used to start multimachine with screen Operational order includes selecting at least two cloud prototypes from multiple cloud prototypes that the server connects to participate in the finger of test It enables;
The server is also used to obtain at least two of the web client selection according to the second test instruction Cloud prototype, obtains the screen picture of at least two clouds prototype, and is sent to the web client;
The web client, is also used to receive the screen picture of at least two clouds prototype, is shown simultaneously by webpage The screen picture of at least two clouds prototype.
The web client in one of the embodiments, specifically for showing institute simultaneously by webpage with split screen mode State the screen picture of at least two cloud prototypes;Alternatively, showing at least two clouds prototype simultaneously in a superimposed manner by webpage Screen picture.
It in one of the embodiments, further include access terminal, the access terminal is connect with the server, the clothes Business device passes through the access terminal and multiple cloud prototypes communicate to connect.
The server in one of the embodiments, is specifically used for the first test instruction/second test Instruction is sent to the access terminal, is transmitted to the target cloud prototype by the access terminal;And eventually by the access End obtains the screen picture/new screen picture of the target cloud prototype.
The web client in one of the embodiments, is also used to obtain the web client and the server Current network quality passes through the screen picture of at least two clouds prototype of web displaying according to network quality adjustment Image quality.
The web client in one of the embodiments, if being also used to receive for at least two clouds prototype In at least one cloud prototype for adjusting the operational order of image quality, web displaying is passed through according to adjustment instruction adjustment The image quality of the screen picture of at least one cloud prototype in at least two clouds prototype.
The web client in one of the embodiments, if being also used to receive the operation for master-slave equipment to be arranged Instruction, according to the operational order from at least two clouds prototype determine a main equipment, by other cloud prototypes be determined as from Equipment, Xiang Suoshu server send the main equipment and the information from equipment;
The server, if being also used to the first test instruction is the instruction for the main equipment, according to described the One test instruction controls the main equipment and the setting software from the device is performed both by the first test instruction;With And the acquisition main equipment and the setting software described from the device execute the screen picture after the first test instruction, And it is sent to the web client;
The web client is also used to according to the main equipment and the setting software execution described from the device Screen picture after first test instruction, updates the main equipment shown in the webpage and the screen map from equipment Picture.
It in one of the embodiments, further include App client;The APP client is connect with the server communication;
The App client is tested as third and is instructed for receiving the operational order for starting single machine test;It will The third test instruction is sent to the server;The operational order for starting single machine test includes, from the clothes A cloud prototype is selected in multiple cloud prototypes of business device connection to participate in the instruction of test;
The server is also used to test instruction according to the third and obtains the one of the App client selection Cloud prototype obtains the screen picture of one cloud prototype, sends respectively to the App client and the web client The screen picture;
The App client is also used to receive the screen picture of one cloud prototype, passes through its UI interface display The screen picture of one cloud prototype;
The web client is also used to receive the screen picture of one cloud prototype, by described in web displaying The screen picture of one cloud prototype.
The App client in one of the embodiments, the operation for being also used to reception for one cloud prototype refer to It enables, as the 4th test instruction, the 4th test instruction is sent to the server;
The server is used to be instructed according to the 4th test, controls one cloud prototype execution four test and refers to It enables;And obtain one cloud prototype and execute screen picture after the 4th test instruction, as new screen picture, It is sent respectively to the App client and the web client;
The App client is also used to the new screen picture according to one cloud prototype, updates its interface UI The screen picture of one cloud prototype of display;
The web client, is also used to the new screen picture according to one cloud prototype, and update passes through webpage The screen picture of one cloud prototype of display.
On the other hand, the embodiment of the present invention provides a kind of test method based on cloud prototype, comprising:
Pass through the screen picture of at least two cloud prototype of web displaying;
It receives for the operational order for setting software in target cloud prototype, as the first test instruction;The target cloud is true Machine is the cloud prototype in at least two clouds prototype;
The first test instruction is sent to corresponding server;The first test instruction is for triggering the service Device controls the target cloud prototype and executes the test instruction, and obtains setting software described in the target cloud prototype and execute Screen picture after the first test instruction, as new screen picture;
It receives the new screen picture that the server is sent and the net is updated according to the new screen picture The screen picture of target cloud prototype described in page.
A technical solution in above-mentioned technical proposal has the following advantages that or the utility model has the advantages that by web client with net Page mode shows the screen picture of at least two cloud prototypes simultaneously, obtains for the operational order for setting software in target cloud prototype And it is sent to the server;The target cloud prototype is the cloud prototype in at least two clouds prototype;Server will receive To the first test instruction be sent to the target cloud prototype, and obtain described in the target cloud prototype setting software and hold Screen picture after row the first test instruction, is sent to the web client;It is shown in web client more new web page The target cloud prototype screen picture.Be conducive to that the test result of multiple cloud prototypes is compared, be also beneficial to simultaneously Improve testing efficiency.
Further, by the combination of web client and App client, it is single to also overcome existing remote testing environment, It can only be by testing the problem of webpage is to the long-range control for carrying out cloud, and server divides to web client, App client Not Fa Song long-distance cloud prototype screen picture so that tester to the monitoring of test effect more fully.
Detailed description of the invention
Fig. 1 is the structure chart of the test macro based on cloud prototype in one embodiment;
Fig. 2 is interface schematic diagram of the starting multimachine with screen test pattern of the web client of an embodiment;
Fig. 3 is interface schematic diagram of the multimachine with the test effect shielded of the web client of an embodiment;
Fig. 4 is the structure chart of the test macro based on cloud prototype in another embodiment;
Fig. 5 is the flow diagram of the test method based on cloud prototype in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Fig. 1 is the structure chart of the test macro based on cloud prototype in one embodiment, as shown in Figure 1, cloud prototype should be based on Test macro include: web client and server, the web client is connect with the server communication;The service Device is also used to connect multiple cloud prototypes.
Wherein, web client includes realizing the client interacted, such as the browsing in computer with server by webpage Device, user can be conventional web page operation based on the operation of web client, such as pass through the input equipments such as mouse, keyboard reality Existing web page operation.Server can realize by independent server, the server that can also be made up of multiple servers Cluster is realized.
Wherein, Yun Zhenji refers to the remote terminal equipment for test, such as object to be tested is a application software, Test target be detect the application software different vendor, different model intelligent terminal in operating condition, in such case Under, multiple cloud prototypes of server connection can be the intelligence of multiple and different manufacturers positioned at diverse geographic location, different model Terminal.
Based on the above-mentioned test system structure based on cloud prototype, each section is realizing remote testing function when institute in system Role includes:
Web client can show the screen picture of at least two cloud prototypes by webpage simultaneously, and obtain and be directed to mesh The operational order for setting software in cloud prototype is marked, as the first test instruction, the first test instruction is sent to the clothes Business device;The target cloud prototype is the cloud prototype in at least two clouds prototype;The setting software can be to need to test Application software.
Server executes institute for controlling setting software described in the target cloud prototype according to the first test instruction State the first test instruction;And setting software described in the acquisition target cloud prototype executes described first and tests after instruction The new screen picture is sent to the web client as new screen picture by screen picture;
Web client, for according to the new screen picture, updating the target cloud prototype shown in the webpage Screen picture.
Further, in some other embodiment, in order to show at least two clouds simultaneously by webpage in web client The Splash Screen Bitmap of prototype.Therefore, web client is also used to receive for starting multimachine with the operational order of screen, as the The second test instruction is sent to the server by two test instructions;It is described to be used to start multimachine with the operational order of screen Including selecting at least two cloud prototypes from multiple cloud prototypes that the server connects to participate in the instruction of test;Server, It is also used to obtain at least two cloud prototypes of the web client selection according to the second test instruction, acquisition is described at least The screen picture of two cloud prototypes, and it is sent to the web client;Web client is also used to receive at least two cloud The screen picture of prototype shows the screen picture of at least two clouds prototype by webpage simultaneously.
When user selectes multiple cloud prototypes by web client and participates in test, the multiple cloud prototype that receives for the first time Screen picture, can be the system home screen image of multiple cloud prototypes.
It further include that multiple set-mounted softwares of cloud prototype are controlled by web client according to an embodiment of the present invention The step of, specifically, the operation that the web client can also receive for installing the setting software in target cloud prototype refers to It enables, as installation operational order, which is sent to the server.Server can also be grasped according to the installation It instructs, controls and the setting software is installed in the target cloud prototype;And it obtains and is set described in the target cloud prototype installation Determine the screen picture after software, is sent to web client.Web client can also install institute according to the target cloud prototype The screen picture after setting software is stated, the screen picture of the target cloud prototype by showing in webpage is updated.
In the embodiment of the present invention, web client is provided with single machine test and multimachine with two kinds of test patterns of screen, when starting is single When the mode of machine test, the screen picture for the cloud prototype that web client is selected by web displaying;When starting multimachine is same When shielding test pattern, web client can show the screen picture of the multiple cloud prototypes selected by webpage simultaneously.It can refer to Shown in Fig. 2, function button and multimachine in the interface of web client comprising single machine test pass through a little with the function button of screen Corresponding function button is hit, into corresponding test pattern.
In some embodiments, web client can show at least two cloud by webpage with split screen mode simultaneously The screen picture of prototype shows the screen picture of 3 cloud prototypes with split screen mode with continued reference to shown in Fig. 3 simultaneously.User can be with The screen picture that multiple cloud prototypes are observed with screen is conducive to improve test effect without switching.
In some other embodiment, web client shows described at least two also by webpage simultaneously in a superimposed manner The screen picture of cloud prototype, here it is shown that the cloud that user can be shown in top layer by mouse or keyboard shift is true under mode The screen picture of machine.
By the above-mentioned test system structure based on cloud prototype, the multimachine that user is provided by web client is same to shield survey Examination, can facilitate tester to compare with the test result image of the multiple cloud prototypes of Display on the same screen, be conducive to improve test effect Rate.
It further, can also be simultaneously refering to what is shown in Fig. 4, on the basis of the above-mentioned test macro based on cloud prototype Including App client, the App client is also connect with the server communication.App client in the embodiment of the present invention can To be mounted in the application program in intelligent terminal, the intelligent terminal includes smart phone, plate, portable wearable device Deng, such as the App being pre-installed in Android mobile phone, user can be conventional intelligent terminal based on the operation of App client The gesture operations such as operation, such as sliding, touch click.
Wherein, App client can receive the operational order for some cloud prototype and be sent to the server, clothes Business device is instructed according to the test that App client is sent, and control cloud prototype executes corresponding test instruction;And obtain the cloud prototype Execute the screen picture after corresponding test instruction, server the screen picture can be sent respectively to App client with And web client;Thus user can observe the test result of cloud prototype by App client and web client simultaneously.It is specific real Existing mode is for example:
App client receives the operational order for starting single machine test, tests and instructs as third;The third is surveyed Examination instruction is sent to server;Operational order for starting single machine test includes, true from multiple clouds of server connection A cloud prototype is selected to participate in the instruction of test in machine.
Server obtains a cloud prototype of App client selection according to third test instruction, obtains one The screen picture of cloud prototype sends the screen picture to App client and web client respectively.
App client receives the screen picture of one cloud prototype, passes through its one cloud of UI interface display The screen picture of prototype.
Web client receives the screen picture of one cloud prototype, passes through the one cloud prototype of web displaying The screen picture.
Further, after the Splash Screen Bitmap that App client shows selected cloud prototype, it is true that user is based on the cloud Software test operation can be performed in the screen picture of machine, specifically:
After the screen picture that App client passes through the one cloud prototype of its UI interface display, it can also receive For the operational order of one cloud prototype, as the 4th test instruction, the 4th test instruction is sent to the clothes Business device.
Server is instructed according to the 4th test, is controlled one cloud prototype and is executed the four tests instruction;And The screen picture that one cloud prototype executes after the 4th test instruction is obtained to send out respectively as new screen picture Give the App client and the web client.
App client updates the described of its UI interface display according to the new screen picture of one cloud prototype The screen picture of one cloud prototype;Web client updates according to the new screen picture of one cloud prototype and passes through net The screen picture of one cloud prototype of page display.
It should be noted that the test instruction of selected cloud prototype is issued when web client is under the mode of single machine test, It is achieved in and shows the Splash Screen Bitmap of the same cloud prototype in web client and App client, further, passing through In the state that web client and App client show the Splash Screen Bitmap of the same cloud prototype, user can also pass through web The corresponding test operation of client executing, and the result synchronous feedback of part test operation is to web client and App client.It is logical It crosses web client and App client synchronization shows the screen picture of identical cloud prototype, be conducive to multiple testers to test As a result observation.
Wherein, App client passes through the screen picture of its UI interface display cloud prototype;Web client passes through web displaying The screen picture of target cloud prototype.Single machine test and multimachine are provided with two kinds of test patterns of screen (referring to above-mentioned in web client It is described), do not include multimachine with the test pattern of screen in App client.When user is stepped on by App client and web client In the case where the server of land, web client is switched to the mode of single machine test, no matter user by App client or Web client performs test operation, and web client and the screen picture for the cloud prototype that App client is shown are all the same.
It should be noted that the test operation that user executes in App client or web client, can be any normal The operations such as the operation on the prototype of rule, such as installation software, uninstall, change theme.Pass through web client and/or App visitor After family end shows the screen picture of cloud prototype, user can pass through web client as operating the software on normal prototype And/or App client operation software under testing.
Fig. 2 is the schematic diagram at the remote testing interface of the App client of an embodiment, wherein object to be tested is a answers With software, as shown in Figure 2, the multiple cloud prototypes connecting with server are the smart phones of multiple and different manufacturers, different model.? The server end has recorded the facility information of the multiple cloud prototypes connected, and user can log in the clothes by web client Business device checks the facility information of multiple cloud prototypes of server end connection.
Further, user selects multimachine is same to shield mode by web client, and multiple cloud prototypes is selected to participate in test, Server returns to the Splash Screen Bitmap of selected multiple cloud prototypes, and the initial screen of multiple cloud prototypes is shown by web client Curtain image, as shown in Figure 3.Then user is answered in selected multiple cloud prototypes by the operation of web client, analog The test operations such as installation or unloading with software, web client send corresponding test instruction, Server remote to server The corresponding multiple cloud prototype installations of control unload the application software;Web client further displays multiple cloud prototype installations Or unload screen picture after the application software.
After the screen picture after web client shows that multiple cloud prototypes install the application software, user can also lead to It crosses web client and carries out other operations, to simulate the operation for using the application software in selected multiple cloud prototypes, web visitor Family end sends corresponding test instruction to server, and Server remote controls the application software in corresponding multiple cloud prototypes and executes Same operation, and the interface image after executing corresponding operating is returned to web client, web client further displays multiple Cloud prototype executes the screen picture after corresponding test instruction.
Further, a main equipment can also be arranged with several from equipment by web client in user, and user passes through Web client carries out test operation to the setting software in main equipment, not only can control long-range main equipment cloud prototype and executes Corresponding instruction can also control the long-range setting software from the corresponding cloud prototype of equipment simultaneously and also execute corresponding instruction, Realize multimachine with the effect of screen linkage.
According to an embodiment of the present invention, specifically, if the web client receives the behaviour for master-slave equipment to be arranged It instructs, a main equipment is determined from at least two clouds prototype according to the operational order, other cloud prototypes are determined as From equipment, Xiang Suoshu server sends the main equipment and the information from equipment.Wherein, the settable phase of web client Operational controls/the option of operation answered, for receiving the operational order of setting master-slave equipment, relevant operational controls/operation choosing The position of item can be laid out according to the actual situation.
Correspondingly, the server receive the first test instruction (i.e. in some cloud prototype set software operation refer to Enable) after, if the first test instruction is the instruction for the main equipment, according to the first test instruction control Main equipment and the setting software from the device are performed both by the first test instruction;And obtain the main equipment and The setting software described from the device executes the screen picture after the first test instruction, and is sent to the web visitor Family end.
Correspondingly, web client can set software according to main equipment and from the device and execute the first test instruction Screen picture afterwards updates the main equipment shown in the webpage and the screen picture from equipment.
Through the foregoing embodiment, it is true can to control in batches multiple clouds by the multimachine of web client with test pattern is shielded by user Machine is tested simultaneously, i.e., with screen linkage;It can also be tested for some cloud prototype.In other words, when batch testing cloud When prototype, shown in Fig. 3 shown in the screen picture of at least two in 3 cloud prototypes can change simultaneously, when for a certain When a control cloud prototype, shown in Fig. 3 shown in 3 cloud prototypes screen picture in, only one changes.
Based on the test operation of above-mentioned web client, the application software can be tested and run in multiple long-distance cloud prototypes It is whether normal, realize the remote real machine test of the application software.
By the above-mentioned test system structure based on cloud prototype, user can not only check the clothes by web client The facility information of multiple cloud prototypes of business device end connection, and in the screen picture that selected cloud prototype is locally displayed, it is based on the screen Image carries out the remote testing operation of application software;Multiple clouds of server end connection can also be checked by App client The facility information of prototype, and the screen picture of selected cloud prototype is shown in intelligent terminals such as mobile phones, and then is based on the screen map The screen operator of the intelligent terminals such as picture and mobile phone, is realized to application software in the test operation for selecting cloud prototype;It therefore can Overcome that existing test environment is single, can only by test webpage to the long-range control for carrying out cloud the problem of, and pass through APP The gesture operation at end also advantageously improves testing time and the efficiency of application software;And because server is respectively to web client End, App client send the screen picture of long-distance cloud prototype respectively, it is also possible that tester to the monitoring of test effect more It is comprehensive;In addition, further improving testing efficiency with test is shielded by the multimachine of web client.
Fig. 4 is the structure chart of the test macro based on cloud prototype in another embodiment, in the test based on cloud prototype It further include the access terminal being connect with server on the basis of above-mentioned system structure, the server passes through described in system Access terminal and multiple cloud prototypes communicate to connect.
An embodiment according to the present invention, the test macro based on cloud prototype based on shown in Fig. 4, server can also be used In, will test instruction being sent to the access terminal, corresponding cloud prototype is transmitted to by the access terminal;And pass through institute State the screen picture that access terminal obtains corresponding cloud prototype.
The communication connection and data forwarding that server and multiple cloud prototypes are realized by access terminal are conducive to system expansion Exhibition, such as increase or replace and need to connect cloud prototype with server, further, it is also possible to guarantee different types of cloud prototype and clothes Compatibility between business device.
App client in above-described embodiment can be the client suitable for android terminal.It should be noted that should The installation of App client and the other applications of android terminal are similar, therefore can be compatible with based on the various intelligence of Android system Terminal, such as the intelligent terminals such as Android mobile phone or Android plate.
An embodiment according to the present invention, the connection between server and the App client are logical for the work websocket that enjoys a double blessing Letter connection.The work websocket communication connection for example, App client can be enjoyed a double blessing by OkHttpClient and server foundation, It is communicated to connect by the websocket, App client can effectively receive the screen picture of the target cloud prototype of server transmission Data.Specific receive process can be such that the App client by inheriting socketListener's ImageListener class monitors the byte stream that websocket is transmitted, and receives the byte stream that the server is sent, institute with this Stating byte stream is the corresponding byte stream of screen picture.In addition, App client can just be converted thereof into one byte stream of every reception Bitmap bitmap shows the Bitmap bitmap by ImageView, and it is true to be achieved in the cloud that reception server is sent The screen picture of machine, and come out by the UI interface display of App client.
Pass through above-mentioned communication connection image transmission/reception mode, it is ensured that when carrying out software test by cloud prototype Testing efficiency avoids the occurrence of the phenomenon that testing Caton.
In one scenario, user tests application software to be measured by the App client installed in smart phone When, which controls the mobile phone (cloud connecting with server of distal end by sending test instruction to server Prototype), during realization, App client utilizes message queue, sends event message to server, server receives corresponding Message can call corresponding method to go to operate corresponding remote real machine.
On the other hand, web client remote testing operation also can use message queue realization, and web client is to service Device sends event message, and server receives corresponding message, corresponding method can be called to remove operation remote real machine, detailed process can To include:
1) web client receives the screen picture for multiple mobile phones transmission that server is sent, after image quality adjusts, simultaneously It is shown in web client;
2) various mouse action events of the web client monitoring users in web client;
3) initial message queue;
4) channel of corresponding multiple mobile phones, creation connection are taken;
5) it parses mouse action event and is converted to the test instruction of response;
6) test instruction is transferred to server, test instruction is sent to by corresponding multiple remote handsets by server, The screen picture that remote handset returns is received, realizes test of the software under testing in the remote handset.
An embodiment according to the present invention, web client can also obtain the web client in real time and work as with the server Preceding network quality, the picture that the screen picture of at least two clouds prototype of web displaying is passed through according to network quality adjustment Matter.Through this embodiment, can be based on web client and the current network quality of server, adaptively adjustment in batches is multiple The image quality of the screen picture of cloud prototype.
Another embodiment according to the present invention, if web client receive in at least two clouds prototype at least The operational order for being used to adjust image quality of one cloud prototype can also adjust the institute that pass through web displaying according to the adjustment instruction State the image quality of the screen picture of at least one cloud prototype at least two cloud prototypes.Through this embodiment, user can have choosing Ground is selected, the image quality for the screen picture in the cloud prototype of part that adjustment web client is shown.
Such as can adaptively switch between high definition, SD, three kinds of image quality of smoothness, to reach in different intelligent terminal The effect of close friend's display.Wherein, picture and compression ratio Experimental comparison data such as table 1, table 2 are adjusted.
1 picture compression ratio of table and dimension of picture
The actual flow of 2 frame per second of table and picture compression than generation
Frame per second Picture compression ratio Actual flow
60 100% 4.02M/S
60 80% 2.74M/S
60 50% 2.41M/S
30 80% 1.43M/S
30 50% 1.22M/S
30 20% 1.10M/S
15 50% 0.63M/S
15 20% 0.55M/S
15 10% 0.52M/S
Similarly, App the client also available App client and the current network quality of the server, according to The network quality adjusts the image quality of the screen picture by the UI interface display.Or according to image quality adjustment instruction, adjustment is logical Cross the image quality of the screen picture of the UI interface display.
The method bring beneficial effect of the remote testing of above-described embodiment include: increase test scene (web terminal and The fusion use at the end App), tester can be allowed to carry out the prototype test of application software anywhere or anytime, better use is provided Family experience, reduces the cost of test, improves testing efficiency;In addition it can simultaneously to the test results of multiple cloud prototypes into Row improves test effect to this display.
Fig. 5 is the flow chart of the test method based on cloud prototype in an embodiment, is applied to above-mentioned web visitor in this way Family is illustrated for end, comprising the following steps:
S401 passes through the screen picture of at least two cloud prototype of web displaying;
S402 is received for the operational order for setting software in target cloud prototype, as the first test instruction;The target Cloud prototype is the cloud prototype in at least two clouds prototype;
The first test instruction is sent to corresponding server by S403;The first test instruction is for triggering It states server and controls the target cloud prototype execution one test instruction, and it is soft to obtain setting described in the target cloud prototype Part executes the screen picture after the first test instruction, as new screen picture;
S404 receives the new screen picture that the server is sent, and according to the new screen picture, updates institute State the screen picture of the prototype of target cloud described in webpage.
Further, an embodiment according to the present invention, in step S401, web client is shown at least simultaneously by webpage Before the screen picture of two cloud prototypes, further comprise the steps of:
Web client, which is received, to be surveyed as the second test instruction by described second for starting multimachine with the operational order of screen Examination instruction is sent to the server;It is described to include for starting multimachine with the operational order of screen, from server connection At least two cloud prototypes are selected in multiple cloud prototypes to participate in the instruction of test
Server is instructed according to second test, is obtained at least two cloud prototypes of the web client selection, is obtained The screen picture of at least two clouds prototype, and it is sent to web client.
Web client receives the screen picture of at least two clouds prototype, shows described at least two simultaneously by webpage The screen picture of a cloud prototype.
Thus user can realize the various operations to long-distance cloud prototype based on web client as being operated prototype, including The operation such as software installation, unloading, operation, and comparison can be facilitated to survey by showing the screen pictures of multiple cloud prototypes simultaneously Test result.
It should be understood that above each step is described from the angle of web client, specific test process It can refer to the description in the embodiment of the above-mentioned test macro based on cloud prototype with data transmission.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
In one embodiment, a kind of intelligent terminal, including memory and processor are provided, is stored with meter in memory Calculation machine program, the processor perform the steps of when executing computer program
Show the screen picture of at least two cloud prototypes simultaneously by webpage;It receives to be directed in target cloud prototype and sets software Operational order, as first test instruction;The target cloud prototype is the cloud prototype in at least two clouds prototype;By institute It states the first test instruction and is sent to corresponding server;The first test instruction controls the mesh for triggering the server It marks cloud prototype and executes the test instruction, and obtain setting software described in the target cloud prototype and execute first test Screen picture after instruction, as new screen picture;The new screen picture that the server is sent is received, according to The new screen picture updates the screen picture of target cloud prototype described in the webpage.
It should be understood that each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not Combination all possible to each technical characteristic in above-described embodiment is all described, as long as however, these technical characteristics Contradiction is not present in combination, all should be considered as described in this specification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The term " includes " of embodiment hereof and " having " and their any deformations, it is intended that cover non-exclusive packet Contain.Such as contain series of steps or the process, method, system, product or equipment of (module) unit are not limited to arrange Out the step of or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these mistakes The intrinsic other step or units of journey, method, product or equipment.
Referenced herein " multiple " refer to two or more."and/or", the association for describing affiliated partner are closed System indicates may exist three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, individualism These three situations of B.Character "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Referenced herein " first second " be only be the similar object of difference, do not represent for the specific of object Sequence, it is possible to understand that specific sequence or precedence can be interchanged in ground, " first second " in the case where permission.It should manage The object that solution " first second " is distinguished is interchangeable under appropriate circumstances so that the embodiments described herein can in addition to Here the sequence other than those of diagram or description is implemented.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of test macro based on cloud prototype, which is characterized in that including web client and server, the web client It is connect with the server communication;The server is also used to connect multiple cloud prototypes;
The web client obtains for passing through the screen picture of at least two cloud prototype of web displaying and is directed to target cloud prototype The first test instruction is sent to the server as the first test instruction by the operational order of middle setting software;It is described Target cloud prototype is the cloud prototype in at least two clouds prototype;
The server executes institute for controlling setting software described in the target cloud prototype according to the first test instruction State the first test instruction;And setting software described in the acquisition target cloud prototype executes described first and tests after instruction The new screen picture is sent to the web client as new screen picture by screen picture;
The web client, for according to the new screen picture, updating the target cloud prototype shown in the webpage Screen picture.
2. system according to claim 1, which is characterized in that
The web client is also used to receive for starting multimachine with the operational order of screen, as the second test instruction, by institute It states the second test instruction and is sent to the server;It is described to include for starting multimachine with the operational order of screen, from the service At least two cloud prototypes are selected in multiple cloud prototypes of device connection to participate in the instruction of test;
The server, at least two clouds for being also used to obtain the web client selection according to the second test instruction are true Machine, obtains the screen picture of at least two clouds prototype, and is sent to the web client;
The web client is also used to pass through webpage while showing the screen picture of at least two clouds prototype.
3. system according to claim 2, which is characterized in that the web client is specifically used for through webpage with split screen Mode shows the screen picture of at least two clouds prototype simultaneously;Alternatively, by described in webpage in a superimposed manner display simultaneously The screen picture of at least two cloud prototypes.
4. system according to claim 1, which is characterized in that it further include access terminal, the access terminal and the clothes Business device connection, the server passes through the access terminal and multiple cloud prototypes communicate to connect.
5. system according to claim 4, which is characterized in that
The server, specifically for the first test instruction/the second test instruction is sent to the access terminal, The target cloud prototype is transmitted to by the access terminal;And the target cloud prototype is obtained by the access terminal The screen picture/new the screen picture.
6. system according to any one of claims 1 to 5, which is characterized in that
The web client is also used to obtain the web client and the current network quality of the server, according to the net The image quality that network Mass adjust- ment passes through the screen picture of at least two clouds prototype of web displaying;
And/or
The web client, if being also used to receive the use at least one cloud prototype in at least two clouds prototype In the operational order of adjustment image quality, according to the operational order of the adjustment image quality, adjustment passes through described at least the two of web displaying The image quality of the screen picture of at least one cloud prototype in a cloud prototype.
7. system according to any one of claims 1 to 5, which is characterized in that
The web client, if being also used to receive the operational order for master-slave equipment to be arranged, according to the operational order from institute It states and determines a main equipment at least two cloud prototypes, other cloud prototypes are determined as from equipment, Xiang Suoshu server sends institute State main equipment and the information from equipment;
The server is surveyed if being also used to the first test instruction is the instruction for the main equipment according to described first Examination instruction controls the main equipment and the setting software from the device is performed both by the first test instruction;And it obtains The main equipment and the setting software described from the device is taken to execute the screen picture after the first test instruction, concurrently Give the web client;
The web client is also used to execute described first according to the main equipment and the setting software described from the device Screen picture after test instruction, updates the main equipment shown in the webpage and the screen picture from equipment.
8. system according to claim 1, which is characterized in that further include App client;The APP client with it is described Server communication connection;
The App client is tested as third and is instructed for receiving the operational order for starting single machine test;It will be described Third test instruction is sent to the server;The operational order for starting single machine test includes, from the server A cloud prototype is selected to participate in the instruction of test in multiple cloud prototypes of connection;
The server is also used to test instructing the one cloud for obtaining the App client selection true according to the third Machine obtains the screen picture of one cloud prototype, respectively to described in the App client and web client transmission Screen picture;
The App client is also used to the screen picture by the one cloud prototype of its UI interface display;
The web client is also used to the screen picture by the one cloud prototype of web displaying.
9. system according to claim 8, which is characterized in that
The App client is also used to receive the operational order for being directed to one cloud prototype, will as the 4th test instruction The 4th test instruction is sent to the server;
The server is used to be instructed according to the 4th test, controls one cloud prototype and executes the four tests instruction; And it obtains the screen picture that one cloud prototype executes after the 4th test instruction and divides as new screen picture It is not sent to the App client and the web client;
The App client is also used to update one cloud prototype of its UI interface display according to the new screen picture Screen picture;
The web client is also used to update the one cloud prototype for passing through web displaying according to the new screen picture Screen picture.
10. a kind of test method based on cloud prototype characterized by comprising
Pass through the screen picture of at least two cloud prototype of web displaying;
It receives for the operational order for setting software in target cloud prototype, as the first test instruction;The target cloud prototype is Cloud prototype in at least two clouds prototype;
The first test instruction is sent to corresponding server;The first test instruction is for triggering the server control It makes the target cloud prototype and executes the test instruction, and obtain described in the execution of setting software described in the target cloud prototype Screen picture after first test instruction, as new screen picture;
The new screen picture that the server is sent is received to be updated in the webpage according to the new screen picture The screen picture of the target cloud prototype.
CN201811598078.2A 2018-12-26 2018-12-26 Test macro and test method based on cloud prototype Pending CN109600282A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811598078.2A CN109600282A (en) 2018-12-26 2018-12-26 Test macro and test method based on cloud prototype

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811598078.2A CN109600282A (en) 2018-12-26 2018-12-26 Test macro and test method based on cloud prototype

Publications (1)

Publication Number Publication Date
CN109600282A true CN109600282A (en) 2019-04-09

Family

ID=65964427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811598078.2A Pending CN109600282A (en) 2018-12-26 2018-12-26 Test macro and test method based on cloud prototype

Country Status (1)

Country Link
CN (1) CN109600282A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677477A (en) * 2019-09-27 2020-01-10 京东数字科技控股有限公司 Processing method for electronic equipment, server and second electronic equipment
CN111866160A (en) * 2020-07-28 2020-10-30 网易(杭州)网络有限公司 Multi-machine control method, device, equipment and storage medium
CN112825528A (en) * 2019-11-21 2021-05-21 Oppo广东移动通信有限公司 Information pushing method and related equipment
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method
CN113656289A (en) * 2021-07-30 2021-11-16 厦门雅基软件有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN113821428A (en) * 2020-06-18 2021-12-21 阿里巴巴集团控股有限公司 Cloud testing method and device, electronic equipment and computer storage medium
CN114064447A (en) * 2020-08-05 2022-02-18 腾讯科技(深圳)有限公司 Interface test method and device, storage medium and terminal
CN114244741A (en) * 2021-12-16 2022-03-25 阿波罗智联(北京)科技有限公司 Link testing method, device and system, electronic equipment and storage medium
CN114466401A (en) * 2022-03-02 2022-05-10 北京新氧科技有限公司 Image transmission method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130054792A1 (en) * 2011-08-25 2013-02-28 Salesforce.Com, Inc. Cloud-based performance testing of functionality of an application prior to completion of development
CN105975367A (en) * 2016-04-29 2016-09-28 腾讯科技(深圳)有限公司 Mobile equipment test method and device
CN105988688A (en) * 2016-01-22 2016-10-05 腾讯科技(深圳)有限公司 Screen capture method and apparatus
CN108307021A (en) * 2018-01-18 2018-07-20 中国工商银行股份有限公司 Mobile terminal parallel to follow test equipment, cloud prototype and method
CN108804302A (en) * 2017-05-04 2018-11-13 腾讯科技(深圳)有限公司 A kind of remote test method, system and relevant device
CN108833963A (en) * 2018-05-31 2018-11-16 腾讯科技(上海)有限公司 Method, computer equipment, readable storage medium storing program for executing and the system of display interface picture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130054792A1 (en) * 2011-08-25 2013-02-28 Salesforce.Com, Inc. Cloud-based performance testing of functionality of an application prior to completion of development
CN105988688A (en) * 2016-01-22 2016-10-05 腾讯科技(深圳)有限公司 Screen capture method and apparatus
CN105975367A (en) * 2016-04-29 2016-09-28 腾讯科技(深圳)有限公司 Mobile equipment test method and device
CN108804302A (en) * 2017-05-04 2018-11-13 腾讯科技(深圳)有限公司 A kind of remote test method, system and relevant device
CN108307021A (en) * 2018-01-18 2018-07-20 中国工商银行股份有限公司 Mobile terminal parallel to follow test equipment, cloud prototype and method
CN108833963A (en) * 2018-05-31 2018-11-16 腾讯科技(上海)有限公司 Method, computer equipment, readable storage medium storing program for executing and the system of display interface picture

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677477A (en) * 2019-09-27 2020-01-10 京东数字科技控股有限公司 Processing method for electronic equipment, server and second electronic equipment
CN112825528B (en) * 2019-11-21 2022-11-01 Oppo广东移动通信有限公司 Information pushing method and related equipment
CN112825528A (en) * 2019-11-21 2021-05-21 Oppo广东移动通信有限公司 Information pushing method and related equipment
CN113821428A (en) * 2020-06-18 2021-12-21 阿里巴巴集团控股有限公司 Cloud testing method and device, electronic equipment and computer storage medium
CN111866160A (en) * 2020-07-28 2020-10-30 网易(杭州)网络有限公司 Multi-machine control method, device, equipment and storage medium
CN111866160B (en) * 2020-07-28 2023-09-15 网易(杭州)网络有限公司 Multi-machine control method, device, equipment and storage medium
CN114064447B (en) * 2020-08-05 2024-05-31 腾讯科技(深圳)有限公司 Interface testing method and device, storage medium and terminal
CN114064447A (en) * 2020-08-05 2022-02-18 腾讯科技(深圳)有限公司 Interface test method and device, storage medium and terminal
CN113138919A (en) * 2021-04-19 2021-07-20 广州掌动智能科技有限公司 Multi-client testing system and method
CN113138919B (en) * 2021-04-19 2022-04-22 广州掌动智能科技有限公司 Multi-client testing system and method
CN113656289A (en) * 2021-07-30 2021-11-16 厦门雅基软件有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN114244741A (en) * 2021-12-16 2022-03-25 阿波罗智联(北京)科技有限公司 Link testing method, device and system, electronic equipment and storage medium
CN114244741B (en) * 2021-12-16 2023-11-14 阿波罗智联(北京)科技有限公司 Link testing method, device, system, electronic equipment and storage medium
CN114466401A (en) * 2022-03-02 2022-05-10 北京新氧科技有限公司 Image transmission method and electronic device
CN114466401B (en) * 2022-03-02 2024-03-22 北京新氧科技有限公司 Image transmission method and electronic equipment

Similar Documents

Publication Publication Date Title
CN109600282A (en) Test macro and test method based on cloud prototype
CN109684218A (en) Test macro and test method based on cloud prototype
CN108804302B (en) Remote testing method, system and related equipment
US8627217B2 (en) Window display system, window display method, program development support device, and server device
CN109446570B (en) Business process display method, device, computer equipment and storage medium
CN103984626B (en) A kind of method and device for generating test case script
CN110687809B (en) Method and device for selecting master control equipment and equipment linkage system
US11593074B2 (en) System, method, and apparatus for data-centric networked application development services
CN109388532A (en) Test method, device, electronic equipment and computer-readable storage medium
CN104834595A (en) Visual automatic test method and system
CN110309051A (en) Method, system, equipment and the storage medium of management of test cases
CN109669714A (en) Firmware upgrade method, device and computer readable storage medium
CN103309802A (en) Method and device for testing system stability in mobile terminal
CN110032361B (en) Experiment simulation method, experiment simulation device, electronic equipment and computer readable storage medium
CN104092579B (en) The analogy method of network type and device
CN110489312A (en) Data correlation method and device for control trigger data acquisition
CN106572139A (en) Multi-terminal control method and system, terminal, and server
CN106354546A (en) Virtual machine remote control method and system
CN111159039A (en) Service simulation method, system, device and storage medium
CN109213564A (en) Intelligent household control interface adjusting method and device, intelligent terminal and medium
CN102077553A (en) Method, apparatus and computer program product for providing context triggered distribution of context models
CN111694550B (en) Page display control method, device and system
CN109471647A (en) A kind of update method of data, device, electronic equipment and readable medium
CN109194535A (en) A kind of terminal test system and method
JP5632553B1 (en) Display data generating apparatus and program

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
TA01 Transfer of patent application right

Effective date of registration: 20220121

Address after: Room 1423, No. 1256 and 1258, Wanrong Road, Jing'an District, Shanghai 200040

Applicant after: Tianyi Digital Life Technology Co.,Ltd.

Address before: 1 / F and 2 / F, East Garden, Huatian International Plaza, 211 Longkou Middle Road, Tianhe District, Guangzhou, Guangdong 510630

Applicant before: Century Dragon Information Network Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190409

RJ01 Rejection of invention patent application after publication