????QTP--SystemUtil????
????SystemUtil???????????÷?????
????1. "SystemUtil.Run"
????syntax:   SystemUtil.Run file??[params]??[dir]??[op]??[mode]
????"file"    ????????????????е???????????
????"params"  ????????file??????????????????????????????????params???????????????????????в?????
????"dir"     ???????ó????????????????
????"op"      ????????????е??????????ò?????????????????open??????
????"mode"    ??????????ó????????????????????????????????????????1??
?????????F?????????±???
????SystemUtil.run"notepad"??"F:???.txt"
??????????????
????Dim strURL
????strURL="www.baidu.com"
????SystemUtil.Run "IEXPLORE.EXE"??strURL
????2. "SystemUtil.BlockInput" and "SystemUtil.UnblockInput"
????syntax: SystemUtil.BlockInput
????SystemUtil.UnblockInput
?????????????????????????????й????н???????????????????????????
????3. "SystemUtil.CloseDescendentProcesses"
????syntax: SystemUtil.CloseDescendentProcesses
????????佫??????QTP???????н????

 

eg.
SystemUtil.BlockInput  '???????????
SystemUtil.CloseDescendentProcesses '????????QTP????????
SystemUtil.Run "3.txt"??""??"D:"??"open"  '??D???????“3.txt”????????????????????
SystemUtil.Run "iexplore.exe"??"www.baidu.com"??"C:Program FilesInternet Explorer" '??IE?????????
SystemUtil.UnblockInput '??????
function showMiniAd()
{
var vn = "tinfo";
var dataURL = "http://t.sohu.com/third/user.jsp?passport="+window._xpt+"&vn="+vn; new LinkFile(dataURL?? { type: 'script'?? noCache: false?? callBack: { variable: vn?? onLoad: function(){ var data = eval("(" + vn + ")") if(data != null && data.status == 1){ var userLink = data.url; //var userLink = data.icon; $('miniAd').innerHTML = "????????????????????“???”??????????????ɡ?
"+userLink+""; $('miniAd').show(); } }??
onFailure: function(){} }});
}
showMiniAd();