Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about first iteration
#1
Not Solved
When i run my test, my action will be executed step by step through all of scripts. When i have many data, the test will execute many iterations.
In the first iteration, the test will run all of the scripts. but remaining iteration, i want to ignore some steps.
Exam:
I want this script just run in first iteration
Datatable.import("...")

how must i do?
Reply
#2
Not Solved
Question is not clear for me, Pls give some more info.
Reply
#3
Not Solved
Hi Sekhan,

Take help of "ActionIteration" environment variable. It returns the action iteration number.

As for your emample, put the code below in the first line of the action in which you want to import value to DataTable.

Code:
If Environment("ActionIteration") = 1 Then
   DataTable.Import.......
End If

You can make use of this condition at any point of any action

Hope it will help you Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 973 04-23-2020, 07:08 PM
Last Post: BGunay
  UFT Tool runs more than one iteration always cthossain 2 3,750 02-12-2017, 01:25 PM
Last Post: cthossain
  Function return value is not passed during the 3rd iteration premanand1979 0 2,262 10-16-2014, 09:40 PM
Last Post: premanand1979
  Iteration in Local sheets for UFT11.5 haithamQTP 1 3,204 02-27-2014, 09:12 AM
Last Post: supputuri
  Parameter iteration bistritapcv 1 3,402 03-28-2013, 10:40 AM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 1 Guest(s)