Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » ECL command(Get-worskspace-location)
icon13.gif  ECL command [message #1649354] Wed, 04 March 2015 09:26 Go to next message
raghavendra l is currently offline raghavendra lFriend
Messages: 6
Registered: September 2014
Junior Member
hi team,

I have a scenario, where i need to select a file from the AUT's workspace.

i have set file path (string )for the below ecl command :

set-dialog-result File "/file/path"

i treid using get-workspace-location to get the AUT workspace location and script looked as below

set-dialog-result File [concat [get-workspace-location ] "\file.text"

i am getting org/eclipse/core/resources/ResourcesPlugin
at get-workspace-location error while executing get-workspace-location command

please suggest is this the best way to fetch a file location from AUT's workspace and also how to resolve the error i am getting while executing the above command

Thank you

Raghav

Re: ECL command [message #1653551 is a reply to message #1649354] Fri, 06 March 2015 09:15 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Hello,


Please try the following construction and let me know if it works fine for you
set-dialog-result File [concat [substitute-variables "${workspace_loc}"] "/<path after workspace://>"]

More information about paths and URIs in ECL you can find here.


Yours sincerely,
Olga.
Re: ECL command [message #1653869 is a reply to message #1653551] Fri, 06 March 2015 12:25 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

Or you can use the following construction:

set-dialog-result File  [concat [get-workspace-location] [get-by-os -macosx "/file.text" -win "\\file.text"]]


Command get-by-os is needed because path depends on OS in this case.


Yours sincerely,
Olga.
Re: ECL command [message #1743936 is a reply to message #1653869] Tue, 20 September 2016 19:32 Go to previous message
surin komi is currently offline surin komiFriend
Messages: 5
Registered: September 2016
Junior Member
Hi Olga,

I want to use Project workspace not AUT workspace.
Project workspace where i have my RCPTT scripts and testData

Please provide the commands !
Previous Topic:[SOLVED] ECL list removed from http://download.eclipse.org/rcptt/release/1.5.4/doc/ecl/index.html
Next Topic:[SOLVED] Is it possible to use recursion in rcptt ?
Goto Forum:
  


Current Time: Fri Apr 26 19:21:12 GMT 2024

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

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

Back to the top