|
本帖最后由 wu7991 于 2012-11-26 11:31 编辑
手动编写的脚本如下:
InitParameter DataTable("exePath", dtGlobalSheet), Environment("TestName") '调用execl
parArr = ExecArr(yl_iterator,1) '获取第二个sheet
'所有参数
pName =SearchParVal(parArr,"pName")'
Plocal = SearchParVal(parArr,"Plocal")'
gName=SearchParVal(parArr,"gName")'
linkman=SearchParVal(parArr,"linkman")
cAddress=SearchParVal(parArr,"cAddress")
phone=SearchParVal(parArr,"phone")
CardId=SearchParVal(parArr,"CardId")
areaCode=SearchParVal(parArr,"areaCode")
row=SearchParVal(parArr,"row")
parcelId=SearchParVal(parArr,"parcelId")
sheetId=SearchParVal(parArr,"sheetId")
landId=SearchParVal(parArr,"landId")
landArea=SearchParVal(parArr,"landArea")
pDes=SearchParVal(parArr,"pDes")
'For Iterator = 0 To UBound(parArr)
' str = str & parArr(Iterator,1)&":" & parArr(Iterator,2) & chr(13)
'Next
SwfWindow("xxx系统2.1").SwfWindow("项目管理模式").SwfButton("新建项目").Click
SwfWindow("xxx系统2.1").SwfWindow("项目信息").SwfEdit("项目名称").select pName
SwfWindow("xxx系统2.1").SwfWindow("项目信息").SwfEdit("项目坐落").select Plocal
SwfWindow("xxx2.1").SwfWindow("项目信息").SwfEdit("单位人名称").select gName
调试的时候报swfedit不支持select的方法,麻烦问下如果我调用execl里面的参数应该用什么方法?
谢谢了 |
|