CN110768863B - Scheme for simulating and testing AIOT equipment - Google Patents

Scheme for simulating and testing AIOT equipment Download PDF

Info

Publication number
CN110768863B
CN110768863B CN201910957184.3A CN201910957184A CN110768863B CN 110768863 B CN110768863 B CN 110768863B CN 201910957184 A CN201910957184 A CN 201910957184A CN 110768863 B CN110768863 B CN 110768863B
Authority
CN
China
Prior art keywords
aiot
software
simulation
equipment
mobile phone
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
Application number
CN201910957184.3A
Other languages
Chinese (zh)
Other versions
CN110768863A (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.)
Nanjing Skyworth Institute Of Information Technology Co ltd
Original Assignee
Nanjing Skyworth Institute Of Information Technology 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 Nanjing Skyworth Institute Of Information Technology Co ltd filed Critical Nanjing Skyworth Institute Of Information Technology Co ltd
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)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention relates to the field of automatic test, and discloses a scheme for simulating and testing AIOT equipment, which is technically characterized by comprising AIOT equipment simulating software and mobile phone APP simulating automatic software which are connected in a communication manner; the software of the analog AIOT equipment is imported with information data of the AIOT equipment and a sensor parameter list in advance; the simulation mobile phone APP automation software is imported with 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 and sends a control 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 control 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 simulating and testing AIOT equipment
Technical Field
The invention relates to the field of automated testing, in particular to a scheme for simulating and testing AIOT equipment.
Background
With the advent of 5G, we have gradually stepped into an era of everything interconnection, more and more intelligent devices have added to the internet, various smart home products in the market at present are also layered endlessly, and various companies are actively building ecological circles belonging to their own smart home products, so that recently introduced products have intelligent functions. At present, the intelligent products are mostly characterized in that corresponding operations are automatically performed after remote control, remote state checking and sensor detection. In the face of more and more intelligent products, the workload of testers is increased, the labor cost is increased sharply, and the introduction of automatic tests is urgent.
The current test is mainly divided into a white box test and a black box test. The white box test is mainly performed in the initial stage of the test, no complete product exists at the moment, and testers focus on the test of the software code of the product, but the test cannot be performed on the UI level, and only the code logic of the product can be tested. In contrast to the white box test, the black box test is more focused on the functional test of the surface layer of the product, and the tester stands at the angle of the user to test the product, so that the simulation of some scenes is difficult due to practical reasons (such as the sensor detects a value of a very machine end), and therefore, part of test cases cannot be covered completely.
Both of these test methods have the same problems in AIOT scenarios and over time, there are more and more products being pushed out, and the test cannot fully cover all products with limited manpower and product scheduling. Functional regression on non-recently introduced products is even more compelling. Therefore, a set of automatic test scheme is needed, which can simulate the scene that the recently pushed product is difficult to simulate, and can perform periodic functional regression test on the product with stable future.
Disclosure of Invention
The invention aims to provide a scheme for simulating and testing AIOT equipment, which can conveniently simulate an extreme environment, can rapidly perform functional test on newly accessed equipment, can rapidly perform functional regression verification on stable forward equipment, saves labor cost and accelerates testing efficiency.
The technical aim of the invention is realized by the following technical scheme: a scheme for simulating and testing AIOT equipment comprises AIOT equipment simulating software and mobile phone APP simulating automatic software which are in communication connection;
the software of the analog AIOT equipment is imported with information data of the AIOT equipment and a sensor parameter list in advance;
the simulation mobile phone APP automation software is imported with 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 and sends a control 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 control 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.
Preferably, a test server is set up between the AIOT simulation equipment software and the mobile phone APP simulation automation software, and the test server comprises an account equipment management service and a communication service; the account device management service is used for modifying database rights and binding all AIOT devices under a specified account; the communication service is used for completing communication between the AIOT simulation equipment software and the mobile phone APP simulation automation software.
Preferably, the information data of the AIOT device includes a device name list, a function list and an attribute list.
Preferably, the sensor parameter modification expected result data is also imported in advance in the simulation AIOT equipment software.
Preferably, the simulation AIOT equipment software and the simulation mobile phone APP automation software generate a visual page according to the information data of the AIOT equipment.
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 application.
Preferably, the operating system includes Linux, android, windows and IOS systems.
In summary, the invention has the following beneficial effects: the invention can conveniently simulate the extreme environment by modifying the sensor parameters, bind all the simulated AIOT equipment and perform functional test, save a great deal of labor cost under the condition of relatively tension of manpower, improve the working efficiency and finish the test work in the shortest time.
Drawings
FIG. 1 is a schematic illustration of the test 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 of the simulation test AIOT device is operated on an operating system such as Linux, android, windows or IOS, and comprises simulation AIOT device software and simulation mobile phone APP automation software.
The simulation AIOT equipment software is used for leading in information data of the AIOT equipment, a sensor parameter list and sensor parameter modification expected result data in advance, and the simulation mobile phone APP automation software is used for leading in 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 a control 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 to obtain a reaction result after receiving the control instruction, 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.
And the AIOT equipment simulation software and the mobile phone APP simulation automation software respectively generate a visual page 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 analog mobile phone APP automation software and are used for assisting in test judgment.
A test server is built between the AIOT simulation equipment software and the mobile phone APP simulation automation software, and comprises an account equipment management service and a communication service; the account device management service is used for modifying database rights and binding all AIOT devices under a specified account; the communication service is used for completing communication between the AIOT simulation equipment software and the mobile phone APP simulation automation software.
One specific embodiment of the invention is as follows: firstly, information data of AIOT equipment, namely an equipment name list, a corresponding function list and an attribute list, are imported into AIOT equipment simulation software, AIOT equipment is bound under a corresponding account through a test server, and analog mobile phone APP automation software is also bound under the account through the test server, in the process, the analog mobile phone APP automation software and the analog AIOT equipment software respectively correspond to the AIOT equipment to generate a corresponding visual page, the visual page can facilitate automatic judgment of the results in later period, the analog AIOT equipment software and the analog mobile phone APP automation software respectively identify specific information data according to relevant elements on the visual page, and the specific information data are compared with expected result data modified by sensor parameters or expected result information of the analog mobile phone APP automation software, and test results are obtained 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 AIOT equipment software;
and (3) simulating AIOT equipment software to receive instruction for automatic test:
after the test is started, the analog AIOT device software enters a state waiting for receiving instructions, the analog mobile phone APP automation software starts traversing the name list, the function list and the control instruction list of the AIOT device, the control instructions are issued to the analog AIOT device software one by one, after the analog mobile phone APP automation software controls the instructions to send, the analog mobile phone APP automation software waits for receiving success information sent by the analog AIOT device software, if no receiving success information sent by the analog AIOT device software is received within a designated time, m times of sending are tried, if m times of sending are not successful, abnormal logs are recorded, the specific times can be controlled through a counter, whether the name list and the function list of the AIOT device are traversed or not is checked, and if not completed, the rest commands or other instructions corresponding to the rest AIOT device are continuously traversed;
after receiving an instruction sent by the simulation mobile phone APP automation software, the simulation AIOT equipment software returns a receiving success message to the simulation mobile phone APP automation software, after receiving the receiving success message returned by the simulation AIOT equipment software, the simulation mobile phone APP automation software starts a timer, and starts to wait for a result returned by the simulation AIOT equipment software, if the timing time of the timer is exceeded, an abnormal log is recorded, after receiving the instruction, the simulation AIOT equipment software starts to analyze, if the analysis is unsuccessful, the abnormal log is recorded, if the analysis is successful, the state attribute data corresponding to the AIOT equipment is modified, the relevant element on the visual page of the AIOT equipment corresponding to the simulation AIOT equipment software is modified, the expected result data is modified for the element compared with the sensor parameters, whether the element accords with the expected result is judged, if the element accords with the expected result, the abnormal log is recorded, and if the expected result is met, the message is sent to the simulation mobile phone APP automation software to inform the response result;
after receiving the response result information of the software of the analog AIOT equipment, the analog mobile phone APP automation software jumps to the visual page of the corresponding AIOT equipment to inquire the current state of the AIOT equipment, compares the element with the expected result of the analog mobile phone APP automation software, judges whether the element accords with the expected result of the analog mobile phone APP automation software, if not, records an abnormal log, if so, enters the next step, after completing the issuing of an instruction of the corresponding AIOT equipment, continues to traverse other instructions in a list or other instructions corresponding to the AIOT equipment until the whole instruction list is traversed, after traversing is completed, sends a message to the analog AIOT equipment software to inform that all instructions have been issued, stops the process of the local end, and after receiving the message that all instructions are traversed, the analog AIOT equipment software stops the process of the local end.
Simulating AIOT equipment software report message automatic test:
after starting to run the automatic test, the simulation mobile phone APP automatic software enters a state waiting for receiving a message, the simulation AIOT equipment software starts to traverse the equipment list, if a sensor exists in the AIOT equipment in the traversing process, the sensor parameter list is traversed, the sensor parameter is modified, after the parameter is modified, whether the attribute corresponding to the page element of the equipment corresponding to the simulation AIOT equipment software accords with the sensor parameter modification expected result data or not is checked, if so, the simulation mobile phone APP automatic software is reported, and if not, the sensor parameter modification expected result data is recorded; after reporting to the simulation mobile phone APP automation software, the simulation AIOT equipment software enters a waiting state and waits for a successful receiving message returned by the mobile phone terminal;
after receiving the message reported by the simulation AIOT equipment software, the simulation mobile phone APP automation software starts to analyze the message if the message is received successfully, and records an abnormal log if the analysis is unsuccessful; if the analysis is successful, modifying a visual page of equipment corresponding to the simulated mobile phone APP automation software, judging whether page elements accord with the expected test result data, and if not, recording an abnormal log; if the expected information is met, sending a successful message to the simulation AIOT equipment software;
after receiving the message that the analog mobile phone APP automation software successfully receives, the analog AIOT device software starts to traverse the device list, judges whether the rest AIOT devices have sensors or not, and sends a message that the traversal is completed to the analog mobile phone APP automation software after the last AIOT device is traversed, and after sending the message that the traversal is completed, the analog AIOT device software stops the automation process. And after the simulation mobile phone APP automation software receives the message of completion of the simulation AIOT equipment software traversal, stopping the local end process.
The invention can conveniently simulate the extreme environment by modifying the sensor parameters, bind all the simulated AIOT equipment and perform functional test, save a great deal of labor cost under the condition of relatively tension of manpower, improve the working efficiency and 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 examples, and all technical solutions belonging to the concept of the present invention belong to the protection scope of the present invention. It should be noted that modifications and adaptations to the present invention may occur to one skilled in the art without departing from the principles of the present invention and are intended to be within the scope of the present invention.

