<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On Jan 23, 2019, at 10:22 AM, Zack Galbreath <<a href="mailto:zack.galbreath@kitware.com" class="">zack.galbreath@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">On Sun, Jan 13, 2019 at 1:40 PM Dan Langille <<a href="mailto:dan@langille.org" class="">dan@langille.org</a>> wrote:<br class=""></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" class="">Hello,<div class=""><br class=""></div><div class="">I would like to obtain a list of recent tests from the command line. This is part of monitoring check to ensure automated testing results are landing in CDash.</div><div class=""><br class=""></div><div class="">From what I see, index.php?project=MyProject has the information I want.  Is there a better page?</div><div class=""><br class=""></div><div class="">I can't use wget or curl because the above page needs javascript to render.</div><div class=""><br class=""></div><div class="">Is there another URL I can use which does not require javascript?</div></div></blockquote><div class=""><br class=""></div><div class="">Hi Dan,</div><div class=""><br class=""></div><div class="">Most of CDash's information is available in JSON format. You can get this by clicking the "View as JSON" link in the footer of the page. To manually construct such a URL, you can prepend "/api/v1/" in front of the name of the PHP script. So instead of "index.php?project=MyProject", you'd go to "/api/v1/index.php?project=MyProject".</div><div class=""><br class=""></div><div class="">For recent test results, I recommend the testOverview.php page. You can access this page by selecting "Tests" in the "Dashboard" drop-down menu in the upper right corner of the page.</div><div class=""><br class=""></div><div class="">For example, here's what it looks like for CMake's dashboard today:</div><div class=""><a href="https://open.cdash.org/testOverview.php?project=CMake&date=2019-01-23" class="">https://open.cdash.org/testOverview.php?project=CMake&date=2019-01-23</a><br class=""></div><div class=""><br class=""></div><div class="">And here is the corresponding JSON data that's used to render this page:</div><div class=""><a href="https://open.cdash.org/api/v1/testOverview.php?project=CMake&date=2019-01-23" class="">https://open.cdash.org/api/v1/testOverview.php?project=CMake&date=2019-01-23</a><br class=""></div><div class=""><br class=""></div><div class="">Please let us know if this doesn't do the trick for you.</div></div></div></div></div>
</div></blockquote></div><div class=""><br class=""></div><div class="">Thank you, I am sure JSON will be easily parsed to get what I need.  Cheers.</div><div class=""><br class=""></div><div class="">FYI, the page in our project does not have the 'View As JSON' link, despite also being on CDash 2.5.0 like the example above.</div><div class=""><br class=""></div><div class="">Not to worry though, I think this will do it.  Thank you.</div><div class=""><br class=""></div><div class=""><div class=""><div>-- <br class="">Dan Langille - BSDCan / PGCon<br class=""><a href="mailto:dan@langille.org" class="">dan@langille.org</a><br class=""><br class=""></div></div><div><br class=""><blockquote type="cite" class=""></blockquote></div></div></body></html>