V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tibifide
V2EX  ›  问与答

Python + pytest + excle 接口自动化测试如何并发执行?

  •  
  •   tibifide · Feb 2, 2021 · 1172 views
    This topic created in 1914 days ago, the information mentioned may be changed or developed.

    项目上面做接口自动化是通过 python + pytest + excle,excle 的每一个 sheet 对应一个功能模块,sheet 里面的用例之间执行有依赖关系,每个用例不能单独运行,相互之间有影响,所以不能使用 pytest-xdist 这个插件运行。全量运行接口测试时耗时较长,想并发执行,还有其它什么办法呢?

    4 replies    2021-02-03 14:54:02 +08:00
    learningman
        1
    learningman  
       Feb 2, 2021
    你打了好几遍还没发现是 Excel 吗(
    tibifide
        2
    tibifide  
    OP
       Feb 2, 2021
    @learningman 不重要,你理解就好
    zmQAQ
        3
    zmQAQ  
       Feb 3, 2021
    做过 Python + pytest + allure 功能自动化,没做过你这个玩意
    runinhard
        4
    runinhard  
       Feb 3, 2021
    异步执行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2131 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 00:48 · PVG 08:48 · LAX 17:48 · JFK 20:48
    ♥ Do have faith in what you're doing.