Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a variable list to use throughout my scripts
#1
Not Solved
I have been trying a few different way to create and use a list of variables throught my tests and scripts. I must be doing something wrong as the variables disapear as the Library is left.

Currently, from my Test script, I call a function as below:

Code:
Public Function ImageAccessVariableList ()

Set objQTPApp  = CreateObject("QuickTest.Application")
Set objQTPLibraries = objQTPApp.Test.Settings.Resources.Libraries
If objQTPLibraries.Find("O:\QTP Tests\Objec Repository\ImageAccessVariableList.txt") <> -1 Then
    objQTPLibraries.Remove "O:\QTP Tests\Objec Repository\ImageAccessVariableList.txt"
    Reporter.ReportEvent micFail, "Image Access Variable List"& DataTable.GlobalSheet.GetCurrentRow, "The 'ImageAccessVariableList.txt' file was Not found.")
    ExitTestIteration
End If

End Function
What should i change?
Reply


Messages In This Thread
Creating a variable list to use throughout my scripts - by mv8167 - 02-10-2012, 10:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Excel template for mapping manual scripts to Automation scripts. ACCBAJPA 0 2,965 09-19-2013, 03:02 PM
Last Post: ACCBAJPA
  Creating Random String SomeIntern 0 5,080 08-21-2013, 09:10 PM
Last Post: SomeIntern
  Problem in creating excel object kriday 1 2,358 07-13-2013, 12:45 PM
Last Post: Ankur
  Creating multiple lines under a header - SAP Fredodo 7 5,839 01-02-2013, 04:54 PM
Last Post: Saleel Prabhu
Shy Resetting a variable list vbs file mv8167 0 2,060 11-03-2012, 12:23 AM
Last Post: mv8167

Forum Jump:


Users browsing this thread: 1 Guest(s)