You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by George Christman <gc...@cardaddy.com> on 2012/12/06 18:00:51 UTC

Tapestry-TestNG with selenium reusable helper methods.

Hello, I'm very new to the automated testing world and have a couple
questions. I'm wondering what the best practice for setting up reusable
helper methods for testing. Should I be extending SeleniumTestCase with my
own test methods, or should I be using a service?

If the best way to do this is with a service, how would I get Tapestry
services to work with Tapestry-TestNG and selenium. 




--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-TestNG-with-selenium-reusable-helper-methods-tp5718524.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry-TestNG with selenium reusable helper methods.

Posted by George Christman <gc...@cardaddy.com>.
Thanks Alex, I extended the Selenium class as suggested. 



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-TestNG-with-selenium-reusable-helper-methods-tp5718524p5718528.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry-TestNG with selenium reusable helper methods.

Posted by Alex Kotchnev <ak...@gmail.com>.
George,
   you should be extending SeleniumTestCase and just using plan
object-oriented principles to manage your code (e.g you could have some
utility clases with utility methods, possibly classes to encapsulate page
specific contents, etc). Trying to put your functional test related code
into services sounds like a bad idea (e.g. your test infrastructure will be
depending on the stuff you're testing).

Cheers - Alex K

On Thu, Dec 6, 2012 at 12:00 PM, George Christman
<gc...@cardaddy.com>wrote:

> Hello, I'm very new to the automated testing world and have a couple
> questions. I'm wondering what the best practice for setting up reusable
> helper methods for testing. Should I be extending SeleniumTestCase with my
> own test methods, or should I be using a service?
>
> If the best way to do this is with a service, how would I get Tapestry
> services to work with Tapestry-TestNG and selenium.
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry-TestNG-with-selenium-reusable-helper-methods-tp5718524.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>