Ranorex test executable exe file is not working

Ask general questions here.
palvirani
Posts: 10
Joined: Fri Mar 27, 2020 11:51 am

Ranorex test executable exe file is not working

Post by palvirani » Mon Sep 14, 2020 2:42 pm

Hello Team,
Ranorex test executable exe file is not working for Test suite. It is showing empty file on double click.
while same testcases are working fine and executable from Ranorex solution. I have attached the screenshot here.

Thanks,
Palvi
Attachments
Ranorex_exe_error.png
Ranorex_exe_error.png (68.81 KiB) Viewed 85 times

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

Re: Ranorex test executable exe file is not working

Post by odklizec » Wed Sep 16, 2020 6:44 am

Hi,

Are you running this test from the same computer as it was compiled on? If not, please read the user guide chapter "Runtime and remote execution":
https://www.ranorex.com/help/latest/ran ... roduction/
Also, I would suggest to install Ranorex on the target machine, because it will install all necessary libs and runtimes ;) It's really the best way to assure the target machine contains everything required to run Ranorex tests.
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

palvirani
Posts: 10
Joined: Fri Mar 27, 2020 11:51 am

Re: Ranorex test executable exe file is not working

Post by palvirani » Wed Sep 16, 2020 1:13 pm

Hello,

This is same machine where the test is compiled and it is executing through ranorex studio but not via click on exe file. I have tried the options given in the link as well

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

Re: Ranorex test executable exe file is not working

Post by odklizec » Thu Sep 17, 2020 6:31 am

Hi,

This is really weird. What version of Ranorex do you use? Please make sure it's the most recent 9.3.3. Is there any error message displayed in report? I mean, is there generated report at all? ;) Also, have you tried to delete entire bin folder and rebuild the project? And finally, try to build "Release" version instead of debug.
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

palvirani
Posts: 10
Joined: Fri Mar 27, 2020 11:51 am

Re: Ranorex test executable exe file is not working

Post by palvirani » Thu Sep 17, 2020 10:29 am

Hi odklizec,

I am using 9.2.1 version
Is there any error message displayed in report? - Its not creating any report folder or report. Just a blank screen.
have you tried to delete entire bin folder and rebuild the project - Yes
Try to build "Release" version instead of debug.- Tried with this as well.

And surprisingly, its .exe is working on some other machine but it is not working on my machine where actually it is required to run. Can you please suggest any other clue or option that I can try. Because its to weird and its hampering my future tasks as well.

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

Re: Ranorex test executable exe file is not working

Post by odklizec » Thu Sep 17, 2020 10:37 am

Hi,

Well, in my opinion, there are not all required runtime libs installed on the target machine or something is corrupted? Therefore, I would suggest you to check this page and (re)install all required libs for your version:
https://www.ranorex.com/help/latest/ran ... uirements/
Even better, install most recent 9.3.3, which should automatically install all required libs. Debugging a problem with an obsolete Ranorex version is just a waste of time ;)
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

MichalSk
Posts: 35
Joined: Fri Jul 10, 2020 9:23 am
Location: Pforzheim, Germany

Re: Ranorex test executable exe file is not working

Post by MichalSk » Thu Sep 17, 2020 5:20 pm

palvirani wrote:
Mon Sep 14, 2020 2:42 pm
Hello Team,
Ranorex test executable exe file is not working for Test suite. It is showing empty file on double click.
while same testcases are working fine and executable from Ranorex solution. I have attached the screenshot here.

Thanks,
Palvi
Hello Palvi,

I sometimes had similiar problems when running my test suite - in my case the console application, also just showed a black box and did nothing else.

It may sound weird, but in my case, all I need to do, is click or enter some keys inside the console, then it just started working.. :D
I hope, this might help you.

palvirani
Posts: 10
Joined: Fri Mar 27, 2020 11:51 am

Re: Ranorex test executable exe file is not working

Post by palvirani » Mon Sep 21, 2020 3:09 pm

Hello,

Thanks. Its working fine for me. Some services on the machine are restricting it to execute.
But still there some other issues.
In the same solution, I have 2 projects. One is working fine. But for other projects exe its giving the error of "A referral was returned from the server" prompt. Can you please help me it?