Claims (6)

1. A method for analog testing of AIOT devices, comprising: the system comprises AIOT simulation equipment software and mobile phone APP simulation automation software which are connected in a communication way;
the software of the analog AIOT equipment is imported with information data of the AIOT equipment and a sensor parameter list in advance;
the simulation mobile phone APP automation software is imported with 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 a control 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 to obtain a reaction result after receiving the control instruction, 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;
a test server is built between the AIOT simulation equipment software and the APP simulation automation software, and the test server comprises an account equipment management service module and a communication service module; the account device management service module is used for modifying database rights and binding all AIOT devices under a specified account; the communication service module is used for completing communication between the AIOT simulation equipment software and the APP simulation automation software;
the information data of the AIOT device comprises a device name list, a function list and an attribute list;
after receiving the control instruction, the simulation AIOT equipment software traverses the information data of the AIOT equipment and the sensor parameter list to obtain a reaction result, and returns the reaction result to the simulation mobile phone APP automation software, wherein the process comprises the following steps: and in the traversing process, traversing a sensor parameter list, modifying the sensor parameters, checking whether the attribute corresponding to the page element of the equipment corresponding to the analog AIOT equipment software accords with the sensor parameter modification expected result data or not after the parameters are modified, reporting to the analog mobile phone APP automation software if the attribute accords with the sensor parameter modification expected result data, and recording an abnormal log if the attribute does not accord with the sensor parameter modification expected result data.
2. The method for analog testing of AIOT apparatus of claim 1 wherein: the simulation AIOT equipment software is also imported with sensor parameter modification expected result data in advance.
3. The method for analog testing of AIOT apparatus of claim 1 wherein: and the AIOT equipment simulation software and the mobile phone APP simulation automation simulation software respectively generate a visual page according to the information data of the AIOT equipment.
4. The method for analog testing of AIOT apparatus of claim 1 wherein: and a counter and a timer are arranged in the analog mobile phone APP automation software.
5. The method for analog testing of AIOT apparatus of claim 1 wherein: the AIOT simulation device software and the APP simulation mobile phone automation software are respectively operated on an operating system in an application mode.
6. The method for analog testing of AIOT apparatus of claim 5 wherein: the operating system includes 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 CN110768863A (en) 2020-02-07
CN110768863B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111445989B (en) * 2020-03-26 2023-06-13 珠海高瑞特医疗科技有限公司 Simulation learning method of refiner-analyzer simulator
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
CN112565513B (en) * 2020-09-27 2022-04-05 华帝股份有限公司 Debugging method of mobile terminal, mobile terminal and storage medium
CN113032267B (en) * 2021-03-30 2024-03-12 深圳Tcl新技术有限公司 Intelligent scene test method and device, electronic equipment and storage medium

