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:

 

评分:0

我来说两句

日历

« 2024-04-16  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 53221
  • 日志数: 41
  • 文件数: 3
  • 书签数: 2
  • 建立时间: 2010-03-01
  • 更新时间: 2013-10-24

RSS订阅

Open Toolbar