Parsing the .execution file [message #61925] |
Wed, 29 March 2006 12:17 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #62058 is a reply to message #61946] |
Wed, 29 March 2006 13:53 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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"
|
|
|
|
Powered by
FUDForum. Page generated in 0.03545 seconds