Hi Shilpa,
As Uma said, after executing the specified line of code again you can add
your required time.
For Ex:
Dim App 'As Application
Set App = CreateObject("QuickTest.Application")
App.Test.Settings.Run.ObjectSyncTimeOut = 0
'=================
Execute Your Block of Code
'==================
App.Test.Settings.Run.ObjectSyncTimeOut = 5000
I think it will help you to achieve what you are exepecting.
Regards,
Sedhu
On Tue, Mar 11, 2014 at 5:50 PM, shilpa gupta <[email protected]>wrote:
> Hi Uma,
> we are running 100+ scripts in QC and the default timeout setting need to
> be set for all the scripts (5 seconds)
> i am running below script
> Dim App 'As Application
> Set App = CreateObject("QuickTest.Application")
> App.Test.Settings.Run.ObjectSyncTimeOut = 5000
> Set App = Nothing
>
> but it sets the time only in the current opened script. is there any
> workaround so that it can be done for all the 100 scripts
>
> Regards
>
> On Monday, March 10, 2014 5:04:41 PM UTC+5:30, shilpa gupta wrote:
>
>> issue in Exist() statement
>> we are using object.Exist(2) statement for synchronization in a windows
>> based application. as per definition, QTP should wait for 2 seconds. but in
>> our case QTP waits for the time duration which is defined in the 'Object
>> Sync TimeOut' option (in File> Settings> Run> Test Settings dilaog)
>> Pls let us know if there is some other setting need to be done so that
>> QTP waits only for the duration mentioned in Exist(n) statement
>> we are using QTP 11, wpf application on .NET 4
>> Regards
>>
> --
> --
> 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/d/optout.
>
--
--
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/d/optout.