Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Synchronozation types in QTP

Answers were Sorted based on User's Feedback



Synchronozation types in QTP..

Answer / shankar

2 types: 1. wait()
2. Synchronization point

1. Wait(): pause the test for fixed time specified in the
wait statement.

2. Synchronization point: To define the time mapping
between the QTP and application, we use this concept. If we
dont want to perform any operation until an object in our
application achieves certain status then we can insert
synchronization point to instruct QTP to pause the test
until the object getting the certain value.

Is This Answer Correct ?    19 Yes 0 No

Synchronozation types in QTP..

Answer / bishwajit.rk

In QTP Synchronization can be inserted in three different
ways:

1- Synchronization Point
2- Increasing Default Checkout Time
3- Wait statement

I think u have understand the Synchronization Point and
Wait statement but u can also sync by increasing the
default checkout time when u insert a checkpoint.

Is This Answer Correct ?    9 Yes 1 No

Synchronozation types in QTP..

Answer / sreeprasad

1). wait()

2). inserting Synchronization point.

Is This Answer Correct ?    9 Yes 4 No

Synchronozation types in QTP..

Answer / kamakshya prasad podh

QUESTION: what are the different options 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

Synchronozation types in QTP..

Answer / chandra

Four Types of Synchronization
1.Insert -> synchronization point-Using
Waitproperty "property","value","timeinmillisec"
2.Object synchronization Time out- Sets the maximum time
(in seconds) that QuickTest waits for an object to load
before running a step in the test.
Note: When working with Web objects, QuickTest waits up to
the amount of time set for the Browser navigation timeout
option, plus the time set for the object synchronization
timeout.
3.Wait
4.Exist

Is This Answer Correct ?    4 Yes 1 No

Synchronozation types in QTP..

Answer / bam bam bole

Wait
synchronization pt.
exists.

Is This Answer Correct ?    6 Yes 4 No

Synchronozation types in QTP..

Answer / onkar

There are 4 types of syncronisation
1) Wait(timeout) timeout is in seconds
2) Adding Synchronization Point
3) Using waitProperty
eg Browser("abc"). waitProperty.name "abc", 20
4)Adding the Syncronisation in loop using say Exists e.g:

If not Browser("abc").Exists
somecode
End If

Is This Answer Correct ?    2 Yes 0 No

Synchronozation types in QTP..

Answer / kalyani galla

it is a process of matching the speeds of both the tool and
the application involved in testing in order to keep them in
synchronization with each other to obtain proper testing
results.
The main concept of synchronization is making the tool to wait.
it can be done in 3 ways.
1.inserting the synchronization point:
syntax:object hierarchy.wait property "property
name".property value,extra time in milliseconds.
2.inserting a wait state statement.
syntax:wait(time in seconds)
3.Increasing the default time.

Is This Answer Correct ?    2 Yes 0 No

Synchronozation types in QTP..

Answer / santosh

1.increasing the default time
2.Object Property:
The specific property of an object can be considered as a condition to request the QTP wait for some time until the property is seen on the object.

3.Exist method:
this method is used for requesting the qtp to wait for some time until for specific window exist.
EX:
if(window("flight reservation").exist(10)) then
...............
...............code
...............
else
msgbox("flight reservation window doesn't appeared").
end if.
4.wait statement
ex:wait(10)...direct setting the time in seconds.
5.sync method:
browser(browser name).sync()
This is used for only web applications.

Is This Answer Correct ?    1 Yes 0 No

Synchronozation types in QTP..

Answer / arun

2types of synchronization points.
1. Object
2. windows

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi guys, Our company has started to automate testing and started using the tool QTP.Iam new to QTP and I have the following questions to ask. Would appreciate if anyone could give me a hand on this and explain things in a detailed way. [1] Bugs outside checkpoints: I know that I can easily make the QTP do what I want inside the application. Also, I know that I can insert some checkpoints and that the qtp will notice if those conditions are not met. However, there are bugs and problems that might not be connected to a checkpoint (system crash, database error, losing session/logout etc.); how can I make sure that the QTP will notice such problems as well and flag a test as failed. [2] How to tell the QTP that when a particular statement is "false",it should flag it as, test failed and show in in the test report. In short how to tell the qtp that a test is false from the script so that it shows it in the report For Eg:- if(true) test passed // how to instruct qtp else test failed // how to instruct qtp [3] Test script portability: we are having several environments; If I record a test on User Interface, obviously, the qtp will save the URL; however, how can I make the qtp run the tests so that the url is provided dynamically. Is there a possibility to parameterize the web server.Is this the way to do it.I dont know? [4] Test management: How do I manage the tests? I guess we will be doing it in Quality Center, yet, it’s not perfectly clear to me how we will be doing that. [5] Running scheduled test sets: How do I group tests to a certain test set? How can I make this test set run at a predefined time? [6] Test maintenance: What do we need to do beforehand in order to enable for easy test maintenance, meaning small adjustments in tests? [7] Reports: What kind of reports on test results are available (either QTP or Quality Center)? Thanks in advance and hoping for an answer. Jen

0 Answers  


suppose i can done the project in automation tool with QTP in that time what i can say?

3 Answers  


What is use of object spy?

0 Answers  


How to build scripts that access data from external sources?

0 Answers  


if devloper change only button names in present build then script will execute or not , why? Only gui changed.......

2 Answers   Cap Gemini,


1)what is the quality process in QTP? 2)how to add the .tsr file in qtp through scripting?

1 Answers   L&T,


What is different command used in command Prompt while using QTP?

0 Answers  


is it possible to add sheets to excel at runtime

1 Answers  


Can we directly start working with QTP without any knowledge on WinRunner? (After getting trsining on QTP)

1 Answers  


how to find that a file has been completely downloaded or not? I told that "download Complete" pop up. but he told the tool doesn't recognize the pop up

1 Answers   Mphasis,


I have a string "Redfort is in Delhi" how do u write vbscript for " Delhi in is Redfort"

4 Answers  


what is the script for keyword driven framework in real time?plz its urgent

1 Answers   Accenture, CTS,


Categories