Page 1 of 1

Change color in the report

Posted: Thu Jul 18, 2019 8:14 am
by Fsis
Hi all,

I wondered if it's possible to change the colors in the report. At the moment, the color for a successful case in the pie chart is green.

Is there a way to change it to a differet color?

Thanks in advance

Fabio

Re: Change color in the report

Posted: Thu Jul 18, 2019 11:04 am
by manish
Hey Fabio,

First you would have to create a custom report template.
You can find the link to the help here: https://www.ranorex.com/help/latest/ran ... omization/

After you have created the custom template, open the file View.rxlog from the custom reports folder. In there, search for the function ShowChart() and change the colour values as shown below.
Unbenannt.png

BR
Manish

Re: Change color in the report

Posted: Thu Jul 18, 2019 12:56 pm
by Fsis
manish wrote:
Thu Jul 18, 2019 11:04 am
Hey Fabio,

First you would have to create a custom report template.
You can find the link to the help here: https://www.ranorex.com/help/latest/ran ... omization/

After you have created the custom template, open the file View.rxlog from the custom reports folder. In there, search for the function ShowChart() and change the colour values as shown below.
Unbenannt.png


BR
Manish
Hi Manish,

But by doing that I'm only opening the sample report, aren't I?

Fabio

Re: Change color in the report

Posted: Thu Jul 18, 2019 1:50 pm
by manish
Hi Fabio,

Once you create a custom report and link it to your test project, all the reports will be based on the custom report template.
So basically, all new test execution reports will have the new format taken from the cutom report template.

The View.rxlog file is part of the template. Change the color values there only once and all new reports take the changes.

Re: Change color in the report

Posted: Thu Jul 18, 2019 2:33 pm
by Fsis
manish wrote:
Thu Jul 18, 2019 1:50 pm
Hi Fabio,

Once you create a custom report and link it to your test project, all the reports will be based on the custom report template.
So basically, all new test execution reports will have the new format taken from the cutom report template.

The View.rxlog file is part of the template. Change the color values there only once and all new reports take the changes.
Hey Manish,

Eventually I figured out what you meant and it works perfectly. At first, I didn't quite get that I had to open the file using an XML/Text editor.

Thanks for your help :)

Regards
Fabio