关于RFT datapool问题请教
请问,如果想把录入页面的某些数据插入到 datapool怎么操作呢?谢谢 另外再请教一个问题,怎么从datapool取出数据赋值给script里面的变量呢,谢谢有没有这方面的资料啊 看完帮助再来提问吧
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();
} 取出了,然后插入datapool,怎么办,急求方法!
页:
[1]