title: How to run test by passing parameters with maven command in shell
body: <p>-------------------- Test that needs to be run----------------  </p>
  
  <pre><code>@org.testng.annotations.Test(groups = { "Regression" },parameters = {"environment"})
  
    public void As_a_User_I_can_Login_to_System(String environment){
  
         Users user = new Users("SID_SMITH");
  
        String name = loginHandler.success_login(user);
  
        System.out.print("Environment" + environment);
  
        Assert.assertEquals(name, user.getUserFullName(), "Success");
  
    }
  </code></pre>
  
  <p>I want to run above test by passing variable environment as input from shell script. Kindly give a guidance </p>