I tried different options
System.Console.WriteLine("bla bla bla");
System.Diagnostics.Debug.WriteLine("bla, bla, bla");
Console.WriteLine("bla bla");
what am I missing?
Any ideea why output to console is not working?
Re: Any ideea why output to console is not working?
Hi,
All lines are correct and works fine for me? The output of second line is just written to debug console... Are you looking for something else?
All lines are correct and works fine for me? The output of second line is just written to debug console... Are you looking for something else?
You do not have the required permissions to view the files attached to this post.
Last edited by odklizec on Wed Jul 01, 2020 10:50 am, edited 1 time in total.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Any ideea why output to console is not working?
I have the same issue, I don't manage to have the following displayed in the Output/Debug
System.Diagnostics.Debug.WriteLine("bla, bla, bla");
Is there a setting to activate ?
System.Diagnostics.Debug.WriteLine("bla, bla, bla");
Is there a setting to activate ?
Re: Any ideea why output to console is not working?
Hi,
System.Diagnostics.Debug.WriteLine writes output to app console (black) window. This window is only available during the app run and only if the test is compiled as console app! If you want to write output to output tab, you must use Console.WriteLine or System.Console.WriteLine. I'm not aware of a command for sending output to Ranorex "Console" tab.
System.Diagnostics.Debug.WriteLine writes output to app console (black) window. This window is only available during the app run and only if the test is compiled as console app! If you want to write output to output tab, you must use Console.WriteLine or System.Console.WriteLine. I'm not aware of a command for sending output to Ranorex "Console" tab.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Any ideea why output to console is not working?
Hi, thanks for your usual quick feedback.
Unfortunately I still didn't manage to have output, so I'm trying to be more precise and giving you some screenshots and explanations about what I do. So maybe we can find what I do wrong here
So in the first file:
@ 1: I have a user code
@2: I would like to have output here but nothing is displayed
In the second file:
you can see the code that I'm using to display in output
A last thing, I'm trying to run that TC only (clicking "RUN RECORDING"), I don't know if this can be a reason why it doesn't work.
Thanks in advance for your answers !
Unfortunately I still didn't manage to have output, so I'm trying to be more precise and giving you some screenshots and explanations about what I do. So maybe we can find what I do wrong here
So in the first file:
@ 1: I have a user code
@2: I would like to have output here but nothing is displayed
In the second file:
you can see the code that I'm using to display in output
A last thing, I'm trying to run that TC only (clicking "RUN RECORDING"), I don't know if this can be a reason why it doesn't work.
Thanks in advance for your answers !
You do not have the required permissions to view the files attached to this post.
Re: Any ideea why output to console is not working?
Hi,
Well the solution is to enable "debug" mode. From your screenshots I see you have debugging disabled. And "debug" output definitely requires enabled debugging
Well the solution is to enable "debug" mode. From your screenshots I see you have debugging disabled. And "debug" output definitely requires enabled debugging
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: Any ideea why output to console is not working?
Thanks, it works much better