Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » How to set relative path in ECL
How to set relative path in ECL [message #1701258] Fri, 10 July 2015 10:09 Go to next message
Jeevan Rex is currently offline Jeevan RexFriend
Messages: 80
Registered: March 2015
Location: Bangalore
Member
Hi,

Let's say I have a ECL code like this:
set-dialog-result File "/home/jeevan/RCPTT/RCPTTProject/sample.txt" 

How do I use a relative path instead of absolute path to sample.txt?

I have put sample.txt in the same directory where my *.test *.ctx and *.verification is located. How can I point my sample.txt through set-dialog-result no matter where I copy the project to.

How can I instruct through ECL to search my RCPTT Project directory always?

I am able to test some like the following
show-alert [concat [get-java-property "user.home"| str ] "+ " [get-java-property "user.dir"| str ]]

Which gives only the path to AUT not the project location. How can I find that.

Thank you
Jeevan

[Updated on: Fri, 10 July 2015 11:07]

Report message to a moderator

Re: How to set relative path in ECL [message #1701397 is a reply to message #1701258] Mon, 13 July 2015 08:29 Go to previous message
Krzysztof Jozefowicz is currently offline Krzysztof JozefowiczFriend
Messages: 19
Registered: May 2015
Junior Member
Hi
I have the same problem in my regression. Workaround was to use command prompt (in our case Python to be OS independent) to search and return absolute path from given relative path.

If you will come upon solution, let me know.
Previous Topic:Mvn Runner Problem
Next Topic:RRCPT does not add the URL (update sites) when run the AUT.
Goto Forum:
  


Current Time: Thu Apr 18 02:27:19 GMT 2024

Powered by FUDForum. Page generated in 0.01813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top