Forum Discussion
nassim
13 years agoOccasional Contributor
Hi,
trying to solve the possible scope problem, I defined a variable in my keywordtest as: strSPArray (for the type, I found Object type nearest to an array of objects, although I am not sure at all)
I changed the Sub populatestrSPArray:
Sub populatestrSPArray(i, h)
j = aqConvert.StrToInt(i)
Set testObj = ODT.Classes.New("SDP")
testObj.hh = h
testObj.cuts = Project.Variables.clientTimeStamp
Set strSPArray(j) = testObj
End Sub
I also wanted to add the line Redim KeywordTests.refEnvUsageTestFF.Variables.strSPArray(8) but the syntax is not correct (shown to be red in script by TestComplete)
Now I call just the Sub populatestrSPArray in my test.
An Exception occurs again: (translated:) Run time exception. The types are not compatible: strSPArray
Does anyone have an idea?
Why can a Keywordtest variable not redim(med) in script?
Thanks
trying to solve the possible scope problem, I defined a variable in my keywordtest as: strSPArray (for the type, I found Object type nearest to an array of objects, although I am not sure at all)
I changed the Sub populatestrSPArray:
Sub populatestrSPArray(i, h)
j = aqConvert.StrToInt(i)
Set testObj = ODT.Classes.New("SDP")
testObj.hh = h
testObj.cuts = Project.Variables.clientTimeStamp
Set strSPArray(j) = testObj
End Sub
I also wanted to add the line Redim KeywordTests.refEnvUsageTestFF.Variables.strSPArray(8) but the syntax is not correct (shown to be red in script by TestComplete)
Now I call just the Sub populatestrSPArray in my test.
An Exception occurs again: (translated:) Run time exception. The types are not compatible: strSPArray
Does anyone have an idea?
Why can a Keywordtest variable not redim(med) in script?
Thanks
Related Content
- 5 years agodbattaglia