liwanlei / python-selenium Goto Github PK
View Code? Open in Web Editor NEWselenium UI自动化测试框架
selenium UI自动化测试框架
你好 请问您的这个自动化的框架我环境弄好了 但是这个网址好像不太对 还请您赐教一下
import unittest,time,os
from util import BSTestRunner
from config import description,reporttitle
path=os.getcwd() # 你这里是获取当前脚本路径
case_path=path+'\case' # 你这里path路径下面没有case这个脚本啊,这个是不是有点问题???
def create_report():
test_suit = unittest.TestSuite()
discover = unittest.defaultTestLoader.discover(case_path, pattern='*test.py', top_level_dir=None)
for test in discover:
for test_case in test:
test_suit.addTest(test_case)
now=time.strftime('%Y-%m-%d_%H_%M',time.localtime(time.time()))
report_dir=path+'\report\%s.html'%now
re_open= open(report_dir,'wb')
runner=BSTestRunner.BSTestRunner(stream=re_open,title=reporttitle,description=description)
runner.run(test_suit)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.