【问题标题】:I need to validate request time out in karate api testing我需要在空手道 api 测试中验证请求超时
【发布时间】:2022-12-01 00:01:38
【问题描述】:

我们正在使用空手道进行 api 测试,我想提供更少的超时时间并验证 408 错误

试过 * 配置 requestTimeout=100

【问题讨论】:

    标签: api testing automation karate request-timed-out


    【解决方案1】:

    也许这会奏效。如果没有,您可以假设空手道不支持它。根据我的经验,这些类型的测试不值得自动化。另外看看直接使用cURL的选项:Using cURL for API automation in Karate

    * configure readTimeout = 100
    * url someUrl
    * method get
    * status 408
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 2012-06-13
      相关资源
      最近更新 更多