Run with environment in IDE In Run/Debug Configurations or Edit Configuration --> VM Options : add your respective environment -Dkarate.env=dev -Dkarate.env=test Or in Maven from the command line: mvn test -DargLine="-Dkarate.env=test"