Change color in the report

Ask general questions here.
Fsis
Posts: 11
Joined: Wed Jun 12, 2019 8:27 am

Change color in the report

Post by Fsis » Thu Jul 18, 2019 8:14 am

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

manish
Posts: 45
Joined: Fri Aug 10, 2018 12:46 pm

Re: Change color in the report

Post by manish » 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
Unbenannt.png (24.46 KiB) Viewed 95 times

BR
Manish

Fsis
Posts: 11
Joined: Wed Jun 12, 2019 8:27 am

Re: Change color in the report

Post by Fsis » Thu Jul 18, 2019 12:56 pm

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

manish
Posts: 45
Joined: Fri Aug 10, 2018 12:46 pm

Re: Change color in the report

Post by manish » 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.

Fsis
Posts: 11
Joined: Wed Jun 12, 2019 8:27 am

Re: Change color in the report

Post by Fsis » Thu Jul 18, 2019 2:33 pm

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