Thank you it worked. As the values are stored in Datasheet the run is executing more than one time. Now I have to force the iteration to 1.
On Fri, Nov 18, 2011 at 2:36 PM, Shalabh Dixit <[email protected]>wrote: > it's in-built qtp method of Datatable... Just use it as follows: > > Datatable.setcurrentrow(i) > > where i = row number in which you want to set the value in datatable. > > > > Regards > Shalabh Dixit > My QTP Blog <http://shalabhdixit.wordpress.com/> > > > > > On Sat, Nov 19, 2011 at 1:38 AM, Abraham Itty <[email protected]> wrote: > >> Can you add that function to my script. >> >> >> On Fri, Nov 18, 2011 at 1:57 PM, Ganesh muralidharan <[email protected] >> > wrote: >> >>> use setcurrentrow() >>> >>> On Fri, Nov 18, 2011 at 2:46 PM, Abraham Itty <[email protected]> wrote: >>> >>>> How can I save runtime value in datatable: >>>> >>>> Scenario : >>>> There are more than 200 WebElement of Tag Type=TR, I am retrieving >>>> InnterText property value of all the WebElement. I want to transfer >>>> InnerText value to sepearate rows of column "TRElement" >>>> >>>> Script : >>>> >>>> Set oDesc=Description Create() >>>> oDesc("html tag").Value="TR" >>>> oDesc("micclass").Value='WebElement" >>>> Set TRTags=Browser("ENOVIA").Page("ENOVIA").ChildObjects(ODesc) >>>> NumberofTRTags=TRTags.Count() >>>> For i=0 to NumberofTRTags >>>> Datatable.Value("TRElement")=TRTags(0).GetROProperty("innertext") >>>> Next >>>> >>>> How can I change the row, currently I am overwriting the values.... >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> "QTP - HP Quick Test Professional - Automated Software Testing" >>>> group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/MercuryQTP?hl=en >>> >>> >>> >>> >>> -- >>> Regards, >>> >>> >>> Ganesh Muralidharan >>> 'God Never Forgets' >>> >>> -- >>> You received this message because you are subscribed to the Google >>> "QTP - HP Quick Test Professional - Automated Software Testing" >>> group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/MercuryQTP?hl=en >> >> >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en >> > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
