CN111897736B - Automatic testing method and system for Internet of things information product based on cloud architecture - Google Patents

Automatic testing method and system for Internet of things information product based on cloud architecture Download PDF

Info

Publication number
CN111897736B
CN111897736B CN202010827681.4A CN202010827681A CN111897736B CN 111897736 B CN111897736 B CN 111897736B CN 202010827681 A CN202010827681 A CN 202010827681A CN 111897736 B CN111897736 B CN 111897736B
Authority
CN
China
Prior art keywords
test
block
case
test case
loading
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
CN202010827681.4A
Other languages
Chinese (zh)
Other versions
CN111897736A (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.)
Shenzhen Academy Of Information And Communications Technology
Original Assignee
Shenzhen Academy Of Information And Communications Technology
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 Shenzhen Academy Of Information And Communications Technology filed Critical Shenzhen Academy Of Information And Communications Technology
Priority to CN202010827681.4A priority Critical patent/CN111897736B/en
Publication of CN111897736A publication Critical patent/CN111897736A/en
Application granted granted Critical
Publication of CN111897736B publication Critical patent/CN111897736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The invention provides a cloud architecture-based automatic testing method for an Internet of things information product, which comprises the following steps of: s1, selecting and loading a test technology; s2, configuring a test instrument; s3, loading a test case; s4, loading and analyzing the operation block; s5, loading and analyzing a test instrument and a test instruction list; s6, executing an instruction sequence of each test block according to the sequence of the test blocks; s7, ending the test. The invention further provides an automatic testing system for the Internet of things information product based on the cloud architecture. The beneficial effects of the invention are as follows: the testing efficiency of the internet of things information product is improved, and the testing cost is reduced.

Description

