If this is just a string parameter, you can set the system property and access it in test cases.
If you want to do this programmatically, you can do it in one place System.setProperty("x","123"); otherwise, you can always pass system properties from the command line as -Dx=123 .
kunal
source share