测试之家
  • 社区
  • 问答
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • 注册
  • 登录
新手
oscarforever (oscarforever)
第 41224 位会员 / 2019-02-16
rs @ 石家庄
4 篇帖子 • 8 条回帖
2 关注者
0 正在关注
0 收藏
oscarforever
GitHub Public Repos
  • appium 0

    :iphone: Automation for iOS, Android, and Windows Apps.

More on GitHub
  • 个人信息
  • 专栏
  • 话题
  • 回帖
  • 收藏
  • 关注中
  • 关注者
  • pyinstaller_pytest.main_打包 at 2020年06月30日

    @ 云中一只猫
    pyinstaller -D main.py 不可以吗
    -- 可以正常打包,只是执行过程中,依赖的用例文件夹及用例源文件一并拷贝了一份才能运行,想达到一个 exe 执行文件运行的效果,能达到吗?

  • pyinstaller_pytest.main_打包 at 2020年06月30日

    @ 张
    Auto_Runner_Api_Main.py 打包成 Auto_Runner_Api_Main.exe 执行文件,exe 执行就是调用其他 py 脚本。本身没有问题吧。
    -- 没有问题

    之所以想打包成一个可执行的文件,1 是为了隐藏源代码,就像源文件中执行过程中你看不到依赖库的源码一样 2 减少不必要的测试用例文件夹和用例源码的拷贝 3.使文件简洁,节省空间

  • pyinstaller_pytest.main_打包 at 2020年06月29日

    哪位大佬出手解决下,多谢啦!

  • pyinstaller 打包 pytest+allure 自动化测试框架后运行报错,请高手帮忙指点下,不胜感激! at 2020年06月24日

    @lang lang 感谢,已成功解决!👍 👍 👍 👍 👍 👍

  • pyinstaller 打包 pytest+allure 自动化测试框架后运行报错,请高手帮忙指点下,不胜感激! at 2020年06月24日

    @ang 您好
    使用
    1.导入 from allure_pytest import plugin as allure_plugin
    2.pytest.main(args=args , plugins=[allure_plugin])
    运行后报插件 plugin 已经注册过了呢!😂 😂 😂

    ValueError: Plugin already registered: allure_pytest=
    {'42511272': <pytest.config.PytestPluginManager object at 0x000000000288ABA8>, 'pytestconfig': <_pytest.config.Config object at 0x000000000D0657F0>, 'mark': <module '_pytest.mark' from 'C:\Python36\lib\site-packages\_pytest\mark\__init.py'>, 'main': , 'runner': , 'fixtures': , 'helpconfig': , 'python': , 'terminal': , 'debugging': , 'unittest': , 'capture': , 'skipping': , 'tmpdir': , 'monkeypatch': , 'recwarn': , 'pastebin': , 'nose': , 'assertion': <module '_pytest.assertion' from 'C:\Python36\lib\site-packages\_pytest\assertion\__init_.py'>, 'junitxml': , 'resultlog': , 'doctest': , 'cacheprovider': , 'freeze_support': , 'setuponly': , 'setupplan': , 'stepwise': , 'warnings': , 'logging': , 'reports': , 'faulthandler': , 'allure_pytest.plugin': }

  • [已解决] pytest.main () 打包后,插件参数无法被正确的识别,有大佬碰到过吗 at 2020年06月23日

    @FyueC

    1.pytest.main(['.\ApiTestCase', '--alluredir=.\ApiTestReport']) 里边的代码里的 '--alluredir=.\ApiTestReport' 删除掉吗
    2.conftest.py 方文件中 只需要增加 parser.addoption('--alluredir') 这个就可以了吗?
    3.在用例函数里还需要写什么代码不?
    请协助回复下,感谢。

  • pyinstaller 打包 pytest+allure 自动化测试框架后运行报错,请高手帮忙指点下,不胜感激! at 2020年06月23日

    顶,哪位帮忙给解决下,多谢啦!

  • pyinstaller 打包 pytest+allure 自动化测试框架后运行报错,请高手帮忙指点下,不胜感激! at 2020年06月23日

    自己顶下!😂 😂 😂

关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
简体中文 / 正體中文 / English

©testerhome.com 测试之家   渝ICP备2022001292号
  渝公网安备 50022202000435号    版权所有 © 重庆年云聚力信息技术有限公司