python-selenium icon indicating copy to clipboard operation
python-selenium copied to clipboard

这里是不是有问题??

Open tryceboll opened this issue 6 years ago • 4 comments

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)

tryceboll avatar Sep 17 '18 10:09 tryceboll

你运行报错了吗

| | 李雷雷 | | 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年09月17日 18:09,tryceboll 写道:

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)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

liwanlei avatar Sep 17 '18 10:09 liwanlei

运行的时候,打开页面后,就闪退了!

tryceboll avatar Sep 18 '18 01:09 tryceboll

你环境配置好没有

| | 李雷雷 | | 邮箱:[email protected] |

签名由 网易邮箱大师 定制

在2018年09月18日 09:01,tryceboll 写道:

运行的时候,打开页面后,就闪退了!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

liwanlei avatar Sep 18 '18 08:09 liwanlei

环境应该是没有问题的咯

tryceboll avatar Sep 19 '18 00:09 tryceboll