Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Multiviews
Multiviews [message #543160] Mon, 28 June 2010 11:06
Vis  is currently offline Vis
Messages: 1
Registered: June 2010
Junior Member
Hi,
I'm a newbie to SWTBot. Trying to use it for testing an Eclipse Application.

The application basically has got a tree view and content viewer(a view containg 2 pages). When the user selects and Item in the tree viewer, relevant information is dispalyed in the content viewer. The content viewer is a multiview page which has two tabbed pages.

I'm able get a handle to active view by

SWTBotView exampleView = workbenchBot.activeView();
final IViewPart viewPart = view.getViewReference().getView(true);
Assert.assertTrue(viewPart instanceof MyMultiPageview);

So far so good..
Now, I'm trying to find a way to assert that the content viewer(opened when clicked on the tree item) has infact 2 tabbed pages.

Any help reagrding this will be very much appreciated

Thanks in advance,
Visu
Previous Topic:SWTBOT RCP 3.12
Next Topic:SWTBOT record and playback
Goto Forum:
  


Current Time: Wed Aug 27 23:24:14 EDT 2014

Powered by FUDForum. Page generated in 0.01445 seconds