Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » IllegalArgumentExceptions in logging for simple test case
IllegalArgumentExceptions in logging for simple test case [message #6068] Wed, 03 December 2008 17:27 Go to next message
Joe Luebker is currently offline Joe LuebkerFriend
Messages: 36
Registered: July 2009
Member
Hello,

Now that I have a logging xml file in place, I am noticing some
IllegalArgumentExceptions reported in the Eclipse Console for a simple
test case derived from SWTEclipseBotTestCase.

The test case class:

public class DummySWTBotTestCase extends SWTBotEclipseTestCase{

public void setUp()
{
System.out.println("setting up test case");
}

public void tearDown()
{
System.out.println("tearing down test case");
}

public void testDummy1() throws Exception
{
System.out.println("#Testing# running testDummy1()");
bot.view("Navigator").show();
}
}

I only debugged the first such exception. The call stack for which is
attached. At net.sf.swtbot.utils.MessageFormat.toString(), the last
entry before getting into Java API code, the values for the arguments are.

s = "method {0} {{1}}, using matcher: {2}
args[0] = "ViewReference"
args[1] = ""
args[2] = ""

Has anyone else ran into anything similar with the logging for SWTBot or
have any suggestions for correcting this?

Thanks,
Joe
Re: IllegalArgumentExceptions in logging for simple test case [message #6113 is a reply to message #6068] Wed, 03 December 2008 17:57 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 3/12/08 22:57, Joe Luebker wrote:

> I only debugged the first such exception. The call stack for which is
> attached. At net.sf.swtbot.utils.MessageFormat.toString(), the last
> entry before getting into Java API code, the values for the arguments are.
>
> s = "method {0} {{1}}, using matcher: {2}
> args[0] = "ViewReference"
> args[1] = ""
> args[2] = ""

This was fixed as part of http://swtbot.org/bugzilla/show_bug.cgi?id=131

You could checkout revision 1128 from SVN in case you'd want to fix this
yourself, or modify the source as per the description in the bug
(basically remove the double brace {{1}} to make it {1})

-- Ketan
Re: IllegalArgumentExceptions in logging for simple test case [message #6129 is a reply to message #6113] Wed, 03 December 2008 19:55 Go to previous messageGo to next message
Joe Luebker is currently offline Joe LuebkerFriend
Messages: 36
Registered: July 2009
Member
Ketan Padegaonkar wrote:
> On 3/12/08 22:57, Joe Luebker wrote:
>
>> I only debugged the first such exception. The call stack for which is
>> attached. At net.sf.swtbot.utils.MessageFormat.toString(), the last
>> entry before getting into Java API code, the values for the arguments
>> are.
>>
>> s = "method {0} {{1}}, using matcher: {2}
>> args[0] = "ViewReference"
>> args[1] = ""
>> args[2] = ""
>
> This was fixed as part of http://swtbot.org/bugzilla/show_bug.cgi?id=131
>
> You could checkout revision 1128 from SVN in case you'd want to fix this
> yourself, or modify the source as per the description in the bug
> (basically remove the double brace {{1}} to make it {1})
>
> -- Ketan

Thanks for the information Ketan. It looks like the defect is marked as
targeted for the 2.0.0 release. I am using the latest version of the
SWTBot jars that I could find, 2.0.0.1115-dev. Is there a nightly build
going to happen any time soon that will incorporate the fix for this defect?

Joe
Re: IllegalArgumentExceptions in logging for simple test case [message #6142 is a reply to message #6129] Thu, 04 December 2008 03:53 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 4/12/08 01:25, Joe Luebker wrote:
> Thanks for the information Ketan. It looks like the defect is marked as
> targeted for the 2.0.0 release. I am using the latest version of the
> SWTBot jars that I could find, 2.0.0.1115-dev. Is there a nightly build
> going to happen any time soon that will incorporate the fix for this
> defect?

I've pushed out revision 1164[1] which is the last nightly that'll be
available on sf.net. Revisions after that have undergone major changes
in terms of renaming all things net.sf.swtbot to org.eclipse.swtbot.

Enjoy!

[1] http://swtbot.sourceforge.net/artifacts/2.0-dev/

-- Ketan
Re: IllegalArgumentExceptions in logging for simple test case [message #6155 is a reply to message #6142] Thu, 04 December 2008 22:21 Go to previous message
Joe Luebker is currently offline Joe LuebkerFriend
Messages: 36
Registered: July 2009
Member
Ketan Padegaonkar wrote:
> On 4/12/08 01:25, Joe Luebker wrote:
>> Thanks for the information Ketan. It looks like the defect is marked as
>> targeted for the 2.0.0 release. I am using the latest version of the
>> SWTBot jars that I could find, 2.0.0.1115-dev. Is there a nightly build
>> going to happen any time soon that will incorporate the fix for this
>> defect?
>
> I've pushed out revision 1164[1] which is the last nightly that'll be
> available on sf.net. Revisions after that have undergone major changes
> in terms of renaming all things net.sf.swtbot to org.eclipse.swtbot.
>
> Enjoy!
>
> [1] http://swtbot.sourceforge.net/artifacts/2.0-dev/
>
> -- Ketan

Thanks Ketan. I just installed that build and verified that the issue is
fixed in it.

Joe
Previous Topic:Other SWT functional testing tools
Next Topic:documentation of swtbot 2.0
Goto Forum:
  


Current Time: Fri Sep 17 08:10:31 GMT 2021

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

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

Back to the top