Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with UFT Actions
#1
Hi ,

I am trying to parameterize the actions and below is the code which I had designed
Code:
Datatable.ImportSheet "Q:\Excel.xls","Sheet1","Action1" a=datatable.GetSheet("Action1").GetRowCount For i= 1 to a Datatable.GetSheet("Action1").SetCurrentRow(i) If datatable.Value("OracleDatabase","Action1")<>"" Then RunAction Datatable.Value("Scriptname","Action1"), oneIteration,"Oracle" msgbox Datatable.Value("Scriptname","Action1") End If If datatable.Value("SQLdatabase","Action1")<>"" Then RunAction Datatable.Value("Scriptname","Action1"), oneIteration msgbox Datatable.Value("Scriptname","Action1") End If RunAction "Action1 [MediumSanityWF12]", oneIteration Next

and the test data sheet is
Scriptname OracleDatabase SQLdatabase Access
Action1 [GUITest1] Yes Yes
Action1 [GUITest2] YEs Yes


The problem here is, when I was running the above code , for the first iteration "Action1 [GUITest1]" is being executed and it is correct.
In the second iteration, for oracle database,"Action1 [GUITest2]" script executed and for SQL database again "Action1 [GUITest1]" got executed. As per my understanding it should execute "Action1 [GUITest2]" action only as I used the setcurrentrow method of datatable.
I little confused here why it is executing the "Action1" for SQL database instead of "Action2" in the second iteration?

Please make me clear on this.

Thanks,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UFT RESTFUL API. Please pass json issue kul20 0 2,770 08-06-2018, 07:16 PM
Last Post: kul20
  UFT - ALM Integration Issue vivek 0 2,295 04-22-2016, 04:36 PM
Last Post: vivek
  UFT 12.02 GUITest creation Issue AMajumdar 1 2,713 09-13-2015, 01:24 AM
Last Post: ADITI1992
  UFT 11.53 and QC ALM Integration Issue prs2014 0 3,176 11-20-2014, 02:59 AM
Last Post: prs2014
  How to call Actions from other Actions Naresh 1 8,580 09-25-2014, 10:26 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)