Java Swing app closes after test finishes

Bug reports.
jattMones
Posts: 4
Joined: Tue Jan 21, 2020 8:10 pm

Java Swing app closes after test finishes

Post by jattMones » Tue Jan 21, 2020 8:15 pm

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?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6036
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Java Swing app closes after test finishes

Post by odklizec » Wed Jan 22, 2020 1:44 pm

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?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

jattMones
Posts: 4
Joined: Tue Jan 21, 2020 8:10 pm

Re: Java Swing app closes after test finishes

Post by jattMones » Tue Jan 28, 2020 8:21 pm

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).
Attachments
ranorex_test_summary.png
ranorex_test_summary.png (53.54 KiB) Viewed 266 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6036
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Java Swing app closes after test finishes

Post by odklizec » Wed Jan 29, 2020 8:18 am

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?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration