Movatterモバイル変換


[0]ホーム

URL:


CN111897736A - Cloud architecture-based automatic testing method and system for Internet of things information products - Google Patents

Cloud architecture-based automatic testing method and system for Internet of things information products
Download PDF

Info

Publication number
CN111897736A
CN111897736ACN202010827681.4ACN202010827681ACN111897736ACN 111897736 ACN111897736 ACN 111897736ACN 202010827681 ACN202010827681 ACN 202010827681ACN 111897736 ACN111897736 ACN 111897736A
Authority
CN
China
Prior art keywords
test
internet
test case
block
operation block
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
CN202010827681.4A
Other languages
Chinese (zh)
Other versions
CN111897736B (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

Images

Classifications

Landscapes

Abstract

The invention provides an automatic testing method of an internet of things information product based on a cloud architecture, which realizes the following steps through an XML language: 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 the test instrument and the test instruction list; s6, executing the instruction sequence of each test block according to the sequence of the test blocks; and S7, ending the test. The invention also provides an automatic test system of the internet of things information product based on the cloud architecture. The invention has the beneficial effects that: the testing efficiency of the internet of things information product is improved, and the testing cost is reduced.

Description

Cloud architecture-based automatic testing method and system for Internet of things information products
Technical Field
The invention relates to an internet of things information product, in particular to an automatic testing method and system for the internet of things information product based on a cloud architecture.
Background
The Internet of things information product has the characteristics of low cost, diversified wireless technology, wide service object distribution, customized test requirements and the like.
The traditional test method of the internet of things information product has the defects of high investment, poor integration level, low automation degree, high test labor cost, long test period and the like, and based on the reasons, the traditional test scheme hardly meets the industrial requirements from the aspects of test 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 a cloud architecture-based automatic testing method and system for an internet of things information product.
The invention provides an automatic testing method of an internet of things information product based on a cloud architecture, which realizes the following steps through an XML language:
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 the test instrument and the test instruction list;
s6, executing the instruction sequence of each test block according to the sequence of the test blocks;
and S7, ending the test.
As a further improvement of the present invention, in step S2, the meter used in the test is configured, and the configuration information includes the device type, the device name and the device connection mode, and the device address information.
As a further improvement of the present invention, in step S3, when the test technology is initialized, the test case script is loaded, the test case script file is parsed, and the 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;
anoperation block 4, setting the output frequency of the comprehensive tester;
an operation block 5, setting the center frequency of the frequency spectrograph;
an operation block 6, setting a Mark mode;
operation block 7, setting sweep width and analyzing bandwidth;
an operation block 8, reading the analysis bandwidth of the frequency spectrograph;
an operation block 9 for reading the differential power of the analyzer;
an operation block 10 for reading the total power of the analyzer;
and operating the block 11, and reading the center frequency power of the analyzer.
As a further improvement of the present invention, in step S5, device information including a device name, a model, and a connection method, a definition instruction, and a parameter list are defined.
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 in the order of the test blocks according to the device information of the UI configuration.
As a further improvement of the present invention, in step S1, when a 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 a test case node name attribute defined by the script, and meanwhile, in the test process, the test cases are scheduled and managed through a test technology layer.
As a further improvement of the invention, the test case script file defines the test case number, the test case name and the theoretical duration, each test case defines a series of function blocks called test blocks according to the test sequence, and each test block script is analyzed to form test logic when the test case is loaded.
As a further improvement of the invention, the key attributes comprise test block names and remark information, and each test block defines all test equipment supporting the test technology and instructions and instruction parameters supported by the test equipment.
The invention also provides an automatic test system for the internet of things information product based on the cloud architecture, which comprises a readable storage medium, wherein execution instructions are stored in the readable storage medium, and when being executed by a processor, the execution instructions are used for realizing the method in any one of the above.
The invention has the beneficial effects that: by 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 and embodiments in conjunction with the accompanying drawings.
A test process is designed in a scripted mode, an XML language is a structural description language and can effectively express various data, a new carrier is provided for information exchange, storage and calculation, the XML language is a text language and is easy to read, meanwhile, data are organized and stored in a tree structure, the expression capacity is rich, meanwhile, the XML language has a uniform grammar format verification rule, and reliability and usability of the data are improved.
The system creatively summarizes and summarizes the test process, organizes the test process by using an XML language through a script form, abstracts a test case into a series of test blocks, each test block corresponds to a set of functional actions, compiles a script of instrument instructions and instruction parameters according to the instrument supported by the system in the test blocks, defines and describes the instrument instructions and parameters in the script, and realizes the association of the script with the actual instrument and the instrument operation. By changing the script, a new test measurement process can be realized, and the rapid realization capability of the test case is provided.
FIG. 1 is a hierarchical relationship diagram of a scripted organization test process, which realizes the test process, instruction, parameter description and association through XML language, and realizes the scripted test case.
As shown in fig. 1, the top layer is a testing technology layer, and the automatic testing system respectively implements different testing technology modules, such as a Wi-Fi radio frequency testing technology module and a Wi-Fi interoperability technology module, according to different testing technology fields or testing standards. Each test technology module exists independently in a plug-in manner. During testing, the corresponding test technology module is automatically loaded according to the selection of the test engineer on the test technology. When the test technology is loaded, the test case script file corresponding to the test technology stored on the disk is read, and a test case set is dynamically generated according to attributes such as test case node names defined by the script. Meanwhile, in the testing process, the testing technical layer schedules and manages the testing cases.
As shown in fig. 1, the second layer is a test Case layer, and the design test Case tag pair < Case > </Case > defines key attributes such as test Case number, test Case name, 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 function blocks, which are called test blocks, according to the test specification requirements in sequence. When the test case is loaded, each test block script is analyzed to form test logic.
As shown in FIG. 1, the third level is the test block level, and the test block nodes are children of the testcase node < Case > node. The testing process of each testing example is divided into different functional blocks according to functions, each functional Block is called a testing Block, the testing blocks have a uniform naming rule, a < Block > </Block > tag pair is designed, and key attributes comprise testing Block names and remark information and are used for uniform identification of upper-layer applications. Each test block defines all test devices that support the present test technique and the instructions and instruction parameters that the device supports.
As shown in fig. 1, the fourth layer is the device and command parameter layer. The XML node of this 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 device in the test block.
As shown in fig. 1, the test case layer dynamically generates a device driver object of the device according to device general parameter information provided by the device and command parameter layer, such as a connection mode, and device address configuration information provided by the UI application layer, and writes a test command of the device and reads a test result.
The following describes the whole test application steps and process in a table manner by taking a test example of the WiFi radio frequency test technology, namely "radio frequency signal sideband noise", as an example:
step 1, selecting and loading a testing technology, wherein a testing system loads a WiFi radio frequency testing technology according to the selection of a testing engineer;
step 2, configuring a test instrument, configuring the instrument used in the test, wherein configuration information comprises information such as equipment type, equipment name, equipment connection mode, equipment address and the like, and after configuration is finished, relevant information in a corresponding instrument script can be updated;
step 3, loading a test case script when a test technology is initialized, analyzing the test case script file, dynamically generating a test case object according to the name of the test case, managing a dynamically generated test case set by a test technology module, and scheduling the test case in the test process;
step 4, loading and analyzing the operation block;
operation block 1: initialize the comprehensive tester, node < InitSU >
Operation block 2: initializing the Spectrum Analyzer, node < InitSA >
Operation block 3: setting a port of the comprehensive tester, node < SetSuPort >
Operation block 4: setting the output frequency of the comprehensive tester, node < SetSuOutputFreq >
Operation block 5: set spectrometer center frequency, node < SetSACenterFreq >
Operation block 6: set Mark mode, node < SetMarkMode >
Operation block 7: setting sweep and analyze Bandwidth, node < SetSaSpanAndRBW >
Operation block 8: reading spectrometer analysis Bandwidth node < ReadRBW >
Operation block 9: reading Analyzer differential Power, node < ReadDeltaPower >
Operation block 10: reading the total power of the analyzer, node < ReadSAPower >
Operation block 11: reading the power of the central frequency of the analyzer, node < ReadSaPowerByFreq >;
analyzing the test blocks according to the test block script, wherein as shown in a left column, the test case defines 11 test blocks in total, 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 the devices supported by the test block and the instruction and parameter list of the device for realizing the function of the control block; here, taking the operation block 1 "initialize comprehensive tester" as an example, the device information and instruction list of the CWM500 comprehensive tester of R & S is defined:
(1) device information is defined, including the device name: a comprehensive measuring instrument; the model is as follows: a CWM 500; the connection mode is as follows: VISA;
(2) defining a list of instructions and parameters;
instruction 1: resetting the equipment;
instruction 2: switching display mode, parameters: a display mode;
instruction 3: setting a signaling mode, and parameters: a signaling mode;
analyzing general information parameters of the test equipment and the instruction sequence of the instrument in the test block by a program, wherein the instruction sequence comprises the parameters;
using the general information of the equipment, 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; calling methods such as writing instructions and reading result data of the equipment driving object by using the equipment driving object generated in the step, and transmitting instructions and instruction parameters in the test block into the method as parameters to realize service operation on the equipment;
realizing test service operation on equipment, including reading and writing instructions and test result data;
and 7, finishing the test and finishing the execution of the test case.
According to the automatic testing method and system for the Internet of things information product based on the cloud architecture, the cloud platform adopts the form of the XML script, the testing examples and all layers of testing elements are defined, in the debugging and testing process, the system program is not required to be modified, the testing process can be controlled and changed only by modifying the script, the testing instructions and the instruction parameters are replaced, and the application flexibility and the debugging and testing efficiency of a testing engineer are greatly improved.
According to the automatic testing method and system for the internet of things information product based on the cloud architecture, the scripting of the service control process is realized through the definition of the hierarchical tree-shaped script elements, the testing and measuring process can be dynamically controlled without modifying a platform program through changing the script, the change can be quickly adapted to the command difference between different small versions of certain testing equipment through modifying the script, the flexibility of the measuring and controlling process is greatly improved, a field testing engineer can conveniently debug the system, and the adaptability of the testing and measuring system is improved. Meanwhile, the independently developed instrument driving library does not depend on equipment driving provided by equipment manufacturers, has strong flexibility and can meet all operations required by various specific tests.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

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
CN111897736Atrue CN111897736A (en)2020-11-06
CN111897736B 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 (9)

* 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
US20140245070A1 (en)*2013-02-272014-08-28International Business Machines CorporationAutomated execution of functional test scripts on a remote system within a unit testing framework
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

Patent Citations (9)

* 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
US20140245070A1 (en)*2013-02-272014-08-28International Business Machines CorporationAutomated execution of functional test scripts on a remote system within a unit testing framework
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 (3)

* Cited by examiner, † Cited by third party
Title
MOATAZ A. AHMED 等: "Multiple-path testing for cross site scripting using genetic algorithms", 《JOURNAL OF SYSTEMS ARCHITECTURE》, vol. 64, pages 50 - 62, XP029528704, DOI: 10.1016/j.sysarc.2015.11.001*
李志鹏 等: "智能用采产品自动化测试系统", 《计算机应用》, vol. 36, no. 2, pages 316 - 318*
高宏 等: "无线局域网产品的测试与认证", 《电子产品世界》, no. 23, pages 127 - 128*

Also Published As

Publication numberPublication date
CN111897736B (en)2023-08-04

Similar Documents

PublicationPublication DateTitle
CN103150249B (en)A kind of method and system of automatic test
CN111176984A (en)Signal-oriented automatic test implementation method
CN109062777A (en)A kind of track traffic signal equipment general automation test macro
US20150248343A1 (en)Method and apparatus for implementing instrumentation code
CN111143228B (en)Test code generation method and device based on decision table method
CN113068452B (en)Method for constructing software development platform of automatic test system
CN103279416A (en)Storage software automated testing system and method
CN115904333A (en)Design method and system of extensible satellite ground integration test system
CN106646315A (en)Automatic testing system and automatic testing method for digital measuring instruments
CN111258838A (en) Verification component generation method, device, storage medium and verification platform
CN111399828A (en)Model-driven logic device modeling method and terminal
CN112446584A (en)Analysis and evaluation system and method constructed based on reusable evaluation resources
CN112083919A (en)YAML template-based target service code generation method and device
CN116955097A (en)Test flow display method and device and test flow display system
CN115833964A (en) Performance testing method and performance testing system of dual-mode communication module
CN115982043A (en)Vehicle interface testing method, device, equipment and storage medium
CN115987821A (en) Gateway routing test method and device
CN108877806B (en)Test verification system for test instruction type voice control system
CN119201718A (en) Automated testing method, system, equipment and medium based on Internet of Things object model
CN119172293A (en) Vehicle testing method, system and electronic equipment
CN111897736B (en)Automatic testing method and system for Internet of things information product based on cloud architecture
CN117762802A (en)Automatic test method, device, equipment and storage medium
CN116599864A (en) Communication test system, method, device and storage medium for automatic interface generation and use case modular development
CN118519862A (en)Ground simulation verification system of universal load manager
CN115980548A (en)Chip system testing method and device, electronic equipment and storage medium

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