Automatic testing method and system for Internet of things information product based on cloud architecture
Technical Field
The invention relates to an internet of things information product, in particular to an internet of things information product automatic testing method and system based on a cloud architecture.
Background
The internet of things information product has the characteristics of low cost, diversified wireless technologies, wide service object distribution, customized test requirements and the like.
The traditional method for testing the internet of things information product has the defects of high investment, poor integration level, low automation degree, high labor cost of testing, long testing period and the like, and based on the reasons, the traditional testing scheme is difficult to meet the industry requirements in terms of testing efficiency and income.
Therefore, how to improve the testing efficiency of the internet of things information product and reduce the testing cost is a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an automated testing method and system for an Internet of things information product based on a cloud architecture.
The invention provides a cloud architecture-based automatic testing method for an Internet of things information product, which comprises the following steps of:
s1, selecting and loading a test technology;
s2, configuring a test instrument;
s3, loading a test case;
s4, loading and analyzing the operation block;
s5, loading and analyzing a test instrument and a test instruction list;
s6, executing an instruction sequence of each test block according to the sequence of the test blocks;
s7, ending the test.
As a further improvement of the present invention, in step S2, the meter used for the test is configured, and the configuration information includes the device type, the device name and the device connection manner, and the device address information.
As a further improvement of the invention, in step S3, when the test technology is initialized, a test case script is loaded, a test case script file is analyzed, and a test case object is dynamically generated according to the test case name.
As a further improvement of the present invention, in step S4, the operation block loaded and parsed includes:
an operation block 1, initializing a comprehensive tester;
an operation block 2, initializing a spectrum analyzer;
an operation block 3, setting a port of the comprehensive tester;
an operation block 4 for setting the output frequency of the comprehensive tester;
an operation block 5 for setting the center frequency of the spectrometer;
an operation block 6, setting a Mark mode;
an operation block 7 for setting a sweep width and an analysis bandwidth;
an operation block 8 for reading the analysis bandwidth of the spectrometer;
an operation block 9 for reading the analyzer differential power;
an operation block 10 for reading total power of the analyzer;
an operation block 11 reads the analyzer center frequency power.
As a further improvement of the present invention, in step S5, device information is defined, including device name, model number and connection mode, defining instructions and parameter list.
As a further improvement of the present invention, in step S6, the test case executes the test instructions contained in the test blocks one by one according to the device information of the UI configuration in the order of the test blocks.
As a further improvement of the invention, in step S1, when the test technology is loaded, the test case script file corresponding to the test technology stored on the disk is read, the test case set is dynamically generated according to the test case node name attribute defined by the script, and meanwhile, in the test process, the test case is scheduled and managed through the test technology layer.
As a further improvement of the invention, the test case script file defines test case numbers, test case names and theoretical duration, each test case defines a series of functional blocks according to the test sequence, which are called test blocks, and when the test cases are loaded, each test block script is analyzed to form test logic.
As a further refinement of the present invention, the key attributes include test block names and remark information, each test block defining all test equipment supporting the present test technique and instructions and instruction parameters supported by the test equipment.
The invention also provides an automated testing system for the internet of things information product based on the cloud architecture, which comprises a readable storage medium, wherein the readable storage medium stores execution instructions, and the execution instructions are used for realizing the method according to any one of the above when being executed by a processor.
The beneficial effects of the invention are as follows: through the scheme, the testing efficiency of the Internet of things information product is improved, and the testing cost is reduced.
Drawings
Fig. 1 is a schematic diagram of a hierarchical relationship of an automated testing method for an internet of things information product based on a cloud architecture.
Detailed Description
The invention is further described with reference to the following description of the drawings and detailed description.
The automatic test method for the Internet of things information product based on the cloud architecture is characterized in that a test process is scripted, an XML language is a structured description language, various data can be effectively expressed, a new carrier is provided for information exchange, storage and calculation, the XML language is a text language, the reading is easy, meanwhile, a tree structure is adopted for organizing and storing the data, the expression capability is rich, and meanwhile, the XML language has a unified grammar format verification rule, and the reliability and the usability of the data are improved.
The system creatively summarizes and summarizes the test process, organizes the test process by using XML language in the form of script, abstracts the test case into a series of test blocks, each test block corresponds to a set of functional actions, writes instrument instructions and instruction parameter scripts according to instruments supported by the system in the test blocks, defines and describes the instrument instructions and parameters in the scripts, and realizes the association between the scripts and actual instruments as well as the operation of the instruments. By changing the script, a new test measurement process can be realized, and the quick realization capability of the test case is provided.
FIG. 1 is a hierarchical relationship diagram of a scripted organization test procedure, and the test procedure, the description and the association of instructions and parameters are realized through XML language, so that the scripted of the test case is realized.
As shown in fig. 1, the uppermost layer is a test technology layer, and the automatic test system realizes different test technology modules, such as a Wi-Fi radio frequency test technology module and a Wi-Fi interoperation technology module, according to different test technology fields or test standards. Each test technology module exists independently in the form of a plug-in. During testing, the corresponding test technology module is automatically loaded according to the selection of the test technology by the test engineer. When the test technology is loaded, a test case script file corresponding to the test technology stored on a disk is read, and a test case set is dynamically generated according to attributes such as a test case node name defined by a script. Meanwhile, in the test process, the test technology layer schedules and manages the test cases.
As shown in FIG. 1, the second layer is a test Case layer, and a design test Case label pair < Case > </Case > defines key attributes such as a test Case number, a test Case name, a theoretical duration and the like. The test technology module loads the test case script and parses the script. The test case layer defines a series of functional blocks according to test sequences, which we call test blocks, according to test specification requirements. When the test case is loaded, analyzing each test block script to form test logic.
As shown in fig. 1, the third layer is a test block layer, and the test block node is a child node of the test Case node < Case > node. The testing process of each test case is divided into different functional blocks according to functions, each functional Block is called a test Block, the test blocks have unified naming rules, and a < Block > </Block > tag pair is designed, and key attributes comprise test Block names and remark information and are used for unified identification of upper-layer applications. Each test block defines all test equipment supporting the present test technique and the instructions and instruction parameters supported by that equipment.
As shown in fig. 1, the fourth layer is the device and instruction parameter layer. The XML node of the layer is defined as a < Device > </Device > tag pair, which is a child node of the test Block < Block > node. The layer defines the attributes of the equipment, such as equipment type, equipment model, equipment name, connection mode and the like; meanwhile, the layer also defines an operation instruction list and corresponding instruction parameters of the equipment in the test block.
As shown in fig. 1, the test case layer dynamically generates a device driving object of the device according to the device general parameter information, such as a connection mode, provided by the device and instruction parameter layer, and the device address configuration information provided by the UI application layer, so as to write a test instruction of the device and read a test result.
Taking the test example of the WiFi radio frequency test technology, namely radio frequency signal sideband noise, as an example, the whole test application steps and processes are described in a table mode:
step 1, selecting and loading a test technology, wherein the test system loads a WiFi radio frequency test technology according to the selection of a test engineer;
step 2, configuring a test instrument, wherein the configuration information comprises information such as equipment type, equipment name, equipment connection mode, equipment address and the like, and after the configuration is completed, relevant information in a corresponding instrument script is updated;
step 3, loading test cases, loading test case scripts, analyzing test case script files, dynamically generating test case objects according to test case names, managing a dynamically generated test case set by a test technology module, and scheduling the test cases in the test process;
step 4, loading and analyzing the operation block;
operation block 1: initializing comprehensive tester, node < InitSU >
Operation block 2: initializing spectrum analyzer, node < InitSA >
Operation block 3: setting a comprehensive tester port, wherein the node is SetSuPort
Operation block 4: setting the output frequency of the comprehensive tester, and setting a node < SetSUOutputFreq >
Operation block 5: setting the center frequency of a spectrometer and a node < SetSACENTERFreq ]
Operation block 6: setting Mark mode, node < setMarkMode >
Operation block 7: setting sweep and analysis Bandwidth, node < SetSaSpand RBW ]
Operation block 8: reading the analysis bandwidth of the spectrometer, node < ReadRBW >
Operation block 9: reading analyzer differential power, node < ReadDeltaPower >
Operation block 10: reading total power of analyzer, node < ReadSAPower >
Operation block 11: reading the central frequency power of the analyzer, and a node < ReadSaPowerByFreq >;
analyzing the test blocks according to the test block script, wherein the test blocks are totally defined into 11 test blocks as shown in the left column, and the test blocks are executed in sequence to form the whole test process of the test case; the cloud platform dynamically generates a test process control code according to the test block script;
step 5, loading and analyzing the test instrument and the test instruction list;
in each test block, defining equipment supported by the test block and a list of instructions and parameters for the equipment to realize the control block function; taking the operation block 1 "initialize comprehensive tester" as an example, the device information and instruction list of the R & S CWM500 comprehensive tester are defined:
(1) Device information is defined, including device names: a comprehensive tester; model: CWM500; the connection mode is as follows: VISA;
(2) Defining a list of instructions and parameters;
instruction 1: resetting the equipment;
instruction 2: switching display modes, parameters: a display mode;
instruction 3: setting a signaling mode and parameters: a signaling mode;
program analysis test equipment general information parameters and instruction sequences of the instrument in the test block, wherein the instruction sequences comprise parameters;
using the equipment general information, the test case dynamically generates an equipment driving object through an equipment factory object;
step 6, the test case executes the test instructions contained in the test blocks one by one according to the equipment information (equipment type, equipment name and equipment address) configured by the UI according to the sequence of the test blocks; the method comprises the steps of calling a writing instruction, reading result data and the like of the equipment driving object by using the equipment driving object generated in the steps, and transmitting the instruction and instruction parameters in the test block into the method as parameters to realize business operation of equipment;
realizing test service operation of equipment, including read-write instruction and test result data;
and 7, ending the test, and finishing the execution of the test case.
According to the cloud architecture-based automatic testing method and system for the Internet of things information product, the cloud platform adopts the XML script form to define the test cases and the test elements of all layers, in the testing process, the system program is not required to be modified, the measuring process can be controlled to be changed only by modifying the script, the test instruction and the instruction parameter are replaced, and the application flexibility and the testing efficiency of a test engineer are greatly improved.
According to the cloud architecture-based automatic test method and system for the Internet of things information product, the scripting of the business control process is realized through the definition of the script elements of the hierarchical tree form, the test measurement process can be dynamically controlled without modifying the platform program by changing the script, the change can be quickly adapted to the instruction difference among different small versions of certain test equipment through the modification of the script, the flexibility of the measurement control process is greatly improved, the on-site test engineer can conveniently adjust and test the system, and the adaptability of the test measurement system is improved. Meanwhile, the independently developed instrument driving library is independent of equipment driving provided by equipment manufacturers, has strong flexibility and can meet all operations required by various specific tests.
The foregoing is a further detailed description of the invention in connection with the preferred embodiments, and it is not intended that the invention be limited to the specific embodiments described. It will be apparent to those skilled in the art that several simple deductions or substitutions may be made without departing from the spirit of the invention, and these should be considered to be within the scope of the invention.

