View previous topic :: View next topic |
Author |
Message |
Snucke
Joined: 27 Sep 2005 Posts: 9
|
Posted: Tue Nov 15, 2005 10:07 am Post subject: Colors in custom reports |
|
|
When I use a template for the html reports, I cant change the report colors from the options/reports tab. The changes have no effect except "html text" which alters all text and I assume its because I have to put some vars in the template file like %itemcolor% etc. Is there a list of these vars somewhere in the docs?
This is all I can find:
Color palette
You may customize color scheme for the HTML reports. The following elements have customizable colors (you may change both fore- and background colors):
underlaying layer;
table header;
test items;
system messages;
HTML links;
Visited HTML links;
Active HTML links;
/Rob |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Tue Nov 15, 2005 12:48 pm Post subject: |
|
|
Quote: | When I use a template for the html reports |
Template for "Custom HTML report", right?
Quote: | The changes have no effect except "html text" which alters all text |
Not sure I understand you. "Color scheme" option accessible for any HTML report:
- HTML
- Compact HTML
- Custom HTML
- Dashboard
Quote: | Is there a list of these vars somewhere in the docs? |
Sure. Quote from the manual (end of "Custom HTML report" section) Quote: | Also in any section (header, footer, test items, etc) of the Custom HTML report you can use 2 contents specific macro variables:
- %ItemColor% - text color
- %Background% - background color
These varaibales are "contents specific" because value of the varaible depends on the item that uses variables. E.g. if you use these variables in "Folder item" section, they will represent colors those was specified for the folder item (see Color Schemes dialog). If you use these variables for "Good" tests, they will represent colors those were specified for tests with "Good" status. And so on...
|
Regards
Alex |
|
Back to top |
|
|
Snucke
Joined: 27 Sep 2005 Posts: 9
|
Posted: Tue Nov 15, 2005 3:44 pm Post subject: Report settings |
|
|
Hi Alex,
My mistake, I thought I HAD to set the colors in the report settings but I discovered that I could hard code them into the custom html template just like that
BUT, now we have a problem with the graphs path. We would like to automate the task of creating reports (works fine) and when the report is created (including the graphs) it will be transfered to a web page for display. The problem is that the path to each graph is wrong (for webpages) in the auto-created html report since the value from Options/Reports/Folder_for_images is getting a backslash at the end by default. I´m using the path ./images to get a non local path but when I click OK, there´s a \ added so the path to the graph in the html page is ./images\filename.gif. This is not gonna work on the webserver.
Any ideas on how to get around this?
/Rob |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
|
Back to top |
|
|
Snucke
Joined: 27 Sep 2005 Posts: 9
|
Posted: Wed Nov 16, 2005 5:10 am Post subject: yes! |
|
|
Works like a charm, the backslash is stripped in the html file.
Thanks Alex!
/Rob |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12807 Location: USA
|
Posted: Wed Nov 16, 2005 2:03 pm Post subject: |
|
|
You are welcome |
|
Back to top |
|
|
|