Hello,
Hope this will help for my friends who is trying to use data pool for dynamic values.If you want to use any run time values in between scripts then you will be looking for the functions to read/write/create datapool cells dynamically.
Hope this will help for my friends who is trying to use data pool for dynamic values.If you want to use any run time values in between scripts then you will be looking for the functions to read/write/create datapool cells dynamically.
/************
Dp row count *************************/
IDatapoolIterator ite;
ite.dpCurrent().getEquivalenceClass().getRecordCount();
/*****************
to set cell value **************/
IDatapoolIterator it;
((DatapoolCell)
it.dpCurrent().getCell("RunTimeSheetForContainers")).setCellValue("Y");
/***********
to load CSV files (csv to Datapool)*******************************/
public
IDatapoolIterator LoadCSV(String Sname)
{
File fname=getFileName(Sname);
IDatapool dp=DatapoolUtilities.loadCSV(fname,",",true);
IDatapoolIterator
ii=dpFactory().open(dp, null);
ii.dpInitialize(dp);
return ii;
}
/*********** appending a record *********************************/
public
IDatapoolIterator appendrecord(IDatapoolIterator it,String[][] dat)
{
IDatapoolEquivalenceClass
equivalenceClass = (IDatapoolEquivalenceClass)
it.getDatapool().getEquivalenceClass(it.getDatapool().getDefaultEquivalenceClassIndex()
);
IDatapoolRecord dpRecord =
equivalenceClass.constructRecord();
if(dat!=null)
for(int i=0;i<dat.length;i++)
{
// System.out.println("\""+dat[i][0]+"\"\""+dat[i][1]+"\"");
((DatapoolCell)
dpRecord.getCell(dat[i][0])).setCellValue(dat[i][1]);
}
equivalenceClass.appendRecord(dpRecord);
return it;
}
Excellent blog on RFT. Looking for software courses?
ReplyDeleteGerman Classes in Chennai
Big Data Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
Digital Marketing Training in Chennai
web designing course in chennai
web designing course in Tambaram
web development courses in chennai
IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.
DeleteIEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.
corporate training in chennai corporate training in chennai
corporate training companies in india corporate training companies in india
corporate training companies in chennai corporate training companies in chennai
I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai
Thanks for sharing a worthy information. This is really helpful. Keep doing more.
ReplyDeleteAndroid Training Institute in Chennai | Android Training Institute in anna nagar | Android Training Institute in omr | Android Training Institute in porur | Android Training Institute in tambaram | Android Training Institute in velachery
"Hi! Thank you for the share this information. This is very useful information for online blog review readers. Keep it up ..
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"
Your Blog is really awesome with helpful post..keep updating such an excellent post with us..
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery