Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 12:34 Go to next message
maherzia belaazi is currently offline maherzia belaaziFriend
Messages: 41
Registered: October 2014
Member
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 13:31 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

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}"



Yours sincerely,
Olga.
Re: How to get "project.basedir" path in a Test Case [message #1696640 is a reply to message #1696610] Wed, 27 May 2015 15:16 Go to previous messageGo to next message
maherzia belaazi is currently offline maherzia belaaziFriend
Messages: 41
Registered: October 2014
Member
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 15:20 Go to previous messageGo to next message
maherzia belaazi is currently offline maherzia belaaziFriend
Messages: 41
Registered: October 2014
Member
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 10:21 Go to previous message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

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.


Yours sincerely,
Olga.
Previous Topic:Key-type in Tree
Next Topic:How to set plugin location
Goto Forum:
  


Current Time: Fri Mar 29 13:50:06 GMT 2024

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

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

Back to the top