
测试_UI自动化
万万2014
这个作者很懒,什么都没留下…
展开
-
Web UI自动化测试框架(1)
下面我就来详细分讲一下这个UI自动化测试。有错误的地方欢迎大家指出。 Autoscripts目录下放了我们所有的测试用例.已经一些common的方法 db 目录是一个sqllite的数据库文件 Dbmanage 目录是一些数据操作的类 Report存放测试报告 Runner 目录运行支持文件 startpage.py 是所有运行脚本组织类 conf文件存放要运行的具体case 接...原创 2019-01-25 11:11:12 · 303 阅读 · 0 评论 -
Web UI自动化测试框架(2)
我们封装了selenium的一些常用方法到yqsel.py。 # -*- coding: utf-8 -*- from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expecte...原创 2019-01-25 11:21:43 · 224 阅读 · 0 评论 -
Web UI自动化测试框架(3)
测试脚本描述如下 from YQSel.YQSel import * import unittest, time, re from DBManage.Userinfo import * from DBManage.Newsdata import * from time import sleep import os killfirefox = "taskkill /f /t /im fire...原创 2019-01-25 11:39:49 · 184 阅读 · 0 评论 -
Web UI自动化测试框架(4)
StartPage.py使用了一个笨方法把所有的类集合到这里 import os from Runner.TestRunner import * from time import sleep from Jiexxxx import * from AutoScripts.Jiexxxx import * #from DBManage.Userinfo import * if __name_...原创 2019-01-25 11:52:33 · 184 阅读 · 0 评论 -
Web UI自动化测试框架
18年写了一个关于web的ui自动化测试框架,基于python+Selenium framwork来做的UI操作,验证。做了一个ppt在团队做了培训。这里把这套小框架记录一下,也算是一个小总结。 1.我们使用一个config 文件来配置要运行的测试用例。 2.在startpage 里面定义要运行的类。可以理解为test suit。 3.autoscript 测试脚本。调用封装的selen...原创 2019-01-23 15:09:32 · 2194 阅读 · 1 评论 -
Allure【牛x测试报告】 构建自动化测试
环境配置: python pytest [pip install pytest] allure [https://github.com/allure-framework/allure2/releases/tag/2.10.0]. 把bin配置到path 全局变量中。 pytest-allure-adaptor [pip install pytest-allure-adaptor] ...原创 2019-07-03 18:24:02 · 1313 阅读 · 0 评论