Forum Discussion

Alok_Raj's avatar
Alok_Raj
New Contributor
5 years ago

Test Run failed using TestNG in eclipse for SOAPUI JAVA Test Framework.

It seems it is getting error after it tries to execute the first test case only. Please suggest. As checked for the assert, it is working fine in the SOAPUI tool.   Here is the code to execute : T...
  • Alok_Raj's avatar
    Alok_Raj
    5 years ago

    Hi nmrao ,

     

    My bad, I was executing wrong code :

    Assert.assertEquals(Status.FINISHED,runner.getStatus());

     

    Replaced with below code and its working fine now!!!

    Assert.assertEquals(String.valueOf(Status.FINISHED),String.valueOf(runner.getStatus()));

     

    Thanks.