title: Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE
body: <p>I've configured my project to run the Build with Jenkins if I execute the testng.xml on my own it successfully execute my test case but if I execute via Jenkins I get the following error message</p>
  
  <p>Build step 'Execute Windows batch command' marked build as failure
  Finished: FAILURE</p>
  
  <p>However it execute the build successfully if test case output is just using `(system.out.println();)</p>
  
  <p>if test case relates to opening of browsers it gets failed via Jenkins</p>
  
  <p>This is my test class</p>
  
  <pre><code>    public WebDriver driver;
      public String baseUrl = "http://iparkit.com/";
  
      @BeforeMethod
        public void initializeWebDriver() {
  
            driver = new FirefoxDriver();
            driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
            driver.get(baseUrl);
            driver.manage().window().maximize();
        }
      //Close Browser after each test case execution
      @AfterMethod
      public void closeBrowser()
      {
          driver.close();
      }
      @Test(enabled=true) //TC2-01 - OK
      public void iparkit_valid_email_password() throws InterruptedException
      {
          driver.findElement(By.xpath(".//*[@id='mast']/nav/ul/li[4]/a")).click();
          driver.findElement(By.xpath(".//*[@id='email']")).sendKeys("imanltd+1@hotmail.com");
          driver.findElement(By.xpath(".//*[@id='password']")).sendKeys("*******");
          driver.findElement(By.xpath(".//*[@id='top']/div/main/form/main/fieldset[3]/button")).click();
          String Expectedlnktext = driver.findElement(By.linkText("Sign Out")).getText();
          String Actuallnktext = "Sign Out";
          Assert.assertEquals(Actuallnktext,Expectedlnktext);
      }
  }
  </code></pre>
  
  <p>and here is my testng.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"&gt;
  &lt;suite name="Suite" parallel="none"&gt;
    &lt;test name="Test"&gt;
      &lt;classes&gt;
         &lt;class name="automationframework.Iparkittesting"/&gt;
      &lt;/classes&gt;
    &lt;/test&gt; &lt;!-- Test --&gt;
  &lt;/suite&gt; &lt;!-- Suite --&gt;
  </code></pre>
  
  <p>here is last console output</p>
  
  <pre><code>Started by user anonymous
  Building in workspace D:\K - Selenium\SeleniumWorkspace\iParkit_copy
  [iParkit_copy] $ cmd /c call C:\Windows\TEMP\hudson4187523140058494240.bat
  
  D:\K - Selenium\SeleniumWorkspace\iParkit_copy&gt;run.bat
  
  D:\K - Selenium\SeleniumWorkspace\iParkit_copy&gt;java -cp bin;lib/* org.testng.TestNG testng.xml 
  [TestNG] Running:
    D:\K - Selenium\SeleniumWorkspace\iParkit_copy\testng.xml
  
  
  ===============================================
  Suite
  Total tests run: 1, Failures: 1, Skips: 0
  ===============================================
  
  Build step 'Execute Windows batch command' marked build as failure
  Finished: FAILURE
  </code></pre>