Use GetROProperty and SetTOProperty for that object or use ordinal 
identifiers


T & R,
Kaush

On Tuesday, February 19, 2013 7:21:05 PM UTC+5:30, Gautham wrote:
>
> I am not really sure if QTP has the ability to add objects to the OR 
> during Playback..
> You can try using the Ordinal identifiers to recognise the objects
>
> On Tue, Feb 19, 2013 at 3:35 PM, Rajesh <[email protected] <javascript:>
> > 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]<javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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] <javascript:>.
>> 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