Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP xl fiile issue
#1
Not Solved
Hi All

I am extracting data from a web table.
My first test iteration generates a error, according to my recovery scenarios at that time it goes to next iteration. After all the iterations i checked my Default.xls file which is located at report folder , Issue was there,
according to the test case first row of the xl file should be empty, second line should be filled. but in this case second row data goes to first row,
this happen only for first iteration fail , in other cases it work fine , what can be the problem ,
what should i do ?

Thanks
Reply
#2
Not Solved
Hi,
Use
Code:
DataTable.SetCurrentRow(1)

or
Code:
DataTable("SheetName").SetCurrentRow(1)
Reply
#3
Not Solved
Hi
Thanks for the reply ,
Sorry , Ramesh i didn't got what you mean,
can you please explain what should i do ?
where should i place above code stuff.

Thanks
Reply
#4
Not Solved
Hi,
Which ever row test data, you would like to use, point to that ROW, by the statements I told,

If you are lookign to use 2nd row test data, SetCurrentRow(2)
Reply
#5
Not Solved
Hi Rammy

I placed it my expert view, but same error happen , i used

Code:
DataTable.SetCurrentRow(2)


This line is perfectly set for 2nd and 3rd iterations , but 1st iteration it not set well, that mean when 1st iteration it default set to 1st row.

What can be the issue ?

Thanks
Reply
#6
Not Solved
when you set to first row, why and how it is pointing to second row, it sohuldn't happen, you can provide more details or code, I'll be able to analyze better
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)