> selecting mobile model in the forms is depending on the test data you can create data table
data | model ------------------- d1 | m1 On Mon, Dec 22, 2008 at 8:43 PM, 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$ContentPlac > > eHolder1$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 -~----------~----~----~----~------~----~------~--~---
