Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » How to get "project.basedir" path in a Test Case
How to get "project.basedir" path in a Test Case [message #1696595] Wed, 27 May 2015 08:34 Go to next message
Eclipse UserFriend
Hello,

Is there any predefined variables to use in order to refer to the RCPTT Project basedir path ?
It is very usefull when we need to set relative path.

Thanks in advance,
Re: How to get "project.basedir" path in a Test Case [message #1696610 is a reply to message #1696595] Wed, 27 May 2015 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

Could you please explain in more details, how do you want to use this relative path?
The command substitute-variables might be useful for that.
For example: substitute-variables "${workspace_loc}"

Re: How to get "project.basedir" path in a Test Case [message #1696640 is a reply to message #1696610] Wed, 27 May 2015 11:16 Go to previous messageGo to next message
Eclipse UserFriend
I need a variable to refer to the "RCTT Test Project" path.
I need a variable to refer to the AUT path.

Thanks for your support !
Re: How to get "project.basedir" path in a Test Case [message #1696641 is a reply to message #1696640] Wed, 27 May 2015 11:20 Go to previous messageGo to next message
Eclipse UserFriend
May also the current Test Case Path if possible ?
Re: How to get "project.basedir" path in a Test Case [message #1696907 is a reply to message #1696641] Fri, 29 May 2015 06:21 Go to previous message
Eclipse UserFriend
There is no predefined variable for RCPTT workspace, but it's possible to get this path from osgi.configuration.area java property as I've done it in the following script:
str [get-java-property "osgi.configuration.area"] | invoke substring 0 [str [get-java-property "osgi.configuration.area"] | invoke indexOf ".metadata/.plugins/org.eclipse.pde.core/build-347/"]  

AUT location you can find this way:
get-java-property "osgi.install.area"

You can add it to procedure and then add the procedure to ECL context.
Do you want to manipulate with files somehow? You may use folder context for that. In RCPTT it is the most convenient way to prepare files on filesystem.
Previous Topic:Key-type in Tree
Next Topic:How to set plugin location
Goto Forum:
  


Current Time: Mon Jun 16 15:02:17 EDT 2025

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

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

Back to the top