Originally Posted by
lucknow.neeraj
This is the login funtion i have created. It is running well, but the problem is that i can not stop the loop. any one can solve my problem?
Function login()
datatable.Import "E:\Neeraj_data\QTP prac\QTP framwork\PO7\Data Pool\LoginData.xls"
a=datatable.GetRowCount()
For i= 1 to a
datatable.SetCurrentRow(i)
Browser("Logon ProjectObjects").Page("Logon ProjectObjects").WebEdit("UserId").Set datatable.Value(1,1)
Browser("Logon ProjectObjects").Page("Logon ProjectObjects").WebEdit("password").Set datatable.Value(2,1)
Browser("Logon ProjectObjects").Page("Logon ProjectObjects").Link("Login").Click
Browser("Logon ProjectObjects").Page("Home Page").Link("Logoff").Click
Next
End Function