Hello,

Since you know the properties of the object.

1. Create a button object using those properties (if you are using the name
property use Regular expression)
2. In a loop click the button object and check if the new button object is
created (You can use If... Then statement). If it is not created exit loop
and test fails

Thanks


On Tue, Feb 19, 2013 at 5:05 AM, Rajesh <[email protected]> wrote:

> Hi,
>
> The AUT creates a new button everytime a record is created. This is done
> using Control array in VB 6.0.
>
> How shouled one test the scenario of clicking this new button created at
> runtime ? I know the properties of this control but the problem is that it
> cannot be added to the repository before the test because the control name
> changes like button_1, button_2 etc.
>
> If I Record the script by clicking button_1, then during playback the
> button created is named button_2 and added to the repository automatically.
>
> Please let me know how to handle this scenario.
>
> Regards,
> Rajesh.
>
>
>  --
> --
> 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.
>
>
>

-- 
-- 
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