import java.io.IOException;
import org.apache.xmlbeans.XmlException;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.eviware.soapui.impl.wsdl.WsdlProject;
import com.eviware.soapui.impl.wsdl.WsdlTestSuite;
import com.eviware.soapui.impl.wsdl.support.assertions.Assertable;
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase;
import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner;
import com.eviware.soapui.model.support.PropertiesMap;
import com.eviware.soapui.model.testsuite.TestRunner.Status;
import com.eviware.soapui.support.SoapUIException;
public class framework {
// TODO Auto-generated method stub
@Test
public void Soaptest() throws XmlException, IOException, SoapUIException
{
WsdlProject soupUIProject = new WsdlProject ("C:\\Users\\srenathy\\Documents\\Honors-soapui-project.xml");
WsdlTestSuite testsuite = soupUIProject.getTestSuiteByName("Honors_SoapUI");
for (int i =0 ; i<=testsuite.getTestCaseCount() ;i++)
{
WsdlTestCase testcase = testsuite.getTestCaseAt(i);
WsdlTestCaseRunner runner = testcase.run(new PropertiesMap(),false);
org.junit.Assert.assertEquals(Status.FINISHED, runner.getStatus());
System.out.println(runner);
System.out.println("end the test cases");
}
}
}
issue resloved.. thanks