Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP vbscript ArrayList strange behavior
#1
Not Solved
This might be self-explanatory, but I realy don't understand what's wrong. It would be great if someone else saw it, and enlightened me.

If I try using the value in an ArrayList directly, with QTP's LoadAndRun function, it doesn't work. However, if I copy the values from the ArrayList into variables first, then it works.

This works:

Code:
test1 = testActionArray(1)(0)
test2 = testActionArray(1)(1)

LoadAndRunAction "C:\share\Test Automation\Flight Reservation Application\UFT Tests\" & test1,test2, oneIteration

But this does NOT work:

Code:
LoadAndRunAction "C:\share\Test Automation\Flight Reservation Application\UFT Tests\" & testActionArray(1)(0),testActionArray(1)(1), oneIteration

It's the same ArrayList, in the same script. When doing this in a normal vbscript, it works as expected. But if I try to use it with LoadAndRunAction in QTP, it simply doesn't work.

Anyone got any ideas?
Reply


Messages In This Thread
QTP vbscript ArrayList strange behavior - by frankhovin - 11-10-2013, 12:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Drag and Drop Annoying QTP Behavior ShaneP 1 4,921 08-21-2015, 07:25 PM
Last Post: Nj_Acc
  qtp vbscript issue nikithak 1 2,333 02-24-2014, 06:42 PM
Last Post: guin.anirban
  Unexpected Behavior of Reporter.Reportevent chinmaya chirasundara nayak 3 3,746 12-03-2013, 10:43 AM
Last Post: kotaramamohana
  How to retrieve ArrayList saved in Environment Variable Gautam26 8 4,758 11-07-2013, 08:26 PM
Last Post: ssvali
  Can any of the line in notepad file be appended/updated/modified via QTP(VBScript)? rookie_automator 1 2,557 08-22-2013, 07:13 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)