千家信息网

关于项目自动化测试架构的改良计划 - DataProviderEngine架构

发表于:2026-11-03 作者:千家信息网编辑
千家信息网最后更新 2026年11月03日,为了基于上文我们的xml文件的架构,对其进行解析,我自己写了一个DataProviderEngine作为解析xml文件的引擎,它主要的架构如下图:具体细节如下,为了节省时间,我直接复制我的英文邮件内容
千家信息网最后更新 2026年11月03日关于项目自动化测试架构的改良计划 - DataProviderEngine架构


为了基于上文我们的xml文件的架构,对其进行解析,我自己写了一个DataProviderEngine作为解析xml文件的引擎,它主要的架构如下图:


具体细节如下,为了节省时间,我直接复制我的英文邮件内容了:

Step 1: The XMLReader read the raw test suite xml file (now we adopt the xml file ,since it is not binary file and easy to edit and version control)

Step 2: After reading ,XMLReader store the xml string into a string variable named " originalXmlString ", this is our starting point.

Step 3: The XIncludeConverter read the originalXmlString ,and resolve the XInclude namespace ,when it resolve this file ,it will replace all the element with the actual xml fragments one by one.

Step 4: After replacing all ,XIncludeConverter will store the new xml string into string variable named "convertedXmlString".

Step 5: The XMLManipulator read the convertedXmlString ,and remove all the user configuration part from such as ,, ,since these information is used for letting test case end user configure how to operate the base data to meet special requirements,so these part shouldn't exist in final data.

Step 6:After removing all config elements ,The XMLManipulator store the xml string into a new string variable named " removeAllConfXmlString"

Step 7:Since the configuration information are removed in Step 5-6 ,but they still exist in original xml string ,so XMLModifyInfoExtractor read all the ,, part from original xml string ,and smartly match which corresponding testcase data it will operate .

Step 8:After analyzing all the user modification requirement ,the XMLModifyInfoExtractor store these modification info into 3 arraylists , addElementInfoList,updateElementInfoList,removeElementInfoList.

Step 9:Now it is time to begin modifying the xml ,so the XMLManipulator read the "removeAllConfXmlString" in Step 6 .

Step 10:Then XMLManipulator use all the modification info in Step 8 ,and do modification operation one by one : addElementToXML() ,updateElementFromXML(),removeElementFromXML()

Step 11: after finish all the modification ,XMLManipulator store the final xml string into string variable named "modifiedXmlString"

Step 12: Finally it convert the xml formatted string to a jsonobject and it now can be used as a data provider which can be consumed in each test case.




架构 文件 上文 内容 引擎 时间 细节 邮件 英文 项目 测试 自动化 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 菲比寻常互联网科技 深圳期待互联网科技 人人互联网科技是培训 镁科技互联网资讯平台 新华互联网科技校企合作 广西拼得多互联网科技有限公司 茂名市互联网科技产业园 青岛科技大学互联网大赛研究生 互联网与医疗科技 移动互联网年度科技创新 亳州好赞互联网科技有限公司 威龙国际互联网科技公司 长沙茂晟互联网科技有限公司 用友工业互联网科技发展 徐州市互联网科技有限公司 每天都有哪些好的互联网科技 互联网科技包装股 萌小萌互联网科技河南有限公司 福州德业互联网科技 广州智享互联网科技 互联网金融公司科技 齐家互联网科技 互联网科技公司介绍 恒生科技互联网指数分析 成都玖崟互联网科技有限公司乐商圈怎么样 黑科技 体验场景 互联网大会 互联网第三次科技革命特征 城市宝互联网科技有限公司 互联网科技职业技能培训学校 广州全民伙伴互联网科技有限公司
0