Line wrapping in exception stack trace

Ask general questions here.
amross
Posts: 7
Joined: Thu Oct 13, 2016 12:03 am

Line wrapping in exception stack trace

Post by amross » Tue Jan 30, 2018 12:41 am

When a Ranorex test throws an exception, the exception is logged as an Error in the Ranorex report. It includes a stacktrace, accessed by clicking on a heading titled "Show/Hide Stacktrace"

The stacktrace includes the full file path and line number of each entry in the stack trace.

Our issue is that our filepaths all contain a hyphen, and the formatting automatically inserts a line wrap at the hyphen. This makes the stack traces hard to read.

An example:

Code: Select all

Show/Hide Stacktrace
at com.ourcompany.package.SomeClass.SomeFunction()
in c:\vsts-
agent01\ourproject\package\SomeClass.cs line 53 at
I want it to format like this:

Code: Select all

Show/Hide Stacktrace
at com.ourcompany.package.SomeClass.SomeFunction()
in c:\vsts-agent01\ourproject\package\SomeClass.cs line 53 at
Is there anyway I can control the formatting of the stacktrace on the report so it doesn't wrap on hyphen?

We are using Ranorex 6.1

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Line wrapping in exception stack trace

Post by Support Team » Wed Jan 31, 2018 10:14 pm

Hi amross,

I am unable to duplicate this behavior in Ranorex 8.0 with a small sample solution. Are you able to upgrade and see if this is still an issue in Ranorex 8.0? If you continue to experience this issue after upgrading, please provide a small sample solution which duplicates this concern and I will be happy to further investigate.

I hope this helps!

Cheers,
Ned
.
Image