Category: Spring
SpringBoot: Making use of @Value properties from YAML files for Cucumber tests
In case you use: 1. SpringBoot to build your web applications using Java 2. Test it with Cucumber 3. Use YAML files for configurable property values You can use the YamlPropertiesFactoryBean to make use of @Value for your test configuration. application.yml: myapp: base: url: some_url cucumber.xml (or application context .xml): <context:component-scan base-package="cucumber.runtime.java.spring"/> <context:annotation-config/> <bean id="yamlProperties"…