I have some tests set up that I need to run from Terminal, however I need to be able to choose which URL I want to point to for my API calls instead of live. Is there a way I can do this in terminal?
At the moment I have a string in my Constants.java file that I point to different ones, but I need to do it from terminal apparently! So my string is private static String BASE_URL = "http://www.website.com/" this is the string I want to change in terminal.
I've written the following but it doesn't appear to ask me to input anything.
    @Before
    public void setURLForAPICalls() {
        Scanner url_input = new Scanner(System.in);
        System.out.print("Enter the server you wish to test against: ");
        Constants.BASE_URL = url_input.next();
}
Even if it's a case of setting it up in a @Before test method or something? I've been trying to figure this out for days and starting to think it's impossible to do... 
Thanks in advance!
 
     
    