Tapestry-TestNG with selenium reusable helper methods.

2012-12-06 Thread George Christman
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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry-TestNG with selenium reusable helper methods.

2012-12-06 Thread Alex Kotchnev
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
gchrist...@cardaddy.comwrote:

 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-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Tapestry-TestNG with selenium reusable helper methods.

2012-12-06 Thread George Christman
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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org