|Multiviews [message #543160]
||Mon, 28 June 2010 15:06
Registered: June 2010
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,
Powered by FUDForum
. Page generated in 0.03930 seconds