Change target for "Jump To Item" in Ranorex Report.
Posted: Wed Sep 28, 2016 2:20 am
Hello,
Currently I am planning to add some extra information to the Report Lines in my code. Due to that I have decided to implement a new function on the side that will be in charge of doing it. The issue is that now the Ranorex Report will always send me to that function when I click on "Jump To Item" instead of sending me to the line of code that I need.
I think it will be easier to explain with an example
Utils Class.
Test Module
Right now, when the test finish and the report is displayed, if I click on "Jump To Item", the code that will be shown is the one in 'MyLogger' class but I would like it to show the code in 'MyModule'. Is there any way to do that with Ranorex.
Thanks in advance for your help.
David
Currently I am planning to add some extra information to the Report Lines in my code. Due to that I have decided to implement a new function on the side that will be in charge of doing it. The issue is that now the Ranorex Report will always send me to that function when I click on "Jump To Item" instead of sending me to the line of code that I need.
I think it will be easier to explain with an example
Utils Class.
Code: Select all
public class MyLogger
{
public static bool logginRequired = false;
public static void doLogging(msg)
{
if (logginRequired)
{
string modifiedMsg;
//DO SOME STUFF TO THE MESSAGE
Report.Info(modifiedMsg);
}
}
}
Code: Select all
public class MyModule : ITestModule
{
void ITestModule.Run()
{
//DO SOME TESTING
MyLogger.doLogging(myMsg);
}
}
Thanks in advance for your help.
David