Variable for RxPath from Excel
Posted: Wed May 23, 2012 10:29 am
Hi,
how can I read out the value for a RxPath from an excel document properly?
I tried the following:
My testcase fails and the report says:
Invalid RxPath 'repo.WebDocumentBDT_BaseLine.Service.Img_ServicePage'. Invalid character at character position 4.
If I do it with the path instead of the variable, the test passes:
Why does the test fail if I use my "RepoPath" variable?
how can I read out the value for a RxPath from an excel document properly?
I tried the following:
Code: Select all
'Module variable for the repository item to compare the screenshot with
Dim _RepoPath As String
<TestVariable("3BBF473C-2916-4189-997E-047A84105538")> _
Public Property RepoPath As String
Get
Return _RepoPath
End Get
Set(ByVal value As String)
_RepoPath = value
End Set
End Property
Dim CapturedImage As Bitmap = Imaging.CaptureImage(RepoPath)
My testcase fails and the report says:
Invalid RxPath 'repo.WebDocumentBDT_BaseLine.Service.Img_ServicePage'. Invalid character at character position 4.
If I do it with the path instead of the variable, the test passes:
Code: Select all
Dim CapturedImage As Bitmap = Imaging.CaptureImage(repo.WebDocumentBDT_BaseLine.Service.Img_ServicePage)