Page 1 of 1

Ranorex path runtime value

Posted: Tue Feb 04, 2014 1:56 am
by Mayra
Hi,
I want to get the runtime of the ranorex path. I am using variables in my path and when I see the log I can only look at $<variableName> , basically the way that it is in the repository.
How can I achieve that?
Thanks

Re: Ranorex path runtime value

Posted: Tue Feb 04, 2014 1:59 pm
by rprehm
Hi Mayra,

I suppose you use:

Code: Select all

repo.Anything.ItemInfo.AbsolutePath.ToString()
In order to get the runtime value of the variable please use:

Code: Select all

repo.Anything.ItemInfo.AbsolutePath.ToResolvedString()
or

Code: Select all

repo.Anything.Item.GetPath().ToString()
Regards,
Robert

Re: Ranorex path runtime value

Posted: Tue Feb 04, 2014 11:12 pm
by Mayra
Thanks, that is what I needed.