[go: up one dir, main page]

CN110086692A - A kind of automated testing method based on Internet of Things, device and computer equipment - Google Patents

A kind of automated testing method based on Internet of Things, device and computer equipment Download PDF

Info

Publication number
CN110086692A
CN110086692A CN201910401485.8A CN201910401485A CN110086692A CN 110086692 A CN110086692 A CN 110086692A CN 201910401485 A CN201910401485 A CN 201910401485A CN 110086692 A CN110086692 A CN 110086692A
Authority
CN
China
Prior art keywords
equipment
tested
data
internet
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910401485.8A
Other languages
Chinese (zh)
Inventor
王�琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Yunzhiyi Internet Of Things Co Ltd
Original Assignee
Guangzhou Yunzhiyi Internet Of Things Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yunzhiyi Internet Of Things Co Ltd filed Critical Guangzhou Yunzhiyi Internet Of Things Co Ltd
Priority to CN201910401485.8A priority Critical patent/CN110086692A/en
Publication of CN110086692A publication Critical patent/CN110086692A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application provides a kind of automated testing method based on Internet of Things, device and computer equipment, is related to field of computer technology.When receiving test instruction, first corresponding data information is sent to equipment to be tested, then further according to preset listening thread judge to receive the equipment to be tested sends for data information feedback information when, dissection process is carried out to feedback information and obtains parsing data, finally, carrying out use-case test processes according to the parsing data, obtain test result, test equipment can be treated automatically to be tested, test speed is fast, and accuracy is high.

Description

