infloxdb和pytest集成插件

influxdb-pytest-plugin的Python项目详细描述


infloxdb pytest插件

pytest插件,用于向“infloxdb”报告测试结果。

目录

  • 关于本文档
  • 用法
  • 示例
  • 发送附件

关于本文档

欢迎使用infloxdb pytest插件文档!

此样式指南为使用infloxdb pytest插件的任何人提供了一组编辑指南。

用法

安装

pip install influxdb-pytest-plugin

启动

要使用infloxdb pytest插件运行测试,应提供'-infloxdb pytest'标志。

pytest -sv –influxdb-pytest

将屏幕截图作为附件发送

要将屏幕截图发送到infloxdb,“屏幕截图url”fixture应在如下功能范围内使用:

@pytest.fixture(scope="function")defchrome_driver_init(request,screenshot_url,pytestconfig):chrome_driver=webdriver.Chrome()request.cls.driver=chrome_driveryieldifrequest.node.rep_call.failedandpytestconfig.getoption('--influxdb-pytest'):screenshot_link='URL_EXAMPLE'chrome_driver.save_screenshot(screenshot_link)screenshot_url(screenshot_link)chrome_driver.close()

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaHTTP。请求侦听器   java Selenium webdriver遍历行并仅检索某些列   JavaSpring批处理在启动运行方法之前启动SimpleZoblancher运行方法   maven如何使用Maven2从javadoc生成java源代码?   java为什么我的Unicodont(Slick2D)不画画?   java取消对未使用对象的引用是否会提高冗长方法的性能?   java可执行Jar的画布比使用Eclipse Runner的小   为什么我的for循环在Android studio中与eclipse(java)产生不同的结果   java代码段字节数组到端口号   java在DynamoDB范围键中插入项   java 安卓。看法WindowManager$BadTokenException:无法添加窗口,您的活动正在运行吗?   java我想要两个列表视图同时滚动   java测试数据分离   java Saxon:每次重新部署后都需要重新启动Glassfish