CN105512029B - A kind of method, server and system for testing intelligent terminal - Google Patents

A kind of method, server and system for testing intelligent terminal Download PDF

Info

Publication number
CN105512029B
CN105512029B CN201510847415.7A CN201510847415A CN105512029B CN 105512029 B CN105512029 B CN 105512029B CN 201510847415 A CN201510847415 A CN 201510847415A CN 105512029 B CN105512029 B CN 105512029B
Authority
CN
China
Prior art keywords
test
message
test assignment
intelligent terminal
intelligent
Prior art date
Application number
CN201510847415.7A
Other languages
Chinese (zh)
Other versions
CN105512029A (en
Inventor
钟基洪
李功文
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Priority to CN201510847415.7A priority Critical patent/CN105512029B/en
Publication of CN105512029A publication Critical patent/CN105512029A/en
Application granted granted Critical
Publication of CN105512029B publication Critical patent/CN105512029B/en

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
    • 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 kind of method, server and systems for testing intelligent terminal.Method includes: that the multiple intelligent terminals different from model establish wireless connection;It interacts, test assignment configuration file is obtained according to the instruction of controlling terminal and is saved in database with controlling terminal;Established wireless connection is utilized to interact with multiple intelligent terminals, it sends the test assignment configuration file in database on intelligent terminal, and receives intelligent terminal and the test result data sent after corresponding operation is executed according to the specified test assignment configuration file.In technical solution of the present invention, server and the communication of test is carried out by being wirelessly connected as between the intelligent terminal of test machine, such a server can be connect with more intelligent terminals, and no longer receive the limitation of the connection quantity of line connection, number of servers needed for greatly reducing test, reduces costs.

Description

A kind of method, server and system for testing intelligent terminal

Technical field

The present invention relates to automatization testing technique fields, and in particular to it is a kind of test the method for intelligent terminal, server and System.

Background technique

Before issuing a intelligent terminal application software, require to be tested on existing various types in the market, To detect whether the different editions of this software can correctly run on the intelligent terminal of various types.And publication change It requires to cover most of type on the market when biggish version, otherwise collapse accident is too many after product publication, influences user Experience.

Current way is that the test of various types is connected to work by USB line with intelligent terminal (such as mobile phone, PAD etc.) In PC machine for testing service device, is communicated using ADB debugging bridge mode, script to be tested is pushed to and the PC from PC It is run on the hardwired each intelligent terminal of machine, and operation result is obtained from intelligent terminal by tool.

But this hard connecting mode limits the intelligent terminal number that a PC machine can connect.The USB interface of PC machine Current maxima be fixed, therefore the intelligent terminal limited amount that can be connected, i.e., doing extension using hub is also ten Divide limited.On the other hand, currently there are three categorles terminal operating systems: Android, ios and Windows Phone, especially Android operation system, since system is increased income, and the cell phone manufacturer being related to is too miscellaneous too much, therefore causes Mobile phone fragmentation especially severe, therefore test and the type covered is needed to reach hundreds of or even thousands of kinds.This just need tens very Intelligent terminal is connected as testing service device to more PC machine, testing cost is very high.

Summary of the invention

In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the method and corresponding server and system of the test intelligent terminal of problem.

According to one aspect of the present invention, a kind of method for testing intelligent terminal is provided, wherein this method comprises:

The multiple intelligent terminals different from model, which are established, to be wirelessly connected;

It is interacted with controlling terminal;By the interaction with controlling terminal, test is obtained according to the instruction of controlling terminal and is appointed Business configuration file is simultaneously saved in database, and is instructed according to the test assignment management of controlling terminal in the database Test assignment configuration file is managed operation;

Established wireless connection is utilized to interact with multiple intelligent terminals;By the interaction with multiple intelligent terminals, It sends the test assignment configuration file in database on one or more intelligent terminals, and receives one or more of Intelligent terminal executes the test result data sent after corresponding operation according to the specified test assignment configuration file.

Optionally, test assignment configuration file described in one includes one or more of such as lower section, and must include Section is described:

Section is described: for describing the essential information of test assignment;

First kind expanding section: for describing the test assignment money that is located at server on required when running on intelligent terminal Source file;

Second class expanding section: for describing, test assignment is required when running on intelligent terminal to have been positioned at intelligence end The resource file at end.

Optionally, a section includes: one or more key-value pairs;

The description section includes: title: the functional descriptions information of test assignment;

Time-out time: specific timeout value;

The first kind expanding section includes: resource file name: the title of a specific resource file;

It is issued to the position of intelligent terminal: an absolute path on intelligent terminal;

The second class expanding section includes: test case call number: specific test case;

Optionally, described to utilize established wireless connection to interact with multiple intelligent terminals to include:

Utilize the message of established wireless connection and the following format of intelligent terminal interactive:

General message, comprising: message length field, operation field and at least one parameter field;

File data stream packet, comprising: the data flow of message length field and file;

Communication command message, comprising: message length field, session person's identity field, operation field and at least one parameter.

Optionally, described to utilize established wireless connection to interact with multiple intelligent terminals to include:

The log on request message that intelligent terminal is sent is received, which includes: type information and the communication association of intelligent terminal Discuss version number;

It is identified and is recorded according to identity of the log on request message to the intelligent terminal;

The response message that logs in for supporting corresponding communications protocol is returned to the intelligent terminal, or is returned not to the intelligent terminal That supports corresponding communications protocol logs in response message;

And it receives logging in for intelligent terminal transmission and exits message.

Optionally, described to utilize established wireless connection to interact with multiple intelligent terminals to include:

Test assignment profile data stream packet is sent to one or more intelligent terminals, which includes: that test is appointed The byte length of business profile data stream and the binary data stream of test assignment configuration file;

Resource file data stream packet is sent to one or more of intelligent terminals, which includes: resource file number According to the byte length of stream and the binary data stream of resource file.

Optionally, to one or more of intelligent terminals send resource file data stream packet before, this method into One step includes:

Resource file sending out notice message is sent to one or more intelligent terminals, which includes: resource to be pushed File needs absolute path, the resource of storage on the client literary in filename, the resource file to be pushed of server end The length of part and the characteristic value of the resource file;

Receive the already present response message of the resource file or need to receive that one or more of intelligent terminals are replied The response message of the resource file;

When what is received is the response message for needing to receive the resource file, resource file data is sent to intelligent terminal Stream packet.

It is optionally, described that established wireless connection is utilized to interact with multiple intelligent terminals further include:

Test case is sent to one or more of intelligent terminals and executes message, which includes: that the test case exists The executable command row of call number, the test case in test assignment configuration file and the opportunity for executing next test case Information;

The test result data message that one or more of intelligent terminals are sent is received, which includes: corresponding test One test result data of the mark of task configuration file and the test case being currently running.

Optionally, described interact with controlling terminal includes:

It receives the test assignment configuration file that controlling terminal is sent and adds message, which includes: test assignment configuration text The title and intelligent terminal list of part;

The test assignment configuration file is added into test assignment configuration file indicated by message and corresponding intelligence Terminal list is added in the database.

Optionally, described interact with controlling terminal further includes following one or more:

It receives the database that controlling terminal is sent and shows request message;Test assignment into controlling terminal returned data library The profile list;

It receives the test assignment that controlling terminal is sent and runs command message, which includes: existing one in database The title of test assignment configuration file and the client side list for needing to run the test assignment configuration file;

It receives the nominative testing task that controlling terminal is sent and deletes message, which includes: that test assignment to be deleted is matched Set the title of file;The test assignment configuration file is deleted from database;

It receives the intelligent terminal that controlling terminal is sent and shows request message;Connection intelligence has been established eventually to controlling terminal return The list at end;

Receive the removing test assignment request message that controlling terminal is sent;Delete all test assignments in the database Configuration file;

Receive controlling terminal transmission exits request message;It closes server and exits.

Second aspect according to the present invention additionally provides a kind of server for testing intelligent terminal, wherein the server packet It includes:

Radio-cell is established suitable for the multiple intelligent terminals different from model and is wirelessly connected;

Test processes unit, suitable for being interacted with controlling terminal;By the interaction with controlling terminal, according to controlling terminal Instruction obtain and test assignment configuration file and be saved in database, and instructed according to the test assignment management of controlling terminal Operation is managed to the test assignment configuration file in the database;And it is established using the radio-cell wireless Connection is interacted with multiple intelligent terminals;By the interaction with multiple intelligent terminals, the test assignment in database is configured File is sent on one or more intelligent terminals, and receives one or more of intelligent terminals according to the specified survey Trial business configuration file executes the test result data sent after corresponding operation.

Optionally, test assignment configuration file described in one includes one or more of such as lower section, and must include Section is described:

Section is described: for describing the essential information of test assignment;

First kind expanding section: for describing the test assignment money that is located at server on required when running on intelligent terminal Source file;

Second class expanding section: for describing, test assignment is required when running on intelligent terminal to have been positioned at intelligence end The resource file at end.

Optionally, a section includes: one or more key-value pairs;

The description section includes: title: the functional descriptions information of test assignment;

Time-out time: specific timeout value;

The first kind expanding section includes: resource file name: the title of a specific resource file;

It is issued to the position of intelligent terminal: an absolute path on intelligent terminal;

The second class expanding section includes: test case call number: specific test case;

Optionally, the test processes unit, suitable for utilizing connected wireless connection and the following lattice of intelligent terminal interactive The message of formula:

General message, comprising: message length field, operation field and at least one parameter field;

File data stream packet, comprising: the data flow of message length field and file;

Communication command message, comprising: message length field, session this identity field, operation field and at least one parameter.

Optionally, the test processes unit, the log on request message sent suitable for receiving intelligent terminal, the message packet It includes: the type information of intelligent terminal and communications protocol version number;It is carried out according to identity of the log on request message to the intelligent terminal Identification and record;Response message is logged in the corresponding communications protocol of intelligent terminal return support, or is returned to the intelligent terminal Return do not support corresponding communications protocol log in response message;And it receives logging in for intelligent terminal transmission and exits message.

Optionally, the test processes unit is suitable for sending test assignment configuration file to one or more intelligent terminals Data stream packet, the message include: test assignment profile data stream byte length and test assignment configuration file two Binary data stream;Resource file data stream packet is sent to one or more of intelligent terminals, which includes: resource file The byte length of data flow and the binary data stream of resource file.

Optionally, the test processes unit is suitable for sending resource file number to one or more of intelligent terminals Before stream packet, it is further adapted for sending resource file sending out notice message, the message packet to one or more intelligent terminals Include: resource file to be pushed needs to store on the client exhausted in filename, the resource file to be pushed of server end The characteristic value of length and the resource file to path, the resource file;Receive what one or more of intelligent terminals were replied The already present response message of the resource file or the response message for needing to receive the resource file;When what is received is to need to receive When the response message of the resource file, resource file data stream packet is sent to intelligent terminal.

Optionally, the test processes unit is further adapted for holding to one or more of intelligent terminals transmission test case Row message, the message include: call number, the executable life of the test case of the test case in test assignment configuration file It enables row and executes the occasion information of next test case;Receive the test result number that one or more of intelligent terminals are sent According to message, which includes: a survey of the mark of corresponding test assignment configuration file and the test case being currently running Test result data.

Optionally, the test processes unit adds report suitable for receiving the test assignment configuration file that controlling terminal is sent Text, the message include: the title and intelligent terminal list of test assignment configuration file;The test assignment configuration file is added Test assignment configuration file indicated by message and corresponding intelligent terminal list are added in the database.

Optionally, the test processes unit, is further adapted for,

It receives the database that controlling terminal is sent and shows request message;Test assignment into controlling terminal returned data library The profile list;

It receives the test assignment that controlling terminal is sent and runs command message, which includes: existing one in database The title of test assignment configuration file and the client side list for needing to run the test assignment configuration file;

It receives the nominative testing task that controlling terminal is sent and deletes message, which includes: that test assignment to be deleted is matched Set the title of file;The test assignment configuration file is deleted from database;

It receives the intelligent terminal that controlling terminal is sent and shows request message;Connection intelligence has been established eventually to terminal device return The list at end;

Receive the removing test assignment request message that controlling terminal is sent;Delete all test assignments in the database Configuration file;

Receive controlling terminal transmission exits request message;It closes server and exits.

The third aspect according to the present invention additionally provides a kind of system for testing intelligent terminal, wherein the system includes upper State described in any item servers, one or more controlling terminal and the different multiple intelligent terminals of model.

Method, server and the system of a kind of test intelligent terminal provided according to the present invention make server and control eventually End interacts, and multiple intelligent terminals that can be different from model are established wireless connection and interacted, and theoretically build simultaneously The quantity of the vertical intelligent terminal being wirelessly connected can be with infinite expanding, and thus solving server can only be connected by a USB interface The problem of connecing a test intelligent terminal, multiple intelligent terminals that reaching keeps server different from model establish wireless connection simultaneously Beneficial effect, play the maximum performance of computer to drive the intelligent terminal of automatic test, save computer resource.

The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.

Detailed description of the invention

By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.

Fig. 1 shows a kind of flow chart of method for testing intelligent terminal according to an embodiment of the invention;

Fig. 2 shows a kind of structure charts for the server for testing intelligent terminal according to an embodiment of the invention;;

Fig. 3 shows a kind of composition block diagram of system for testing intelligent terminal according to an embodiment of the invention.

Specific embodiment

Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.

Fig. 1 shows a kind of flow chart of method for testing intelligent terminal according to an embodiment of the invention, such as Fig. 1 institute Show, the method for test intelligent terminal provided by the invention includes:

Step S110: the multiple intelligent terminals different from model, which are established, to be wirelessly connected.

In one embodiment of the invention, in this step be test intelligent terminal server and each intelligent terminal it Between establish be wirelessly connected.Wireless connection can be WiFi connection, can also wireless connection otherwise, such as bluetooth connection is red Outer connection etc..

Step S120: it is interacted with controlling terminal;By the interaction with controlling terminal, obtained according to the instruction of controlling terminal It takes test assignment configuration file and is saved in database, and instructed according to the test assignment management of controlling terminal to the number Operation is managed according to the test assignment configuration file in library.

In one embodiment of the invention, the server for testing intelligent terminal is interacted with controlling terminal, and storage test is appointed Business configuration file is simultaneously managed.Testing between the server and controlling terminal of intelligent terminal can be wired connection, can also be with It is wireless connection, such as WiFi connection, bluetooth connection or infrared connection.And the number of controlling terminal be also possible to it is multiple, such as There are when multiple test administrators, terminal used in multiple test administrator all can serve as controlling terminal.

Step S130: established wireless connection is utilized to interact with multiple intelligent terminals;By whole with multiple intelligence The interaction at end sends the test assignment configuration file in database on one or more intelligent terminals, and described in reception One or more intelligent terminals execute the test knot sent after corresponding operation according to the specified test assignment configuration file Fruit data.

In method shown in FIG. 1, pass through between intelligent terminal and the server of test intelligent terminal when testing It is wirelessly connected the communication for carrying out test, the server of such a test intelligent terminal can connect with more intelligent terminals It connects, and no longer receives the limitation of the connection quantity of line connection, number of servers needed for greatly reducing test is reduced into This.

In one embodiment of the invention, the controlling terminal in method shown in Fig. 1 can be PC machine, be also possible to PAD Or mobile phone.Intelligent terminal can be mobile phone, tablet computer etc..

In the present specification: test refers to operating system or application program on intelligent terminal on a preset condition based, assesses Operation result is compared by operation result with expected result.Preset condition should include normal condition, exceptional condition or pole Limit situation.Test assignment configuration file is concrete behavior required for one test case of description, can pass through an ini form Configuration file write, along with relevant test case script or jar constitute a test assignment configuration file. Test case (case) is an executable command in automatic test, can generate test data.

In method shown in Fig. 1, nothing is established between server and each intelligent terminal of the different model as test machine Line connection, and interacted by being wirelessly connected.Therefore in an embodiment of the present invention, on the basis of method shown in Fig. 1 A kind of new wireless communication protocol is further defined, it is wireless that the server and each intelligent terminal for testing intelligent terminal are based on this Communication protocol is communicated.The wireless communication protocol is described in detail below in conjunction with Fig. 1.Here it is specifically connected as with WiFi Example is illustrated.

In one embodiment of the invention, a test assignment configuration file described in method shown in Fig. 1 includes such as One or more of lower section: description section, first kind expanding section and the second class expanding section.And a test assignment configuration file must It must include description section.

Section is described: for describing the essential information of test assignment;

First kind expanding section: for describing the test assignment money that is located at server on required when running on intelligent terminal Source file;

Second class expanding section: for describing, test assignment is required when running on intelligent terminal to have been positioned at intelligence end The resource file at end.

In one embodiment of the invention, a section includes one or more key-value pairs, such as key1:value1, key2: value2。

For example, description section (description) may include: title (name): the functional descriptions information of test assignment; Time-out time (timeout): specific timeout value;

One specific example is as follows:

【description】

Name: application is recommended in installation commercialization after physical examination

Timeout:10

Wherein, title (i.e. name) is the universal description to test assignment, it is therefore an objective to facilitate and understand the test assignment;Time-out Time (i.e. timeout) is the time-out time of test assignment, i.e., time-out just abandons this test assignment.

First kind extension can also be added as needed other than essential description section in test assignment configuration file Section and the second class expanding section, first kind expanding section and the second class expanding section are not required section.

First kind expanding section may include: resource file name: the title of a specific resource file;It is issued to intelligent end The position at end a: absolute path on intelligent terminal.

Specifically, first kind expanding section can be copyXX, and wherein XX is the continuous number since 0, can configure one A or this kind of section multiple, this section is used to describe test assignment required resource file set when running on intelligent terminal, These resource files are stored on the server of test intelligent terminal, if intelligent terminal needs to run some test assignment, It needs resource file required for test assignment being pushed to intelligent terminal up.It is exemplified below:

[copy0]

Src:RecommandWifi.jar, Kill.jar

Dest:/sdcard/local/tmp

[copy1]

Src:MSafeV6_frame-277-6.3.1-main-full-release.apk

Dest:/sdcard/local/tmp

It is resource file name required for test assignment for copy0, src, specific resource file is RecommandWifi.jar, Kill.jar, these resource files determine whether to include path depending on arrangement situation, multiple resources File can use the semicolon separated of English.Dest is the position in src in the resource file intelligent terminal of being pushed to, and is an intelligence Energy terminal absolute path, referred to herein as/sdcard/local/tmp.It is resource required for test assignment for copy1, src Filename, specific resource file are MSafeV6_frame-277-6.3.1-main-full-release.apk, and dest is it Absolute path on intelligent terminal, as/sdcard/local/tmp.It should be noted that the absolute path of intelligent terminal Cannot there are two, be if desired pushed to multiple and different positions on intelligent terminal, then need again plus copyXX sections of one or more, such as Copy2, copy3 etc..

Second class expanding section may include: test case call number: specific test case.Test case is that automation is surveyed An executable command row in examination shows as an individual process on intelligent terminal and is running, can generate test data. It is exemplified below:

Ph0:uiautomatorruntest/sdcard/local/tmp/RecommandWifi.ja r-c test.RecommandTest-e apkName MSafeV6_frame-277-6.3.1-main-full-release.apk

Ph1:uiautomatorruntest/sdcard/local/tmp/Kill.jar-c test.RecommandTest-e apkName MSafeV6_frame-277-6.3.1-main-full-release.apk

Wherein each key is defined as: ph0 and ph1 describes the money being pushed on intelligent terminal before client utilizes Source file executes test assignment.The wherein occurrence uiautomatorruntest/sdcard/local/tmp/ of ph0 RecommandWifi.jar-c test.RecommandTest-e apkName MSafeV6_frame-277-6.3.1- The occurrence uiautomatorruntest/sdcard/local/tmp/ of main-full-release.apk and ph1 Kill.jar-c test.RecommandTest-e apkName MSafeV6_frame-277-6.3.1-main-full- Release.apk represents specific test case.Use must be successively defined in one expanding section to phX, X is since 0 Number can have multiple a, test case for describing to run on intelligent terminal.The execution of test assignment is suitable simultaneously Sequence determines by the subsequent number X of ph, and from high to low according to the size of X, the priority such as the priority ratio ph1 of ph0 is high for priority, Ph0 is first carried out when executing test assignment, then executes ph1.

In one embodiment of the invention, utilized described in method shown in Fig. 1 established wireless connection with it is multiple It includes: the message for utilizing established wireless connection and the following format of intelligent terminal interactive that intelligent terminal, which interacts:

General message, comprising: message length field, operation field and at least one parameter field;

File data stream packet, comprising: the data flow of message length field and file;

Communication command message, comprising: message length, session person's identity field, operation field and at least one parameter.

Such as general message foremost can be indicated latter acts field and at least one parameter field portion by 2 bytes The length divided.Operation field and at least one parameter field are that character visible forms, and are encoded to utf-8, message length field and There is no separator between operation field.In addition to message length field, every general message is at least there are two field: operation field and One parameter, between each field such as with separator: ## points are opened.Be exemplified below: pc##finish, wherein pc is operation field, Finish be a parameter, can have it is multiple, the specific meaning of representative be pc client connection session completed.

Message length field in file data stream packet is the byte length of this document data flow, and the data flow of file is Test assignment configuration file or the primary binary data stream of resource file.

Every communication command message is other than message length field, the identity of first character section represents current sessions person, Multiple sessions form a CS communication, the test assignment of as No. one time intelligent terminal or a control task of controlling terminal.Often Communication command message is initially that session person notifies other side that will execute task or the current state of oneself from second field.

In one embodiment of the invention, established wireless connection and multiple intelligence are utilized described in method shown in Fig. 1 Energy terminal interacts further include: receives the log on request message that intelligent terminal is sent, which includes: the model of intelligent terminal Information and communications protocol version number;It is identified and is recorded according to identity of the log on request message to the intelligent terminal;To the intelligence Energy terminal returns to the response message that logs in for supporting corresponding communications protocol, or does not support accordingly communication association to intelligent terminal return View logs in response message;And it receives logging in for intelligent terminal transmission and exits message.

For example:

Controlling terminal and intelligent terminal require to log in the server of test intelligent terminal, and server is to controlling terminal and intelligence The identity of energy terminal carries out identification record, and the login message of controlling terminal is as shown in table 1, the login message of intelligent terminal such as table 2 Shown: i.e. server receives the log on request message that intelligent terminal is sent, which includes: the type information of intelligent terminal and lead to Protocol version is interrogated, citing is as shown in Table 1 and Table 2:

login pc 1.0

Table 1

The meaning of logging request message shown in table 1: controlling terminal login service device, operation field are that login (step on by expression Record), first parameter indicates that the type of controlling terminal is PC, and second parameter indicates that communication protocol version number is 1.0.

login HTC D816w&Android=21 1.0

Table 2

The meaning of logging request message shown in table 2: intelligent terminal game server, operation field are that login (step on by expression Record), first parameter indicates the type of intelligent terminal (model HTC, operating system version number are D816w&Android=21) Second parameter indicates that communication news protocol version is 1.0.

After server receives the log on request message that intelligent terminal is sent, according to log on request message to the controlling terminal or The identity of intelligent terminal is identified and is recorded, and is then returned to the controlling terminal or intelligent terminal and is supported corresponding communications protocol Log in response message, or return do not support corresponding communications protocol log in response message.Citing is as shown in Table 3 and Table 4:

login PcServer OK

Table 3

Response message is logged in shown in table 3 is meant that PcServer i.e. server supports the response of other side's communications protocol.

login PcServer error OK

Table 4

Response message is logged in shown in table 4 is meant that PcServer i.e. server does not support the response of other side's communications protocol.

In addition, server also receives controlling terminal or logging in for intelligent terminal transmission exits message, citing is as shown in table 5:

login exit

Table 5

The concrete meaning that table 5 represents is that client notification server exits oneself.

What needs to be explained here is that message length field is omitted in the concrete example explanation of message format.

In one embodiment of the invention, established wireless connection and multiple intelligence are utilized described in method shown in Fig. 1 Energy terminal, which interacts, includes:

Test assignment profile data stream packet is sent to one or more intelligent terminals, which includes: that test is appointed The byte length of business profile data stream and the binary data stream of test assignment configuration file;

Resource file data stream packet is sent to one or more of intelligent terminals, which includes: resource file number According to the byte length of stream and the binary data stream of resource file.

In one embodiment of the invention, resource file data stream report is being sent to one or more of intelligent terminals Before text, this method further comprises: sending resource file sending out notice message, the message packet to one or more intelligent terminals Include: resource file to be pushed needs to be stored on intelligent terminal in filename, the resource file to be pushed of server end The characteristic value of absolute path, the length of the resource file and the resource file;One or more of intelligent terminals are received to reply The already present response message of the resource file or need to receive the response message of the resource file;When what is received is to need to connect When receiving the response message of the resource file, resource file data stream packet is sent to intelligent terminal.

Wherein, resource file sending out notice message is server notice intelligent terminal by resource file to be pushed, wait push away The resource file sent filename, the resource file to be pushed of server end need to store absolute path on the client, The length of the resource file and the characteristic value of the resource file.Citing is as shown in table 6:

Parameter 2 Parameter 3 Parameter 4 Parameter 5 push md5 QTTest.jar /sdcard/QTTest.jar 1483 C339482546F162080202F8F0913CFD51

Table 6

In resource file sending out notice message described in table 6, parameter 2 is server file name QTTest.jar, and parameter 3 is Client file name QTTest.jar, including path/sdcard/, parameter 4 are notice message length, specially 1483 bytes, Parameter 5 is the md5 value of file.The full name of md5 is Message-Digest Algorithm 5, to one section of byte serial (Message) digital finger-print is generated, md5 value just refers to this digital finger-print being calculated through md5, can prevent from being tampered. It is to know whether the resource file of push is identical with original document by verification md5 value.

Server receives the already present response message of the resource file that one or more of intelligent terminals are replied or needs The response message of the resource file is received, is illustrated as shown in table 7 and table 8:

Parameter 2 Parameter 3 push md5 0 C339482546F162080202F8F0913CFD51

Table 7

Response message shown in table 7 is meant that intelligent terminal, which replys server local, a file of the same name, parameter 2 be call number of the resource file in test assignment configuration file, and parameter 3 is the md5 value of the local file of the same name of client, md5 Value verifies local existing file of the same name and whether resource file to be pushed is identical.

push content

Table 8

Response message described in table 8 is meant that intelligent terminal replys the response message that server needs to receive resource file, Subsequent server end will continue to send file content to intelligent terminal according to document data flow message format, until being sent completely.

push OK

Table 9

Message shown in table 9 is meant that the push of this resource file terminates.

In one embodiment of the invention, described that established wireless connection is utilized to interact with multiple intelligent terminals Further include:

Test case is sent to one or more of intelligent terminals and executes message, which includes: that the test case exists The executable command row of call number, the test case in test assignment configuration file and the opportunity for executing next test case Information;

The test result data message that one or more of intelligent terminals are sent is received, which includes: corresponding test One test result data of the mark of task configuration file and the test case being currently running.Namely it is transported in intelligent terminal The relevant test case of row, and acquire data back testing service device platform or control platform.

Specifically, the test case that server is sent to one or more of intelligent terminals executes message, and citing is such as Shown in table 10:

Parameter 2 Parameter 3 Parameter 4 run exe 0 uiautomatorruntest/sdcard/test.jar com.test true

Table 10

Test case shown in table 10 executes message message and is meant that, server notice intelligent terminal starts to execute a survey Example on probation, parameter 2 is call number of the test case in test assignment configuration file, and parameter 3 is the executable life of test case Row is enabled, parameter 4 is there are two value, and true indicates that next could be started after this order such as server needs has executed, and false is indicated Server need not wait this order to execute, and can also execute other test cases parallel.

If intelligent terminal has begun implementation of test cases, the report for having begun implementation of test cases is sent to server Text, citing are as shown in table 11:

Parameter 2 Parameter 3 run exe 0 running

Table 11

Message shown in table 11 is meant that intelligent terminal notice server, which has begun, executes a test case, parameter 2 It is call number of the test case in test assignment configuration file, parameter 3 is that test case is carrying out.

The test result data message that the received one or more of intelligent terminals of server are sent, illustrates such as 12 institute of table Show:

Parameter 2 Parameter 3 run log job201508 Test data

Table 12

Test result data message shown in table 12 is meant that intelligent terminal sends test result data message to service Device, parameter 2 are the marks of test assignment configuration file, and parameter 3 is a test of the Test cases technology being currently running Data.

If test case executes completion, it is current that server receives the notice server that one or more intelligent terminals are sent Test case has executed the message of completion, illustrates as shown in table 13 and table 14:

Parameter 2 Parameter 3 Parameter 4 run exe 0 run_done -1

Table 13

Message shown in table 13 is meant that the intelligent terminal notice current test case of server has executed completion, parameter 2 It is call number of the test case in test assignment configuration file, parameter 3 is the executable command row of test case, and parameter 4 is The result that test case returns.

run timeout

Table 14

Message shown in table 14 is meant that server notice this test case of intelligent terminal executes time-out.

After all test cases are finished, server receives the notice server institute that one or more intelligent terminals are sent There is test case to execute the message of completion, citing is as shown in Table 15:

run OK

Table 15

Message shown in table 15 is meant that, after the completion of all test cases execute, intelligent terminal response indicates all tests Use-case executes completion.

Server admin controls the execution of multiple groups test assignment and resource file push operation sequence is completed, citing such as table 16 With shown in table 17:

job Job201508 0 push

Table 16

Message shown in table 16 is meant that server notice intelligent terminal starts to execute the push behaviour an of resource file Make, parameter " 0 " is call number of the resource file in test assignment configuration file, be under normal circumstances 0 expression from the beginning, it is non- 0 expression is the breakpoint transmission of resource file, such as: two resource files do not need to push away before 2 expression test assignment configuration files It send, will directly be pushed since the 3rd file.Intelligent terminal is also indicated all set with same message answering server.

job Job201508 OK

Table 17

Message shown in table 17 indicates that the server notice entire test assignment of intelligent terminal has been completed, and intelligent terminal does not need Response, oneself is exited.

In one embodiment of the invention, server described in method shown in Fig. 1 is interacted with controlling terminal includes: It receives the test assignment configuration file that controlling terminal is sent and adds message, which includes: the title of test assignment configuration file With intelligent terminal list.

The test assignment configuration file is added into test assignment configuration file indicated by message and corresponding intelligence Terminal list is added in the database.

For controlling terminal to server end editor's test assignment configuration file, citing is as shown in table 18:

pc -add jobPath[iplist]

Table 18

The addition message of test assignment configuration file shown in table 18 is meant that controlling terminal sends message instruction addition one Among test assignment configuration file to server database, intelligent terminal indicated by iplist (intelligent terminal list) can be selected in Middle this test assignment configuration file of execution.1st parameter "-add " is function code, indispensable, the 2nd parameter " jobPath " It is test assignment configuration filename, needs to include path when necessary, the 3rd parameter " iplist " is an optional intelligent terminal Ip list, multiple ip are separated with English comma.

In one embodiment of the invention, it further includes following one or more that server is interacted with controlling terminal:

It receives the database that controlling terminal is sent and shows request message;Test assignment into controlling terminal returned data library The profile list;

It receives the test assignment that controlling terminal is sent and runs command message, which includes: existing one in database The title of test assignment configuration file and the client side list for needing to run the test assignment configuration file;

It receives the nominative testing task that controlling terminal is sent and deletes message, which includes: that test assignment to be deleted is matched Set the title of file;The test assignment configuration file is deleted from database;

It receives the intelligent terminal that controlling terminal is sent and shows request message;Connection intelligence has been established eventually to controlling terminal return The list at end;

Receive the removing test assignment request message that controlling terminal is sent;Delete all test assignments in the database Configuration file;

Receive controlling terminal transmission exits request message;It closes server and exits.

Citing is as shown in table 19 to table 26:

pc -show

Table 19

In the displaying request message of database shown in table 19, an only function code parameter "-show ", for showing current clothes All test assignment configuration files being engaged in device database.

pc -run job id iplist

Table 20

Test assignment shown in table 20 is run in command message, and the 1st parameter "-run " is function code, the 2nd parameter " jobID " is the test assignment configuration filename having had in server database, not belt path and extension name, the 3rd parameter " iplist " is a wireless client ip list, and multiple ip are separated with English comma.The message represent concrete meaning be This test assignment configuration file is immediately performed in iplist.

pc -del jobId

Table 21

Test assignment shown in table 21 is deleted in message, and the 1st parameter "-del " is function code, and the 2nd parameter " jobId " is The test assignment configuration filename having had in server database, not belt path and extension name.What the message represented specifically contains Justice is the deletion nominative testing task configuration file from server database.

pc -client

Table 22

Intelligent terminal shown in table 22 shows an only function code parameter "-client " in request message, and function is display All intelligent terminals for being set up connection with server.

pc -clean

Table 23

Remove an only function code parameter "-clean " in test assignment request message shown in table 23, function thing is from service All test assignment configuration files are removed in device database.

pc -exit

Table 24

It is exited shown in table 24 and only has a function code parameter "-exit " in request message, function is to close server and move back Out.

pc log pc message

Table 25

Message shown in table 25 is the message that server is replied to controlling terminal, in the message log be operation field, first Parameter " pc " is destination user, and second parameter " message " is a log information, it may be possible to service the status number of generation According to, it is also possible to the test data that intelligent terminal uploads, the function of this message are that a piece of news record is returned to controlling terminal.

pc OK

Table 26

Ok is operation field in table 26, after telling other side, client to receive with this order after message is all transmitted It also will be with same message notifying server before exiting.

Fig. 2 shows a kind of structure charts for the server for testing intelligent terminal according to an embodiment of the invention.Such as Fig. 2 Shown, the server 200 of the test intelligent terminal includes:

Radio-cell 201 is established suitable for the multiple intelligent terminals different from model and is wirelessly connected;Wireless connection can be WiFi connection, can also wireless connection otherwise, such as bluetooth connection, infrared connection etc..

Test processes unit 202, suitable for being interacted with controlling terminal;By the interaction with controlling terminal, according to control The instruction of terminal obtains test assignment configuration file and is saved in database, and according to the test assignment management of controlling terminal Instruction is managed operation to the test assignment configuration file in the database;And it is built using the radio-cell 201 Vertical wireless connection is interacted with multiple intelligent terminals;By the interaction with multiple intelligent terminals, by the test in database Task configuration file is sent on one or more intelligent terminals, and receives one or more of intelligent terminals according to Specified test assignment configuration file executes the test result data sent after corresponding operation.

The server of test intelligent terminal shown in Fig. 2, passes through wireless connection between intelligent terminal when testing The communication of test is carried out, the server of such a test intelligent terminal can connect with more intelligent terminals, subtract significantly Number of servers needed for few test, reduces costs.

In one embodiment of the invention, test assignment configuration file described in one include such as one in lower section or It is multiple, and must include description section:

Section is described: for describing the essential information of test assignment;

First kind expanding section: for describing the test assignment money that is located at server on required when running on intelligent terminal Source file;

Second class expanding section: for describing, test assignment is required when running on intelligent terminal to have been positioned at intelligence end The resource file at end.

In one embodiment of the invention, a section includes: one or more key-value pairs;

The description section includes: title: the functional descriptions information of test assignment;

Time-out time: specific timeout value;

The first kind expanding section includes: resource file name: the title of a specific resource file;

It is issued to the position of client: an absolute path in client;

The second class expanding section includes: test case call number: specific test case;

In one embodiment of the invention, test assignment configuration file specifically may refer to aforementioned " about test assignment Description in configuration file ".

In one embodiment of the invention, in the server 200 of test intelligent terminal shown in Fig. 2, at the test Unit 202 is managed, suitable for utilizing the message of connected wireless connection and the following format of intelligent terminal interactive:

General message, comprising: message length field, operation field and at least one parameter field;

File data stream packet, comprising: the data flow of message length field and file;

Communication command message, comprising: message length field, session this identity field, operation field and at least one parameter.

In one embodiment of the invention, in the server 200 of test intelligent terminal shown in Fig. 2, at the test Manage unit 202, suitable for receive intelligent terminal send log on request message, the message include: intelligent terminal type information and Communications protocol version number;It is identified and is recorded according to identity of the log on request message to the intelligent terminal;To the intelligent terminal The response message that logs in for supporting corresponding communications protocol is returned, or does not support stepping on for corresponding communications protocol to intelligent terminal return Land response message;And it receives logging in for intelligent terminal transmission and exits message.

It specifically may refer to content shown in table 1-5 above-mentioned.

In one embodiment of the invention, in the server of test intelligent terminal shown in Fig. 2, the test processes list Member 202, is suitable for sending test assignment profile data stream packet to one or more intelligent terminals, which includes: test The byte length of task profile data stream and the binary data stream of test assignment configuration file;To one or more of Intelligent terminal sends resource file data stream packet, which includes: the byte length and resource file of resource file data stream Binary data stream.

In one embodiment of the invention, in the server 200 of test intelligent terminal shown in Fig. 2, at the test Unit 202 is managed, is further adapted for before sending resource file data stream packet to one or more of intelligent terminals, further fits In sending resource file sending out notice message to one or more intelligent terminals, which includes: that resource file to be pushed exists The filename of server end, resource file to be pushed need to be stored in absolute path on intelligent terminal, the resource file The characteristic value of length and the resource file;Receive that the resource file that one or more of intelligent terminals are replied is already present to answer It answers message or needs to receive the response message of the resource file;When what is received is the response message for needing to receive the resource file When, resource file data stream packet is sent to intelligent terminal.

It specifically may refer to content shown in table 6-9 above-mentioned.

In one embodiment of the invention, in the server 200 of test intelligent terminal shown in Fig. 2, at the test Unit 202 is managed, is further adapted for sending test case execution message to one or more of intelligent terminals, which includes: the survey Call number of the example on probation in test assignment configuration file, the test case executable command row and execute next test use The occasion information of example;The test result data message that one or more of intelligent terminals are sent is received, which includes: corresponding One test result data of the mark of test assignment configuration file and the test case being currently running.

It specifically may refer to content shown in table 10-15 above-mentioned.

In one embodiment of the invention, in the server 200 of test intelligent terminal shown in Fig. 2, at the test Unit 202 is managed, adds message suitable for receiving the test assignment configuration file that controlling terminal is sent, which includes: test assignment The title and intelligent terminal list of configuration file;The test assignment configuration file is added test assignment indicated by message to match It sets file and corresponding intelligent terminal list is added in the database.

It specifically may refer to content shown in table 18 above-mentioned.

In one embodiment of the invention, in the server of test intelligent terminal shown in Fig. 2, the test processes list Member 202, is further adapted for,

It receives the database that controlling terminal is sent and shows request message;Test assignment into controlling terminal returned data library The profile list;

It receives the test assignment that controlling terminal is sent and runs command message, which includes: existing one in database The title of test assignment configuration file and the client side list for needing to run the test assignment configuration file;

It receives the nominative testing task that controlling terminal is sent and deletes message, which includes: that test assignment to be deleted is matched Set the title of file;The test assignment configuration file is deleted from database;

It receives the intelligent terminal that controlling terminal is sent and shows request message;Connection intelligence has been established eventually to terminal device return The list at end;

Receive the removing test assignment request message that controlling terminal is sent;Delete all test assignments in the database Configuration file;

Receive controlling terminal transmission exits request message;It closes server and exits.

It specifically may refer to content shown in table 19-26 above-mentioned.

Fig. 3 shows a kind of composition block diagram of system for testing intelligent terminal according to an embodiment of the invention.Such as Fig. 3 Shown, which includes testing the server 200 of intelligent terminal, one or more controlling terminals 300, such as controlling terminal 1 to control Terminal M processed and the different multiple intelligent terminals 400 of model, such as intelligent terminal 1 to intelligent terminal N, M and N be natural number. Wherein, the server 200 for testing intelligent terminal includes radio-cell 201 and test processes unit 202.

In conclusion making server and type the invention discloses a kind of method, server and system for testing intelligent terminal Number different multiple intelligent terminals, which are established, to be wirelessly connected, and controlling terminal obtains test assignment configuration file from server, utilization Test assignment configuration file is pushed to one or more intelligent terminals and carries out automatic test, intelligence by the wireless connection established Terminal returns to test result data to server.The present invention, which can solve PC server, can only connect one by a USB interface The problem of testing intelligent terminal, so that realize the multiple intelligent terminals for keeping server different from model establishes wireless connection simultaneously Beneficial effect, play the maximum performance of computer to drive the intelligent terminal of automatic test, save computer resource.

It should be understood that

Provided herein algorithm and display not with any certain computer, virtual server or the intrinsic phase of other equipment It closes.Various generic servers can also be used together with teachings based herein.As described above, this kind of server is constructed Required structure is obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can benefit Summary of the invention described herein is realized with various programming languages, and the description done above to language-specific is to drape over one's shoulders Reveal preferred forms of the invention.

In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.

Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.

Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.

In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.

Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) come realize test intelligent terminal according to an embodiment of the present invention server and Test some or all functions of some or all components in the system of intelligent terminal.The present invention is also implemented as using In execute method as described herein some or all equipment or server program (for example, computer program and Computer program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have The form of one or more signal.Such signal can be downloaded from an internet website to obtain, or on the carrier signal It provides, or is provided in any other form.

It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claim for listing several servers, several in these servers be can be by same hard Part item embodies.The use of word first, second, and third does not indicate any sequence.These words can be explained For title.

Claims (19)

1. a kind of method for testing intelligent terminal, wherein this method comprises:
The multiple intelligent terminals different from model, which are established, to be wirelessly connected;
It is interacted with controlling terminal;By the interaction with controlling terminal, test assignment is obtained according to the instruction of controlling terminal and is matched It sets file and is saved in database, and instructed according to the test assignment management of controlling terminal to the test in the database Task configuration file is managed operation;
Established wireless connection is utilized, is interacted by customized home control network communication protocol and multiple intelligent terminals;Pass through With the interaction of multiple intelligent terminals, send the test assignment configuration file in database on one or more intelligent terminals, And after receiving one or more of intelligent terminals according to the specified test assignment configuration file execution corresponding operation The test result data of transmission;
It is described to utilize established wireless connection to interact with multiple intelligent terminals to include:
Utilize the message of established wireless connection and the following format of intelligent terminal interactive:
General message, comprising: message length field, operation field and at least one parameter field;
File data stream packet, comprising: the data flow of message length field and file;
Communication command message, comprising: message length field, session person's identity field, operation field and at least one parameter.
2. the method for claim 1, wherein test assignment configuration file described in one includes such as one in lower section Or it is multiple, and must include description section:
Section is described: for describing the essential information of test assignment;
First kind expanding section: for describing the test assignment resource text that is located at server on required when running on intelligent terminal Part;
Second class expanding section: for describing test assignment required intelligent terminal that has been positioned at when running on intelligent terminal Resource file.
3. method according to claim 2, wherein a section includes: one or more key-value pairs;
The description section includes: title: the functional descriptions information of test assignment;
Time-out time: specific timeout value;
The first kind expanding section includes: resource file name: the title of a specific resource file;
It is issued to the position of intelligent terminal: an absolute path on intelligent terminal;
The second class expanding section includes: test case call number: specific test case.
4. the method for claim 1, wherein described handed over using the wireless connection established and multiple intelligent terminals Mutually include:
The log on request message that intelligent terminal is sent is received, which includes: the type information and communications protocol version of intelligent terminal This number;
It is identified and is recorded according to identity of the log on request message to the intelligent terminal;
The response message that logs in for supporting corresponding communications protocol is returned to the intelligent terminal, or is not supported to intelligent terminal return Corresponding communications protocol logs in response message;
And it receives logging in for intelligent terminal transmission and exits message.
5. the method for claim 1, wherein described handed over using the wireless connection established and multiple intelligent terminals Mutually include:
Test assignment profile data stream packet is sent to one or more intelligent terminals, which includes: that test assignment is matched Set the byte length of document data flow and the binary data stream of test assignment configuration file;
Resource file data stream packet is sent to one or more of intelligent terminals, which includes: resource file data stream Byte length and resource file binary data stream.
6. method as claimed in claim 5, wherein sending resource file data stream to one or more of intelligent terminals Before message, this method further comprises:
Resource file sending out notice message is sent to one or more intelligent terminals, which includes: resource file to be pushed Need to be stored in absolute path on intelligent terminal, the resource file in filename, the resource file to be pushed of server end Length and the resource file characteristic value;
Receive the already present response message of the resource file or need to receive the money that one or more of intelligent terminals are replied The response message of source file;
When what is received is the response message for needing to receive the resource file, resource file data stream report is sent to intelligent terminal Text.
7. method as claimed in claim 5, wherein described to be handed over using the wireless connection established and multiple intelligent terminals Mutually further include:
Test case is sent to one or more of intelligent terminals and executes message, which includes: that the test case is being tested The executable command row of call number, the test case in task configuration file and the opportunity letter for executing next test case Breath;
The test result data message that one or more of intelligent terminals are sent is received, which includes: corresponding test assignment One test result data of the mark of configuration file and the test case being currently running.
8. the method for claim 1, wherein described interact with controlling terminal includes:
It receives the test assignment configuration file that controlling terminal is sent and adds message, which includes: test assignment configuration file Title and intelligent terminal list;
The test assignment configuration file is added into test assignment configuration file and corresponding intelligent terminal indicated by message List is added in the database.
9. method according to claim 8, wherein described interact with controlling terminal further includes following one or more:
It receives the database that controlling terminal is sent and shows request message;Test assignment configuration into controlling terminal returned data library Listed files;
It receives the test assignment that controlling terminal is sent and runs command message, which includes: an existing test in database The title of task configuration file and the client side list for needing to run the test assignment configuration file;
It receives the nominative testing task that controlling terminal is sent and deletes message, which includes: test assignment configuration text to be deleted The title of part;The test assignment configuration file is deleted from database;
It receives the intelligent terminal that controlling terminal is sent and shows request message;It is returned to controlling terminal and connection intelligent terminal has been established List;
Receive the removing test assignment request message that controlling terminal is sent;Delete all test assignments configuration in the database File;
Receive controlling terminal transmission exits request message;It closes server and exits.
10. a kind of server for testing intelligent terminal, wherein the server includes:
Radio-cell is established suitable for the multiple intelligent terminals different from model and is wirelessly connected;
Test processes unit, suitable for being interacted with controlling terminal;By the interaction with controlling terminal, according to the finger of controlling terminal It enables and obtains test assignment configuration file and be saved in database, and instructed according to the test assignment management of controlling terminal to institute The test assignment configuration file stated in database is managed operation;And wirelessly connected using what the radio-cell was established It connects, is interacted by customized home control network communication protocol and multiple intelligent terminals;It, will by the interaction with multiple intelligent terminals Test assignment configuration file in database is sent on one or more intelligent terminals, and receives one or more of intelligence Energy terminal executes the test result data sent after corresponding operation according to the specified test assignment configuration file;
The test processes unit, suitable for utilizing the message of connected wireless connection and the following format of intelligent terminal interactive:
General message, comprising: message length field, operation field and at least one parameter field;
File data stream packet, comprising: the data flow of message length field and file;
Communication command message, comprising: message length field, session this identity field, operation field and at least one parameter.
11. server as claimed in claim 10, wherein test assignment configuration file described in one includes as in lower section One or more, and must include description section:
Section is described: for describing the essential information of test assignment;
First kind expanding section: for describing the test assignment resource text that is located at server on required when running on intelligent terminal Part;
Second class expanding section: for describing test assignment required intelligent terminal that has been positioned at when running on intelligent terminal Resource file.
12. server as claimed in claim 11, wherein a section includes: one or more key-value pairs;
The description section includes: title: the functional descriptions information of test assignment;
Time-out time: specific timeout value;
The first kind expanding section includes: resource file name: the title of a specific resource file;
It is issued to the position of intelligent terminal: an absolute path on intelligent terminal;
The second class expanding section includes: test case call number: specific test case.
13. server as claimed in claim 10, wherein
The test processes unit, the log on request message sent suitable for receiving intelligent terminal, which includes: intelligent terminal Type information and communications protocol version number;It is identified and is recorded according to identity of the log on request message to the intelligent terminal;To The intelligent terminal returns to the response message that logs in for supporting corresponding communications protocol, or does not support accordingly to lead to intelligent terminal return News agreement logs in response message;And it receives logging in for intelligent terminal transmission and exits message.
14. server as claimed in claim 10, wherein
The test processes unit is suitable for sending test assignment profile data stream packet to one or more intelligent terminals, The message includes: the byte length of test assignment profile data stream and the binary data stream of test assignment configuration file; Resource file data stream packet is sent to one or more of intelligent terminals, which includes: the word of resource file data stream Save the binary data stream of length and resource file.
15. server as claimed in claim 14, wherein
The test processes unit, be suitable for one or more of intelligent terminals send resource file data stream packet it Before, it is further adapted for sending resource file sending out notice message to one or more intelligent terminals, which includes: to be pushed Resource file needs to be stored in absolute path on intelligent terminal in filename, the resource file to be pushed of server end, should The length of resource file and the characteristic value of the resource file;Receive the resource file that one or more of intelligent terminals are replied Already present response message or the response message for needing to receive the resource file;When what is received is to need to receive the resource file Response message when, to intelligent terminal send resource file data stream packet.
16. server as claimed in claim 14, wherein
The test processes unit is further adapted for sending test case execution message, the report to one or more of intelligent terminals Text includes: call number of the test case in test assignment configuration file, the executable command row of the test case and execution The occasion information of next test case;The test result data message that one or more of intelligent terminals are sent is received, it should Message includes: a test result number of the mark of corresponding test assignment configuration file and the test case being currently running According to.
17. server as claimed in claim 10, wherein
The test processes unit adds message, the message packet suitable for receiving the test assignment configuration file that controlling terminal is sent It includes: the title and intelligent terminal list of test assignment configuration file;The test assignment configuration file is added indicated by message Test assignment configuration file and corresponding intelligent terminal list be added in the database.
18. server as claimed in claim 17, wherein the test processes unit is further adapted for,
It receives the database that controlling terminal is sent and shows request message;Test assignment configuration into controlling terminal returned data library Listed files;
It receives the test assignment that controlling terminal is sent and runs command message, which includes: an existing test in database The title of task configuration file and the client side list for needing to run the test assignment configuration file;
It receives the nominative testing task that controlling terminal is sent and deletes message, which includes: test assignment configuration text to be deleted The title of part;The test assignment configuration file is deleted from database;
It receives the intelligent terminal that controlling terminal is sent and shows request message;It is returned to terminal device and connection intelligent terminal has been established List;
Receive the removing test assignment request message that controlling terminal is sent;Delete all test assignments configuration in the database File;
Receive controlling terminal transmission exits request message;It closes server and exits.
19. a kind of system for testing intelligent terminal, wherein the system includes: the clothes as described in any one of claim 10-18 It is engaged in device, one or more controlling terminal and the different multiple intelligent terminals of model.
CN201510847415.7A 2015-11-27 2015-11-27 A kind of method, server and system for testing intelligent terminal CN105512029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510847415.7A CN105512029B (en) 2015-11-27 2015-11-27 A kind of method, server and system for testing intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510847415.7A CN105512029B (en) 2015-11-27 2015-11-27 A kind of method, server and system for testing intelligent terminal

Publications (2)

Publication Number Publication Date
CN105512029A CN105512029A (en) 2016-04-20
CN105512029B true CN105512029B (en) 2018-12-25

Family

ID=55720030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510847415.7A CN105512029B (en) 2015-11-27 2015-11-27 A kind of method, server and system for testing intelligent terminal

Country Status (1)

Country Link
CN (1) CN105512029B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391359B (en) * 2016-05-17 2020-11-27 腾讯科技(深圳)有限公司 Service testing method and device
CN105959183A (en) * 2016-07-07 2016-09-21 福州觉感视觉软件科技有限公司 Centrally configured and managed multi-station visual detection method and system
CN108306778A (en) * 2016-09-01 2018-07-20 深圳市中兴微电子技术有限公司 A kind of mobile terminal test method, device and system
CN106507407B (en) * 2016-09-23 2019-08-13 上海华虹集成电路有限责任公司 The cross-platform test macro of low-power consumption bluetooth and method based on windows system
CN106484622B (en) * 2016-10-18 2019-02-22 网易(杭州)网络有限公司 Test method, apparatus and system
CN108415398A (en) * 2017-02-10 2018-08-17 上海辇联网络科技有限公司 Automobile information safety automation tests system and test method
CN107168832A (en) * 2017-04-26 2017-09-15 中控智慧科技股份有限公司 The method of automatic detection, device
CN107122306A (en) * 2017-05-15 2017-09-01 网易(杭州)网络有限公司 Automated testing method and device, storage medium, electronic equipment
CN107315670A (en) * 2017-06-26 2017-11-03 深圳市靖洲科技有限公司 A kind of intelligent terminal method of testing, apparatus and system
CN110379149A (en) * 2019-08-15 2019-10-25 珠海格力智能装备有限公司 Equipment detection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method
CN103713991A (en) * 2012-10-08 2014-04-09 腾讯科技(深圳)有限公司 Method and device for testing application programs on Android devices
CN104298591A (en) * 2013-07-18 2015-01-21 阿里巴巴集团控股有限公司 WebApp remote debugging method and system
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system
CN104978259A (en) * 2014-04-01 2015-10-14 中国银联股份有限公司 Mobile equipment software automation test cluster system and test method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9015654B2 (en) * 2012-08-13 2015-04-21 Bitbar Technologies Oy System for providing test environments for executing and analysing test routines

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713991A (en) * 2012-10-08 2014-04-09 腾讯科技(深圳)有限公司 Method and device for testing application programs on Android devices
CN103312850A (en) * 2013-05-10 2013-09-18 江苏科技大学 Mobile phone automation testing system and work method
CN104298591A (en) * 2013-07-18 2015-01-21 阿里巴巴集团控股有限公司 WebApp remote debugging method and system
CN104978259A (en) * 2014-04-01 2015-10-14 中国银联股份有限公司 Mobile equipment software automation test cluster system and test method thereof
CN104461898A (en) * 2014-12-19 2015-03-25 北京奇虎科技有限公司 Application testing method, center control server, test terminal and system

Also Published As

Publication number Publication date
CN105512029A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
US10348642B2 (en) Custom resources in a resource stack
US20200272431A1 (en) Software defined network controller
US10503579B2 (en) System and method for identifying operational disruptions in mobile computing devices
US9183008B2 (en) Method and system for starting application program in Linux container
US9846638B2 (en) Exposing method related data calls during testing in an event driven, multichannel architecture
US9910764B2 (en) Automated software testing
CN105335293B (en) A kind of automatization test system and method based on interface concurrent
US20180097627A1 (en) System and method for securing sensitive data
US9852197B2 (en) ETL tool interface for remote mainframes
US9009683B2 (en) Systems and/or methods for testing client reactions to simulated disruptions
US8108456B2 (en) Method and apparatus for migrating the system environment on which the applications depend
JP2014241178A (en) Virtual machine morphing for heterogeneous migration environments
US7334162B1 (en) Dynamic distribution of test execution
US7296190B2 (en) Parallel text execution on low-end emulators and devices
US8478800B1 (en) Log streaming facilities for computing applications
CN104461856B (en) Performance test methods, apparatus and system based on cloud computing platform
US9667489B2 (en) Generation and management of computing infrastructure instances
US20160124823A1 (en) Log analytics for problem diagnosis
US9355017B2 (en) Automated error checking system for a software application and method therefor
US9411710B2 (en) Automated regression test case selector and black box test coverage tool for product testing
WO2015108748A1 (en) Cloud-based decision management platform
Bellomo et al. Toward design decisions to enable deployability: Empirical study of three projects reaching for the continuous delivery holy grail
US20160241446A1 (en) Managing a number of secondary clouds by a master cloud service manager
US10863022B2 (en) Using automatically collected device problem information to route and guide users' requests
Liu et al. Crystalnet: Faithfully emulating large production networks

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
GR01 Patent grant