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, 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 .

Ralph Schoon commented Apr 26, 1:58 a.m.

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

ravindra reddy commented Apr 26, 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 (62.3k33643) | answered Apr 26, 7:58 a.m.
edited Apr 26, 8:03 a.m.

 I have looked at the documentation:

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.