Quaatso Education

Home Forums Selenium Forum ignoring my annotation and I am getting pass=0 failed=0 skip=0 Reply To: ignoring my annotation and I am getting pass=0 failed=0 skip=0

Reply To: ignoring my annotation and I am getting pass=0 failed=0 skip=0

Home Forums Selenium Forum ignoring my annotation and I am getting pass=0 failed=0 skip=0 Reply To: ignoring my annotation and I am getting pass=0 failed=0 skip=0

#4392
Profile photo of Nandan Singh
Nandan Singh
Keymaster

Rahul, the problem is with the “return” type you provided in the Test Method.

As per testing standard, your test method should not return any value, as we never call a test case into another test case. So if you change your return type to “void” it will be working fine.

However, TestNG provides a way by which you can return a value from a test case (not recommended) and according to this you have to set “allow-return-values”=”true” in¬†Suite tag of TestNG.xml.

Example :

<suite¬†allow-return-values=”true”>

// all xml code goes here!!!

</suite>

Hope this will resolve your query!!!