question

mandonov avatar image
mandonov asked Spirent_Admin edited

Saving charts?

I am working with real-time charts and would like to save them (into the report, or into an external file as an image) after the test completes for later reference. I see that exporting as .csv and .xml is available, 

so the data points can be saved - however is there a simple way to go back and view the charts after the test has completes? It seems that once the test has run, the charts are no longer available for viewing.

 

Also, is there a way to automate the exporting of chart data from the test case? 

 

Thanks,

 

Milen 

iTestresults and reporting
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
mandonov avatar image
mandonov answered mandonov posted

Ah, never mind. The charts for past runs can be viewed when you open the corresponding test report.

 

Still I'd appreciate suggestions on how to automate the exporting of chart data - and exporting of the chart image if possible- from a test case.

 

Thanks,

Milen 

4 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KumarS avatar image KumarS commented ·

You cannot export chart image from a test report - but you can definitely automate exporting of chart data.

 

All the analysis rules have the following structure:

 

Extract Data

Do something with the data

 

For a charting rule using regex extractor, it looks like:

extract data using a regex

chart the corresponding data

 

So similarly, you can do:

extract data using regex

use "writeFile" action to write data to a file using your choice of delimiter

 

0 Likes 0 ·
mandonov avatar image mandonov KumarS commented ·
Sure, thanks - I am aware I can always do that. It would be nice to have an attribute to the chart step that allows for the data to be written to a file anyway so you don't have to export it manually or use an additional analysis rule. 
0 Likes 0 ·
dclaar avatar image dclaar mandonov commented ·

This would imply that charts can't be used with itestrt, right? And that--in general--charts can't be used in a situation where the workspace is not readily available?

 

One of our users made a nice chart as part of his test, and now wants to have it be part of the report. I guess that's impossible?

0 Likes 0 ·
KumarS avatar image KumarS dclaar commented ·

We have a feature request for test reporting to be improved for charts. Currently, our HTML reports do not include charts and we do not provide a way to export in "fftz" format which includes all the information inside a test report.

 

So your only option would be to "in addition" write chart data in a file and use Excel to view the data, if chart is being produced in a regression run.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.