Page 1 of 1

Java Swing app closes after test finishes

Posted: Tue Jan 21, 2020 8:15 pm
by jattMones
Hello,

I'm experiencing a problem after executing my test.exe executable file that I created with Ranorex Studio. Sometimes after executing the .exe and running the test in Ranorex studio, the java swing app I am automating will close without warning (once the automation is complete). Anyone know how I can prevent this from happening?

Re: Java Swing app closes after test finishes

Posted: Wed Jan 22, 2020 1:44 pm
by odklizec
Hi,

Unfortunately, it's impossible to suggest anything reasonable without seeing the problem in action and knowing more details about the AUT and the test suite. Please answer below questions...
- Ranorex version? A most recent Ranorex version is 9.2.1. If you are using something older, please update it first and try to reproduce the problem.
- Please upload a Ranorex report, showing the error (if there is any). Ideally, make sure the report is created with Debug error level.
- Have you tried to reproduce the problem on another machine?
- Have you tried to simulate the problem with another (simplified) Java Swing app?

Re: Java Swing app closes after test finishes

Posted: Tue Jan 28, 2020 8:21 pm
by jattMones
Hi again,

I believe I found the problem in the Teardown section of the summary (see .png attachment) . Can I disable the CloseAUT function in the teardown or the teardown all together from running when I run MyTest1.exe? I believe it is what is closing my application (in this case, it's called ApplicationUnderTest).

Re: Java Swing app closes after test finishes

Posted: Wed Jan 29, 2020 8:18 am
by odklizec
Hi,

If you don't wish to close the app under test at the end of test, then simply remove the CloseAut module. Eventually, you can delete entire Teardown section. I guess the CloseAut module has been added automatically, when you created a new solution via wizard?