Hi Kousaliya,
Keep the checkbox logical name in test data of the scenario.
mobiletype=DataTable("columnName","Sheetname")
Browser("Browser").Page("xxxx").*WebCheckBox(mobiletype).*Set "ON"Regards, Kishor On Tue, Dec 23, 2008 at 10:13 AM, kowsaliya rani <[email protected]>wrote: > Hi , > > I got struck with a logic of reusing a script.. > > scenario is...It is about selecting a mobile model(which is of type * > checkbox)*.(selecting mobile model in the forms is depending on the test > data) > > I have written a test script for selecting one mobile model,If test data > changes that is to select different model or more than two models..How I > have to proceed with the test script. > > > Can I reuse the same script?If possible can anyone guide me in doing so? > I have given the script below. > Browser("Browser").Page("xxxx").WebEdit("username").Set grd > Browser("Browser").Page("xxxx").*WebCheckBox("mobilemodel1").*Set "ON" > amt=datatable.Value("Ammount") > Browser("Browser").Page("xxxxxx").WebEdit("ctl00$ContentPlaceHolder1$txtC").Set > amt > Browser("Browser").Page("xxxxx").WebButton("Insert").Click > > > Regards, > Kowsaliya > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
