how can u put synchronization point in qtp,wat is exactly
synchroniztion why we use it wat is benifit in qtp

Answers were Sorted based on User's Feedback



how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / radhika

Waiting time in the sense that if you have an application in
which you have 3 steps for example.
Let's say you are recording the steps where the first step
is to enter the information, second step is clicking submit
button and third step is printing the summary page.

Now when you click submit button it may take few seconds to
several minutes depending on the application or internet
speed.After your summary page has loaded you click print.

But when you play this in Qtp it does it very fast,it does
not wait for processing of information after you click
submit button and may try to print summary page which will
give error.
So, to overcome such problems we insert synchronization
point.By inserting synchronization point we are asking QTP
to wait till Summary page is loaded and then click Print button.

Is This Answer Correct ?    35 Yes 1 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / litan

synchronization point is nothing but time interface between
tool and application build.generally we r giving
synchronization point to give waiting time to the tool.
3 ways we can do this.i.e
1-synchronization point: here we r giving waiting time to the
tool depending on application status bar.suppose in yahoo
regiistration form after fillup when click on submit after
colour filling the status bar it will go to next page.if we
r not giving synchtonization point when tool execute the
next page script it show an error page not found.
navigation:insert menu-step-synchronizatiobn point
2-wait():here we r giving fixed waiting to the tool
3-increasing time out:bdefault QTP maintains 20000
milisecond to identify object.if it is taking more time to
identify all the objects then we hav to increase the time out.
navigation:tool-option-run tab increase our time there in ms.

Is This Answer Correct ?    35 Yes 5 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / radhika

Wait() is used when you want QTP to wait for specified time
whereas synchronization is used when you want QTP to wait
till certain process is completed or event has occured.

Wait(n) statement waits for specified 'n' seconds even
though process has occured in less than n seconds whereas
when using sync statement ,QTP resumes/moves to next step as
soon as event has without wasting time.

There is another similar option called exist(n) which waits
for an object (like button to be activated) or waits till
'n' seconds whichever is earlier.

Is This Answer Correct ?    21 Yes 0 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / kamakshya prasad podh

QUESTION: what are the different opens that we can use to
synchronize the test?

Answer: By using
i) Synchronization Point i.e Sync
ii) WaitProperty Method
iii) Wait Statement/Exist statement

QUESTION: Use of Synchronization i.e Sync Method

Answer:
‘The following example uses the Sync method to complete the
navigation to the specified page.


SystemUtil.Run "iexplore.exe","www.cnn.com"
Browser("Google").Page("CNN.com - Breaking News,").Sync
Browser("Google").Navigate "http://www.cnn.com/"
Browser("Google").Page("CNN.com - Breaking News,").Link
("Health").Click
wait(10) ‘wait for 10 sec
browser("Google").Back

QUESTION: Use of Exist Method

‘The following example uses the Exist method to check
whether the
'Search Flights image exists five seconds after it clicks
the
'Login image.


Browser("Mercury Tours").Page("Mercury Tours").Image
("Login").Click 0, 0
Wait (5)
Browser("Mercury Tours").Stop
If Browser("Mercury Tours").Page("Welcome to Mercury").Image
("Search Flights").Exist Then
MsgBox "The Image Exists."
Else
MsgBox "Cannot find the Image."
End If

QUESTION: Use of WaitProperty Method

Waits until the specified object property achieves the
specified value or exceeds the specified timeout before
continuing to the next step.


‘The following example uses the WaitProperty method to wait
for the
'Google Search edit box to be enabled before setting its
value to 'QTP Script'.
'If it is still disabled after the test's
'Object Synchronization Timeout time has been exceeded, it
will not
'perform the Set method.


