title: Cucumber-Why does automation browser not launch on running the testrunner class
body: <p>I have created a sample cucumber test with a feature file,glueclass and test runner class.As is the normal case running test runner class I see that result is set to run but browser is not launched screenshot below.
  <a href="https://i.stack.imgur.com/2Fshp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Fshp.png" alt="enter image description here"></a></p>
  
  <p>However I am able to launch it from feature file.
  I am not able to understand why this is happening. 
  Please find below the project structure</p>
  
  <p><a href="https://i.stack.imgur.com/JSoJg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JSoJg.png" alt="enter image description here"></a></p>
  
  <p>Feature file :</p>
  
  <pre><code>Feature: Login Action
  
  Scenario Outline: Successful Login with Valid Credentials
      Given User is on Home Page
      When User enters "&lt;UserName&gt;" and Password
      Then Message displayed Login Successfully
  
  Examples:
  
  | UserName |
  
  | Rob      |
  
  | Bob      |
  | Cob      |
  </code></pre>
  
  <p>Glue class:</p>
  
  <pre><code>package loginpackage;
  
  import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
  import cucumber.api.java.en.Given;
  import cucumber.api.java.en.Then;
  import cucumber.api.java.en.When;
  import junit.framework.Assert;
  
  public class Logintest {
      WebDriver driver;
      @Given("^User is on Home Page$")
      public void user_is_on_Home_Page() throws Throwable{
          System.out.println("Value in portal :");
          System.setProperty("webdriver.chrome.driver", "E:\\FireKWDemo\\ext\\chromedriver.exe");
          driver = new ChromeDriver();
          driver.get("http://www.google.com");
      }
  
      @When("^User enters \"([^\"]*)\" and Password$")
      public void user_enters_UserName_and_Password(String q) throws Throwable {
  
          driver.findElement(By.name("q")).sendKeys(q);
          driver.findElement(By.name("btnK")).click();
      }
  
      @Then("^Message displayed Login Successfully$")
      public void message_displayed_Login_Successfully() throws Throwable {
          // Write code here that turns the phrase above into concrete actions
          System.out.println("Test Successful");
          driver.close();
      }
  
  
      }
  </code></pre>