QTP Interview Questions

Showing Questions 41 - 46 of 46 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page:
  •  

    QTP Sync

    Explain about Sync with an example

    Star Read Best Answer

    Editorial / Best Answer

    ch.bhaskar.mca  

    • Member Since Oct-2007 | Apr 6th, 2011


    Hi,

    As the name specifies, "Synchronization Point" is nothing but to say QTP to wait till some specified condition occurs. You can specify the conditions.

    We need Synchronization Point because we are always not sure how much time it takes for an Object to get loaded to a page/window.

    Let's take an example of "Login" page of any application. You want to provide "UserName" in the UserName field after opening the site via QTP.We can provide value only after "UserName" field is visible. But sometime it may take 10 seconds for the "UserName" field to be appear in the Login page. Sometime it may take 30 seconds (Depends upon the internet speed).At this point QTP script fails as the object is not displayed in the page. So here what we do through "Synchronization Point" is to tell QTP to wait untill the "UserName" field appears on the page, may it take 10 secs or 30 secs.

    There are 2 ways (for Web Application) you can acheive this as follows:

    Quote:> Browser("").Sync (Only in case of Web App) : QTP waits untill all the objects are loaded to the Browser

    > WaitProperty (Any type of App) : QTP waits untill the specified condition is satisfied
    Following is an example of "WaitProperty"

    Quote:Syntax: Object.WaitProperty "Property Type","Property Value",TimeOut

    Ex: Browser("Login").Page("Login").WebEdit("UserName").WaitProperty "visible",True,20000
    Browser("Login").Page("Login").WebEdit("UserName").Set "bhaskar"

    In the above example QTP waits untill the WebEdit "UserName" is visible in the page.Then it sets the UserName in the field.

    Hope it helps you.

  •  

    Can any one explain in Detail abt how to handle virtuall objects in QTP 8.2

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Kodati

    • Feb 7th, 2006


    through virtual object wizard you can define an object.

    Tools->virtual object wizard->new virtual object..

    It is a 4 step process in which you can define an unknown object to user defined class.

    Kodati

    • Feb 7th, 2006

    through virtual object wizard you can define an object.Tools->virtual object wizard->new virtual object..It is a 4 step process in which you can define an unknown object to user defined class.

  •  

    How to automate Oracle application using QTP.

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Srinivas Potnuru

    • Jun 6th, 2006


    The Prerequisit for Automating the Oracle Application is that You should have a Oracle Add - in for QTP.

    After that we need to open the oracle applications and then start recording the oracle Applications.

    The only difference between the Web Based and Oracle Applications is that wou will have different objects for the Oracle Applications like

    1) OracleTextField.

    2) OracleFormWindow.

    3) OracleFlexWindow.

    4) OracleNotification.

    etc....

    Srinivas Potnuru

    • Jun 6th, 2006

    The Prerequisit for Automating the Oracle Application is that You should have a Oracle Add - in for QTP.After that we need to open the oracle applications and then start recording the oracle Applicati...

  •  

    What is Per action and Shared recording?

    Give advantages and disadvantages of Per action and Shared ?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: srinivas potnuru

    • Jun 9th, 2006


    Hi,

    Both Per action and shared has its own advantages and disadvantages.

    Per Action:

    ? When we ?Record by setting the repository to Per action each and every action will have its own repository. So each action will be independent with the other action w.r.t the Object Repository.

    Shared:

    When we record by setting the Object Repository to shared mode, all the actions in that particular Test can use the same Shared Object Repository . i.e there will be only one repository which contains all the objects that are required across all the actions.

    I am giving this as per my Knowledge there may be some more as well...

    TypeAdvantagesDisadvantages
    PerActionThe actions can be reused and as the repositories are individual there wont be any problem with the Objects.If there are few objects that are being used in more than one action then there will be a duplicate occurence of the object in the object Repository as the object repositories are different for different actions
    SharedThere will be only one Object Repository and can be maintained easily
    Shared

    Even if there is a need of using same object in more than one action, then there will be only one occurrence of the Object in the Object Repository.As the Object Repository is shared.

    ??????????

    srinivas potnuru

    • Jun 9th, 2006

    Hi,Both Per action and shared has its own advantages and disadvantages.Per Action: ? When we ?Record by setting the repository to Per action each and every action will have its own repository. So ea...

  •  

    How to find the number of WebButtons in a screen while runtime?

    Star Read Best Answer

    Editorial / Best Answer

    amereetto  

    • Member Since Jul-2007 | Mar 27th, 2011


    Hi,


    Below is the example to find the number of WebButtons in a page. I have have coded iot for Google page:

    Dim oDesc 'Description Object
    Dim colObject 'Object Collection

    Set oDesc = Description.Create
    oDesc( "micclass" ).value = "WebButton"
    'Additional property- for more focused and controlled collection
    oDesc( "Type" ).value = "submit"
    Set colObject = Browser( "name:=Google").Page("title:=Google").ChildObjects( oDesc )
    Msgbox colObject.Count 'Returns the number of webbutton

    Thanks.
    Debajit

Showing Questions 41 - 46 of 46 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page: