RFT中数据池数据驱动测试代码
上一篇 /
下一篇 2010-07-21 17:00:57
/ 个人分类:转载
public void testMain(Object[] args)
{
// Group: msnmsgr.exe:
Windows Live Messenger
DatapoolScriptSupport dpss=new DatapoolScriptSupport();//加载并初始化数据池
IDatapool dp;
File dpfile=new File("C:\\Documents and Settings\\lijunwei\\IBM\\rationalsdp\\workspace\\msn_test_study\\TestDatapool1.rftdp");
dp = dpss.dpFactory().load(dpfile,true);
IDatapoolIterator dpitr = dpss.dpFactory().open(dp, "");
dpitr.dpInitialize(dp);
while(!dpitr.dpDone())
{
IDatapoolRecord dprec = dpitr.dpCurrent();
windowsLiveMessengerwindow().inputChars(dprec.getCell("email").getStringValue());
dpitr.dpNext();
}
}
}
收藏
举报
TAG: