Forum Discussion

sumitlr's avatar
sumitlr
New Contributor
12 years ago

Unable to Execute SOAP UI project using JUnit.

Hi SmartBear,
I am executing Soap UI using Junit. I have attached the Java File that I am running as Junit and the Soap UI Project.
There is no compile time Error nor Run time but when I execute the Junit, it gets executed in 0ms.
Expected output is a Record should be inserted in DataBase.
When I run the same using SOAP UI externally i.e. through Soap UI, it works fine and a record is going in DB tables as expected.
Any idea why the execution through JUnit doesn’t work as expected?

Output of Junit is:

Before Class
Before Test
testSOAPUI() Starts
soapUI 3.5 TestCase Runner
log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender.
log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender.
11:43:06,453 WARN [DefaultSoapUICore] Missing folder [D:\JunitWorkspace\TestJunit\.\ext] for external libraries
11:43:06,963 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\sumitlr\soapui-settings.xml]
11:43:07,714 INFO [WsdlProject] Loaded project from [file:D:/JunitWorkspace/TestJunit/src/testxml/CreatePolicy-SOAP_UI.xml]
11:43:07,964 INFO [SoapUITestCaseRunner] Running soapUI tests in project [Test]
11:43:07,974 INFO [SoapUITestCaseRunner] Running Project [Test], runType = SEQUENTIAL
11:43:07,974 INFO [SoapUITestCaseRunner] Project [Test] finished with status [FINISHED] in 0ms
testSOAPUI() Ends
After Test
After Class

My Classpath is as below:


My SOAP UI JUnit java file is:


My SOAP UI Project file is:


Can you please let me know why is the Code executing the Code as expected?

4 Replies