51Testing软件测试论坛

标题: 关于RFT datapool问题请教 [打印本页]

作者: ymcy_t    时间: 2008-7-22 10:09
标题: 关于RFT datapool问题请教
请问,如果想把录入页面的某些数据插入到 datapool怎么操作呢?谢谢
作者: ymcy_t    时间: 2008-7-22 10:32
另外再请教一个问题,怎么从datapool取出数据赋值给script里面的变量呢,谢谢
有没有这方面的资料啊
作者: 刀客    时间: 2008-7-22 16:28
看完帮助再来提问吧
作者: intothestorm    时间: 2008-10-15 11:03
标题: get string value from datapool sequentially
import org.eclipse.hyades.edit.datapool.*;
import org.eclipse.hyades.edit.datapool.IDatapool;
import org.eclipse.hyades.execution.runtime.datapool.*;

IDatapool dp = (IDatapool) this.getDatapool();
                IDatapoolIterator dpIter = this.dpFactory().open(dp, null);
                dpIter.dpInitialize(dp);
                String str = new String("");
                while ( !dpIter.dpDone() )
                {                               
                        // Insert actions using dpIter based references to the datapool
                        //Get the current datapool record
                        dpIter.dpCurrent();
                        //str = dpIter.dpString("TestcaseTitle");
                        str = dpIter.dpString(0);

                        System.out.println(str);
                       
//                        Move the pointer to next record
                        dpIter.dpNext();
                }
作者: amokeeper    时间: 2009-7-16 19:06
取出了,然后插入datapool,怎么办,急求方法!




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2