我在黄瓜功能文件中有以下表达式:
Feature: Some text
Background: This indicates that the server is up and running
Given the APIs are up and running for "https://localhost: ............"
我想移动此URL并将其保留在file.properties中。如何从.properties文件到.feature文件获取此URL
答案 0 :(得分:0)
您可以尝试qaf-gherkin它支持属性。使用qaf-gherkin,您的功能文件可能如下所示:
Feature: Some text
Background: This indicates that the server is up and running
Given the APIs are up and running for "${base.url}"
您可以在属性文件中拥有base.url
属性。此外,它还具有web service automation support的Web服务自动化功能,该功能具有Web服务调用存储库概念和参数化支持。