Prouser786
13 years agoOccasional Contributor
SoapUI integration with TestNG
I am a pro user but not able to post in pro support.(guess need to contact support)
Hi, i am able to run my soap test with my testNG framework but i don't see all the individual test case results.
@Parameters({"soapProject"})
@Test(groups={"sanity", "regression"}, alwaysRun = true)
public void testRunner(String soapProjectName) throws Exception
{
SoapUITestCaseRunner runner = new SoapUITestCaseRunner();
//runner.setProjectFile( "C:/Work/Workspace/backend/src/test/resources/edu/Application-soapui-project.xml");
runner.setProjectFile(System.getProperty("user.dir") + org.apache.commons.io.FilenameUtils.separatorsToSystem(soapProjectName));
runner.run();
runner.setTestSuite("ServiceDEVTestSuite");
runner.run();
}
Result from TestNG is always Class count:1 and Method Count as 1. I have many test cases but result is always as count 1 in my TestNg report...
any idea what can i do to get all my test case results in test ng ?
Appreciate your help.
Thanks!
Fyazi
Hi, i am able to run my soap test with my testNG framework but i don't see all the individual test case results.
@Parameters({"soapProject"})
@Test(groups={"sanity", "regression"}, alwaysRun = true)
public void testRunner(String soapProjectName) throws Exception
{
SoapUITestCaseRunner runner = new SoapUITestCaseRunner();
//runner.setProjectFile( "C:/Work/Workspace/backend/src/test/resources/edu/Application-soapui-project.xml");
runner.setProjectFile(System.getProperty("user.dir") + org.apache.commons.io.FilenameUtils.separatorsToSystem(soapProjectName));
runner.run();
runner.setTestSuite("ServiceDEVTestSuite");
runner.run();
}
Result from TestNG is always Class count:1 and Method Count as 1. I have many test cases but result is always as count 1 in my TestNg report...
any idea what can i do to get all my test case results in test ng ?
Appreciate your help.
Thanks!
Fyazi