![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自动化测试
文章平均质量分 68
unknownli
这个作者很懒,什么都没留下…
展开
-
自动化测试框架探索
现有的测试框架:java+selenium+testng,基于UI实现回归测试自动化 selenium:进行页面元素交互 testng:组织用例 xml文件,properties文件:存储数据配置。系统的配置文件放在properties文件中,测试脚本中数据放在xml文件中。 数据读取 解析xml文件:JAXP(java api for xml parsing) J原创 2014-03-10 16:15:06 · 642 阅读 · 0 评论 -
【RobotFramework-RequestsLibrary】post方法data值无法传入的问题
在使用RobotFramework-RequestsLibrary时,在使用post关键字时,发现参数data={}无法传入。 调试时发现,在robotframework进行参数传入时,会自动转换为unicode类型,在post方法内部又将data的类型转换为了str。而requests模块的post方法需要的参数是字典类型,所以最后参数无法传入。 解决方案: 将调用requests模块原创 2014-04-01 17:47:36 · 12047 阅读 · 1 评论 -
使用ConfigParser模块解析配置文件
python提供了ConfigParser模块来解析配置文件,它解析的配置文件格式类似于ini配置文件,文件被分成若干个section,每个section中有具体的配置信息,例如 [mysqld] user = mysql pid-file = /var/run/mysqld/mysqld.pid skip-external-locking old_passwords = 1 skip-bdb原创 2015-03-09 20:54:35 · 1369 阅读 · 0 评论