power_settings_new

Can I pass parameters at @BeforeTest as well?

by
asked
0 votes
79 views

I see that I can pass parameters using @Parameters to @Test as mentioned in below URL 

http://softwaretestingboard.com/qa/33/how-to-pass-parameters-using-testng-xml
 

Can I pass it in @BeforeTest as well?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (171 points)
selected by
0 votes
 
Best answer
Yes you can. You can pass parameters at @BeforeTest level.
add
...