Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to test NatTable using swtbot?(How to test natTable automatically)
How to test NatTable using swtbot? [message #1412042] Mon, 25 August 2014 06:33 Go to next message
Eclipse GuestFriend
Messages: 93
Registered: February 2013
Location: Vienna
Member
I am a automation tester using SWTBot as our test tool. Now there is a natTable in our product. You can see it in attached pic.

the function for this table is:
1. Click the add button, you can add row in the natTable.
2. We update the Name Type, and Value column value.
3. We can also add another column "ff", see attached pic NatTable2.pic


Can you give me some example code to test this NatTable?
  • Attachment: NatTable.PNG
    (Size: 70.72KB, Downloaded 360 times)
  • Attachment: NatTable2.PNG
    (Size: 135.63KB, Downloaded 309 times)
Re: How to test NatTable using swtbot? [message #1412109 is a reply to message #1412042] Mon, 25 August 2014 10:01 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Thye Nattable widget seems to be a "root" widget (extending directly
Canvas, not a SWT Widget, Table or something else), so there is no
method to deal with it in SWTBot.

Apparently, there have been some initiatives to integrate NatTable and
SWTBot:
* http://eclipse.org/nattable/resources/NatTable_SWTBot.pdf
* http://www.eclipse.org/forums/index.php/t/207447/
But they're not part of SWTBot per se, although I guess the SWTBot
project would happily welcome it as an extension (similarly to how the
SWTBot for Nebula gallery was added).

Did you also ask on NatTable forum? You may get some more details there.
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:metacity sometimes makes SWTBot tests fail in Jenkins
Next Topic:wait until some condition
Goto Forum:
  


Current Time: Fri Dec 06 07:38:02 GMT 2024

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

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

Back to the top