A kind of automated testing method based on Internet of Things, device and computer equipment
Technical field
This application involves power technique fields, in particular to a kind of automated testing method based on Internet of Things, dress It sets and computer equipment.
Background technique
SDK (Software Development Kit, Software Development Kit) is the phase of a kind of software of auxiliary development Close the set of document, example and tool.SDK is applied to various intelligent access devices in Internet of Things industry, and is corresponding to it Visualization tool, such as app.The method that existing SDK test method generallys use manual testing, when being surveyed to APP When examination, tester is needed either manually or automatically to execute user interface (User Interface, UI) operation in APP, for example, Open video, pause video etc.;Then the UI that verifying SDK is sent to server operates whether corresponding data send and send out Whether the data sent are accurate.It being found in practice, the equipment accessed in Internet of Things is various, it is tested using manual testing's method, Heavy workload, test accuracy is low, low efficiency.
Summary of the invention
The embodiment of the present application is designed to provide a kind of automated testing method based on Internet of Things, device and computer Equipment can treat automatically test equipment and be tested, and test speed is fast, and accuracy is high.
The embodiment of the present application provides a kind of automated testing method based on Internet of Things, comprising:
When receiving test instruction, data information corresponding with the equipment to be tested is sent to equipment to be tested;
Judge whether to receive that the equipment to be tested sends for the data information according to preset listening thread Feedback information;
If receiving the feedback information that the equipment to be tested is sent, dissection process is carried out to the feedback information Obtain parsing data;
Use-case test processes are carried out according to the parsing data, obtain test result.
During above-mentioned realization, when receiving test instruction, corresponding data information first is sent to equipment to be tested, Then judge to receive the feedback information for data information that the equipment to be tested is sent further according to preset listening thread When, dissection process is carried out to feedback information and obtains parsing data, finally, being obtained according to parsing data progress use-case test processes To test result, test equipment can be treated automatically and be tested, test speed is fast, and accuracy is high.
Further, the equipment to be tested includes one of client, internet of things equipment and gateway or more Kind;
Wherein, when the equipment to be tested is client, data information corresponding with the equipment to be tested is to ask Seek information;When the equipment to be tested is internet of things equipment, data information corresponding with the equipment to be tested is serial ports Command information;When the equipment to be tested is gateway, data information corresponding with the equipment to be tested is gateway Command information.
During above-mentioned realization, can simultaneously compatible client, internet of things equipment and gateway, can give to be tested Equipment sends corresponding data information, and carries out use-case test according to corresponding feedback information, for different equipment to be tested It does not need to replace corresponding test method, further promotes automatic test speed, promote convenience.
Further, dissection process is carried out to the feedback information and obtains parsing data, comprising:
When the equipment to be tested is the client, the feedback information is carried out using JSON data parsing algorithms Dissection process obtains parsing data.
During above-mentioned realization, when the analyzing and processing method for different equipment to be tested, used is different.When to When test equipment is client, the type of the feedback information sent is JSON type of data packet, then correspondingly, using JSON number Dissection process is carried out to the feedback information received according to analytical algorithm.
Further, dissection process is carried out to the feedback information and obtains parsing data, comprising:
When the equipment to be tested is the internet of things equipment, using serial data analytical algorithm to the feedback information Dissection process is carried out, parsing data are obtained.
During above-mentioned realization, when equipment to be tested is internet of things equipment, the type of the feedback information sent is Serial data type then correspondingly carries out dissection process to the feedback information received using serial data analytical algorithm.
Further, dissection process is carried out to the feedback information and obtains parsing data, comprising:
When the equipment to be tested is the gateway, the feedback information is solved using gateway analysis protocol Analysis processing, obtained parsing data.
During above-mentioned realization, when equipment to be tested is gateway, the type of the feedback information sent is net Data type is closed, then correspondingly, dissection process is carried out to the feedback information received using gateway analysis protocol.
Further, when the equipment to be tested is client, the preset listening thread is client listening-in line Journey;
When the equipment to be tested is internet of things equipment, the preset listening thread is serial ports listening thread;
When the equipment to be tested is client, the preset listening thread is to subscribe to message listening thread.
During above-mentioned realization, before test, first preset different listening thread, corresponding to be measured to monitor Whether equipment occurs the operation that feedback information is sent for data information, further promotes the compatibility of test.
Further, use-case test processes are carried out according to the parsing data, obtain test result, comprising:
The parsing data are analyzed and processed, analysis result is obtained;
Judge that the analysis result asserts whether condition matches with default use-case;
If the analysis result asserts that condition matches with the default use-case, exporting indicates that the equipment to be tested is surveyed The test result pinged;
If the analysis result and the default use-case assert that condition mismatches, exporting indicates the equipment to be tested Test unsanctioned test result.
During above-mentioned realization, when carrying out use-case test processes according to parsing data, first parsing data are divided Analysis is analyzed as a result, then whether discriminatory analysis result matches with expected results (default use-case asserts condition), to judge this Whether equipment to be tested passes through test.
The embodiment of the present application second aspect discloses a kind of automatic test device based on Internet of Things, comprising:
Sending module, for being sent to equipment to be tested opposite with the equipment to be tested when receiving test instruction The data information answered;
Judgment module receives being directed to for the equipment transmission to be tested for judging whether according to preset listening thread The feedback information of the data information;
Parsing module, if the feedback information sent for receiving the equipment to be tested, to the feedback letter Breath carries out dissection process and obtains parsing data;
Test module obtains test result for carrying out use-case test processes according to the parsing data.
During above-mentioned realization, sending module is first sent to equipment to be tested corresponding when receiving test instruction Data information, then parsing module judges that receiving being directed to for equipment transmission to be tested counts further according to preset listening thread It is believed that carrying out dissection process when the feedback information of breath to feedback information and obtaining parsing data, finally, test module is according to the parsing Data carry out use-case test processes, obtain test result, can treat automatically test equipment and be tested, and test speed is fast, quasi- True property is high.
Further, the test module, comprising:
Submodule is analyzed, for being analyzed and processed to the parsing data, obtains analysis result;
Judging submodule, for judging that the analysis result asserts whether condition matches with default use-case;
Test result output sub-module, for judging that the analysis result asserts condition phase with the default use-case Timing, then exporting indicates that the equipment to be tested tests the test result passed through;Judge the analysis result with it is described pre- If use-case asserts that condition does not match that, then exporting indicates that the equipment to be tested tests unsanctioned test result.
During above-mentioned realization, when carrying out use-case test processes according to parsing data, submodule is analyzed first to parsing Data are analyzed as a result, then judging submodule again with expected results (preset use-case to assert by discriminatory analysis result Condition) whether match, to judge whether the equipment to be tested passes through test.
Third aspect present invention discloses a kind of computer equipment, including memory and processor, and the memory is used for Computer program is stored, the processor runs the computer program so that the computer equipment executes first aspect and discloses The some or all of question and answer exchange method.
Fourth aspect present invention discloses a kind of computer readable storage medium, is stored with computer described in the third aspect The computer program used in equipment.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application will make below to required in the embodiment of the present application Attached drawing is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore should not be seen Work is the restriction to range, for those of ordinary skill in the art, without creative efforts, can be with Other relevant attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of structural frames of automated testing method and device based on Internet of Things provided by the embodiments of the present application Figure;
Fig. 2 is the structural frames of another automated testing method and device based on Internet of Things provided by the embodiments of the present application Figure;
Fig. 3 is the structural frames of another automated testing method and device based on Internet of Things provided by the embodiments of the present application Figure;
Fig. 4 is the structural frames of another automated testing method and device based on Internet of Things provided by the embodiments of the present application Figure.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application is described.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Embodiment 1
Automated testing method based on Internet of Things described in the embodiment of the present application, executing subject are server, Before executing based on the automated testing method of Internet of Things, need to open listening thread in advance, to monitor equipment institute to be tested The relevant operation (such as event call-back) of execution.
In the embodiment of the present application, server can be to simulate a server-side of building on a computing device, can also be with For the service equipment etc. of entity, to this, this embodiment is not limited.
Fig. 1 is please referred to, Fig. 1 is a kind of process of the automated testing method based on Internet of Things provided by the embodiments of the present application Schematic block diagram.As shown in Figure 1, the automated testing method based on Internet of Things includes:
S101, when receiving test instruction, send corresponding with equipment to be tested data information to equipment to be tested.
S102, judge whether to receive that equipment to be tested sends for the anti-of data information according to preset listening thread Feedforward information executes step S103 if received;If do not received, executes step S102 and continue according to preset listening-in line Journey judges whether to receive the feedback information for data information that equipment to be tested is sent.
In the embodiment of the present application, when equipment to be tested is client, before receiving test instruction, TCP is needed (Transmission Control Protocol) service waits client connection, after client connection, opens client Listening thread, to judge whether to receive the feedback information for data information of client transmission.
The TCP (Transmission Control Protocol, transmission control protocol) is one kind towards connection , reliable, the transport layer communication protocol based on byte stream, defined by the RFC 793 of IETF.
In the embodiment of the present application, client is also referred to as user terminal, refers to corresponding with server, provides local clothes for client The program of business.Client is specifically as follows APP (Application, cell phone software), the software being mounted on smart phone, The deficiency and personalization that primal system can be improved, make mobile phone improve its function, richer usage experience are provided for user Main means.
S103, parsing data are obtained to feedback information progress dissection process.
In the embodiment of the present application, need using corresponding Data Transport Protocol treat test equipment transmission feedback information into Row dissection process is conducive to the compatibility for promoting different data transmission mode.For example, when feedback information is json When (JavaScript Object Notation, JS object numbered musical notation) data packet, need using json resolve packet agreement pair Feedback information is parsed;When feedback information is gateway data, need to carry out the feedback information using gateway analysis protocol Parsing.
The JSON (JavaScript Object Notation, JS object numbered musical notation) is that a kind of data of lightweight are handed over Change format.It is based on a subset of ECMAScript (European Computer association formulate js specification), using being totally independent of The text formatting of programming language stores and indicates data, is easy to people and reads and write, while being also easy to machine parsing and generating, And effectively promote network transmission efficiency.
In the embodiment of the present application, gateway analysis protocol can be CGI (Common Gateway Interface, general network Close interface) analysis protocol, FastCGI (FastCommonGatewayInterface, Universal-purpose quick gateway interface) analysis protocol, WSGI (Web Server Gateway Interface, network server gateway interface) analysis protocol, PTP (precise Time protocol, Precision Time Protocol) analysis protocol, MQTT (Message Queuing Telemetry Transport, Message queue telemetering transmission) analysis protocol etc., to this, this embodiment is not limited.
S104, use-case test processes are carried out according to parsing data, obtains test result.
In the embodiment of the present application, use-case test processes are carried out according to parsing data and obtain test result, especially by asserting Data are parsed with expected results consistency to determine whether passing through, if unanimously, passed through, return is successfully tested information, if It is inconsistent, then do not pass through, returns to error message, and then obtain test result.
In the automated testing method based on Internet of Things described in Fig. 1, when receiving test instruction, first to be measured It tries equipment and sends corresponding data information, then judge that receiving the equipment to be tested sends further according to preset listening thread For data information feedback information when, to feedback information carry out dissection process obtain parsing data, finally, according to the parsing Data carry out use-case test processes, obtain test result.As it can be seen that implementing the automatic test based on Internet of Things described in Fig. 1 Method can treat automatically test equipment and be tested, and test speed is fast, and accuracy is high.
Embodiment 2
Fig. 2 is please referred to, Fig. 2 is a kind of process of the automated testing method based on Internet of Things provided by the embodiments of the present application Schematic block diagram.As shown in Fig. 2, the automated testing method based on Internet of Things includes:
S201, when receiving test instruction, send corresponding with equipment to be tested data information to equipment to be tested.
In the embodiment of the present application, equipment to be tested include one of client, internet of things equipment and gateway or It is a variety of, this present embodiment is not limited in any way.
Automated testing method based on Internet of Things described in the embodiment of the present application, executing subject are server, clothes Business device can be directly communicatively coupled with client, internet of things equipment and gateway;Server can also pass through gateway Equipment is communicatively coupled with internet of things equipment, and to this, this embodiment is not limited.
As an alternative embodiment, server can be communicatively coupled by network and client, Ke Yitong The mode and internet of things equipment for crossing serial communication are communicatively coupled, and can be led to by PTP communication protocol with gateway Letter connection, correspondingly, for feedback information parsed used between analysis protocol and equipment to be tested and server Communication connection mode is corresponding.
Described PTP (precise time protocol, the Precision Time Protocol) communication protocol is also known as IEEE1588 association View has the characteristics that be easily configured, fast convergence and few to network bandwidth and resource consumption, cardinal principle be by one together Step signal period property is corrected synchronization to the clock of nodes all in network, can make the distributed system based on Ethernet Reach precise synchronization, IEEE 1588PTP Clock Synchronization Technology also can be applied in any multicast network.
In the embodiment of the present application, client is also referred to as user terminal, refers to corresponding with server, provides local clothes for client The program of business.Client is specifically as follows APP (Application, cell phone software), the software being mounted on smart phone, The deficiency and personalization that primal system can be improved, make mobile phone improve its function, richer usage experience are provided for user Main means.
In the embodiment of the present application, gateway is also known as gateway, protocol converter, can be in network layer implementation above Network interconnection both can be used for wide area network interconnection, and can be used for local area network interconnection, be a kind of computer for serving as conversion important task System or equipment.
In the embodiment of the present application, it can be smart home device, intelligence that internet of things equipment, which is the equipment with communication function, Transit equipment etc., specifically, can be intelligent refrigerator, intelligent door lock, intelligent air condition, intelligent environment monitoring equipment etc., to this Embodiment is not construed as limiting.
In the embodiment of the present application, when equipment to be tested is client, data information corresponding with equipment to be tested is Solicited message;When equipment to be tested is internet of things equipment, data information corresponding with equipment to be tested is serial ports instruction letter Breath;When equipment to be tested is gateway, data information corresponding with equipment to be tested is gateway command information.
In the embodiment of the present application, gateway analysis protocol can be CGI (Common Gateway Interface, general network Close interface) analysis protocol, FastCGI (FastCommonGatewayInterface, Universal-purpose quick gateway interface) analysis protocol, WSGI (Web Server Gateway Interface, network server gateway interface) analysis protocol, PTP (precise Time protocol, Precision Time Protocol) analysis protocol, MQTT (Message Queuing Telemetry Transport, Message queue telemetering transmission) etc., to this, this embodiment is not limited.
It is further comprising the steps of after step S201:
S202, judge whether to receive that equipment to be tested sends for the anti-of data information according to preset listening thread Feedforward information executes step S103 if received;If do not received, executes step S102 and continue according to preset listening-in line Journey judges whether to receive the feedback information for data information that equipment to be tested is sent.
In the embodiment of the present application, when equipment to be tested is client, preset listening thread is client listening thread; When equipment to be tested is internet of things equipment, preset listening thread is serial ports listening thread;When equipment to be tested is client When, preset listening thread is to subscribe to message listening thread.
S203, parsing data are obtained to feedback information progress dissection process.
As an alternative embodiment, carrying out dissection process to feedback information obtains parsing data, comprising:
When equipment to be tested is client, dissection process is carried out to feedback information using JSON data parsing algorithms, is obtained To parsing data.
As another optional embodiment, dissection process is carried out to feedback information and obtains parsing data, comprising:
When equipment to be tested is internet of things equipment, feedback information is carried out at parsing using serial data analytical algorithm Reason obtains parsing data.
As another optional embodiment, dissection process is carried out to feedback information and obtains parsing data, comprising:
When equipment to be tested is gateway, dissection process is carried out to feedback information using gateway analysis protocol, is obtained Parsing data.
In the embodiment of the present application, when equipment to be tested is APP, after an APP is connect with server, on server It will define the corresponding APP example of this APP, which can all have a corresponding attribute, under original state, the category of APP example Property be it is empty, only just updated after receiving certain data packets, and these attribute values can to APP carry out automatic test when Using arriving.So server obtain parsing data after, can also be according to the parsing data to the APP corresponding A PP example Attribute is updated.
It is further comprising the steps of after step S203:
S204, parsing data are analyzed and processed, obtain analysis result.
S205, discriminatory analysis result and default use-case assert whether condition matches, if so, executing step S206;If It is no, execute step S207.
S206, output indicate that equipment to be tested tests the test result passed through.
S207, output indicate that equipment to be tested tests unsanctioned test result.
In the embodiment of the present application, implement above-mentioned steps S204~step S207, use-case survey can be carried out according to parsing data Examination processing, obtains test result.
In the embodiment of the present application, server internal is carried out according to attribute of the parsing data to the APP corresponding A PP example After update, the parsing data are also converted into response data, test case is sent in a manner of event, to execute Step S204~step S207.
The response is a computer major term, can use it to set some messages to be responded, Such as heading message, responsive state code etc..
The event is the bridge of interaction between javaScript and DOM, is occurred in document or browser window , specific interaction moment.
For example, when equipment to be tested is APP, and default use-case asserts that condition is targeted scans facility information, service Device is after receiving test instruction, first to APP sending device scan request, then APP receive the equipment scan request it Afterwards, the equipment under consolidated network is scanned according to equipment scan request, obtains scanning result information, then APP is by the scanning result Information is sent to server in the form of JSON data packet, and the APP listening thread of server, which listens to APP, has transmission to set for this For the scanning result information of standby scan request to server, then server obtains the scanning result information, and passes through JSON data solution It analyses agreement and dissection process is carried out to the scanning result information, obtain parsing data, then server is carried out according to parsing data When use-case is tested, first the parsing data are analyzed and processed, are analyzed as a result, then further according to analysis result judgement Whether include targeted scans facility information, if including if analyzing in result, then it represents that equipment scans successfully, exports and is successfully tested Test result, if not including, then it represents that equipment scanning failure then exports the unacceptable test result of test.
As it can be seen that implement Fig. 2 described in the automated testing method based on Internet of Things, can treat automatically test equipment into Row test, test speed is fast, and accuracy is high, good compatibility.
Embodiment 3
Fig. 3 is please referred to, Fig. 3 is a kind of structure of the automatic test device based on Internet of Things provided by the embodiments of the present application Schematic block diagram.As shown in figure 3, the automatic test device based on Internet of Things includes:
Sending module 310, for being sent to equipment to be tested corresponding with equipment to be tested when receiving test instruction Data information.
In the embodiment of the present application, equipment to be tested include one of client, internet of things equipment and gateway or It is a variety of, this present embodiment is not limited in any way.
In the embodiment of the present application, when equipment to be tested is client, data information corresponding with equipment to be tested is Solicited message;When equipment to be tested is internet of things equipment, data information corresponding with equipment to be tested is serial ports instruction letter Breath;When equipment to be tested is gateway, data information corresponding with equipment to be tested is gateway command information.
Judgment module 320 receives being directed to for equipment transmission to be tested for judging whether according to preset listening thread The feedback information of data information.
In the embodiment of the present application, when equipment to be tested is client, preset listening thread is client listening thread; When equipment to be tested is internet of things equipment, preset listening thread is serial ports listening thread;When equipment to be tested is client When, preset listening thread is to subscribe to message listening thread.
Parsing module 330, if the feedback information sent for receiving equipment to be tested, parses feedback information Processing obtains parsing data;
As an alternative embodiment, parsing module 330, is specifically used for adopting when equipment to be tested is client Dissection process is carried out to feedback information with JSON data parsing algorithms, obtains parsing data.
As another optional embodiment, parsing module 330 are specifically used for when equipment to be tested being internet of things equipment When, dissection process is carried out to feedback information using serial data analytical algorithm, obtains parsing data.
As another optional embodiment, parsing module 330 is specifically used for when equipment to be tested being gateway When, dissection process, obtained parsing data are carried out to feedback information using gateway analysis protocol.
Test module 340 obtains test result for carrying out use-case test processes according to parsing data.
As an alternative embodiment, referring to Fig. 4, Fig. 4 is provided by the embodiments of the present application a kind of based on Internet of Things The structural schematic block diagram of the automatic test device of net.Automatic test device shown in Fig. 4 based on Internet of Things is by Fig. 3 institute What the automatic test device based on Internet of Things shown optimized, as shown in figure 3, the test module 340, comprising:
Submodule 341 is analyzed, for being analyzed and processed to parsing data, obtains analysis result.
Judging submodule 342 asserts whether condition matches with default use-case for discriminatory analysis result.
Test result output sub-module 343, for when judging that analyzing result and default use-case asserts that condition matches, Then exporting indicates that equipment to be tested tests the test result passed through;Judging that analyzing result asserts condition not phase with default use-case When matching, then exporting indicates that equipment to be tested tests unsanctioned test result.
In the automatic test device based on Internet of Things described in the embodiment of the present application, sending module 310 is being received To when test instruction, corresponding data information first is sent to equipment to be tested, then parsing module 330 is further according to preset monitoring Thread judge to receive the equipment to be tested sends for data information feedback information when, feedback information is parsed Processing obtains parsing data and obtains test result finally, test module 340 carries out use-case test processes according to the parsing data. As it can be seen that implementing the automatic test device based on Internet of Things described in the embodiment of the present application, test equipment can be treated automatically It is tested, test speed is fast, and accuracy is high.
In addition, the present invention also provides a kind of computer equipments.The computer equipment includes memory and processor, storage Device can be used for storing computer program, and processor is by operation computer program, so that the computer equipment be made to execute above-mentioned side The function of method or the modules in above-mentioned question and answer interactive device.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, at least Application program needed for one function (such as sound-playing function, image player function etc.) etc.;Storage data area can store root Created data (such as audio data, phone directory etc.) etc. are used according to mobile terminal.In addition, memory may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
The present embodiment additionally provides a kind of computer storage medium, for storing calculating used in above-mentioned computer equipment Machine program.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing Show the device of multiple embodiments according to the application, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part of module, section or code include one or more executable fingers for implementing the specified logical function It enables.It should also be noted that function marked in the box can also be to be different from attached drawing in some implementations as replacement Middle marked sequence occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes can also be with It executes in the opposite order, this depends on the function involved.It is also noted that each side in block diagram and or flow chart The combination of box in frame and block diagram and or flow chart can be based on firmly with the defined function of execution or the dedicated of movement The system of part is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the application can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
If function is realized and when sold or used as an independent product in the form of software function module, can store In a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially in other words to existing Having the part for the part or the technical solution that technology contributes can be embodied in the form of software products, the computer Software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal meter Calculation machine, server or network equipment etc.) execute each embodiment method of the application all or part of the steps.And it is above-mentioned Storage medium includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk.
The above is only embodiments herein, the protection scope being not intended to limit this application, for this field For technical staff, various changes and changes are possible in this application.Within the spirit and principles of this application, made any Modification, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter Similar terms are indicated in following attached drawing, therefore, once it is defined in a certain Xiang Yi attached drawing, then in subsequent attached drawing not It needs that it is further defined and explained.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including element.

