Execute command here is calling a function?
On Wed, Feb 6, 2013 at 10:53 AM, Danny Laureano <
[email protected]> wrote:
> I'm trying to do a keyword driven framework and the Function where I call
> the different actions has different Case depending on the action I want to
> perform. What I have to do to eliminate the Execute Command?
>
> The control_object variable has the the hierarchy similar or equal to
> (Browser(arrParentProp(0)).Page(arrParentProp(1)).Frame(arrParentProp(2)).WebButton(arrParentProp(3))
>
> Why QTP is not only accepting ->->-> control_object.click
> here is part of my code;
> If you want to see all the function library see the attachment please.
> Code:
> Case "Click_Link"
> sExec = control_object &
> ".click"
> Execute (sExec)
>
> Case
> "Click_WebButton"
> sExec = control_object & ".click"
> Execute (sExec)
>
> 'Same thing happen with every case, for example *****
> Case "Run"
> sExec = "systemutil.Run" & sDataValue
> Execute (sExec)
> Browser("Main").Page("Main").Sync
> Browser("Main").Page("Main").WebList("Environment").Select
> "System Integration (UAT)"
>
> --
> --
> 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.
>
>
>
--
Regards,
Ganesh Muralidharan
'God Never Forgets'
--
--
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.