Forum Discussion

klitchev's avatar
klitchev
Occasional Contributor
14 years ago

SoapUITestCaseRunner not ending

Hi,

I am trying to use SoapUI within Java. Interestingly, the following code sets the Java VM to run forever as if a thread refuses to die.

 public static void main(String[] args) {
new SoapUITestCaseRunner();
}


I have just imported the lib directory of my SoapUI 4.0.1 installation.

Actually, the problem is that I start the tests from FitNesse. But after they run (another code is used, of course) FitNesse page stalls at "Running". I hunted down and reached to the conclusion that a simple SoapUITestCaseRunner object creation causes the JVM to run endlessly.

Anyone has idea how come?

4 Replies

  • klitchev's avatar
    klitchev
    Occasional Contributor
    Some info on my system:

    Windows 7 Pro x64
    SoapUI 4.0.1 x32

    All I do is copy the lib from SoapUI folder and write a Java class creating SoapUITestCaseRunner instance.
  • klitchev's avatar
    klitchev
    Occasional Contributor
    Yes - the same situation occurs on another machine. The steps to reproduce is:

    1. Get SoapUI zip version 4.0.1
    2. Create Java project (in Eclipse)
    3. Add "lib" jars from SoapUI archive and the main soapui-4.0.1.jar
    4. Create a new class with public static void main() method. WARNING: using a static main method is extremely important. Using a test JUnit method will not do.
    5. Create a new SoapUITestCaseRunner
    6. Run the Java application
    7. Observe the application not stopping

    import com.eviware.soapui.tools.SoapUITestCaseRunner;

    public class SoapUiTest {

    public static void main(String[] args) {
    new SoapUITestCaseRunner();
    }

    }


    Debugging the code appears to be leaving two threads running:
    - Thread [Timer-0] (Running)
    - Thread [DestroyJavaVM] (Running)

    Obviously there is some Timer left behind.
  • kathiraa's avatar
    kathiraa
    New Contributor
    HI,

    I m also facing the same issue.any solution you found for this.

    Thanks,
    Kathir
  • nmrao's avatar
    nmrao
    Icon for Champion Level 1 rankChampion Level 1
    I believe that they could be Test run Listners ?