<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Recording testcase via REST API (Thread)</title><description> Hey guys,  Im currently looking at how to get our pipeline unit tests recorded in Spira.  Im using the  test-runs/record  endpoint, and it seems to be working, but I have a question.  I want to store the dump from the test tool (Jest) somewhere. One option is to use the  RunnerStackTrace field. But another option is to add it as an attachment. However, it is not entirely clear how to do this based on the documentation provided.  On the one hand, there is the  Documents  endpoint that should allow me to associate an artifact with an attachment. On the other hand, the  test-runs/record  endpoint has an argument  AutomationAttachmentId  which suggests I can directly attach an already existing Document to the created Test Run. However, the JSON skeleton in the documentation lists  AutomationAttachmentId:null,  suggesting you  need to provide a string instead of an artifact ID. How is this supposed to work?  </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/2389.aspx</link><item><guid isPermaLink="false">threadId=2389</guid><author>D L (dennis.lardenoye@pie.nl)</author><title>Recording testcase via REST API</title><description> Hey guys,  Im currently looking at how to get our pipeline unit tests recorded in Spira.  Im using the  test-runs/record  endpoint, and it seems to be working, but I have a question.  I want to store the dump from the test tool (Jest) somewhere. One option is to use the  RunnerStackTrace field. But another option is to add it as an attachment. However, it is not entirely clear how to do this based on the documentation provided.  On the one hand, there is the  Documents  endpoint that should allow me to associate an artifact with an attachment. On the other hand, the  test-runs/record  endpoint has an argument  AutomationAttachmentId  which suggests I can directly attach an already existing Document to the created Test Run. However, the JSON skeleton in the documentation lists  AutomationAttachmentId:null,  suggesting you  need to provide a string instead of an artifact ID. How is this supposed to work?  </description><pubDate>Fri, 11 Jun 2021 06:00:52 -0400</pubDate><a10:updated>2021-06-11T14:24:04-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2389.aspx</link></item><item><guid isPermaLink="false">messageId=3976</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> Hi DL  The data structures are common across several different methods. That particular field  Auto</title><description> Hi DL  The data structures are common across several different methods. That particular field  AutomationAttachmentId  is not meant to be for sending back an attachment result, it is when you have an automated test case in Spira and you want to download it.  So you should use the Documents POST API instead.  Regards  David </description><pubDate>Fri, 11 Jun 2021 14:24:04 -0400</pubDate><a10:updated>2021-06-11T14:24:04-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/2389.aspx#reply3976</link></item></channel></rss>