Unable to attach files or links to execution results of test case
I'm using RQM 4.0.2 command line adapter. Whenever I try to attach any doc/text file or add a link to the execution results of the test case, I get the following warning message:
http://www.google.com" is not an existing file nor a valid URI link. Unable to
associate with execution result.
ExitCode: 0
C:\Documents and Settings\username\My Documents\sample.txt" is not an existing fil
e nor a valid URI link. Unable to associate with execution result.
I'm following the steps mentioned in http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/index.jsp?topic=%2Fcom.ibm.rational.test.qm.doc%2Ftopics%2Ft_add_cmd_line_attachments.html
Accepted answer
Hello Amit, I'm guessing the double-quotes are being passed through into the properties file. So the result ends up looking something like this.
"mylink=http://www.google.com"
"myfile=C:\Documents and Settings\username\My Documents\sample.txt"
This would result in properties with names "mylink and "myfile, with values http://www.google.com" and C:\Documents and Settings\username\My Documents\sample.txt". Try removing the quotes in your echo commands (assuming you're using echo). One other thing you'll need to address is to either escape the backslash characters in the path or use forward slashes, ie. C:/Documents and Settings/username/My Documents/sample.txt
I hope this helps!
"mylink=http://www.google.com"
"myfile=C:\Documents and Settings\username\My Documents\sample.txt"
This would result in properties with names "mylink and "myfile, with values http://www.google.com" and C:\Documents and Settings\username\My Documents\sample.txt". Try removing the quotes in your echo commands (assuming you're using echo). One other thing you'll need to address is to either escape the backslash characters in the path or use forward slashes, ie. C:/Documents and Settings/username/My Documents/sample.txt
I hope this helps!