Family Cites Families (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
US10592402B2 (en) * 2017-11-20 2020-03-17 International Business Machines Corporation Automated integration testing with mock microservices

Also Published As

Publication number Publication date
CN110768863A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN110768863B (en) Scheme for simulating and testing AIOT equipment
CN108566323B (en) T-Box automated testing method and system
CN112596972A (en) Vehicle-mounted equipment testing method, device and system and computer equipment
CN102736615B (en) Vehicle failure diagnosis method
CN109324975B (en) Continuous integration method based on mobile cloud measurement platform
CN106776294B (en) Automatic android mobile phone testing method and system
CN107102949B (en) Application program offline testing method and tool
CN103634592A (en) Automatic test method and system for intelligent televisions
CN110568284B (en) Intelligent substation one-key sequential control automatic test verification method, device and system
CN114896176B (en) Intelligent driving software/hardware in-loop automatic simulation test system
CN111737154A (en) Vehicle networking automatic test method and device based on UFT
CN114844811A (en) Vehicle-mounted terminal testing method and system
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN112269697B (en) Equipment storage performance testing method, system and related device
CN112903308A (en) Performance detection method and device for automobile equipment, electronic equipment and storage medium
CN211554929U (en) Human-computer interaction interface automatic identification system based on Android OS
CN108965053B (en) Method, device and system for testing software pressure of upper computer
CN115495363A (en) Software testing method, electronic equipment and readable storage medium
CN105933700B (en) Detection method, device and the television set of television applications program license
CN115373726A (en) Pre-release automation system, method, intelligent device and storage medium
CN112559000B (en) Whole vehicle software updating method and device for vehicle
CN104424096A (en) Automatic testing system and method for Android platform based device
CN114564381A (en) Complete machine production and test method for Internet of things equipment
CN113886274A (en) Stability testing method, device, equipment and storage medium for Internet of vehicles terminal
CN112860547A (en) APP performance testing and data acquisition method for android/IOS mobile phone

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