摘要
设计了一种基于Watir的物联网Web事件处理系统框架。首先搭建Zig Bee无线传感器网络,把终端节点的属性描述到网页并进行服务器部署,其中用微数据来描述每一个实体的静态属性,用JS文件描述动态属性。然后采用Web自动化测试框架Watir,通过Css Selector定位技术实现对动态页面数据的实时采集,将实时采集的数据通过预处理后添加事件处理,提取关键和有效的事件数据并保存。最后基于不同的客户端对事件条件下不同平台和不同结构的物联网网页进行测试,结果表明基于Watir的物联网Web事件处理系统能准确和高效地获取事件数据。
Web event processing system framework for Internet of Things based on Watir is designed. Firstly, a ZigBee wireless sensor networks is set up, the property of terminal nodes are described with the Web page and deployed them to the server, where the static properties of each entity are described by microdata and the dynamic properties are described based on JS. Then the Web automated testing framework Watir is used to acquire the information of dynamic pages by real-time through CSS Selector locating technology, the real-time data acquired will be add an event handler after pretreatment and then the key data is extracted with event to save. Finally, Mutiple Web pages for different platforms and different structure are tested with event condition based on different client, the results show that lnternet of Things Web event processing system based on Watir can accurately and efficiently acquire event data.
出处
《电视技术》
北大核心
2015年第20期54-58,114,共6页
Video Engineering