Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Parsing the .execution file
Parsing the .execution file [message #61925] Wed, 29 March 2006 12:17 Go to next message
Eclipse UserFriend
Originally posted by: bharat51.hotmail.com

hi,
I am using TPTP 4.1, to run a test suite using the
AutomationClientAdapter. The result set is an non-ascii file
called <testsuitename>_<some number>.execution file.
My requirement is to get a handle to this file and parse it
to extract the required data and store it in an proprietary
format.

Any help/sample would suffice.

thanks and regard
-b
Re: Parsing the .execution file [message #61946 is a reply to message #61925] Wed, 29 March 2006 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vladimir.au.ru

I used the following steps and everything works fine:
http://dev.eclipse.org/newslists/news.eclipse.tptp/msg01386. html
Re: Parsing the .execution file [message #62058 is a reply to message #61946] Wed, 29 March 2006 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bharat51.hotmail.com

hi,
Well it does seem to work for the test execution result set, Thanks a lot
for pointing me in the right direction. however, its giving a bad null
pointer error when trying to search for the testsuite.
any ideas?
Cheers
-b

Stack trace when trying to get resource =
resourceSet.getResource(testsuiteResourceURI, true);


executionResource:
org.eclipse.hyades.models.common.testprofile.impl.TPFTypedEv entImpl @3257b8
(id: DBF5DC84CA081904D82293CABF2911DA, description: null, name: null)
(ownerId: E430995BF3979EE5E33A6550BA8611DA(1), timestamp: 1143636407794,
text: The tests finished after 30 miliseconds. Test count:11 - Failure
count:0 - Error count:0, eventType: null, scriptFileURI: null,
scriptLineNumber: 0) (type: stop)
java.lang.NullPointerException
at
org.eclipse.emf.ecore.plugin.EcorePlugin.resolvePlatformReso urcePath(EcorePlugin.java:132)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createP latformResourceInputStream(URIConverterImpl.java:538)
at
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createI nputStream(URIConverterImpl.java:442)
at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:829)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:320)
at com.test.parser.LoadExecutionResults.main(LoadExecutionResul ts.java:46)
Exception in thread "main"
Re: Parsing the .execution file [message #62079 is a reply to message #62058] Wed, 29 March 2006 14:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vladimir.au.ru

Brat,

unfortunately I have no idea about it, this code works fine for me. I'm
not a developer of TPTP and just try to solve my problems in this forum :)


Thanks,
Vladimir.

Brat wrote:

> hi,
> Well it does seem to work for the test execution result set, Thanks a lot
> for pointing me in the right direction. however, its giving a bad null
> pointer error when trying to search for the testsuite.
> any ideas?
> Cheers
> -b

> Stack trace when trying to get resource =
> resourceSet.getResource(testsuiteResourceURI, true);


> executionResource:
> org.eclipse.hyades.models.common.testprofile.impl.TPFTypedEv entImpl @3257b8
> (id: DBF5DC84CA081904D82293CABF2911DA, description: null, name: null)
> (ownerId: E430995BF3979EE5E33A6550BA8611DA(1), timestamp: 1143636407794,
> text: The tests finished after 30 miliseconds. Test count:11 - Failure
> count:0 - Error count:0, eventType: null, scriptFileURI: null,
> scriptLineNumber: 0) (type: stop)
> java.lang.NullPointerException
> at
>
org.eclipse.emf.ecore.plugin.EcorePlugin.resolvePlatformReso urcePath(EcorePlugin.java:132)
> at
>
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createP latformResourceInputStream(URIConverterImpl.java:538)
> at
>
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createI nputStream(URIConverterImpl.java:442)
> at
> org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:829)
> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo ad(ResourceSetImpl.java:249)
> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLo adHelper(ResourceSetImpl.java:264)
> at
>
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:320)
> at com.test.parser.LoadExecutionResults.main(LoadExecutionResul ts.java:46)
> Exception in thread "main"
Re: Parsing the .execution file [message #62126 is a reply to message #62079] Wed, 29 March 2006 14:10 Go to previous message
Eclipse UserFriend
Originally posted by: bharat51.hotmail.com

Hi Vladimir
Thanks anyway for your help, Atleast I am one step ahead from morning.. I
guess its back to the debugger.. :-)
Previous Topic:Deployment content unpredictable
Next Topic:TPTP-LogView
Goto Forum:
  


Current Time: Sat Jul 27 16:40:59 GMT 2024

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

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

Back to the top