The scenario:
I have java faker set up to create email address for each of my karate tests. example:
Faker faker = new Faker();
String email = "people-service." + faker.random().nextInt(0, 100000000)
+ "@mail.com";
return email;
I run my tests via command line (example: qa-people-service % mvn clean test Dkarate.env=sqa -Dkarate.options="--tags @play"
is there a way I can pass in the environment variable run in the command line into my email addresses? e.g.
String email = "<Dkarate.env>" + "people-service." + faker.random().nextInt(0, 100000000)
+ "@mail.com";