QTP Interview Questions

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

    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 do you test oracle application using qtp?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Nageswara Rao G

    • Jan 29th, 2006


    With Help of Below Commands, first u launch the Oracle Applications and then Test with the help of Data Driven and DML and DDL commandsqtApp.Test.Settings.Launchers("Oracle 8i").Active = TrueqtApp.Test.Settings.Launchers("Oracle 8i").CommandLine = qtApp.Test.Settings.Launchers("Oracle 8i").WorkingDirectory =

    Brian

    • Feb 6th, 2006

    For testing Oracle Apps with QTP, I would suggest you define your test cases using MS Word documents. Then categorize them by complexity into low, med and high. After that, I would target your low complexity scripts for QTP and use them as regression testing scripts.

    Nageswara Rao G

    • Jan 29th, 2006

    With Help of Below Commands, first u launch the Oracle Applications and then Test with the help of Data Driven and DML and DDL commandsqtApp.Test.Settings.Launchers("Oracle 8i").Active = TrueqtApp.Tes...

  •  

    How to use the Object spy in QTP 8.0 version?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: sivaprasad

    • Jul 29th, 2005


    There are two ways to Spy the objects in QTP 
    1) Thru file toolbar 
    ---In the File ToolBar click on the last toolbar button (an icon showing a person with hat). 
     
    2) Tru Object repository Dialog 
    ---In Objectrepository dialog click on the button"object spy..." 
     
    In the Object spy Dialog click on the button showing hand symbol. 
    the pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object 
     
    if at all the object is not visible..or window is minimised then Hold the Ctrl button and activate the required window to and release the Ctrl button. 
     
     

  •  

    How to run a QTP test set stored in Quality Center server from command line?

    Star Read Best Answer

    Editorial / Best Answer

    Steiner  

    • Member Since Oct-2008 | Oct 1st, 2008


    You need to use the quality center OTA API - you can read the documentation by going to quality center Help->Documentation Library, and under API References, click  HP Quality Center Open Test Architecture API Reference (you will need to download this file to your local hard drive probably, since there is some XP patch that will not allow you to open CHM files from an external server). If you go to the index and search for "StartExecution Method (TestSet)", there is a very nice example at the bottom that shows you a vbs script that you could use to run a test set on your local machine, planned host, or a remote machine. Copy this code to a .vbs file, and execute that with the arguments you need. Let me know if you need any other info about this.

    Steiner

    • Oct 1st, 2008

    You need to use the quality center OTA API - you can read the documentation by going to quality center Help->Documentation Library, and under API References, click  HP Quality Center Open Test...

  •  

    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...

  •  

    Write sample code of Descriptive programming for yahoo login form?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: srinivas potnuru

    • Jun 12th, 2006


    This is the code for Yahoo Photos Website you can do the same for the yahoo by changing the values in the required places.
    CODE: Browser("title:=Yahoo! Photos*.*")
    .page("title:=Yahoo! Photos*.*")
    .WebEdit("name:=login")
    .set "srinivas" Browser("title:=Yahoo! Photos*.*")
    .page("title:=Yahoo! Photos*.*")
    .WebEdit("name:=passwd")
    .set "test"Browser("title:=Yahoo! Photos*.*")
    .page("title:=Yahoo! Photos*.*")
    .WebButton("name:=Sign In").click

    Prasanna Laxmi

    • Jul 4th, 2006

    Hi Srinivas, If you have any documents related to "Descriptive Programming", Can you please send those documents. I am in urgent need of that document.Thanks in Advance,Prasanna Laxmi

    srinivas potnuru

    • Jun 12th, 2006

    This is the code for Yahoo Photos Website you can do the same for the yahoo by changing the values in the required places. CODE: Browser("title:=Yahoo! Photos*.*") .page("title:=Yahoo! Photos*.*") ...

  •  

    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...

  •  

    Is there any Frame work for Descriptive programing

    Qtp is not identifying any object in the application so i thought of going to descriptive programming how do u use this with the frame work which is already existing? and more features to use descriptive programming?

    Star Read Best Answer

    Editorial / Best Answer

    Srinivasaraomunagala  

    • Member Since Jul-2007 | Jul 31st, 2007


    There is no specific frame work for the Descriptive programing. When the qtp is not able to recognize the object we need to go for Low level recording. It will treat the object as winobject/webobject

    ven

    • Oct 31st, 2007

    Hi all,I know how to create a checkpoint to an object in keyword view using recording and active screen of application.I tried to create a  standard checkpoint to an object in expert view using d...

  •  

    How do you automate the user login to web application ?

    In QTP, How can I call different users to logon to a web application under test, one after the other? (In a while loop)I will appreciate your help.Thanks,

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: srinivas potnuru

    • Jun 13th, 2006


    Hi,

    there are so many ways

    1) Keeping the usernames and passwords in 2 arrays and then looping them

      as below


       usernames =array( "test1","test2","test3" )
       passwords = array ("pass1","pass2","pass3")

       i = 0
       iCount =  ubound(usernames)
       do  While (i <= iCount)   

            'code to set the username password in the application and do the other  steps as well so that u can again enter the username and password  in the application
            i=i+1
       loop

    2) Keeping the values in the Datatable and doing the same using datatable functions. 

    srinivas potnuru

    • Jun 13th, 2006

    Hi,there are so many ways1) Keeping the usernames and passwords in 2 arrays and then looping them  as below   usernames =array( "test1","test2","test3" )   passwords = array (...

  •  

    How to write code in the Expert View for a Search engine?

    Pl. I need help in writing code in the Expert View for a Search engine. As we search ex: 'apple' it gets a Search criteria with (1 2 3 4....Next) pages. so it suppose to click the "Next" button until "Next" is disable. As i'm doing data driven for search criteria by recording with clicking 5 times "Next" button but when in the Run session some criteria is not displaying the same no.of pages...So, how...

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Guest

    • Jan 12th, 2007


    You can use object spy to get the name of the first page number (i.e. the "#1" button string will have either a 1 or a 0 in its string.)

    Then you can change this to a variable(say "x") and then use descriptive programming for the string.

    You will then have a Loop statement (preferably a For...Next Loop) to check on the max number of page number links that are available on the primary screen (say 5 is the max) and see if "Next Button" is still high lighted.

    If it is, click on next after reaching 5 till "Next button" is disabled or does not exist.

    When Next button is disabled, the Value of "x" is the total number of result pages(ie if the #1 link starts with a logical number of 1) and x +1 if the #1 link starts with a logical number of 0.

    Guest

    • Jan 12th, 2007

    You can use object spy to get the name of the first page number (i.e. the "#1" button string will have either a 1 or a 0 in its string.) Then you can change this to a variable(say "x") and then use de...

  •  

    What are the advantages and disavantages of QTP over Rational robot and which one is better?

    Star Read Best Answer

    Editorial / Best Answer

    md_vinodh  

    • Member Since Apr-2008 | Jun 30th, 2008


    Hi,

     All Testing tools are best , each one of them have their own advantages and disadvantages.

     Please find your Requirements, Time, Cost and other external factors, which one fullfil your requirements, it's best for you ....based on that choose the product

    Let me know

    Regards
    Vinodh M

    md_vinodh

    • Jun 30th, 2008

    Hi, All Testing tools are best , each one of them have their own advantages and disadvantages. Please find your Requirements, Time, Cost and other external factors, which one fullfil your requirements, it's best for you ....based on that choose the productLet me knowRegardsVinodh M

  •  

    How is automation used in QTP for regresstion testing ?

    Star Read Best Answer

    Editorial / Best Answer

    mana.kare  

    • Member Since Jan-2007 | Aug 16th, 2007


    Hi,

    I am giving an expample of regression testing.

    Example:

    We have a "Yahoo" web application. Suppose if yahoo is going to add a new features in their application it has to verify the existing web page along with new features. If it is adding new features for every two months, it has to test existing and new features every time. The repeated testing is nothing but regression.
    (means the new functionality does not effect on the existing functionality).

    we are using QTP to test the existing functionality is working proprly or not.

    Anil

    • Sep 13th, 2007

    Regression testing is the testing done to verify the defect fix. For example if you encountered a defect and report to a developer and developer fixed it and deliver the code again, then you verify that the defect is fixed. This testing is called as regression testing. I hope you understood.

  •  

    How do you test JAVA tree objects ?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: Taji

    • Jun 24th, 2006


    For testing Java Objects you need to install an additional Java Plugin. This will enable QTP to identify java objects. This should also solve the java tree problem.

    if you already have installed the java plug-in and asking for a method to test java tree objects, there is no single answer i can give. but you might have to apply your own logic through descriptive programming.

    Prashant

    • Jun 24th, 2006

    Hi Thanks for the answerI have installed java plugin object and have tried to give a call to the java object tree I just want to expand the Tree nodeplease can you send a small sample code which tests the Window explorer regardsPrashant

    Taji

    • Jun 24th, 2006

    For testing Java Objects you need to install an additional Java Plugin. This will enable QTP to identify java objects. This should also solve the java tree problem.if you already have installed the ja...

  •  

    How to record Java application in QTP 8.2?

    Star Read Best Answer

    Editorial / Best Answer

    Answered by: santosh

    • Jun 28th, 2006


    1)First install java-addin along with QTP.

    2)Set the reqired properties for objects to identify the objects in Tools..>Object identification(Mandatory and assistive properties)

    3)Test--->Click Record-->Select javaoption.or click F3.

    The script will come as..

    Javawindow("").JavaInternalframe("").Javalist("").Select""

  •  

    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.

  •  

    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

  •  

    Connect QTP to QC

    How to connect QTP to Quality Center?

    Star Read Best Answer

    Editorial / Best Answer

    Satyesha  

    • Member Since May-2009 | Mar 29th, 2011


    Hi,
    We can?connect to QC from QTP through?QTP File options or direct Icon on QTP window.

    Go to your QTP?File->QC connections->Provide the Server URL->Login credentials->Project and Domain details to which you want to connect.
    Note:Check the Option to Auto connect to QC?with each QTP session , in order to avoid entering these details again & again.

    Satyesha

    • Mar 29th, 2011

    Hi,We can?connect to QC from QTP through?QTP File options or direct Icon on QTP window.Go to your QTP?File->QC connections->Provide the Server URL->Login credentials->Project and Domain details to ...

  •  

    How to execute qtp script from command prompt?

  •  

    How to make QTP understand the difference with same type of objects

    Suppose there are 10 of check boxes in a page and i have to choose the 6th one, how to do that through script?

    Star Read Best Answer

    Editorial / Best Answer

    researchingmiddleware  

    • Member Since Oct-2008 | Oct 8th, 2008


    Use the Ordinal identifiers (index) property...each of the objects will have a different index value

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