how can i handle WinEdit in Descriptive programing.
I have a web form that repeats WinEdits like

Firstname - Firstname
Lastname - LastName
DOB - DOB...etc

When I object spy, all of them have similar properties..

after I do this I need to parametrize so that it does it multiple times and 
displays save sucessfuly popup.

any Help is appreciated


george

On Wednesday, September 5, 2012 4:43:13 AM UTC-4, ras2011 wrote:
>
> With with statement you can save from memory and that is reduces 
> memory risc fail erros during your test runs. 
>
> I do not use with et all and I do not use Description object as long 
> as I do not need it. 
>
> 2012/9/5, Akhalesh Yadav <[email protected] <javascript:>>: 
> > Second way is the best approach for this you can reduce the no of errors 
> at 
> > run time. 
> > 
> > Thanks 
> > Akhalesh 
> > 
> > On Sat, Sep 1, 2012 at 2:11 AM, Kureti Eeswari 
> > <[email protected] <javascript:>>wrote: 
> > 
> >> Hi All, 
> >> 
> >> I am new to QTP ,Pls guide me how we write Descriptive programming in 
> >> realtime either in first way or in second way. 
> >> 
> >> First  way: 
> >> 
> >> With Dialog("text:=Login") 
> >>     .WinEdit("attached text:=Agent Name:").Set "abcd" 
> >>     .WinEdit("attached text:=Password:").Set "mercury" 
> >>     .WinButton("text:=OK").Click 
> >> End With 
> >> 
> >> 
> >> Second way: 
> >> 
> >> 
> >> Dim d,a,p 
> >> Set d=Description.Create 
> >> d("text").value="Login" 
> >> Set a=Description.Create 
> >> a("attached text").value="Agent Name:" 
> >> Set p=Description.Create 
> >> p("attached text").Value="Password:" 
> >> Set k=Description.Create 
> >> k("text").value="OK" 
> >> Dialog(d).WinEdit(a).Set "abcd" 
> >> Dialog(d).WinEdit(p).Set "mercury" 
> >> Dialog(d).WinButton(k).Click 
> >> 
> >> 
> >> Thanks All 
> >> 
> >> 
> >> 
> >> 
> >> -- 
> >> 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]<javascript:> 
> >> To unsubscribe from this group, send email to 
> >> [email protected] <javascript:> 
> >> For more options, visit this group at 
> >> http://groups.google.com/group/MercuryQTP?hl=en 
> >> 
> > 
> > 
> > 
> > -- 
> > Akhalesh yadav 
> > +919555717928 
> > +919310680659 
> > 
> > -- 
> > 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]<javascript:> 
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:> 
> > For more options, visit this group at 
> > http://groups.google.com/group/MercuryQTP?hl=en 
> > 
>
>
> -- 
> Rasim Avcı 
>

-- 
-- 
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 Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to