title: How to Make This Test case to Fail
body: <p>I have a test case as shown below . it compares 2 data and returns PASS if both data is identical . </p>
  
  <p>the issue is i want this <strong>test to fail if there is data mismatch</strong> </p>
  
  <p>CODE is </p>
  
  <pre><code>WebElement TxtBoxContent = driver.findElement(By.id(WebelementID));
  
  String Content = TxtBoxContent.getAttribute("value");
  
  String ExcelData = Generic.getXlCellValue(xlpath, sheetName, rownum, cellnum);
  
  Content.equals(ExcelData);
  
  Reporter.log(LocationName+" Data Verification -- PASS",true);
  </code></pre>