Skip to main content



      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 06:09 Go to next message
Eclipse UserFriend
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 07:07] by Moderator

Re: How to set relative path in ECL [message #1701397 is a reply to message #1701258] Mon, 13 July 2015 04:29 Go to previous message
Eclipse UserFriend
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: Wed Jun 18 21:34:51 EDT 2025

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

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

Back to the top