I am performing unit testing using TestNG where I am testing my code using test cases defined in xml file.
I am performing login operation using the test case defined in xml file. But the catch is I want to send parameter as usersname and password in method login.
Is it possible to pass value(username and password) to login method in xml file where testcases are executed?
Following is my XML file
<suite name="Suite" parallel="none">
<test name="Test">
<classes>
<class name="com.common.Login">
<methods>
<include name="login"/>
</methods>
</class>
<class name="com.tmp.Documentrepository"/>
</classes>
</test>
</suite>
Thanks