|
Execute "Call testNo" & testCaseNum & "(testInData, """ & fileName & """, testOutData)"
想得到: Execute Call testNo1-1(testInData, "PJAB4110", testOutData), 但是在QTP里调式出来却是Execute Call testNo1-1(testInData, ""PJAB4110"", testOutData), 不对,我又改成:Execute "Call testNo" & testCaseNum & "(testInData, " & Chr(34) & fileName & Chr(34) & ", testOutData)",还是得到了Execute Call testNo1-1(testInData, ""PJAB4110"", testOutData),还是不对,该怎么写啊???
我现在改成:
Dim srtCall
srtCall = "Call testNo" & testCaseNum & "(testInData, " & Chr(34) & fileName & Chr(34) & ", testOutData)"
msgbox srtCall
Execute srtCall
再调试发现msgbox srtCall 出来的结果是对的Call testNo1-1(testInData, "PJAB4110", testOutData), 但是把srtCall ADD TO WACHT 一看就不对了Execute Call testNo1-1(testInData, ""PJAB4110"", testOutData),看来QTP本身解析有问题啊?
[ 本帖最后由 lyj841120 于 2009-9-30 15:12 编辑 ] |
|