Difference between @beforesuite and @beforetest

2,033 views
Skip to first unread message

nagarajan raman

unread,
Nov 2, 2011, 5:21:13 AM11/2/11
to Selenium Users
I read on TestNG website about @beforetest and @beforesuite but I didn
get exact functionality.
Can any one explain me whats the exact difference between @beforetest
and @beforesuite.

Thanks,
Nagarajan.

nagarajan raman

unread,
Nov 2, 2011, 5:22:13 AM11/2/11
to Selenium Users

suraj sudhakaran

unread,
Nov 2, 2011, 5:38:06 AM11/2/11
to seleniu...@googlegroups.com
@beforesuite is something which is run before the testsuite (before all the test cases inside a test suite). But @beforetest is someting which runs before a test case. If you want something to run before all the test case begins (May be starting the server), then include it inside then @beforesuite method. But if you want to run something before a particular test case, you can use @beforetest method.



Nagarajan.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


nagarajan raman

unread,
Nov 2, 2011, 5:41:50 AM11/2/11
to Selenium Users
Thanks Suraj..I got it...
Reply all
Reply to author
Forward
0 new messages