Claims (10)

1. a kind of automated testing method based on Internet of Things characterized by comprising
When receiving test instruction, data information corresponding with the equipment to be tested is sent to equipment to be tested;
Judge whether to receive that the equipment to be tested sends for the anti-of the data information according to preset listening thread Feedforward information;
If receiving the feedback information that the equipment to be tested is sent, dissection process is carried out to the feedback information and is obtained Parse data;
Use-case test processes are carried out according to the parsing data, obtain test result.
2. the automated testing method according to claim 1 based on Internet of Things, which is characterized in that the equipment to be tested Including one or more of client, internet of things equipment and gateway;
Wherein, when the equipment to be tested is client, data information corresponding with the equipment to be tested is request letter Breath;When the equipment to be tested is internet of things equipment, data information corresponding with the equipment to be tested is that serial ports instructs Information;When the equipment to be tested is gateway, data information corresponding with the equipment to be tested is that gateway instructs Information.
3. the automated testing method according to claim 2 based on Internet of Things, which is characterized in that the feedback information It carries out dissection process and obtains parsing data, comprising:
When the equipment to be tested is the client, the feedback information is parsed using JSON data parsing algorithms Processing obtains parsing data.
4. the automated testing method according to claim 2 based on Internet of Things, which is characterized in that the feedback information It carries out dissection process and obtains parsing data, comprising:
When the equipment to be tested is the internet of things equipment, the feedback information is carried out using serial data analytical algorithm Dissection process obtains parsing data.
5. the automated testing method according to claim 2 based on Internet of Things, which is characterized in that the feedback information It carries out dissection process and obtains parsing data, comprising:
When the equipment to be tested is the gateway, the feedback information is carried out at parsing using gateway analysis protocol Reason, obtained parsing data.
6. the automated testing method according to claim 2 based on Internet of Things, which is characterized in that
When the equipment to be tested is client, the preset listening thread is client listening thread;
When the equipment to be tested is internet of things equipment, the preset listening thread is serial ports listening thread;
When the equipment to be tested is client, the preset listening thread is to subscribe to message listening thread.
7. the automated testing method according to claim 1 based on Internet of Things, which is characterized in that according to the parsing number According to use-case test processes are carried out, test result is obtained, comprising:
The parsing data are analyzed and processed, analysis result is obtained;
Judge that the analysis result asserts whether condition matches with default use-case;
If the analysis result asserts that condition matches with the default use-case, exporting indicates that the equipment test to be tested is logical The test result crossed;
If the analysis result and the default use-case assert that condition mismatches, exporting indicates the equipment test to be tested Unsanctioned test result.
8. a kind of automatic test device based on Internet of Things characterized by comprising
Sending module, for being sent to equipment to be tested corresponding with the equipment to be tested when receiving test instruction Data information;
Judgment module, for judging whether to receive according to preset listening thread, the equipment to be tested sent for described The feedback information of data information;
Parsing module, if the feedback information sent for receiving the equipment to be tested, to the feedback information into Row dissection process obtains parsing data;
Test module obtains test result for carrying out use-case test processes according to the parsing data.
9. the automatic test device according to claim 8 based on Internet of Things, which is characterized in that the test module, Include:
Submodule is analyzed, for being analyzed and processed to the parsing data, obtains analysis result;
Judging submodule, for judging that the analysis result asserts whether condition matches with default use-case;
Test result output sub-module, for judging that the analysis result asserts that condition matches with the default use-case When, then exporting indicates that the equipment to be tested tests the test result passed through;Judging the analysis result and described default When use-case asserts that condition does not match that, then exporting indicates that the equipment to be tested tests unsanctioned test result.
10. a kind of computer equipment, which is characterized in that including memory and processor, the memory is calculated for storing Machine program, the processor runs the computer program so that the computer equipment perform claim requires any one of 1 to 8 The automated testing method based on Internet of Things.
CN201910401485.8A 2019-05-14 2019-05-14 A kind of automated testing method based on Internet of Things, device and computer equipment Pending CN110086692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910401485.8A CN110086692A (en) 2019-05-14 2019-05-14 A kind of automated testing method based on Internet of Things, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910401485.8A CN110086692A (en) 2019-05-14 2019-05-14 A kind of automated testing method based on Internet of Things, device and computer equipment

