Console output is not printed

Ranorex Spy, Recorder, and Studio.
ramanaramidi
Posts: 28
Joined: Wed Feb 26, 2020 6:51 am

Console output is not printed

Post by ramanaramidi » Mon May 25, 2020 9:23 am

Hi,

I am trying to run code module using 'Run Code' button. I have included Console.WriteLine in my code to print the messages. But these messages are not getting printed in the Output tab located at the bottom.

Please let me know if any configuration needs to be added.


Thanks,
Ramana.
Attachments
code_module.JPG
code_module.JPG (103.91 KiB) Viewed 63 times

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

Re: Console output is not printed

Post by odklizec » Mon May 25, 2020 10:16 am

Hi,

Console.WriteLine sends output to console window, not to Ouptut tab. You must use System.Diagnostic.Debug.WriteLine instead. Please check this post...
https://www.ranorex.com/forum/how-to-ru ... tml#p49513
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