Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test settings RUN options
#1
Not Solved
Hi All,

Code:
Dim name(2)
For i =0 to UBound(name)
    name(i)=  DataTable("val", dtGlobalSheet)
    msgbox(name(i))
    datatable.SetNextRow
Next
I have entered 3 values in global sheet.

If i set Run on all Rows option O/P is
1st iteration 2nd Iteration 3rd Iteration
abc def ghi
def ghi abc
ghi abc def

If i set Run one iteration only O/P is
abc
def
ghi

I am not able to understand this O/P.I am using globalsheet data.Then why this test is running 3 times for run on all rows.

And if i remove datatable.setnextrow and run one iteration only o/p is
abc
abc
abc

for run on all rows o/p is
1st iteration 2nd iteration 3rd iteration
abc def ghi
abc def ghi
abc def ghi

As i know datatable.setnextrow is used only for localsheet data.

Can anyone please explain me
1)the difference between Run on all rows and Run one iteration only when using data in global sheet and action local sheet.
2)significance of datatable.setnextrow with globalsheet and actionsheet

Thank you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Send automatic email notification when test run started helmzshelmz 0 926 04-03-2020, 07:54 AM
Last Post: helmzshelmz
  Error while opening test run results vkalyankar 3 3,993 11-12-2014, 09:49 AM
Last Post: vinod123
  Hyperlink click is not automated in UFT 11.5 test run prinju 1 2,627 11-03-2014, 12:04 PM
Last Post: vinod123
  Test run cannot continue oak 1 4,622 11-03-2014, 10:54 AM
Last Post: vinod123
  How to run 3 of 5 actions in a test for all rows of test data mharps 1 2,765 04-10-2014, 04:26 AM
Last Post: mharps

Forum Jump:


Users browsing this thread: 1 Guest(s)