Claims (6)

1. The automatic testing method for the internet of things information product based on the cloud architecture is characterized by comprising the following steps of:
s1, selecting and loading a test technology;
s2, configuring a test instrument;
s3, loading a test case;
s4, loading and analyzing the test block;
s5, loading and analyzing a test instrument and a test instruction list;
s6, executing an instruction sequence of each test block according to the sequence of the test blocks;
s7, ending the test;
in step S3, when the test technology is initialized, loading a test case script, analyzing the test case script file, and dynamically generating a test case object according to the test case name;
in step S4, the loaded and parsed test block includes:
the method comprises the steps of (1) initializing a comprehensive tester;
a test block 2, initializing a spectrum analyzer;
a test block 3 is provided with a comprehensive tester port;
the test block 4 is used for setting the output frequency of the comprehensive tester;
the test block 5 is used for setting the center frequency of the spectrometer;
a test block 6, setting a Mark mode;
a test block 7, which sets a sweep width and an analysis bandwidth;
a test block 8, reading the analysis bandwidth of the spectrometer;
a test block 9 for reading the analyzer differential power;
a test block 10 for reading the total power of the analyzer;
the test block 11 reads the center frequency power of the analyzer;
in step S1, when the test technology is loaded, reading a test case script file corresponding to the test technology stored on a disk, dynamically generating a test case set according to the test case node name attribute defined by the script, and simultaneously, scheduling and managing the test case through a test technology layer in the test process;
the test case script file defines a test case number, a test case name and a theoretical duration, each test case defines a series of functional blocks according to a test sequence, which are called test blocks, and when the test case is loaded, each test block script is analyzed to form test logic.
2. The cloud architecture-based internet of things information product automation test method of claim 1, wherein the method comprises the following steps of: in step S2, the meter used for the test is configured, and the configuration information includes a device type, a device name, a device connection manner, and device address information.
3. The cloud architecture-based internet of things information product automation test method of claim 1, wherein the method comprises the following steps of: in step S5, device information is defined, including device name, model number, and connection mode, defining instruction, and parameter list.
4. The cloud architecture-based internet of things information product automation test method of claim 1, wherein the method comprises the following steps of: in step S6, the test cases execute the test instructions contained in the test blocks one by one according to the device information configured by the UI in the order of the test blocks.
5. The cloud architecture-based internet of things information product automation test method of claim 1, wherein the method comprises the following steps of: the attributes of the test blocks include test block names and remark information, each defining all test equipment supporting the present test technique and instructions and instruction parameters supported by the test equipment.
6. An automatic test system of thing allies oneself with information product based on cloud framework, its characterized in that: comprising a readable storage medium having stored therein execution instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 5.
CN202010827681.4A 2020-08-17 2020-08-17 Automatic testing method and system for Internet of things information product based on cloud architecture Active CN111897736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010827681.4A CN111897736B (en) 2020-08-17 2020-08-17 Automatic testing method and system for Internet of things information product based on cloud architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010827681.4A CN111897736B (en) 2020-08-17 2020-08-17 Automatic testing method and system for Internet of things information product based on cloud architecture

