CN106406279B - Apparatus testing method and device, electronic equipment - Google Patents
Apparatus testing method and device, electronic equipment Download PDFInfo
- Publication number
- CN106406279B CN106406279B CN201610862555.6A CN201610862555A CN106406279B CN 106406279 B CN106406279 B CN 106406279B CN 201610862555 A CN201610862555 A CN 201610862555A CN 106406279 B CN106406279 B CN 106406279B
- Authority
- CN
- China
- Prior art keywords
- test
- instruction
- devices
- terminal
- type
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
Abstract
The disclosure is directed to a kind of apparatus testing method and devices, electronic equipment.The described method includes: Xiang Suoshu terminal sends the page data for rendering test page in response to the accessing page request for carrying out self terminal;Receive test corresponding with Devices to test type instruction and Devices to test mark from the terminal;The test instruction and Devices to test mark are inputted in the test page;The test instruction is sent to Devices to test corresponding with Devices to test mark.Embodiment of the disclosure can be to avoid the applications client controlled to device under test, Lai Shixian test process be installed, to reduce the consumption to terminal resource at the terminal.
Description
Technical field
This disclosure relates to communication technique field more particularly to a kind of apparatus testing method and device, electronic equipment.
Background technique
Currently, (App) client is applied by installing certain at the terminal, it can be by the applications client to be controlled
The smart machine of system sends corresponding control instruction, to realize the control to smart machine.Generally, intelligence is set in order to realize
Standby control needs to predefine the corresponding relationship of functions of the equipments and control instruction, and stores and arrive and the applications client pair
In the server device answered.Determine the corresponding relationship of functions of the equipments and control instruction and store in server device it
Afterwards, there is the demand tested the control effect of smart machine.
In the related technology, it generally requires dependent on the above-mentioned applications client installed at the terminal, intelligence is set to realize
The test of standby control effect, this causes certain consumption to terminal resource.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of apparatus testing method and device, electricity
Sub- equipment.
According to the first aspect of the embodiments of the present disclosure, a kind of apparatus testing method is provided, comprising:
In response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal sends the page number for rendering test page
According to;
Receive test corresponding with Devices to test type instruction and Devices to test mark from the terminal;The test
Instruction and Devices to test mark are inputted in the test page;
The test instruction is sent to Devices to test corresponding with Devices to test mark.
In one embodiment, with the Devices to test type corresponding test of the reception from the terminal instructs and to be measured
It is described before the test instruction to Devices to test corresponding with Devices to test mark transmission after device identification
Method further include:
Search the instruction set corresponding with the Devices to test type prestored;
Judge whether the test instruction concentrates in described instruction;
It is described to send the test instruction to Devices to test corresponding with Devices to test mark, comprising:
If the test instruction is concentrated in described instruction, institute is sent to Devices to test corresponding with Devices to test mark
State test instruction.
In one embodiment, described to judge the test instruction whether after described instruction concentration, the method is also wrapped
It includes:
If test instruction is not concentrated in described instruction, the push of Xiang Suoshu terminal to prompt the test instruct not by
The prompt information of registration.
In one embodiment, described to send the test instruction to Devices to test corresponding with Devices to test mark
Afterwards, the method also includes:
Receive the response message that the Devices to test is sent;
According to the response message, determines test result and be sent in the terminal.
In one embodiment, the response message for receiving the Devices to test and sending, comprising:
Receive the response message comprising functional information that the Devices to test is sent;
It is described according to the response message, determine test result, comprising:
Judge functional information that the response message includes whether and function corresponding with the test instruction letter that prestores
Breath is consistent;
If so, determining that test result is successfully;
If it is not, determining that test result is failure.
In one embodiment, with the Devices to test type corresponding test of the reception from the terminal instructs and to be measured
Before device identification, the method also includes:
According to Devices to test type, the instruction set corresponding with the Devices to test type prestored is searched;
Described instruction collection is pushed in the terminal;
With Devices to test type corresponding test instruction and Devices to test mark of the reception from the terminal, packet
It includes:
It receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and inputted in the test page
Devices to test mark.
In one embodiment, with the Devices to test type corresponding test of the reception from the terminal instructs and to be measured
Before device identification, the method also includes:
Receive the instruction type to be selected that terminal is sent;
According to Devices to test type and the instruction type to be selected, search prestore it is corresponding with the Devices to test type
And belong to the instruction set of the instruction type to be selected;
Described instruction collection is pushed in the terminal;
With Devices to test type corresponding test instruction and Devices to test mark of the reception from the terminal, packet
It includes:
It receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and inputted in the test page
Devices to test mark.
According to the second aspect of an embodiment of the present disclosure, a kind of equipment testing device is provided, comprising:
First transmission unit, for the accessing page request in response to carrying out self terminal, Xiang Suoshu terminal is sent for rendering
The page data of test page;
First receiving unit, for receive from the terminal test corresponding with Devices to test type instruction and it is to be measured
Device identification;The test instruction and Devices to test mark are inputted in the test page
Second transmission unit, for sending the test instruction to Devices to test corresponding with Devices to test mark.
In one embodiment, described device further include:
First searching unit, for searching the instruction set corresponding with the Devices to test type prestored;
First judging unit, for judging the test instruction whether in described instruction concentration;
Second transmission unit is used for:
If the test instruction is concentrated in described instruction, institute is sent to Devices to test corresponding with Devices to test mark
State test instruction.
In one embodiment, described device further include:
Third transmission unit, for the test instruction not described instruction concentrate when, Xiang Suoshu terminal push to
The prompt information for prompting the test instruction not to be registered.
In one embodiment, described device further include:
Second receiving unit, the response message sent for receiving the Devices to test;
First determination unit, for determining test result according to the response message;
4th transmission unit, for sending the terminal for the test result.
In one embodiment, second receiving unit is used for:
Receive the response message comprising functional information that the Devices to test is sent;
First determination unit is used for:
Judge functional information that the response message includes whether and function corresponding with the test instruction letter that prestores
Breath is consistent;
If so, determining that test result is successfully;
If it is not, determining that test result is failure.
In one embodiment, described device further include:
Second searching unit, for according to Devices to test type, search prestore it is corresponding with the Devices to test type
Instruction set;
5th transmission unit, for sending the terminal for described instruction collection;
First receiving unit is used for:
It receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and inputted in the test page
Devices to test mark.
In one embodiment, described device further include:
Third receiving unit, for receiving the instruction type to be selected of terminal transmission;
Second searching unit is used for:
According to Devices to test type and the instruction type to be selected, search prestore it is corresponding with the Devices to test type
And belong to the instruction set of the instruction type to be selected.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
The processor is configured to:
In response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal sends the page number for rendering test page
According to;
Receive test corresponding with Devices to test type instruction and Devices to test mark from the terminal;The test
Instruction and Devices to test mark are inputted in the test page;
The test instruction is sent to Devices to test corresponding with Devices to test mark.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By the accessing page request in response to carrying out self terminal, Xiang Suoshu terminal sends the page for rendering test page
Data, so that showing test page in terminal.Later, the test corresponding with Devices to test type from the terminal is received
Instruction and Devices to test mark, wherein test instruction and Devices to test mark are inputted in the test page
's.Finally, the test instruction is sent to Devices to test corresponding with Devices to test mark, to complete device under test
The test process of control effect.As it can be seen that embodiment of the disclosure can carry out to avoid installing at the terminal to device under test
The applications client of control, Lai Shixian test process, to reduce the consumption to terminal resource.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of schematic diagram of system for realizing equipment test shown according to an exemplary embodiment;
Fig. 2A is a kind of flow chart of apparatus testing method shown according to an exemplary embodiment;
Fig. 2 B is a kind of user interface schematic diagram of test page shown according to an exemplary embodiment;
Fig. 3 A is the flow chart of another apparatus testing method shown according to an exemplary embodiment;
Fig. 3 B is the user interface schematic diagram of another test page shown according to an exemplary embodiment;
Fig. 4 is the flow chart of another apparatus testing method shown according to an exemplary embodiment;
Fig. 5 is the flow chart of another apparatus testing method shown according to an exemplary embodiment;
Fig. 6 A is the flow chart of another apparatus testing method shown according to an exemplary embodiment;
Fig. 6 B is the user interface schematic diagram of another test page shown according to an exemplary embodiment;
Fig. 7 is the flow chart of another apparatus testing method shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of equipment testing device shown according to an exemplary embodiment;
Fig. 9 is the block diagram of another equipment testing device shown according to an exemplary embodiment;
Figure 10 is the block diagram of another equipment testing device shown according to an exemplary embodiment;
Figure 11 is the block diagram of another equipment testing device shown according to an exemplary embodiment;
Figure 12 is the block diagram of another equipment testing device shown according to an exemplary embodiment;
Figure 13 is the block diagram of the electronic equipment shown according to an exemplary embodiment suitable for equipment test.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of schematic diagram of system for realizing equipment test shown according to an exemplary embodiment.Such as Fig. 1
Shown, the system may include: the terminal 10 used by tester, the clothes that can be communicated with the terminal 10 by network
Business device 20, and the Devices to test 30 that can be communicated with the server 20 by network.Wherein, the network can include:
WI-FI (WIreless-Fidelity, Wireless Fidelity), bluetooth, infrared etc..The terminal can include but is not limited to: computer,
Mobile phone, PDA etc., the Devices to test 30 can include but is not limited to: intelligent TV set, intelligent refrigerator, intelligent washing machine, intelligence
Air-conditioning, intelligent anti-theft door, intelligent monitoring device, intelligent security guard equipment, Intelligent visible intercom equipment etc..On the Devices to test 30
It can be equipped with wireless module (such as WI-FI mould group), the wireless module includes controller, and the wireless module is for receiving control
Instruction, the controller for controlling the Devices to test according to control instruction accordingly.Above-mentioned server 20 can be with
It is server device corresponding with the application APP client controlled for realizing device under test 30.Above-mentioned server 20
On can be directed to each Devices to test 30, respectively store it is corresponding with the various control functions that each Devices to test 30 has
Control instruction, such as: the control function of certain electric light can include: { turn on light, turn off the light, adjust color }, it is corresponding with function " turning on light "
Control instruction may is that " light_on ", control instruction corresponding with function " turning off the light " may is that " light_off ", with function
" capable of adjusting color ", corresponding control instruction may is that " change_color [] ".Pair of above-mentioned control instruction and control function
It should be related to that needs are carried out registered in advance and stored on the server 20, can be sent out by the server 20 to designated equipment
Send control instruction, Lai Shixian control function.Above-mentioned server 20 can also be used to realize device under test 30 control effect into
Row test.
It will be based on above-mentioned system shown in FIG. 1 below, each embodiment of apparatus testing method will be described.
Fig. 2A is a kind of flow chart of apparatus testing method shown according to an exemplary embodiment, and Fig. 2 B is shown according to one
Example property implements a kind of user interface schematic diagram of the test page exemplified.This apparatus testing method can be applied to server 20
On, it can be realized by way of in the application program that the server 20 installation is controlled to device under test.Such as
Shown in Fig. 2A, in the present embodiment, the apparatus testing method may include following step 101~103:
In a step 101, in response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal is sent for rendering test sheets
The page data in face.
Accessing page request can be the web-page requests of terminal to server transmission, which includes URL
(Uniform Resource Locator, uniform resource locator).The page data may include CSS (Cascading
Style Sheets, cascading style sheets) file, picture, text etc..Terminal is rendered according to the page data received and is tested
The page is simultaneously shown.The Devices to test that test page can be used for device under test type is tested.Type of test equipment can
For identifying type belonging to Devices to test, for example, type of test equipment are as follows: " XX board YY type water purifier ".
In a step 102, test corresponding with Devices to test type instruction and Devices to test from the terminal are received
Mark;Wherein the test instruction and Devices to test mark are inputted in the test page.
The Devices to test identifies the identity to identify Devices to test, the Devices to test mark can include: IP address,
MAC Address and other kinds of identity.
In step 103, the test instruction is sent to Devices to test corresponding with Devices to test mark.
As shown in Figure 2 B, in a kind of illustrative scene, on test page 11 may include instruction input frame 112 and to
Send the key 114 of described instruction.It is, of course, also possible to include the region to input " Devices to test type ".It needs to illustrate
It is that " the Devices to test type " can be inputted in above-mentioned test page 11 by user, can also be asked in the page access
It asks " Devices to test type " described in carrying, to be returned from server 20 to terminal 10 to render and Devices to test type pair
The page data for the test page answered.In certain embodiments, the Devices to test mark can be contained in the test and refer to
In order, such as: test is instructed: { " method ": " test ", " params ": [], " id ": 101 }, wherein included to be measured
Device identification is: " 101 ".Certainly, in other embodiments, can be separately provided on the test page described for inputting
The region of " Devices to test mark ".
As can be seen that the present embodiment, by the accessing page request in response to carrying out self terminal, the transmission of Xiang Suoshu terminal is used for
The page data for rendering test page, so that showing test page in terminal.Later, receive from the terminal with it is to be measured
The corresponding test instruction of device type and Devices to test mark, wherein test instruction and Devices to test mark are in institute
It states and inputs in test page.Finally, the test instruction is sent to Devices to test corresponding with Devices to test mark, with
Complete the test process of the control effect of device under test.As it can be seen that embodiment of the disclosure can be used to avoid installation at the terminal
The applications client controlled with device under test, Lai Shixian test process, to reduce the consumption to terminal resource.
In addition, the device type that the present embodiment can be tested is unrestricted, user can be directed to the equipment class of required test
Type is on server 20 in advance registered the corresponding relationship of the control function and control instruction that belong to the device type, just
Test page can be accessed based on the server, and test process is realized by test page, so that equipment test
Scalability is more preferably.Also, the present embodiment can apply APP client (to realize the wireless control to various equipment) quilt
Exploitation complete before, can the control effect by the above process to various Devices to test test, answered to avoid above-mentioned
It is found that certain control functions cannot achieve after being completed with APP client by exploitation, and then is brought to user undesirable using body
The drawbacks of testing.
In one embodiment, after the step 102, before the step 103, the method may also include that
Search the instruction set corresponding with the Devices to test type prestored;
Judge whether the test instruction concentrates in described instruction;
Correspondingly, the step 103 includes:
If the test instruction is concentrated in described instruction, institute is sent to Devices to test corresponding with Devices to test mark
State test instruction.
In one embodiment, described to judge the test instruction whether after described instruction concentration, the method may be used also
Include:
If test instruction is not concentrated in described instruction, the push of Xiang Suoshu terminal to prompt the test instruct not by
The prompt information of registration.
In one embodiment, after the step 103, the method may also include that
Receive the response message that the Devices to test is sent;
According to the response message, determines test result and be sent in the terminal.
In one embodiment, the response message for receiving the Devices to test and sending, comprising:
Receive the response message comprising functional information that the Devices to test is sent;
Correspondingly, described according to the response message, determine test result, comprising:
Judge functional information that the response message includes whether and function corresponding with the test instruction letter that prestores
Breath is consistent;
If so, determining that test result is successfully;
If it is not, determining that test result is failure.
In one embodiment, before the step 102, the method may also include that
According to Devices to test type, the instruction set corresponding with the Devices to test type prestored is searched;
Described instruction collection is pushed in the terminal;
Correspondingly, the step 102 can include:
It receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and inputted in the test page
Devices to test mark.
In one embodiment, before the step 102, the method may also include that
Receive the instruction type to be selected that terminal is sent;
According to Devices to test type and the instruction type to be selected, search prestore it is corresponding with the Devices to test type
And belong to the instruction set of the instruction type to be selected;
Described instruction collection is pushed in the terminal;
Correspondingly, the step 102 can include:
It receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and inputted in the test page
Devices to test mark.
Specifically how to realize equipment test, please refers to subsequent embodiment.
Fig. 3 A is the flow chart of another apparatus testing method shown according to an exemplary embodiment, and Fig. 3 B is according to one
The user interface schematic diagram of another test page shown in exemplary embodiment.This apparatus testing method can be applied to service
On device 20.As shown in Figure 3A, in the present embodiment, the apparatus testing method may include following step 201~206:
In step 201, in response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal is sent for rendering test sheets
The page data in face.
In step 202, test corresponding with Devices to test type instruction and Devices to test from the terminal are received
Mark;Wherein the test instruction and Devices to test mark are inputted in the test page.
Above-mentioned steps 201 and step 202 are referred to the content of step 101 and step 102 in an embodiment.
In step 203, the instruction set corresponding with the Devices to test type prestored is searched.
For each Devices to test type, comprising one or more control functions, need in advance really
Determine the corresponding relationship of control function and control instruction and is registered on the server, after the completion of registration, the service
Device can be directed to each Devices to test type, and the corresponding relationship of the control function and control instruction is stored.Also
It is to say, for each Devices to test type, can store on the server one or more corresponding with each control function
Control instruction, one or more of control instructions just constitute an instruction set, and each Devices to test type can correspond to one
Instruction set.
For example, for Devices to test type: " XX board YY type water purifier ", the control for including in corresponding instruction set refer to
It enables can include:
{ Method1, Method2 ..., MethodN };
Wherein, the format of Method1~MethodN control and corresponding control function can be defined by user.Such as, with
" Method1 " corresponding control function is " opening power supply ", and control function corresponding with " Method2 " is " heating ", etc..
In step 204, judge whether the test instruction concentrates in described instruction.If the test instruction is in the finger
It enables and concentrating, then enter step 205;If the test instruction is not concentrated in described instruction, 206 are entered step.
In step 205, the test instruction is sent to Devices to test corresponding with Devices to test mark.
In step 206, the push of Xiang Suoshu terminal is to prompt the test to instruct the prompt information not being registered.
By the above process as can be seen that whether server can be by judging the test instruction in pre-registered institute
It states in instruction set, to judge whether test instruction can be used, if not registering, can not achieve the control mesh of device under test
, at this point it is possible to by way of pushing prompt information to terminal, to remind user's test instruction unavailable and not available
Reason (such as: unregistered).By pushing the prompt information to prompt the test instruction not to be registered to terminal, so that test
Person can instruct unavailable and not available reason by the prompt information shown on test page to learn to test.Hereafter, it tests
Person can be tested again after the instruction to unregistered mistake is registered, and promote the efficiency of test process.Certainly, at other
In embodiment, above-mentioned steps 206 can also not have.
In the present embodiment, testing service device receive terminal sending test instruction after, can by searching for to
The corresponding instruction set of measurement equipment type, and judge whether the test instruction concentrates in described instruction, with true according to judging result
Fixed test instruction whether be mistake registered in advance instruction, and after determining the instruction that test instruction is mistake registered in advance,
Test instruction is sent to Devices to test.By the above process, can to the test of unregistered mistake instruct identify, avoid by
The process that the test instruction of unregistered mistake is sent to Devices to test, shortens the test used time, promotes testing efficiency.
Referring to shown in Fig. 3 B, shown test page 11 further includes a region 116 to show test result, works as server
Judge that test instruction is not concentrated in pre-registered described instruction, then can push the prompt information to terminal, and by
The prompt information is showed in the region 116 by terminal, and the prompt information can be for example: " this is not one and is registered
The instruction crossed ".At the time of above-mentioned test result may include that test is completed, the type and error number etc. of test instruction.
As it can be seen that embodiment of the disclosure can apply visitor to what device under test was controlled to avoid installing at the terminal
Family end, Lai Shixian test process, to reduce the consumption to terminal resource.In addition, the device type that the present embodiment can be tested
It is unrestricted, so that the scalability of equipment test is more preferably.Also, the present embodiment can be in application APP client (to realize
To the wireless control of various equipment) completed by exploitation before, control effect that can by the above process to various Devices to test
It is tested, finds that certain control functions cannot achieve to avoid after above-mentioned application APP client is completed by exploitation, in turn
The drawbacks of bringing undesirable usage experience to user.
Fig. 4 is the flow chart of another apparatus testing method shown according to an exemplary embodiment, this equipment test side
Method can be applied on server 20.As shown in figure 4, the apparatus testing method may include following step 301 in the present embodiment
~305:
In step 301, in response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal is sent for rendering test sheets
The page data in face.
In step 302, test corresponding with Devices to test type instruction and Devices to test from the terminal are received
Mark;Wherein the test instruction and Devices to test mark are inputted in the test page.
In step 303, the test instruction is sent to Devices to test corresponding with Devices to test mark.
In step 304, the response message that the Devices to test is sent is received.
The response message can be issued after receiving the test instruction by the wireless module of the Devices to test
's.The content of the corresponding message may include: " receiving test to instruct and execute corresponding control action ", " receive survey
Examination instructs but is not carried out corresponding control action ".
In step 305, it according to the response message, determines test result and is sent in the terminal.
The response message that server can be fed back according to Devices to test, to determine corresponding test result, and returns
It is shown on to the terminal, so that user can view test result by the terminal.
In the present embodiment, due to the response message that testing service device can be returned according to Devices to test, to determine test
As a result it and feeds back onto terminal, so that tester passes through under the premise of knowing device identification (such as MAC Address) of Devices to test
Remote mode carries out test to a Devices to test and is possibly realized, so that test process is not limited to survey local Devices to test
Examination, and then promote the usage experience of tester.
In other feasible embodiments, light, sound and the operating status of Devices to test etc. that Devices to test issues
Belong to a kind of exhibition method of test result, which can be recorded in testing service device.For example, Devices to test is
A kind of lamp issues a test to realize function of turning on light and instructs, then by judging whether lamp emits beam, to obtain test
It as a result is successfully or to fail.
Fig. 5 is the flow chart of another apparatus testing method shown according to an exemplary embodiment, this equipment test side
Method can be applied on server 20.As shown in figure 5, being based on above-mentioned embodiment shown in Fig. 4:
In step 304, the response message comprising functional information that the Devices to test is sent is received.
Correspondingly, above-mentioned steps 305 may include step 351~step 354:
In step 351, judge functional information that the response message includes whether and what is prestored instruct with the test
Corresponding functional information is consistent.If so, entering step 352;If it is not, entering step 353.
In step 352, determine that test result is successfully.
In step 353, determine test result for failure.
In step 354, send test result in the terminal.
For example, if certain test instruction of user's input is: " Method1 ", it is assumed that above-mentioned test instruction is to infuse in advance
The a certain instruction that volume is crossed, then according to the corresponding relationship of the instruction and function registered on the server in advance, it is assumed that with the test
Corresponding function is instructed to assume are as follows: " turning on light ".Specified be tested is sent by server by test instruction " Method1 " again
After equipment, equipment under test may be implemented corresponding control function, and feedback into the response message on server comprising with
The corresponding functional information of the control function realized.It is pre-registered corresponding with test instruction " Method1 " by comparing
Functional information and the response message in it is whether consistent comprising functional information, it is possible to determine that whether above-mentioned test instruction completes
Correct control function.There can actually be such a test result: test instruction " Method1 " be dealt into be measured
After equipment, Devices to test completion not " is turned on light " function, but other function, such as: " adjustment color ".As it can be seen that according to be measured
The response message that equipment returns determines test result, so that tester is in the device identification for knowing Devices to test (such as MAC
Location) under the premise of, one Devices to test can be tested by remote mode.And it is possible to which testing out test instruction realizes
The case where control function of mistake, promotes the accuracy of test process.
Fig. 6 A is the flow chart of another apparatus testing method shown according to an exemplary embodiment, and Fig. 6 B is according to one
The user interface schematic diagram of another test page shown in exemplary embodiment.This apparatus testing method can be applied to service
On device 20.As shown in Figure 6A, in the present embodiment, the apparatus testing method may include following step 401~405:
In step 401, in response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal is sent for rendering test sheets
The page data in face.
In step 402, according to Devices to test type, the instruction corresponding with the Devices to test type prestored is searched
Collection.
In step 403, described instruction collection is pushed in the terminal.
In step 404, it receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and in the survey
The Devices to test mark inputted in the examination page.
In step 405, the test instruction is sent to Devices to test corresponding with Devices to test mark.
It can also include one for showing in an illustrative scene, on the test page 11 referring to shown in Fig. 6 B
The region 118 of instruction to be selected.It, can be with after user determines, and the Devices to test to a certain Devices to test type is needed to test
Into test page corresponding with the Devices to test type.Wherein, above-mentioned Devices to test type can be input by user,
It can be according to the accessing page request and to determine.Then, server is according to Devices to test type, search prestore with institute
The corresponding instruction set of Devices to test type (being registered on the server in advance) is stated, and includes by the instruction set found
Instruction, which is pushed in the terminal, to be shown, and is selected a certain instruction so that user concentrates from described instruction, is instructed as test.
For example, if the Devices to test type is: " XX board YY type water purifier " finds instructions corresponding thereto collection can include:
{ Method1, Method2 ..., MethodN };
Then terminal can show the described instruction collection found in the region 118 for showing instruction to be selected, then use
Family can select to survey based on the content for showing in the region 118 of instruction to be selected by the modes such as copying or clicking
Examination instruction, e.g., the test instruction of selection is " Method2 ", then test command content corresponding with " Method2 " can be entered
Into instruction input frame 112, user can add Devices to test mark in the test instruction in described instruction input frame 112
Value, and test process is triggered by clicking " send and instruct " key 114.By the above process, it can simplify user's input to refer to
The triviality of process is enabled, testing efficiency is improved.
Fig. 7 is the flow chart of another apparatus testing method shown according to an exemplary embodiment, this equipment test side
Method can be applied on server 20.As shown in fig. 7, the apparatus testing method may include following step 501 in the present embodiment
~506:
In step 501, in response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal is sent for rendering test sheets
The page data in face.
In step 502, the instruction type to be selected that terminal is sent is received.
In step 503, according to Devices to test type and the instruction type to be selected, to be measured setting with described of prestoring is searched
Standby type is corresponding and belongs to the instruction set of the instruction type to be selected.
In step 504, described instruction collection is pushed in the terminal.
In step 505, it receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and in the survey
The Devices to test mark inputted in the examination page.
In step 506, the test instruction is sent to Devices to test corresponding with Devices to test mark.
It can also include one on the test page 11 in an illustrative scene with continued reference to shown in above-mentioned Fig. 6 B
For selecting the region 117 of instruction type to be selected.In one embodiment, test is instructed, one or more fingers can be divided into
Type is enabled, such as: " METHOD ", " EVENT ", " PROPERTY ".Wherein, for each Devices to test type, in advance
Registered control instruction on the server, can be belonging respectively to a kind of instruction type, such as: test is instructed:
" method ": " test ", " params ": [], " id ": 101 }, belonging to instruction type be: " METHOD ".Certain
In situation, if the function that the equipment of a certain Devices to test type includes is more, the instruction number of instructions corresponding thereto concentration
Also can be more, it is shown if the instruction for including in instruction set is all returned on test page, it will cause user's lookups
The process of the test instruction of required test needs to consume more time, also, transmission above-metioned instruction collection can also consume biggish net
Network resource.For this purpose, user can screen control instruction by instruction type, so that the instruction set instructed on a small quantity be returned
It returns in terminal, for selection by the user test instruction.
For example, if the Devices to test type is: " XX board YY type water purifier " finds instructions corresponding thereto collection
Can include:
Method1, Method2 ..., and MethodN, Event1, Event2 ..., EventM, Property1,
Property2 ..., PropertyK };
Then, if user chooses " METHOD " in the above-mentioned region 117 for selecting instruction type to be selected, server to
The instruction set that terminal returns can include:
{ Method1, Method2 ..., MethodN };
If user chooses " METHOD " and " EVENT " in the above-mentioned region 117 for selecting instruction type to be selected, take
The instruction set that business device is returned to terminal can include:
{ Method1, Method2 ..., MethodN, Event1, Event2 ..., EventM }.
Fig. 8 is a kind of block diagram of equipment testing device shown according to an exemplary embodiment, and described device can be applied
In on the server, in the present embodiment, described device can include:
First transmission unit 801, for the accessing page request in response to carrying out self terminal, Xiang Suoshu terminal, which is sent, is used for wash with watercolours
Contaminate the page data of test page;
First receiving unit 802, for receive from the terminal test corresponding with Devices to test type instruction and
Devices to test mark;The test instruction and Devices to test mark are inputted in the test page
Second transmission unit 803 refers to for sending the test to Devices to test corresponding with Devices to test mark
It enables.
Fig. 9 is the block diagram of another equipment testing device shown according to an exemplary embodiment, above-mentioned shown in Fig. 8
On the basis of embodiment, described device may also include that
First searching unit 804, for searching the instruction set corresponding with the Devices to test type prestored;
First judging unit 805, for judging the test instruction whether in described instruction concentration;
Second transmission unit 803 is used for:
If the test instruction is concentrated in described instruction, institute is sent to Devices to test corresponding with Devices to test mark
State test instruction.
In another embodiment, described device may also include that
Third transmission unit 806, for not when described instruction is concentrated, the push of Xiang Suoshu terminal to be used in test instruction
With the prompt information for prompting the test instruction not to be registered.Certainly, in other embodiments, the third transmission unit 806
It can save.
Figure 10 is the block diagram of another equipment testing device shown according to an exemplary embodiment, shown in above-mentioned Fig. 8
Embodiment on the basis of, described device may also include that
Second receiving unit 807, the response message sent for receiving the Devices to test;
First determination unit 808, for determining test result according to the response message;
4th transmission unit 809, for sending the terminal for the test result.
In one embodiment, second receiving unit 807 can be used for:
Receive the response message comprising functional information that the Devices to test is sent;
First determination unit 808 can be used for:
Judge functional information that the response message includes whether and function corresponding with the test instruction letter that prestores
Breath is consistent;
If so, determining that test result is successfully;
If it is not, determining that test result is failure.
Figure 11 is the block diagram of another equipment testing device shown according to an exemplary embodiment, shown in above-mentioned Fig. 8
Embodiment on the basis of, described device further include:
Second searching unit 810, for according to Devices to test type, search prestore it is corresponding with the Devices to test type
Instruction set;
5th transmission unit 811, for sending the terminal for described instruction collection;
First receiving unit 802 is used for:
It receives the slave described instruction that the terminal is sent and concentrates selected test instruction, and inputted in the test page
Devices to test mark.
Figure 12 is the block diagram of another equipment testing device shown according to an exemplary embodiment, shown in above-mentioned Fig. 8
Embodiment on the basis of, described device may also include that
Third receiving unit 812, for receiving the instruction type to be selected of terminal transmission;
Second searching unit 810 can be used for:
According to Devices to test type and the instruction type to be selected, search prestore it is corresponding with the Devices to test type
And belong to the instruction set of the instruction type to be selected.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein being used as separate part description
Unit may or may not be physically separated, component shown as a unit may or may not be
Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs
Some or all of the modules therein is selected to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying wound
In the case that the property made is worked, it can understand and implement.
Figure 13 is a kind of block diagram of electronic equipment suitable for equipment test shown according to an exemplary embodiment.Example
Such as, electronic equipment 600 may be provided as a server.Referring to Fig.1 3, electronic equipment 600 includes processing component 622, into one
Step includes one or more processors, and the memory resource as representated by memory 632, and being used to store can be by processing component
The instruction of 622 execution, such as application program.The application program stored in memory 632 may include one or more
Each correspond to one group of instruction module.The processing component 622 is configured as:
In response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal sends the page number for rendering test page
According to;
Receive test corresponding with Devices to test type instruction and Devices to test mark from the terminal;The test
Instruction and Devices to test mark are inputted in the test page;
The test instruction is sent to Devices to test corresponding with Devices to test mark.
Electronic equipment 600 can also include that a power supply module 626 is configured as executing the power supply pipe of electronic equipment 600
Reason, a wired or wireless network interface 650 are configured as electronic equipment 600 being connected to network and an input and output (I/
O) interface 658.Electronic equipment 600 can be operated based on the operating system for being stored in memory 632, such as Windows
ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 632 of instruction, above-metioned instruction can be executed by the processing component 622 of electronic equipment 600 to complete the above method.
For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (14)
1. a kind of apparatus testing method characterized by comprising
In response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal sends the page data for rendering test page;
Receive test corresponding with Devices to test type instruction and Devices to test mark from the terminal;The test instruction
It with Devices to test mark is inputted in the test page;
Search the instruction set corresponding with the Devices to test type prestored;
Judge whether the test instruction concentrates in described instruction;
If the test instruction is concentrated in described instruction, the survey is sent to Devices to test corresponding with Devices to test mark
Examination instruction.
2. the method according to claim 1, wherein whether described judge the test instruction in described instruction collection
In after, the method also includes:
If the test instruction is not concentrated in described instruction, the push of Xiang Suoshu terminal is to prompt the test instruction not to be registered
Prompt information.
3. the method according to claim 1, wherein described to be measured set to corresponding with Devices to test mark
After preparation send the test to instruct, the method also includes:
Receive the response message that the Devices to test is sent;
According to the response message, determines test result and be sent in the terminal.
4. according to the method described in claim 3, it is characterized in that, the response message for receiving the Devices to test and sending,
Include:
Receive the response message comprising functional information that the Devices to test is sent;
It is described according to the response message, determine test result, comprising:
Judge functional information that the response message includes whether and the functional information one corresponding with the test instruction that prestores
It causes;
If so, determining that test result is successfully;
If it is not, determining that test result is failure.
5. the method according to claim 1, wherein it is described reception from the terminal with Devices to test type
Before corresponding test instruction and Devices to test mark, the method also includes:
According to Devices to test type, the instruction set corresponding with the Devices to test type prestored is searched;
Described instruction collection is pushed in the terminal;
With Devices to test type corresponding test instruction and Devices to test mark of the reception from the terminal, comprising:
Receive the slave described instruction that the terminal is sent and concentrate selected test instruction, and inputted in the test page to
Measurement equipment mark.
6. the method according to claim 1, wherein it is described reception from the terminal with Devices to test type
Before corresponding test instruction and Devices to test mark, the method also includes:
Receive the instruction type to be selected that terminal is sent;
According to Devices to test type and the instruction type to be selected, search prestore corresponding with the Devices to test type and
Belong to the instruction set of the instruction type to be selected;
Described instruction collection is pushed in the terminal;
With Devices to test type corresponding test instruction and Devices to test mark of the reception from the terminal, comprising:
Receive the slave described instruction that the terminal is sent and concentrate selected test instruction, and inputted in the test page to
Measurement equipment mark.
7. a kind of equipment testing device characterized by comprising
First transmission unit, for the accessing page request in response to carrying out self terminal, Xiang Suoshu terminal is sent for rendering test
The page data of the page;
First receiving unit, for receiving test corresponding with Devices to test type instruction and Devices to test from the terminal
Mark;The test instruction and Devices to test mark are inputted in the test page;
First searching unit, for searching the instruction set corresponding with the Devices to test type prestored;
First judging unit, for judging the test instruction whether in described instruction concentration;
Second transmission unit, in test instruction in described instruction concentration, to corresponding with Devices to test mark
Devices to test send the test and instruct.
8. device according to claim 7, which is characterized in that described device further include:
Third transmission unit, for not when described instruction is concentrated, Xiang Suoshu terminal to be pushed to prompt in test instruction
The prompt information that the test instruction is not registered.
9. device according to claim 7, which is characterized in that described device further include:
Second receiving unit, the response message sent for receiving the Devices to test;
First determination unit, for determining test result according to the response message;
4th transmission unit, for sending the terminal for the test result.
10. device according to claim 9, which is characterized in that second receiving unit is used for:
Receive the response message comprising functional information that the Devices to test is sent;
First determination unit is used for:
Judge functional information that the response message includes whether and the functional information one corresponding with the test instruction that prestores
It causes;
If so, determining that test result is successfully;
If it is not, determining that test result is failure.
11. device according to claim 7, which is characterized in that described device further include:
Second searching unit, for searching the instruction corresponding with the Devices to test type prestored according to Devices to test type
Collection;
5th transmission unit, for sending the terminal for described instruction collection;
First receiving unit is used for:
Receive the slave described instruction that the terminal is sent and concentrate selected test instruction, and inputted in the test page to
Measurement equipment mark.
12. device according to claim 11, which is characterized in that described device further include:
Third receiving unit, for receiving the instruction type to be selected of terminal transmission;
Second searching unit is used for:
According to Devices to test type and the instruction type to be selected, search prestore corresponding with the Devices to test type and
Belong to the instruction set of the instruction type to be selected.
13. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
The processor is configured to:
In response to carrying out the accessing page request of self terminal, Xiang Suoshu terminal sends the page data for rendering test page;
Receive test corresponding with Devices to test type instruction and Devices to test mark from the terminal;The test instruction
It with Devices to test mark is inputted in the test page;
Search the instruction set corresponding with the Devices to test type prestored;
Judge whether the test instruction concentrates in described instruction;
If the test instruction is concentrated in described instruction, the survey is sent to Devices to test corresponding with Devices to test mark
Examination instruction.
14. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of any one of claim 1~6 the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610862555.6A CN106406279B (en) | 2016-09-28 | 2016-09-28 | Apparatus testing method and device, electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610862555.6A CN106406279B (en) | 2016-09-28 | 2016-09-28 | Apparatus testing method and device, electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106406279A CN106406279A (en) | 2017-02-15 |
CN106406279B true CN106406279B (en) | 2019-06-18 |
Family
ID=59228003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610862555.6A Active CN106406279B (en) | 2016-09-28 | 2016-09-28 | Apparatus testing method and device, electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106406279B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108021816B (en) * | 2017-12-05 | 2021-01-26 | Oppo广东移动通信有限公司 | Electronic device test method and device, storage medium and electronic device |
CN113726612A (en) * | 2021-09-07 | 2021-11-30 | 北京天融信网络安全技术有限公司 | Method and device for acquiring test data, electronic equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104898591B (en) * | 2015-03-27 | 2017-10-20 | 西安交通大学 | A kind of intelligent appliance cooperative control method |
CN105260299A (en) * | 2015-09-17 | 2016-01-20 | 安一恒通(北京)科技有限公司 | Method, device, and system for software test |
CN105302727A (en) * | 2015-11-17 | 2016-02-03 | 小米科技有限责任公司 | Testing method, device and system |
-
2016
- 2016-09-28 CN CN201610862555.6A patent/CN106406279B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106406279A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190238626A1 (en) | System and method for appliance detection and app configuration | |
KR101392868B1 (en) | Method for Providing Internet of Things Service | |
CN113132185B (en) | Equipment distribution network binding method, system, mobile terminal and storage medium | |
CN103051693B (en) | Apparatus control method and mobile communication terminal | |
CN106489144A (en) | Search engine optimization for Resource TOC | |
CN110365721A (en) | A kind of method, terminal device and system based on the triggering service of user's scene perception | |
KR20140048660A (en) | Method for browsing internet of things and apparatus using the same | |
CN105592168A (en) | Remotely locating and commanding a mobile device | |
US9883567B2 (en) | Device indication and commissioning for a lighting control system | |
CN104159294A (en) | Cloud positioning platform based on Bluetooth 4.0 technology | |
US20160132029A1 (en) | Method for configuring and controlling smart home products | |
CN109413515A (en) | Apparatus control method, device, mobile terminal and server | |
CN104200644B (en) | Equipment remote-control method, function terminal and intelligent terminal | |
US9836958B2 (en) | Device control method, server, system and computer storage medium | |
CN110932944A (en) | Method and system for controlling intelligent household equipment by visitor terminal | |
CN104122999A (en) | Intelligent device interaction method and system | |
CN106406279B (en) | Apparatus testing method and device, electronic equipment | |
CN116760567A (en) | Account association method, device, electronic equipment and storage medium | |
CN113391559A (en) | Smart home equipment control method and terminal equipment | |
CN106982449A (en) | A kind of network collocating method of video camera | |
US20170031333A1 (en) | Managing interaction constraints | |
CN110519258A (en) | Equipment accesses account control method, control device and readable storage medium storing program for executing | |
CN110275785A (en) | Data processing method, device, client and server | |
KR101437430B1 (en) | Method for providing IoT POS service and computer readable recording medium applying the same | |
CN112351074A (en) | Network distribution method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |