Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » How to get .execution file from an ExecutionEvent?
How to get .execution file from an ExecutionEvent? [message #31445] Thu, 15 September 2005 01:43 Go to next message
Martha Andrews is currently offline Martha AndrewsFriend
Messages: 8
Registered: July 2009
Junior Member
Hello,

If I have a TPFExecutionEvent, is it possible to get the path to the
..execution file the event is stored in?

Thanks,
Martha
Re: How to get .execution file from an ExecutionEvent? [message #31515 is a reply to message #31445] Thu, 15 September 2005 11:58 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi Martha,
Yes. You can use the following code snippet:

TPFExecutionResult.eResource().getURI().toString();

Paul

"Martha Andrews" <mandrew@us.ibm.com> wrote in message
news:dgajkl$avj$1@news.eclipse.org...
> Hello,
>
> If I have a TPFExecutionEvent, is it possible to get the path to the
> .execution file the event is stored in?
>
> Thanks,
> Martha
Re: How to get .execution file from an ExecutionEvent? [message #31654 is a reply to message #31445] Fri, 16 September 2005 14:50 Go to previous message
Marius Slavescu is currently offline Marius SlavescuFriend
Messages: 67
Registered: July 2009
Member
Hi Martha,

You could use the following code:

String uri =
org.eclipse.emf.ecore.util.EcoreUtil.getURI(tpfExecutionEven t).toString()

where uri represent the workspace relative or absolute location of the
resource that contains tpfExecutionEvent object.

Regards,
Marius

"Martha Andrews" <mandrew@us.ibm.com> wrote in message
news:dgajkl$avj$1@news.eclipse.org...
> Hello,
>
> If I have a TPFExecutionEvent, is it possible to get the path to the
> .execution file the event is stored in?
>
> Thanks,
> Martha
Previous Topic:Automated GUI Recorder
Next Topic:Automatic GUI Recording - autogui.jar
Goto Forum:
  


Current Time: Thu Sep 26 14:40:51 GMT 2024

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

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

Back to the top