If Browser("Google").Page("Google").WebEdit
("q").WaitProperty("disabled",0) Then
browser("Google").Page("Google").WebEdit
("q").Set "QTP Script"
browser("Google").Page("Google").WebButton("Google
Search").Click
End If
'If Browser("google").Page("index").WebEdit
("Account").WaitProperty("disabled", 0) Then
' Browser("index").Page("index").WebEdit("Account").Set
("123")
'End If

Is This Answer Correct ?    5 Yes 0 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / devi

Synchronization
It is a process of matching the speeds of both QTP and AUT
in order to get proper execution and results.


Where Synchronization is required:

During test execution QTP gives instructions one by one with
same speed, but AUT takes less time for some operations
execution and more time for some operations execution, that
time we may not get proper execution and results. In order
to get proper results in between QTP & AUT synchronization
is required.

There are several methods available in QTP for synchronization.

1. Inserting Wait statements.
2. Inserting Synchronization points.
3. Increasing Tool default synchronization time.
4. Sync Method (Only for WEB)
5. Exist Property

Is This Answer Correct ?    5 Yes 1 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / sameena

Hello Radhika. i saw U'r answer for synchronization. it is
clear. can U give me a example for wait & synchronization,
i mean stmt for a login, say after giving User ID ,
Password, Submit button is cliked, and any page say page1
is loaded. how to differentiate wait & synchronization when
the page1 is loading?

Is This Answer Correct ?    2 Yes 1 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / srinivas naragoni

Synchronization is nothing but time maping between QTP and
application.
synchroization point to give waiting time to the tool(QTP)

Example flight reservation:

1) You are inserting an order and than stop your recording
remember not to close or do any other operation after that.

2)Now playback the same test You find it QTP test result is
generated before order is inserted.

That shows QTP test execution speed is higher than
Application execution speed.

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

Is This Answer Correct ?    2 Yes 1 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / siva krishna

in the above one person asked instead of synchronization we
can place wait() statement
there are two problems
1)even though the object is enabled or our required page or
application available it will wait until wait times is
complete. in synchronization we can give the property name
as well as the time. in this if at all one completes either
property or time it will go to the next process.
2)if you give wait time if the wait times is n second and
the application/object time is n+1 then it will show the error.

Is This Answer Correct ?    1 Yes 0 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / srihari

ok then when there is Synchronisation why should we use wait() method?

Is This Answer Correct ?    0 Yes 0 No

how can u put synchronization point in qtp,wat is exactly synchroniztion why we use it wat is beni..

Answer / jayaprakash

We can also give synchronization time in seconds instead of
milliseconds.
Navigation is File->settings->Run->object sychronization timeout

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

There are some links on the page,count and click those links and check the text on the page displayed on clicking the link.write script for this scenario.

0 Answers  


WHAT IS ENVIRONMENT VARIABLES?

6 Answers   Ordain Solutions,


banking project description for software tester

0 Answers   Semantic Space,


Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

0 Answers  


Can anyone tell me what is the equivalant method to be used in QTP for "web_obj_get_text" used in winrunner. My winrunner code is below. set_window("Confirm Add Subscriber"); rc = web_obj_get_text("Add subscriber:","#8","#1",orderID,"The order number is","\.",1); basically I need to retrieved the "orderID " from a string present in 8th row & 1st col of table "Add subscriber"

1 Answers  






what are the Common Problems in S/w development process

1 Answers  


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1 Answers   scintel,


1 Folders in VSS 2 In navigation script there are 100 script i want to run first 50 and 37th script also not needed to run how to do this 3 What is navigation script,Driver script, business script what we are loaded in this script 4 use of resource tab 5 Difference between verification and validation give real scenario example 6 file scripting object when to use it 7 what are the problems you are faced while testing web application 8 difference between expert view and keyword view 9 difference between QTP 8.2 and QTP 9.2 navigation frame work please answer these questions from real time working people as early as possible

0 Answers  


In my application there is a billing thru credit card. how to validate the credit card details(min balance,credit card no,card holder name).if these details are valid then only that booking will be done.how to validate these details thru automation or manual?

1 Answers  


hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company

0 Answers   Excel,


What are the QTP advantages and disadvantages?

6 Answers  


Hi all, i have installed QTP8.2 in my system. but script is not generating while recording. What is the problem? is any file missing? pls let me know anybody...Thnaks

3 Answers  


Categories