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:
What should i change?
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