More description on method getTestCaseName in Step 5 Please

Hi Team ,

Thanks for the tutorial its very helpful.

I need you help in understanding Step 5:

* What exactly is below method trying to do.? Can you please add some comments.
* Why cant we use TestCase column ? Am I missing anything here ?

Appreciate your quick response.


public static String getTestCaseName(String sTestCase)throws Exception{

String value = sTestCase;
int posi = value.indexOf(“@”);
value = value.substring(0, posi);
posi = value.lastIndexOf(“.”);
value = value.substring(posi + 1);
return value;
}catch (Exception e){
throw (e);

Default Asked on January 6, 2016 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.