Publications (1)

Publication Number Publication Date
CN110086692A true CN110086692A (en) 2019-08-02

Family

ID=67420203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910401485.8A Pending CN110086692A (en) 2019-05-14 2019-05-14 A kind of automated testing method based on Internet of Things, device and computer equipment

Country Status (1)

Country Link
CN (1) CN110086692A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262759A (en) * 2020-03-17 2020-06-09 中国建设银行股份有限公司 Internet of things platform testing method, device, equipment and storage medium
CN111913861A (en) * 2020-07-31 2020-11-10 中国建设银行股份有限公司 Performance test method, device, equipment and medium of Internet of things system
CN112085873A (en) * 2020-08-12 2020-12-15 中国电力科学研究院有限公司 Testing device and method for electric intelligent internet of things lockset
CN112102526A (en) * 2020-08-12 2020-12-18 中国电力科学研究院有限公司 Test method and system for electric intelligent internet of things lock
CN112202628A (en) * 2020-09-08 2021-01-08 杭州涂鸦信息技术有限公司 WiFi module serial port protocol automatic test system and method
CN112380121A (en) * 2020-11-13 2021-02-19 杭州妙联物联网技术有限公司 Automatic testing method and system for Internet of things equipment
CN112822073A (en) * 2020-12-30 2021-05-18 广东乐心医疗电子股份有限公司 Test method, device, system, electronic equipment and readable storage medium
CN112908357A (en) * 2021-01-19 2021-06-04 广州橙行智动汽车科技有限公司 Instrument sound testing method and device, testing equipment and storage medium
CN113132183A (en) * 2021-04-20 2021-07-16 北京天融信网络安全技术有限公司 Data transmission test method, device, electronic equipment and medium
CN113133039A (en) * 2021-05-11 2021-07-16 武汉迎风聚智科技有限公司 Method and device for testing performance of gateway system
CN113613099A (en) * 2021-08-06 2021-11-05 国网浙江省电力有限公司检修分公司 Secondary equipment test system based on internet of things
CN113791545A (en) * 2020-07-10 2021-12-14 北京沃东天骏信息技术有限公司 Smart home equipment testing method and device, electronic equipment and readable storage medium
CN114205274A (en) * 2021-11-02 2022-03-18 北京百度网讯科技有限公司 Network equipment testing method and device
CN114679402A (en) * 2022-03-25 2022-06-28 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot
CN116486889A (en) * 2023-04-18 2023-07-25 深圳市晶存科技有限公司 A testing method, system, device and storage medium of a dynamic random access memory

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
US10095609B1 (en) * 2011-09-23 2018-10-09 Amazon Technologies, Inc. Intermediary for testing content and applications
CN109002389A (en) * 2017-06-07 2018-12-14 北京京东尚科信息技术有限公司 The method and apparatus of page automatic test
CN109560996A (en) * 2019-01-14 2019-04-02 上海挚极信息科技有限公司 Internet-of-things terminal automatization test system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10095609B1 (en) * 2011-09-23 2018-10-09 Amazon Technologies, Inc. Intermediary for testing content and applications
CN109002389A (en) * 2017-06-07 2018-12-14 北京京东尚科信息技术有限公司 The method and apparatus of page automatic test
CN107908541A (en) * 2017-07-26 2018-04-13 平安壹钱包电子商务有限公司 Interface test method, device, computer equipment and storage medium
CN109560996A (en) * 2019-01-14 2019-04-02 上海挚极信息科技有限公司 Internet-of-things terminal automatization test system and method

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262759A (en) * 2020-03-17 2020-06-09 中国建设银行股份有限公司 Internet of things platform testing method, device, equipment and storage medium
CN113791545A (en) * 2020-07-10 2021-12-14 北京沃东天骏信息技术有限公司 Smart home equipment testing method and device, electronic equipment and readable storage medium
CN111913861A (en) * 2020-07-31 2020-11-10 中国建设银行股份有限公司 Performance test method, device, equipment and medium of Internet of things system
CN112085873A (en) * 2020-08-12 2020-12-15 中国电力科学研究院有限公司 Testing device and method for electric intelligent internet of things lockset
CN112102526A (en) * 2020-08-12 2020-12-18 中国电力科学研究院有限公司 Test method and system for electric intelligent internet of things lock
CN112202628A (en) * 2020-09-08 2021-01-08 杭州涂鸦信息技术有限公司 WiFi module serial port protocol automatic test system and method
CN112202628B (en) * 2020-09-08 2022-09-02 杭州涂鸦信息技术有限公司 WiFi module serial port protocol automatic test system and method
CN112380121A (en) * 2020-11-13 2021-02-19 杭州妙联物联网技术有限公司 Automatic testing method and system for Internet of things equipment
CN112822073A (en) * 2020-12-30 2021-05-18 广东乐心医疗电子股份有限公司 Test method, device, system, electronic equipment and readable storage medium
CN112822073B (en) * 2020-12-30 2023-03-17 广东乐心医疗电子股份有限公司 Test method, device, system, electronic equipment and readable storage medium
CN112908357A (en) * 2021-01-19 2021-06-04 广州橙行智动汽车科技有限公司 Instrument sound testing method and device, testing equipment and storage medium
CN113132183A (en) * 2021-04-20 2021-07-16 北京天融信网络安全技术有限公司 Data transmission test method, device, electronic equipment and medium
CN113133039A (en) * 2021-05-11 2021-07-16 武汉迎风聚智科技有限公司 Method and device for testing performance of gateway system
CN113613099A (en) * 2021-08-06 2021-11-05 国网浙江省电力有限公司检修分公司 Secondary equipment test system based on internet of things
CN114205274A (en) * 2021-11-02 2022-03-18 北京百度网讯科技有限公司 Network equipment testing method and device
CN114205274B (en) * 2021-11-02 2024-06-11 北京百度网讯科技有限公司 Network equipment testing method and device
CN114679402A (en) * 2022-03-25 2022-06-28 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot
CN116486889A (en) * 2023-04-18 2023-07-25 深圳市晶存科技有限公司 A testing method, system, device and storage medium of a dynamic random access memory
CN116486889B (en) * 2023-04-18 2025-03-21 深圳市晶存科技股份有限公司 A dynamic random access memory test method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN110086692A (en) A kind of automated testing method based on Internet of Things, device and computer equipment
Chen et al. A lightweight end-side user experience data collection system for quality evaluation of multimedia communications
Fiedler et al. A generic quantitative relationship between quality of experience and quality of service
CN103560932B (en) Wireless sensor network remote protocol conformance testing system and method
US7804766B2 (en) Devices, systems, and/or methods regarding virtual routing forwarding
CN108322356A (en) A kind of industrial network gateway compatibility test method based on MQTT
WO2020037918A1 (en) Risk control strategy determining method based on predictive model, and related device
CN106911523B (en) The method and system that mobile interchange network users are positioned by LTE indulging in the internet
JP2023109793A (en) Smart capacity for workload routing
US11336545B2 (en) Network device measurements employing white boxes
CN104640125B (en) A kind of method and apparatus of the quality of assessment WLAN business
Sukhov et al. Generating a function for network delay
CN105530137B (en) Flow data analysis method and flow data analysis system
WO2018120853A1 (en) Bus signal protocol decoding method
Alkenani et al. Enhance work for java based network analyzer tool used to analyze network simulator files
Li et al. A Lean Simulation Framework for Stress Testing IoT Cloud Systems
US7272750B2 (en) Expert system for intelligent testing
Budiyanto et al. Classification of network status in academic information systems using naive Bayes algorithm method
CN107979856A (en) Connect the method and apparatus of engine
Bicski et al. Unveiling latency-induced service degradation: A methodological approach with dataset
Solomon et al. Network traffic monitoring in an industrial environment
Reddy et al. Relative freshness stochastic hybrid systems Markov chain (RF-SHS-MC) model for the study of Age of Information
CN116055587B (en) Method and device for realizing hierarchical classification of API (application program interface) assets
WO2015176516A1 (en) Method and apparatus for tracking service process
CN116346660A (en) Data processing method, device, equipment and medium based on dependent replacement service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802