Movatterモバイル変換


[0]ホーム

URL:


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
CN111897736BCN202010827681.4ACN202010827681ACN111897736BCN 111897736 BCN111897736 BCN 111897736BCN 202010827681 ACN202010827681 ACN 202010827681ACN 111897736 BCN111897736 BCN 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 TechnologyfiledCriticalShenzhen Academy Of Information And Communications Technology
Priority to CN202010827681.4ApriorityCriticalpatent/CN111897736B/en
Publication of CN111897736ApublicationCriticalpatent/CN111897736A/en
Application grantedgrantedCritical
Publication of CN111897736BpublicationCriticalpatent/CN111897736B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

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)

CN202010827681.4A2020-08-172020-08-17Automatic testing method and system for Internet of things information product based on cloud architectureActiveCN111897736B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202010827681.4ACN111897736B (en)2020-08-172020-08-17Automatic testing method and system for Internet of things information product based on cloud architecture

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202010827681.4ACN111897736B (en)2020-08-172020-08-17Automatic testing method and system for Internet of things information product based on cloud architecture

Publications (2)

Publication NumberPublication Date
CN111897736A CN111897736A (en)2020-11-06
CN111897736Btrue CN111897736B (en)2023-08-04

Family

ID=73230408

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202010827681.4AActiveCN111897736B (en)2020-08-172020-08-17Automatic testing method and system for Internet of things information product based on cloud architecture

Country Status (1)

CountryLink
CN (1)CN111897736B (en)

Citations (8)

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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US9135150B2 (en)*2013-02-272015-09-15International Business Machines CorporationAutomated 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 numberPriority datePublication dateAssigneeTitle
CN101247293A (en)*2008-03-112008-08-20福建星网锐捷网络有限公司Automatic test approach and system
CN103198009A (en)*2012-01-042013-07-10中国移动通信集团公司Universal testing method, system and corresponding device
CN104021080A (en)*2014-06-132014-09-03中国民航信息网络股份有限公司Automatic testing system based on custom scripts
CN105721253A (en)*2016-03-302016-06-29辽宁信鼎检测认证有限公司LTE FDD automatic test system and test method of LTE FDD automatic test system
CN108470232A (en)*2018-01-252018-08-31南京第五十五所技术开发有限公司The automatic detecting and analysing system of microwave components based on flow and method
CN110543300A (en)*2019-08-202019-12-06延锋伟世通电子科技(南京)有限公司automatic generation method and tool for automatic test script of automobile instrument
CN111078482A (en)*2019-12-202020-04-28西安航空电子科技有限公司Communication navigation equipment test system, method, equipment and readable storage medium
CN111459794A (en)*2020-02-252020-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 numberPublication date
CN111897736A (en)2020-11-06

Similar Documents

PublicationPublication DateTitle
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
CN103761189B (en)Test case management method and system
US20090019427A1 (en)Method and Apparatus for Providing Requirement Driven Static Analysis of Test Coverage for Web-Based, Distributed Processes
US8140986B2 (en)Generating test scenarios using reusable triggers indicating graphical user interface (GUI) elements and actions
US20150248343A1 (en)Method and apparatus for implementing instrumentation code
CN112597033B (en)Automatic interface testing method and device
CN107665171A (en)Automatic regression test method and device
CN105630475A (en)Data label organization system and organization method
CN113836014A (en) An interface testing method, device, electronic device and storage medium
CN115904333A (en)Design method and system of extensible satellite ground integration test system
KR20010023999A (en)System for storing and searching named device parameter data in a test system for testing an integrated circuit
CN109902003A (en)The generation method and device of test script
CN111399828A (en)Model-driven logic device modeling method and terminal
CN111897736B (en)Automatic testing method and system for Internet of things information product based on cloud architecture
CN112256355B (en) Data-driven system function loading method, device and storage medium
CN111897737B (en)Missing detection method and device for program test of micro-service system
CN114490337A (en) Commissioning method, commissioning platform, equipment and storage medium
CN117499286A (en)Software system, method, equipment and medium for automatic test of communication module
CN113986753A (en)Interface test method, device, equipment and storage medium
CN110764479B (en)DDS-based multi-agent intermediate platform system and control method thereof
CN112948266A (en)Database grammar test system, method, device, equipment and storage medium
CN111061244A (en)Automatic testing method for power distribution master station monitoring system
CN102607870B (en)Semiconductor manufacturing equipment-oriented logic coupling test method
CN120561024B (en) A resource modeling method for complex electronic equipment automatic test system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
CB03Change of inventor or designer information
CB03Change 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

GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp