Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get RQM Project Path

I know there isn't this built-in execution variable but Is there anyway to get the RQM_PROJECT_PATH and pass it through execution variables?

0 votes

Comments

What is this variable for? What is your use case?

Hello Donald. Thanks for the feedback.
When i execute my script using RQM with shared network location, a copy of the script is made by RQM, to a local test machine and is executed locally, but my script make reference to some files into project that is not copied with the script. So it returns an error that there is not such file at the path.
What i suppose do to solve this, is to make a copy os such files before they are called.
But to make a copy of such files, the script needs to to know where it is at shared network location.
I imagine to pass it through execution variables, but i don't know how to get this path by RQM.



One answer

Permanent link

Hi Donald, 

How I understood your scenario is that you have some of the file in to RQM PROJECT? I have not understood where in RQM PROJECT path you have those files or there references. If you are mentioning about some of the files attached to your RQM Artifacts ( such as Test Case ) then I think you may have to find the URL ( not the shared location) of that attachment to fetch the file on your local machine via your script. Any way I am assuming too much here and would need some more information from your side. 
Could you please explain more about which types of files part of RQM Project which you scripts makes reference to?

However - you are correct about the fact that if network shared location is used then scripts are copied to the machine local to the adapter ( where adapter is running ). And if you mean files in project by Attachments to RQM Artifacts and if you running a command line adapter then - you can use execution variables to pass on the URI of the attachment you want to your functional scripts to use. These URIs can be used to download the attachment ( via REST get on those URI through your Scripts ) on local machine where adapter is running via your scripts and then these files could be used. 

Thanks,
Abhishek

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,030

Question asked: May 17 '17, 10:26 a.m.

Question was seen: 1,928 times

Last updated: Dec 01 '17, 10:35 a.m.

Confirmation Cancel Confirm