Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Need consolidated test output (logger message+screenshots+exceptions)
Need consolidated test output (logger message+screenshots+exceptions) [message #757212] Thu, 17 November 2011 07:23 Go to next message
Aparna Argade is currently offline Aparna ArgadeFriend
Messages: 18
Registered: October 2010
Junior Member
I'm using swtbot for testing a huge product. There will be many tests and hence the tester has to look at many test result files. The test analysis will be easy if swtbot can give a single consolidated result file for a test. Currently I have to look at multiple files to analyse a test. e.g. %CLASS_NAME%.txt, %CLASS_NAME%.html and screenshots captured in between the execution.

%CLASS_NAME%.html file does not contain logger(log4j) messages, so this file is of not much. However %CLASS_NAME%.txt file contains logger messages+exceptions.

1. Is there any proven way to convert this %CLASS_NAME%.txt file into html file?

2. Can I also provide links to captured screenshots into this html?

If I can achieve it, then the analyzer has to just look at this single file and he/she can get complete idea of test failure.
Re: Need consolidated test output (logger message+screenshots+exceptions) [message #757908 is a reply to message #757212] Fri, 18 November 2011 06:02 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
This is a known issue and I'm fixing this as I write this email :)

-- Ketan

On 11/16/11 11:23 PM, Aparna wrote:
> I'm using swtbot for testing a huge product. There will be many tests
> and hence the tester has to look at many test result files. The test
> analysis will be easy if swtbot can give a single consolidated result
> file for a test. Currently I have to look at multiple files to analyse a
> test. e.g. %CLASS_NAME%.txt, %CLASS_NAME%.html and screenshots captured
> in between the execution.
>
> %CLASS_NAME%.html file does not contain logger(log4j) messages, so this
> file is of not much. However %CLASS_NAME%.txt file contains logger
> messages+exceptions.
>
> 1. Is there any proven way to convert this %CLASS_NAME%.txt file into
> html file?
>
> 2. Can I also provide links to captured screenshots into this html?
>
> If I can achieve it, then the analyzer has to just look at this single
> file and he/she can get complete idea of test failure.
>
Re: Need consolidated test output (logger message+screenshots+exceptions) [message #758649 is a reply to message #757908] Thu, 24 November 2011 05:57 Go to previous messageGo to next message
Aparna Argade is currently offline Aparna ArgadeFriend
Messages: 18
Registered: October 2010
Junior Member
Thanks Ketan. I'm waiting for this feature. Kindly inform after the fix is done.
Re: Need consolidated test output (logger message+screenshots+exceptions) [message #759426 is a reply to message #758649] Mon, 28 November 2011 16:01 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 11/23/11 9:57 PM, Aparna wrote:
> Thanks Ketan. I'm waiting for this feature. Kindly inform after the fix
> is done.

JUnit by default, allows capturing of output at a test suite level,
therefore it is not currently possible to capture test output at the
granularity of every testcase. See http://goo.gl/Vqli0 for what I mean
by this.

This particular feature is going to take a bit of time to build. I've
filed http://bugs.eclipse.org/364964 to track progress. Please add
yourself to CC to be notified of changes.

-- Ketan
Previous Topic:Radio select doesn't seem to register any more
Next Topic:Can't access main "Project" menu after selecting project in view
Goto Forum:
  


Current Time: Thu Nov 27 16:33:09 GMT 2014

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

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