CN110768863A - Scheme for simulation test of AIOT equipment - Google Patents

Scheme for simulation test of AIOT equipment Download PDF

Info

Publication number
CN110768863A
CN110768863A CN201910957184.3A CN201910957184A CN110768863A CN 110768863 A CN110768863 A CN 110768863A CN 201910957184 A CN201910957184 A CN 201910957184A CN 110768863 A CN110768863 A CN 110768863A
Authority
CN
China
Prior art keywords
software
simulation
aiot
equipment
aiot equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910957184.3A
Other languages
Chinese (zh)
Other versions
CN110768863B (en
Inventor
王敏洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Co Ltd Of Information Technology Research Institute Of Nanjing Skyworth
Original Assignee
Co Ltd Of Information Technology Research Institute Of Nanjing Skyworth
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 Co Ltd Of Information Technology Research Institute Of Nanjing Skyworth filed Critical Co Ltd Of Information Technology Research Institute Of Nanjing Skyworth
Priority to CN201910957184.3A priority Critical patent/CN110768863B/en
Publication of CN110768863A publication Critical patent/CN110768863A/en
Application granted granted Critical
Publication of CN110768863B publication Critical patent/CN110768863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to the field of automatic testing, and discloses a scheme for simulation testing of AIOT equipment, which has the technical scheme key points that the scheme comprises simulation AIOT equipment software and simulation mobile phone APP automatic software which are in communication connection; the software of the simulated AIOT equipment is imported with information data and a sensor parameter list of the AIOT equipment in advance; the simulation mobile phone APP automation software is imported with information data of AIOT equipment, an operation instruction list matched with the information data of the AIOT equipment and expected test result data in advance; the simulation mobile phone APP automation software traverses the operation instruction list to send an operation instruction to the simulation AIOT equipment software, the simulation AIOT equipment software traverses the information data of the AIOT equipment and the sensor parameter list after receiving the operation instruction to obtain a reaction result, the reaction result is returned to the simulation mobile phone APP automation software, and the simulation mobile phone APP automation software obtains a test result according to the returned reaction result.

Description

Scheme for simulation test of AIOT equipment
Technical Field
The invention relates to the field of automatic testing, in particular to a scheme for simulation testing of AIOT equipment.
Background
With the advent of 5G, people gradually step into an age of interconnection of everything, more and more intelligent devices are added into the Internet, various intelligent household products are also in the market at present, and various companies are actively creating an ecological circle of the intelligent household products, so that the recently-released products have an intelligent function. At present, most of the intelligent products are in remote control, remote state checking, automatic corresponding operation after sensor detection and the like. In the face of more and more intelligent products, the workload of testers is increased day by day, the labor cost is increased rapidly, and the introduction of automatic testing becomes urgent.
The current tests are mainly divided into a white box test and a black box test. The white box test is mainly performed at the initial stage of the test, a complete product does not exist at the moment, testers mostly concentrate on the test on the aspect of product software codes, but the test cannot be performed on a UI layer and only can be performed on the code logic of the product. The black box test is opposite to the white box test, and testers mostly concentrate on the test of the function aspect of the product surface layer and completely stand at the angle of a user to test the product, so that some scenes are difficult to simulate (for example, a sensor measures a value of an end of an antenna) due to practical reasons, and thus partial test cases cannot be completely covered.
Both of these test methods also have the same problem in the AIOT scenario and, with more and more products being pushed out over time, the test cannot completely cover all products with limited manpower and tight product schedules. The functional regression of the non-newly introduced products is rather frustrating. Therefore, a set of automatic testing scheme is needed, which can perform simulation testing on the scene which is difficult to simulate for the recently proposed products and perform regular function regression testing on the products which are relatively stable in the future.
Disclosure of Invention
The invention aims to provide a scheme for testing AIOT equipment in a simulation mode, which can conveniently simulate an extreme environment, quickly perform function test on newly accessed equipment, quickly perform function regression verification on stable equipment in a future period, save labor cost and accelerate testing efficiency.
The technical purpose of the invention is realized by the following technical scheme: a scheme for simulation test of AIOT equipment comprises simulation AIOT equipment software and simulation mobile phone APP automation software which are in communication connection;
the software of the simulated AIOT equipment is imported with information data and a sensor parameter list of the AIOT equipment in advance;
the simulation mobile phone APP automation software is imported with information data of AIOT equipment, an operation instruction list matched with the information data of the AIOT equipment and expected test result data in advance;
the simulation mobile phone APP automation software traverses the operation instruction list to send an operation instruction to the simulation AIOT equipment software, the simulation AIOT equipment software traverses information data of the AIOT equipment and the sensor parameter list after receiving the operation instruction to obtain a reaction result, the reaction result is returned to the simulation mobile phone APP automation software, and the simulation mobile phone APP automation software compares the returned reaction result with the expected test result data to obtain a test result.
Preferably, a test server is built between the simulated AIOT equipment software and the simulated mobile phone APP automation software, and the test server comprises account equipment management service and communication service; the account equipment management service is used for modifying the database authority and binding all AIOT equipment under a specified account; the communication service is used for completing communication between the simulation AIOT equipment software and the simulation mobile phone APP automation software.
Preferably, the information data of the AIOT device includes a device name list, a function list, and an attribute list.
Preferably, sensor parameters are imported into the simulated AIOT equipment software in advance to modify expected result data.
Preferably, the simulation AIOT device software and the simulation mobile phone APP automation software respectively generate a visual page according to the information data of the AIOT device.
Preferably, a counter and a timer are arranged in the analog mobile phone APP automation software.
Preferably, the simulated AIOT device software and the simulated mobile phone APP automation software are respectively run on an operating system in the form of an application.
Preferably, the operating system includes Linux, Android, Windows, and IOS systems.
In conclusion, the invention has the following beneficial effects: the invention can conveniently simulate an extreme environment by modifying sensor parameters, can bind all simulated AIOT equipment and carry out functional test, saves a large amount of labor cost under the condition of tense manpower, improves the working efficiency, and can finish the test work in the shortest time.
Drawings
FIG. 1 is a schematic illustration of the testing of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, the scheme for testing the AIOT device in a simulation mode of the present invention is run on an operating system such as Linux, Android, Windows, or IOS, and includes software for testing the AIOT device and software for testing the mobile phone APP automation.
The simulation AIOT equipment software imports information data of AIOT equipment, a sensor parameter list and sensor parameter modification expected result data in advance, and the simulation mobile phone APP automation software imports information data of the AIOT equipment, an operation instruction list matched with the information data of the AIOT equipment and test expected result data in advance;
the simulation mobile phone APP automation software traverses the operation instruction list to send an operation instruction to the simulation AIOT equipment software, the simulation AIOT equipment software traverses the information data of the AIOT equipment and the sensor parameter list after receiving the operation instruction to obtain a reaction result, the reaction result is returned to the simulation mobile phone APP automation software, and the simulation mobile phone APP automation software compares the returned reaction result with the test expected result data to obtain a test result.
The simulation AIOT equipment software and the simulation mobile phone APP automation software respectively generate visual pages according to the information data of the AIOT equipment.
Specifically, the information data of the AIOT device includes a name list, a function list, and an attribute list of the AIOT device.
Specifically, a counter and a timer are arranged in the simulation mobile phone APP automation software and used for assisting in testing and judging.
A test server is built between the simulation AIOT equipment software and the simulation mobile phone APP automation software, and the test server comprises account equipment management service and communication service; the account device management service is used for modifying the database authority and binding all AIOT devices under the specified account; the communication service is used for completing communication between the simulation AIOT equipment software and the simulation mobile phone APP automation software.
One specific embodiment of the invention is as follows: firstly, importing information data of AIOT equipment, namely an equipment name list, a corresponding function list and an attribute list, into simulated AIOT equipment software, binding the AIOT equipment to a corresponding account through a test server, binding the simulated mobile phone APP automation software to the account through the test server, in the process, respectively generating a corresponding visual page corresponding to the AIOT equipment by the simulated mobile phone APP automation software and the simulated AIOT equipment software, enabling the visual page to be convenient for automatic judgment of a result at a later stage, respectively identifying the specific information data and comparing the specific information data with sensor parameter modification expected result data or the simulated mobile phone APP automation software expected result information according to relevant elements on the visual page, and obtaining a test result after comparison;
in the scheme, two aspects are mainly tested, namely an automatic test for simulating the receiving instruction of AIOT equipment software and an automatic test for simulating the reporting message of the AIOT equipment software;
simulating automatic test of AIOT equipment software receiving instruction:
after the test is started, simulating AIOT equipment software to enter a state of waiting for receiving instructions, simulating mobile phone APP automatic software to start traversing a name list, a function list and a control instruction list of AIOT equipment, issuing control instructions to the simulated AIOT equipment software one by one, after the simulated mobile phone APP automatic software control instructions are sent, waiting for successful receiving information sent by the simulated AIOT equipment software, if the successful receiving information sent by the simulated AIOT equipment software is not received within the specified time, trying to send for m times, if the m times are not successfully sent, recording an abnormal log, controlling the specific times through a counter, checking whether the name list and the function list of the AIOT equipment are finished or not, and if the m times are not finished, continuing traversing the rest commands or other instructions corresponding to the rest AIOT equipment;
after receiving an instruction sent by analog mobile phone APP automation software, the analog mobile phone APP automation software returns a successful receiving message to the analog mobile phone APP automation software if the receiving is successful, the analog mobile phone APP automation software starts a timer after receiving the successful receiving message returned by the analog mobile phone APP automation software, meanwhile, starts to wait for a result returned by the analog AIOT equipment software, records an abnormal log if the timing time of the timer is exceeded, starts to analyze after receiving the instruction, records the abnormal log if the analysis is unsuccessful, modifies state attribute data corresponding to the AIOT equipment if the analysis is successful, modifies related elements on a visual page of the AIOT equipment corresponding to the analog AIOT equipment software, compares sensor parameters of the elements to modify expected result data, judges whether the elements meet the expected result or not, if not, recording an abnormal log, and if the abnormal log accords with an expected result, sending a message to the analog mobile phone APP automatic software to inform a response result;
after receiving a response result message of the simulated AIOT equipment software, the simulated mobile phone APP automatic software jumps to a visual page corresponding to the AIOT equipment to inquire the current state of the AIOT equipment, compares the element with the expected result of the simulated mobile phone APP automatic software, judges whether the element accords with the expected result of the simulated mobile phone APP automatic software, if not, records an abnormal log, if so, enters the next step, continues traversing other instructions in the list or other instructions corresponding to the AIOT equipment after completing the issuing of an instruction corresponding to the AIOT equipment, until the whole instruction list is completely traversed, sends a message to the simulated AIOT equipment software to inform that all the instructions have been completely issued after traversing is completed, and stops the process of the local terminal, and after receiving the message that all the instructions are completely traversed, the simulated AIOT equipment software stops the process of the local terminal.
Simulating automatic testing of reported messages of AIOT equipment software:
after the automatic test is started, the analog mobile phone APP automatic software enters a message receiving waiting state, the analog AIOT device software starts traversing the device list, if a sensor exists in the AIOT device in the traversing process, the sensor parameter list is traversed, sensor parameters are modified, after the parameters are modified, whether the attribute corresponding to the device page element corresponding to the analog AIOT device software accords with the expected result data of sensor parameter modification or not is checked, if the expected result data of sensor parameter modification is met, the attribute is reported to the analog mobile phone APP automatic software, and if the expected result data of sensor parameter modification is not met, an abnormal log is recorded; after the information is reported to the analog mobile phone APP automatic software, the analog AIOT equipment software enters a waiting state to wait for a successful receiving message returned by the mobile phone end;
after receiving a message reported by simulation AIOT equipment software, simulation mobile phone APP automation software starts to analyze the message if the receiving is successful, and records an abnormal log if the analyzing is unsuccessful; if the analysis is successful, modifying a visual page of the equipment corresponding to the analog mobile phone APP automation software, judging whether page elements meet the expected test result data or not, and if not, recording an abnormal log; if the simulation result meets the expectation, sending a receiving success message to the simulation AIOT equipment software;
after receiving the message that the analog mobile phone APP automatic software receives successfully, the analog AIOT device software starts traversing the device list, judges whether the rest AIOT devices have sensors, sends a traversed message to the analog mobile phone APP automatic software until the last AIOT device is traversed, and after sending the traversed message, the analog AIOT device software stops the automatic process. And after the simulation mobile phone APP automatic software receives the message of completing the traversal of the simulation AIOT equipment software, the process of the local terminal is also stopped.
The invention can conveniently simulate an extreme environment by modifying sensor parameters, can bind all simulated AIOT equipment and carry out functional test, saves a large amount of labor cost under the condition of tense manpower, improves the working efficiency, and can finish the test work in the shortest time.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments, and all technical solutions belonging to the idea of the present invention belong to the protection scope of the present invention. It should be noted that modifications and embellishments within the scope of the invention may occur to those skilled in the art without departing from the principle of the invention, and are considered to be within the scope of the invention.

Claims (8)

1. The scheme for simulation test of the AIOT equipment is characterized in that: the method comprises communication connection simulation AIOT equipment software and simulation mobile phone APP automation software;
the software of the simulated AIOT equipment is imported with information data and a sensor parameter list of the AIOT equipment in advance;
the simulation mobile phone APP automation software is imported with information data of AIOT equipment, an operation instruction list matched with the information data of the AIOT equipment and expected test result data in advance;
the simulation mobile phone APP automation software traverses the operation instruction list to send an operation instruction to the simulation AIOT equipment software, the simulation AIOT equipment software traverses information data of the AIOT equipment and the sensor parameter list after receiving the operation instruction to obtain a reaction result, the reaction result is returned to the simulation mobile phone APP automation software, and the simulation mobile phone APP automation software compares the returned reaction result with the expected test result data to obtain a test result.
2. The scheme of claim 1 for analog testing of AIOT equipment, wherein: a test server is built between the simulation AIOT equipment software and the simulation mobile phone APP automation software, and the test server comprises account equipment management service and communication service; the account equipment management service is used for modifying the database authority and binding all AIOT equipment under a specified account; the communication service is used for completing communication between the simulation AIOT equipment software and the simulation mobile phone APP automation software.
3. The scheme of claim 1 for analog testing of AIOT equipment, wherein: the information data of the AIOT device includes a device name list, a function list, and an attribute list.
4. The scheme of claim 1 for analog testing of AIOT equipment, wherein: sensor parameters are also imported into the simulated AIOT equipment software in advance to modify expected result data.
5. The scheme of claim 1 for analog testing of AIOT equipment, wherein: and the simulation AIOT equipment software and the simulation mobile phone APP automatic software respectively generate visual pages according to the information data of the AIOT equipment.
6. The scheme of claim 1 for analog testing of AIOT equipment, wherein: a counter and a timer are arranged in the analog mobile phone APP automation software.
7. The scheme of claim 1 for analog testing of AIOT equipment, wherein: the simulation AIOT equipment software and the simulation mobile phone APP automation software run on an operating system in an application form respectively.
8. An arrangement for analog testing of AIOT equipment, as claimed in claim 7, wherein: the operating system comprises Linux, Android, Windows and IOS systems.
CN201910957184.3A 2019-10-10 2019-10-10 Scheme for simulating and testing AIOT equipment Active CN110768863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910957184.3A CN110768863B (en) 2019-10-10 2019-10-10 Scheme for simulating and testing AIOT equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910957184.3A CN110768863B (en) 2019-10-10 2019-10-10 Scheme for simulating and testing AIOT equipment

Publications (2)

Publication Number Publication Date
CN110768863A true CN110768863A (en) 2020-02-07
CN110768863B CN110768863B (en) 2023-04-28

Family

ID=69331635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910957184.3A Active CN110768863B (en) 2019-10-10 2019-10-10 Scheme for simulating and testing AIOT equipment

Country Status (1)

Country Link
CN (1) CN110768863B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111445989A (en) * 2020-03-26 2020-07-24 珠海高瑞特医疗科技有限公司 Simulation learning method for seminal plasma analyzer simulator
CN111475413A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Test method and device
CN112180189A (en) * 2020-09-09 2021-01-05 杭州涂鸦信息技术有限公司 Automatic detection method, device and system based on multi-class intelligent module
CN112565513A (en) * 2020-09-27 2021-03-26 华帝股份有限公司 Debugging method of mobile terminal, mobile terminal and storage medium
CN113032267A (en) * 2021-03-30 2021-06-25 深圳Tcl新技术有限公司 Intelligent scene testing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179456A (en) * 2007-12-11 2008-05-14 福建星网锐捷网络有限公司 Network appliance testing approach and device
CN101827379A (en) * 2010-03-25 2010-09-08 工业和信息化部电信传输研究所 General-purpose interoperability test system and test method thereof
CN106502904A (en) * 2016-11-02 2017-03-15 四川长虹电器股份有限公司 A kind of UI automated testing methods of intelligent appliance equipment application
US20190156199A1 (en) * 2017-11-20 2019-05-23 International Business Machines Corporation Method for automated integration testing with mock microservices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179456A (en) * 2007-12-11 2008-05-14 福建星网锐捷网络有限公司 Network appliance testing approach and device
CN101827379A (en) * 2010-03-25 2010-09-08 工业和信息化部电信传输研究所 General-purpose interoperability test system and test method thereof
CN106502904A (en) * 2016-11-02 2017-03-15 四川长虹电器股份有限公司 A kind of UI automated testing methods of intelligent appliance equipment application
US20190156199A1 (en) * 2017-11-20 2019-05-23 International Business Machines Corporation Method for automated integration testing with mock microservices

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111445989A (en) * 2020-03-26 2020-07-24 珠海高瑞特医疗科技有限公司 Simulation learning method for seminal plasma analyzer simulator
CN111475413A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Test method and device
CN111475413B (en) * 2020-04-02 2024-03-15 深圳创维-Rgb电子有限公司 Test method and device
CN112180189A (en) * 2020-09-09 2021-01-05 杭州涂鸦信息技术有限公司 Automatic detection method, device and system based on multi-class intelligent module
CN112565513A (en) * 2020-09-27 2021-03-26 华帝股份有限公司 Debugging method of mobile terminal, mobile terminal and storage medium
CN113032267A (en) * 2021-03-30 2021-06-25 深圳Tcl新技术有限公司 Intelligent scene testing method and device, electronic equipment and storage medium
CN113032267B (en) * 2021-03-30 2024-03-12 深圳Tcl新技术有限公司 Intelligent scene test method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110768863B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN110768863A (en) Scheme for simulation test of AIOT equipment
CN108566323B (en) T-Box automated testing method and system
CN107562610B (en) Method, device, terminal and medium for acquiring page loading time
CN111104341B (en) Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN112596972A (en) Vehicle-mounted equipment testing method, device and system and computer equipment
CN109324975B (en) Continuous integration method based on mobile cloud measurement platform
CN106776294B (en) Automatic android mobile phone testing method and system
CN112817872A (en) Development test system and method
CN107102949B (en) Application program offline testing method and tool
CN107819611B (en) Client test method based on IEC61850 multi-server simulation
CN111488088B (en) Equipment state identification method and device and intelligent terminal
CN114896176B (en) Intelligent driving software/hardware in-loop automatic simulation test system
CN113259409A (en) T-box simulation test system applied to scene test of Internet of vehicles
CN115827358A (en) Automatic test system, method and device for PFR function and storage medium
CN112860559B (en) Upgrade test system and method
CN211554929U (en) Human-computer interaction interface automatic identification system based on Android OS
CN115587028A (en) Interface automation test method, system, medium and terminal
CN112559000B (en) Whole vehicle software updating method and device for vehicle
CN104424096A (en) Automatic testing system and method for Android platform based device
CN113886274A (en) Stability testing method, device, equipment and storage medium for Internet of vehicles terminal
CN114285840A (en) Vehicle data acquisition method, intelligent terminal and storage medium
CN113868116A (en) Test dependent data generation method and device, server and storage medium
CN110620689A (en) Simulation method and system of IEC61850 server
CN117150169B (en) Multi-browser UI automatic recording method, system, equipment and medium
JPH05216706A (en) On-line simulation system

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
GR01 Patent grant
GR01 Patent grant