Difference between Wait, Wait Property, Sync, Synchornization point

10,907 views
Skip to first unread message

Kevin

unread,
Jan 12, 2010, 1:33:46 AM1/12/10
to QTP - HP Quick Test Professional - Automated Software Testing
Hi Team, I am new to QTP,

here am having a small doubt,

Whats the Difference between Wait, Wait Property, Sync,
Synchornization point ???


ashok n

unread,
Jan 12, 2010, 3:37:49 AM1/12/10
to mercu...@googlegroups.com
Wait: waits for certain time which we mentioned in the value.
syntax: wait(millisec)
 
ex: wait(100) script wait for 100 milliseconds.
 
wait property(propertyname,status)
browser("kjkjdk").sync


 
--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
Cheers,

Ashok Kumar.N
+91 9711545679

Mr. Anand

unread,
Jan 12, 2010, 3:24:47 AM1/12/10
to QTP - HP Quick Test Professional - Automated Software Testing
WaitProperty – method is used to instruct QTP to wait the execution
process until it
matches with the object property value based on the specified time.
E.g. Browser("Welcome: Mercury Tours").WaitProperty "name" "Welcome:
Mercury Tours" 5000 name - property name
Welcome: Mercury Tours - property value
5000 - number of milli seconds to wait
Wait – method is used to instruct the QTP to wait the execution
process based on
the specified time only but not on any condition
E.g. Wait 5 (or) Wait(5) ‘5 Seconds


By providing synchronization point tester tries to match the execution
speed of QTP and Application because it may happen that the next
operation that you are performing is depending on previous result and
it is not generated yet.
Default wait time for any object is 20 second and object is not
appearing in 20 second than that may fail script. So to avoid such
condition we use Synchronization Points

sushmalatha tirunagari

unread,
Aug 30, 2012, 1:59:31 AM8/30/12
to mercu...@googlegroups.com

Whats the Difference between Wait, Wait Property, Sync,
Synchornization point ???

Wait:- Wait is used to hold QTP until and unless whatever the  time you mentioned in wait 

statement
               Syntax:Wait(time in Sec)

           Wait Property:- It is also holds the QTP until and unless the Property will match the object property.
           Syntax:Window("............").WIinEdit("............").WaitProperty("Property Name","PropertyValue",Timeout in millisec)

          Sync: It is used only for web application and same as wait statment.
         Syntax:Browser("...........").Page("...............").WebEdit("..................").Sync
 
         Synchornisation Point: through script we use this option but it same as waitproperty.
Syntax:Click on Record---->Insert--->Synchornisation point---->select the required option on ur application where to hold the QTP n click now set the property name and property value and timeout in msec.

         Window("Google Chrome").WinObject("Chrome_RenderWidgetHostHWND").WaitProperty "enabled", true, 10000

Akhalesh Yadav

unread,
Aug 30, 2012, 3:52:53 AM8/30/12
to mercu...@googlegroups.com
As per my thinking, Wait property is used for QTP will be wait a specified time of limit. But through Sync qtp allows object synchronization  with application line by line, qtp wait untill application must not be reached at same level with QTP script line.


Akhalesh

On Thu, Aug 30, 2012 at 12:50 AM, bhavin v patel <bhav...@gmail.com> wrote:
split function twice will solve your purpose. 

On Wednesday, August 29, 2012 1:54:56 PM UTC-4, satish k wrote:
hi.
i have a doubt?
1) str = "my company wipro is one of the best"


so here i want to print on 'wipro'?
with out using mid function?
plz reply must?

--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
Akhalesh yadav
+919555717928
+919310680659

uma mahesh

unread,
Aug 30, 2012, 2:45:10 AM8/30/12
to mercu...@googlegroups.com
str = "my company wipro is one of the best"
a=aplit(str)
print a(2)

This will resolve your issue

Regards
Uma Mahesh

Siva Prasad

unread,
Aug 30, 2012, 8:11:47 AM8/30/12
to mercu...@googlegroups.com
I don't want to givethe array index , how to retrieve the wipro word from a string

Thanks,
prasad

--
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 Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en



--
prasad kopparapu
+91-9032114331

Vineeth Kumar

unread,
Aug 30, 2012, 1:23:43 PM8/30/12
to mercu...@googlegroups.com
Hello Buddy,
 
I guess this will be helpful.
 
str="my company wipro is one of the best"
a=instr(1,str,"wipro")
Msgbox mid(str,a,5)
--
Warm Regards,
Vineeth
9916748196

Gautham Maroli

unread,
Aug 31, 2012, 12:12:39 AM8/31/12
to mercu...@googlegroups.com
msgbox right(left(str,16),5)

On Fri, Aug 31, 2012 at 1:19 AM, bhavin v patel <bhav...@gmail.com> wrote:
then use left and/or right string function.. and u ll able to solve your purpose.. without using mid function and array index.. 

pritish kumar

unread,
Jun 15, 2013, 3:41:24 PM6/15/13
to mercu...@googlegroups.com
may be this code will u out


str="my company wipro is one of the best"
arr=split(str)
For each i in arr
if(i="wipro") then
msgbox i
end if
Next

Ravi kiran

unread,
Jun 17, 2013, 1:43:29 AM6/17/13
to mercu...@googlegroups.com
you can use below ,
str = "my company wipro is one of the best"
set regexP=new RegExp
regexP.ignorecase=TRUE
regexP.global=TRUE
regexP.Pattern="wipro"
set regexecute=regexP.execute(str)
for each element in regexecute
strvalue=element.value 
msgbox strvalue
next


On Sun, Jun 16, 2013 at 1:37 AM, Rajendraprasad Medepalle <rajendrap...@gmail.com> wrote:

Use split function..


On Aug 29, 2012 7:50 PM, "satish k" <svhk...@gmail.com> wrote:
>
> hi.
> i have a doubt?
> 1) str = "my company wipro is one of the best"
>
>
> so here i want to print on 'wipro'?
> with out using mid function?
> plz reply must?
>
>
> On Tuesday, January 12, 2010 12:03:46 PM UTC+5:30, Kevin wrote:
>>

> --
> 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 Mercu...@googlegroups.com
> To unsubscribe from this group, send email to
> MercuryQTP+...@googlegroups.com
> 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
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
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 mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


Mishra Siba Prasad

unread,
Oct 1, 2013, 1:43:54 AM10/1/13
to mercu...@googlegroups.com
split it.tn u ll get.

if doubt call9611881604.


On Wednesday, August 29, 2012 11:24:56 PM UTC+5:30, satish k wrote:
hi.
i have a doubt?
1) str = "my company wipro is one of the best"


so here i want to print on 'wipro'?
with out using mid function?
plz reply must?


On Tuesday, January 12, 2010 12:03:46 PM UTC+5:30, Kevin wrote:

Ramu Desoju

unread,
Oct 1, 2013, 8:23:37 AM10/1/13
to mercu...@googlegroups.com

str = Inputbox("enter a string: ")

'input string is; "my company wipro is one of the best"

a = split (str, " ", -1, 1)
b = Filter (a, "Wipro", True, 1)
c = join(b)
msgbox c

jeevan kumar

unread,
Sep 10, 2014, 2:03:32 AM9/10/14
to mercu...@googlegroups.com
Amazing Response!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages