1st one is static descriptive programing and second one is dynamic descriptive programing On Sep 1, 2012 5:59 PM, "chaman kalra" <[email protected]> wrote:
> Both methods are fine , You can judge yourself which method to use in > which scenerio > > On Sat, Sep 1, 2012 at 7:47 AM, Sandeep PL <[email protected]> wrote: > >> Use both depending on the scenarios. >> Thanks, >> Sandeep >> On 01-Sep-2012 3:49 AM, "Kureti Eeswari" <[email protected]> >> 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] >>> 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 >> > > > > -- > Thanks & Regards > Chaman Kalra > Email :[email protected] > > > > > > -- > 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