Publications (2)

Publication Number Publication Date
CN111897736A CN111897736A (en) 2020-11-06
CN111897736B true CN111897736B (en) 2023-08-04

Family

ID=73230408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010827681.4A Active CN111897736B (en) 2020-08-17 2020-08-17 Automatic testing method and system for Internet of things information product based on cloud architecture

Country Status (1)

Country Link
CN (1) CN111897736B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247293A (en) * 2008-03-11 2008-08-20 福建星网锐捷网络有限公司 Automatic test approach and system
CN103198009A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Universal testing method, system and corresponding device
CN104021080A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Automatic testing system based on custom scripts
CN105721253A (en) * 2016-03-30 2016-06-29 辽宁信鼎检测认证有限公司 LTE FDD automatic test system and test method of LTE FDD automatic test system
CN108470232A (en) * 2018-01-25 2018-08-31 南京第五十五所技术开发有限公司 The automatic detecting and analysing system of microwave components based on flow and method
CN110543300A (en) * 2019-08-20 2019-12-06 延锋伟世通电子科技(南京)有限公司 automatic generation method and tool for automatic test script of automobile instrument
CN111078482A (en) * 2019-12-20 2020-04-28 西安航空电子科技有限公司 Communication navigation equipment test system, method, equipment and readable storage medium
CN111459794A (en) * 2020-02-25 2020-07-28 西安广和通无线软件有限公司 Communication network testing method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9135150B2 (en) * 2013-02-27 2015-09-15 International Business Machines Corporation Automated execution of functional test scripts on a remote system within a unit testing framework

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247293A (en) * 2008-03-11 2008-08-20 福建星网锐捷网络有限公司 Automatic test approach and system
CN103198009A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Universal testing method, system and corresponding device
CN104021080A (en) * 2014-06-13 2014-09-03 中国民航信息网络股份有限公司 Automatic testing system based on custom scripts
CN105721253A (en) * 2016-03-30 2016-06-29 辽宁信鼎检测认证有限公司 LTE FDD automatic test system and test method of LTE FDD automatic test system
CN108470232A (en) * 2018-01-25 2018-08-31 南京第五十五所技术开发有限公司 The automatic detecting and analysing system of microwave components based on flow and method
CN110543300A (en) * 2019-08-20 2019-12-06 延锋伟世通电子科技(南京)有限公司 automatic generation method and tool for automatic test script of automobile instrument
CN111078482A (en) * 2019-12-20 2020-04-28 西安航空电子科技有限公司 Communication navigation equipment test system, method, equipment and readable storage medium
CN111459794A (en) * 2020-02-25 2020-07-28 西安广和通无线软件有限公司 Communication network testing method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
无线局域网产品的测试与认证;高宏 等;《电子产品世界》(第23期);第127-128+132页 *

