Export Results from Polyspace Access
Polyspace® Access™ offers a centralized database where you can store Polyspace analysis results for sharing with your team and collaborative reviews. After you upload analysis results to the database, you can:
View the results in your web browser.
Export a list of results to a tab-separated value (TSV) file for further processing, such as applying custom filters and pass/fail criteria.
Download results by using the
polyspace-access -downloadcommand. You use these downloaded results to merge review information between Polyspace Access projects , or as part of the baseline workflow in Polyspace as You Code™. See also:You cannot open results that you download with
polyspace-accessin any Polyspace interface.
Export Polyspace Access Results to a TSV File
You can export Polyspace
Access results to a tab-separated values (TSV) file only from the command line by using the polyspace-access binary. When you export results, you generate a TSV file that lists results with most of the same results attributes as the Results List in Polyspace Access Web Interface. Each listed result also includes a URL through which you can open the result in Polyspace
Access. To filter the list of results you export, see the polyspace-access -export command.
For example, to export all coding rules with status Unreviewed from project myProject stored in the public folder on Polyspace
Access, open a command prompt terminal and enter:
polyspace-access -host hostName -port port ^ -export public/myProject -coding-rules -review-status Unreviewed ^ -output coding_rules.tsv
The command prompts you for your Polyspace
Access login credentials, and then outputs file coding_rules.tsv.
and hostName correspond to the host name and port number you specify in the URL of the Polyspace
Access interface, for example porthttps://. If you are unsure about which host name and port number to use, contact your Polyspace
Access administrator. Depending on your configuration, you might also have to specify the hostName:port/metrics/index.html-protocol option in the command. See Configure and Start the Cluster Admin.
Note that you cannot export test or coverage results generated with Polyspace
Test™ using the polyspace-access command.