Payal,
Try the code structure given below. This is a case of control flow (knowledge of programming and debugging related issue) and not related to TC tool.
function User_Registration_Form_TestDriver()
{
//....
//...
//...
while (! Driver.EOF() )
{
User_Registration_Form_ProcessData();// Processes data
//Click your Reset Button here
ResetButton.Click();
Driver.Next(); // Goes to the next record
}
// Closing the driver
DDT.CloseDriver(Driver.Name);
iexplore.IEFrame.Close();
}
function User_Registration_Form_ProcessData()
{
//....
//...
//....
for(i=0 ;i<DDT.CurrentDriver.ColumnCount; i++)
{
//....
//...
//....
if(i<=DDT.CurrentDriver.ColumnCount)
{
table.cellRegistrationfieldtxt.table.cell1.panelButtonBlueDisplay.submitbuttonSubmit.Click();
}
//Delete the Else Part from here it wont be invoked in any case
}
{