Hi All,
Anyone could you please guide me, how to reduce the code(single line or two
lines).
Here, i am using 4 lines to create, assign and implement a same object, is
any other way to reduce the code ? Please share me your knowledge. Thanks in
advance.
Set a = Description.Create
Set b = Description.Create
Set c = Description.Create
Set d = Description.Create
a("micclass").value="WebCheckBox"
b("micclass").value="WebCheckBox"
c("micclass").value="WebCheckBox"
d("micclass").value="WebCheckBox"
Set
basepage=Browser("Micclass:=Browser").Page("Micclass:=Page").Checkbox("name:=a").set
"on"
Set
basepage=Browser("Micclass:=Browser").Page("Micclass:=Page").Checkbox("name:=b").set
"on"
Set
basepage=Browser("Micclass:=Browser").Page("Micclass:=Page").Checkbox("name:=c").set
"on"
Set
basepage=Browser("Micclass:=Browser").Page("Micclass:=Page").Checkbox("name:=d").set
"on"
Regards,
Tamilselvan
--
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