Use both depending on the scenarios.
Thanks,
Sandeep
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 WithSecond 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).ClickThanks 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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
1st one is static descriptive programing and second one is dynamic descriptive programing
--
--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
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 mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mercuryqtp/c0C5R-CBEfc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mercuryqtp+...@googlegroups.com.