Also Published As

Publication number Publication date
CN111897736A (en) 2020-11-06

Similar Documents

Publication Publication Date Title
CN107665171B (en) Automatic regression testing method and device
US6507842B1 (en) System and method for importing and exporting test executive values from or to a database
CN105740138B (en) Test method, test device and the test macro of application
US20080307006A1 (en) File mutation method and system using file section information and mutation rules
US20090019427A1 (en) Method and Apparatus for Providing Requirement Driven Static Analysis of Test Coverage for Web-Based, Distributed Processes
US20150248343A1 (en) Method and apparatus for implementing instrumentation code
CN108399132A (en) A kind of scheduling tests method, apparatus and storage medium
CN102722440A (en) Debugging device of executive codes of embedded system, debugging method and embedded system
US20090089688A1 (en) Generating test scenarios using reusable triggers indicating graphical user interface (gui) elements and actions
CN111176984A (en) Signal-oriented automatic test implementation method
CN111399828A (en) Model-driven logic device modeling method and terminal
CN116680885A (en) Complex device control software modeling and verification method based on SysML and Tango
CN116955097A (en) Test flow display method and device and test flow display system
CN111897736B (en) Automatic testing method and system for Internet of things information product based on cloud architecture
CN114185874A (en) Big data based modeling method and device, development framework and equipment
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
CN111949543A (en) Testing method and device based on distributed platform, electronic equipment and storage medium
CN115103392B (en) ESIM terminal test method, instrument, portal server, device and system
US20220206773A1 (en) Systems and methods for building and deploying machine learning applications
US20090217251A1 (en) Method and apparatus for configuring, and compiling code for, a communications test set-up
CN115550826A (en) MIC array detection and analysis method, device, equipment and storage medium
CN109522213A (en) A kind of test method and device based on customized test script
CN113986753A (en) Interface test method, device, equipment and storage medium
CN110764479B (en) DDS-based multi-agent intermediate platform system and control method thereof
CN101976219A (en) Method and system for debugging automatic testing script and agent device

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Feng Zhifang

Inventor after: Zhang Bojun

Inventor after: Xiao Li

Inventor after: Li Wenzhuo

Inventor after: He Lijuan

Inventor after: Huang Fenghe

Inventor after: Su Yihao

Inventor before: Feng Zhifang

GR01 Patent grant
GR01 Patent grant