[CDash] List of recent tests without javascript

Dan Langille dan at langille.org
Wed Jan 23 17:58:59 UTC 2019


> On Jan 23, 2019, at 10:22 AM, Zack Galbreath <zack.galbreath at kitware.com> wrote:
> 
> On Sun, Jan 13, 2019 at 1:40 PM Dan Langille <dan at langille.org <mailto:dan at langille.org>> wrote:
> Hello,
> 
> 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.
> 
> From what I see, index.php?project=MyProject has the information I want.  Is there a better page?
> 
> I can't use wget or curl because the above page needs javascript to render.
> 
> Is there another URL I can use which does not require javascript?
> 
> Hi Dan,
> 
> 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".
> 
> 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.
> 
> For example, here's what it looks like for CMake's dashboard today:
> https://open.cdash.org/testOverview.php?project=CMake&date=2019-01-23 <https://open.cdash.org/testOverview.php?project=CMake&date=2019-01-23>
> 
> And here is the corresponding JSON data that's used to render this page:
> https://open.cdash.org/api/v1/testOverview.php?project=CMake&date=2019-01-23 <https://open.cdash.org/api/v1/testOverview.php?project=CMake&date=2019-01-23>
> 
> Please let us know if this doesn't do the trick for you.


Thank you, I am sure JSON will be easily parsed to get what I need.  Cheers.

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.

Not to worry though, I think this will do it.  Thank you.

--
Dan Langille - BSDCan / PGCon
dan at langille.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cdash/attachments/20190123/e6758935/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: Message signed with OpenPGP
URL: <http://public.kitware.com/pipermail/cdash/attachments/20190123/e6758935/attachment-0003.sig>


More information about the CDash mailing list