Customised XSL for Report

Ask general questions here.
atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Customised XSL for Report

Post by atom » Thu Jul 23, 2009 2:44 pm

Hiya

Ranorex reports are nice...
But is there a way to make the generated xml file use a custom XSL and not the Ranorex one?
Basically I'd like to customise the following:

- Replace Ranorex logo with our company logo
- Replace the text "Ranorex Test Report" with the name of the test case

Thanks

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

Re: Customised XSL for Report

Post by Support Team » Mon Jul 27, 2009 8:36 am

Hi atom,
you can modify the RanorexReport.xsl file to set customised style attributes.

If you want to change the logo, add the 'header-top' formatting object to the RanorexReport.xsl(within the '<style type="text/css">' block):

e.g.
#header-top #logo a
{
margin: 0 0 0 17px;
width: 180px;
height: 45px;
display:block;
background: url(/*whatever*/) no-repeat;
}

You can`t replace the 'Ranorex Test Report' text because it`s set directly in the auto-generated '.rxrep'(.xml) file.

Regards,
Christian
Support Team
.
Image