我想對下面的功能檔案做一個簡單的調整:
@Read @healthCheck
Feature: healthCheck
Background:
* def service = "healthCheck"
* def req = call read("classpath:SoapRequest.feature")
Scenario: toggle healthcheck
Given match each /Envelope/Body/pingResponse/healthChecks/healthCheck/status == "SUCCESS"
類似于:
@Read @healthCheck
Feature: healthCheck
Background:
* def service = //name of this feature
* def req = call read("classpath:SoapRequest.feature")
Scenario: toggle healthcheck
Given match each /Envelope/Body/pingResponse/healthChecks/healthCheck/status == "SUCCESS"
為了避免重復輸入的錯誤,有沒有相關的用法?
uj5u.com熱心網友回復:
看看這是否有效:
* def service = karate.feature.fileName
參考:https ://github.com/karatelabs/karate/wiki/1.0-upgrade-guide#karateinfo-deprecated
如果它不起作用,您可能需要貢獻代碼。
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/489640.html
上一篇:具有固定數量結果的INDEX函式
下一篇:沒有URL的自動化測驗
