It's all about the answers!

Ask a question

Is there any Execution variable to fetch ETM attachment status like 'success' or 'fail' using CLA batch scripting?


ravindra reddy (11) | asked Apr 25 '23, 11:01 p.m.
Hi all,

By using below batch scripting command  I can able to attach\upload Test results  to ETM
echo File=D:/PROJECT/ETM2/ETM_RemainingList_Estimation.xlsx >> %qm_AttachmentsFile%
    

Is there any way to fetch the attachment\upload status ?

qm_attachmentsFile execution variable is using for attaching a file , likewise is there any execution variable to fetch attachment status .

Thanks in advance .




Comments
Ralph Schoon commented Apr 26 '23, 1:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

What would be the status in this case and why would you need it? 


ravindra reddy commented Apr 26 '23, 2:14 a.m.

Hi Ralph ,


In General , when file is uploaded will get the status of upload , similarly
I would like to confirm whether file is attached successfully or not.

 

One answer



permanent link
Ralph Schoon (63.6k33646) | answered Apr 26 '23, 7:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 26 '23, 8:03 a.m.

 I have looked at the documentation: https://jazz.net/clmhelp/topic/com.ibm.rational.test.qm.doc/topics/t_add_cmd_line_attachments.html


For all I can tell, during a test executed with the command line adapter, you can create a temporary file that has a Java Properties format. Each line represents a link or a document with the name and a URL or absolute path to access the link or document to be able to add or upload it to the test result.

As far as I can tell, there is no upload happening while your script runs in the command line adapter. So there is no way for your script executed by the adapter, to tell any status change. All you have and can do is to interact with the test steps you execute in your script and succeed or fail based on that data. The upload and final result is outside of your control. It happens after your command line call already finished and is performed in the context of the command line adapter framework in ETM.  

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.