Ranorex Report filters sorted by messages order. : Bug Reports

Ranorex Report filters sorted by messages order.

Bug reports and feature requests.

Ranorex Report filters sorted by messages order.

Postby artur_gadomski » Thu Jul 28, 2011 12:09 pm

Hi
It seems like the filter of messages in test module is sorted according to what message comes first so if I have an info message first in the module then some debug then a sucess order of filters will be different than if I have a debug message first.
Is this something I can specify? I would preffer if the order was always the same because it's easier to turn of debug messages without having to look for the checkbox.

On a sidenote: is it possible to make a report with debug level disabled by default? I still want the messages to be logged and have an ability to see them so seting minimum level to info will not work for me.
User avatar
artur_gadomski
 
Posts: 207
Joined: Mon Jul 19, 2010 7:55 am
Location: Copenhagen, Denmark

Re: Ranorex Report filters sorted by messages order.

Postby Support Team » Fri Jul 29, 2011 11:45 am

Hi,
artur_gadomski wrote: I would preffer if the order was always the same because it's easier to turn of debug messages without having to look for the checkbox.

You are right, currently the order depends on which message is logged first.
We will change this to the order of the report level. We will use the same order as in the recorder action report
artur_gadomski wrote: is it possible to make a report with debug level disabled by default? I still want the messages to be logged and have an ability to see them so seting minimum level to info will not work for me.

You have to edit the xsl file. There you can set the checked states.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 6838
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Ranorex Report filters sorted by messages order.

Postby Pavlo » Wed Apr 18, 2012 2:38 pm

Hi

Can you please help me modifying xsl file?
How can I set default checked state to 'un-checked' to Debug checkbox?

-re
Pavlo
Pavlo
 
Posts: 29
Joined: Fri Dec 30, 2011 11:55 am

Re: Ranorex Report filters sorted by messages order.

Postby Support Team » Fri Apr 20, 2012 11:00 am

Hi,

Pavlo wrote:Can you please help me modifying xsl file?

We currently have a bug in the XSL file which will be fixed in Ranorex 3.3, therefore this is not possible at the moment. I cannot send you the Ranorex 3.3 file because it is a bit different to the 3.2 XSL file.

Regards,
Peter
Ranorex Team
User avatar
Support Team
Site Admin
 
Posts: 6838
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Ranorex Report filters sorted by messages order.

Postby Pavlo » Thu Jun 28, 2012 9:12 am

Support Team wrote:Hi,

Pavlo wrote:Can you please help me modifying xsl file?

We currently have a bug in the XSL file which will be fixed in Ranorex 3.3, therefore this is not possible at the moment. I cannot send you the Ranorex 3.3 file because it is a bit different to the 3.2 XSL file.

Regards,
Peter
Ranorex Team


Can I ask for help again, when Ranorex 3.3 is released :)

Regards,
Pavlo
Pavlo
 
Posts: 29
Joined: Fri Dec 30, 2011 11:55 am

Re: Ranorex Report filters sorted by messages order.

Postby Support Team » Fri Jun 29, 2012 10:50 am

Hello Pavlo,

The order of the check boxes in the report is fix (Debug, Info, Warn, Error, Success, Failure, Custom). If there is e.g. no error in your test the check box for Error will not be shown.
If you want that the Debug messages will not be shown in the Report you can change the Log Level settings in the Test Suite properties.
Ranorex 3.3 is already released.

Regards,
Bernhard
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 6838
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Ranorex Report filters sorted by messages order.

Postby Pavlo » Mon Jul 30, 2012 1:14 pm

Hi

Actually I'm looking on how to still have debug messages logged by not displayed by default in report.
E.g. minimum level = DEBUG, but in report xml checkbox with debug level is un-ticked by default and debug messages are not displayed (but could be easily checked by ticking that checkbox)

artur_gadomski wrote: is it possible to make a report with debug level disabled by default? I still want the messages to be logged and have an ability to see them so seting minimum level to info will not work for me.
Pavlo
 
Posts: 29
Joined: Fri Dec 30, 2011 11:55 am

Re: Ranorex Report filters sorted by messages order.

Postby Support Team » Tue Jul 31, 2012 11:48 am

Hi,

My colleague and I wrote a few new codelines for the .xsl file and voila the result gives you a report with un-ticked and hidden debug-messages.
These lines are the one which did the trick:
<xsl:variable name="RXStyle" >
	<xsl:choose>
		<xsl:when test="@level!='Debug'">
			<xsl:value-of select="@style" />
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="'display:none'" />
		</xsl:otherwise>
	</xsl:choose>
	</xsl:variable>
	
	<tr class="{translate(@level,' ','_')}" style="{$RXStyle}" onMouseOver="DisplayHoverMenu(this)"  onMouseOut="HideHoverMenu(this)">

The first code-snipped is for hiding the debug-messages for now.

The second is for un-ticking the "Debug" checkbox by default.
<xsl:choose>
    <xsl:when test="$level/../../activity[@type='test module']">
	  <xsl:choose>
		<xsl:when test="$levelName!='Debug'">
		  <input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$(this).parent().parent().next().find('tr.{translate($levelName,' ','_')}').toggle();"  checked="1" />
		</xsl:when>
		<xsl:otherwise>
		  <input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$(this).parent().parent().next().find('tr.{translate($levelName,' ','_')}').toggle();" />
		</xsl:otherwise>
	  </xsl:choose>
    </xsl:when>
    <xsl:otherwise>
      <input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$('tr.{translate($levelName,' ','_')}').toggle();"  />	  
    </xsl:otherwise>
  </xsl:choose>

You can copy this modified code into your .xsl file or you copy the whole modified .xsl stylesheet from the attachment into your Report folder. In the .xsl file from the attachment another line of code needs to be modified, namely the one where the .xsl file is called recursively.
ss.load("MODIFIED_RanorexReport3.xsl");


To tell Ranorex to use this stylesheet instead of the default RanorexReport3.xsl open your Ranorex, go to the TestSuit properties (see Test Suite Settings) and choose as Custom XSL File path the one of the modified stylesheet.

Wish you a lot of fun with this.
Larissa
Ranorex Support Team
Attachments
MODIFIED_RanorexReport3.zip
(114.8 KiB) Downloaded 32 times
User avatar
Support Team
Site Admin
 
Posts: 6838
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Ranorex Report filters sorted by messages order.

Postby artur_gadomski » Wed Aug 01, 2012 11:01 am

This is brilliant. Exactly what we needed.
I think attachement is missing.

To make it a bit more clear I replaced line in stylesheet:
<tr class="{@level}" style="{@style}" onMouseOver="DisplayHoverMenu(this)"  onMouseOut="HideHoverMenu(this)">

with first code.
And lines:
<xsl:choose>
    <xsl:when test="$level/../../activity[@type='test module']">
      <input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$(this).parent().parent().next().find('tr.{$levelName}').toggle();" checked="1" />
    </xsl:when>
    <xsl:otherwise>
      <input type="checkbox" id="checkBox{$currentId}" name="checkBox{$currentId}" onClick="$('tr.{$levelName}').toggle();" checked="1" />
    </xsl:otherwise>
  </xsl:choose>

with second code.
User avatar
artur_gadomski
 
Posts: 207
Joined: Mon Jul 19, 2010 7:55 am
Location: Copenhagen, Denmark

Re: Ranorex Report filters sorted by messages order.

Postby Support Team » Wed Aug 01, 2012 11:30 am

Hi,

Yeah you are right, sorry for that. I now attached it to my original post.

Regards,
Larissa
Ranorex Support Team
User avatar
Support Team
Site Admin
 
Posts: 6838
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests