Let’s assume we have some paramaters in application.properties that we want to use in our Spring Boot application/tests. With Spring Boot we can do that easily using @Value annotation. Here is an example how to get parameters from application.properties in TestNG tests.
Parameters in application.properties
@Value Spring Boot annotation
Using parameters from Spring Boot application.properties in TestNG tests.