Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Usage of Screen/Page Pattern (Helperbots)
Usage of Screen/Page Pattern (Helperbots) [message #489050] Thu, 01 October 2009 07:27 Go to next message
Michelle Davidson is currently offline Michelle Davidson
Messages: 41
Registered: August 2009
Member
Hello,

I'm interessted in the using of page/screen objects to write reusable tests.

But with google and the forums search I 't found only pages with few informations and mostly one methode which shows this pattern. At one page they was named helperbots

Has anyone a short but complete example I mean complete class of such an page/screen/ helperbot class or better an complete testplugin.

Or does you now a link, where I can find detailed information about this pattern?

Re: Usage of Screen/Page Pattern (Helperbots) [message #489072 is a reply to message #489050] Thu, 01 October 2009 08:45 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
http://code.google.com/p/webdriver/wiki/PageObjects is what I recommend
to users trying to understand page objects.

The examples use webdriver to explain things, but you'll get the flow of
how things work.

--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr

On 01/10/09 4:57 PM, Michelle Davidson wrote:
> Hello,
>
> I'm interessted in the using of page/screen objects to write reusable
> tests.
> But with google and the forums search I 't found only pages with few
> informations and mostly one methode which shows this pattern. At one
> page they was named helperbots
>
> Has anyone a short but complete example I mean complete class of such an
> page/screen/ helperbot class or better an complete testplugin.
>
> Or does you now a link, where I can find detailed information about this
> pattern?
Re: Usage of Screen/Page Pattern (Helperbots) [message #489592 is a reply to message #489050] Mon, 05 October 2009 03:36 Go to previous messageGo to next message
Michelle Davidson is currently offline Michelle Davidson
Messages: 41
Registered: August 2009
Member
Hello,

thanks for the link.

I n the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=280641 Kay-Uwe Graw wrote a small basic libary for the page object pattern.

I want to take this as a basic of my own page objects, which extend this page objects.

But there were a point, which I don't unterstand. In the constructor of his classes for example ViewPageobject he want to have a SWTWorkbenchBot /SWTBot Instance. That means when I create a instance of my pageObject in the tests I must have this bot-instance. But I think, with the page pattern, all swtbot functions remain in the page objects. But in his implementation I need the bot.

Re: Usage of Screen/Page Pattern (Helperbots) [message #489762 is a reply to message #489050] Mon, 05 October 2009 15:32 Go to previous message
Kay-Uwe Graw is currently offline Kay-Uwe Graw
Messages: 24
Registered: July 2009
Junior Member
Every SWTBotTest has its own bot instance which you can use to create the page objects. The reason of the page object pattern is to hide the way how you simulate the user interaction of your application (with the bot) for certain parts of your gui and not to hide the swtbot instance.

Kay
Previous Topic:How can you enable a cell editor in a tree viewer with multiple columns?
Next Topic:Version Tags for dev builds
Goto Forum:
  


Current Time: Thu Jul 31 15:48:40 EDT 2014

Powered by FUDForum. Page generated in 0.02821 seconds