Error AJNI error has occureed when i run the soapui code in the eclips | Soapui Tutorial |Soapui Training |Web services testing

SOAPUI Training Forum

Error AJNI error has occureed when i run the soapui code in the eclips

S
srenathY Post on 04/02/2019

 

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");
			
		    	 
		     }
		    	 
		    	 
		    	 
		    	 
		     
		    
		     
		     
		     
		     
		     
	}

}

S
srenathY Reply on 06/02/2019

issue resloved.. thanks