run button vs. run selected items

Ask general questions here.
Dhundley
Posts: 8
Joined: Fri Nov 06, 2020 12:23 am

run button vs. run selected items

Post by Dhundley » Mon Feb 15, 2021 6:13 pm

I have a test suite/test case in which the first recording contains one single entry that simply launches an application installed on the system (see attachment).

IF I right click on that line to bring up the context menu and then click Run Selected item(s) it works perfectly.

The application splash screen is displayed and stays in view and a few seconds later the first form requesting the initial login information appears

But, IF I click the RUN button across the top of the Ranorex menu bar something goes wrong.

The application splash screen flashes for a second, goes away and that's it.

The report tells me that the script ran successfully (green pie chart and all) but it most definitely does not work.

I've submitted this to the ranorex support team attaching snapshots , compressed solution, etc but I thought I would also check here to see if anyone has any ideas. Why would this statement in the script be handled one way by the Run Select Items and a different way when using the RUN button?
Attachments
RunApp.PNG
RunApp.PNG (13.82 KiB) Viewed 154 times

Dhundley
Posts: 8
Joined: Fri Nov 06, 2020 12:23 am

Re: run button vs. run selected items

Post by Dhundley » Fri Mar 05, 2021 12:08 am

Someone in our internal support group was finally able to help me resolve this and it had nothing at all to do with Ranorex. When creating the Ranorex solution/project/test suite/etc for the application I needed to test I gave it the name of the application I was testing (e.g. MyBankingApp). so when I build and run my Ranorex solution it starts up a MyBankingApp.exe executable. When the Run Application command then tries to start up the AUT executable (also called MyBankingApp.exe) it finds the Ranorex executable already running and, since it is designed to not allow two to run at the same time, prevents the AUT from starting up. I simply had to change the name of the Ranorex files to something different (e.g. MyBankingAppCore) and now it works. Problem solved.