GeekInterview.com
Series: Subject:

QTP FAQ

Showing Questions 1 - 20 of 21 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Does QTP support LINUX, UNIX and solaris?? Does QTP has a separate set up for LINUX, UNIX and solaris??Will the scripts recorded on windows work on LINUX, UNIX and solaris?

Asked By: Madhav Pavan Kumar | Asked On: Apr 21st, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Brahma Sagar Gunda

View all answers by Brahma Sagar Gunda

Member Since May-2006 | Answered On : May 5th, 2006

The following list the Operating Systems that QTP supports, please refer:

- Windows 2000-Service Pack 3 or Service Pack 4

- Windows XP-Service Pack 1 or Service Pack 2,

- Windows 2003 Server.

Note: QuickTest Professional is supported on Windows XP Service Pack 2 only if the execution prevention mechanism (also known as DEP-data execution prevention and NX-no execution) is not activated

I believe this answers your questions and will thereby close this service request. Should you require further clarifications, please do not hesistate to let me know. Thanks.

Regards,

Brahma Sagar

Answered by: Gaurav Sharma on: Oct 31st, 2012

Hi Vish,

Kindly install microsoft script debugger and then restart the QTP.

Regards,
Gaurav

Answered by: Gaurav on: Oct 20th, 2011

Yes it true that QTP works on Windows OS only but it works fine on browsers others than IE as well(Mozilla Firefox is supported)

Test objects

Asked By: kishore12345 | Asked On: Jun 26th, 2010

What are test objects and run time objects?

Star Read Best Answer

Editorial / Best Answer

Answered by: Satyesha

View all answers by Satyesha

Member Since May-2009 | Answered On : Mar 29th, 2011

Hi,
test Objects: Any object on which you are going to perform testing, on the basis of recorded object descriptions by QTP is called test objects.
To Identifying a test Object there are two types of Properties i.e.
1.TO Prop: (Test Object Properties)-These are the Object properties captured by QTP
in the form of Object repositories, durring recording of script/or added by you to code in case of a descriptive code.
2. RO Prop:(Runtime Obj Properties) -These are the properties which will be attain by an Object in the real time/Run time of  application Under test.
Note:While playing back an script Qtp will compare To properties stored in ORs with the RO properties if a suitable match found then Qtp will perform the recorded Action of that object else throw an exception.

Answered by: mfsi_satyakamm on: Apr 10th, 2012

Objects are those which QTP identifies to run a test on. Test Object: Objects present in object repository. These can be edited and are not dynamic in nature. Run Time Object: These are the objects ...

Answered by: Satyesha on: Mar 29th, 2011

Hi,test Objects: Any object on which you are going to perform testing, on the basis of recorded object descriptions by QTP is called test objects.To Identifying a test Object there are two types of ...

How to identify an object whose name changes with time?

Asked By: priyaspve | Asked On: Jun 28th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: madhu dasara

Answered On : Jun 29th, 2006

use regular expression for the object name

Answered by: madhu dasara on: Jun 29th, 2006

use regular expression for the object name

How to run a QTP test set stored in quality center server from command line?

Asked By: Sanitha | Asked On: May 31st, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Steiner

View all answers by Steiner

Member Since Oct-2008 | Answered On : 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.

Answered by: Steiner on: 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...

Answered by: md_vinodh on: May 13th, 2008

If ur script into QC , Then U can't run the thru command line... but if script stored in to local system then u can run command mode Ex: Wscript (filename.vbs)

How to automate Oracle application using QTP.

Asked By: venkateswaran | Asked On: May 22nd, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Srinivas Potnuru

Answered On : 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....

Answered by: Srinivas Potnuru on: 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?

Asked By: thotaravikiran | Asked On: Jun 2nd, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: srinivas potnuru

Answered On : 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

Answered by: Prasanna Laxmi on: 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

Answered by: srinivas potnuru on: 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?

Asked By: Magadala | Asked On: Jun 8th, 2006

Give advantages and disadvantages of per action and shared ?

Star Read Best Answer

Editorial / Best Answer

Answered by: srinivas potnuru

Answered On : 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.

          

Answered by: srinivas potnuru on: 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

Asked By: shruthi | Asked On: Jun 12th, 2006

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

Answered by: Srinivasaraomunagala

View all questions by Srinivasaraomunagala   View all answers by Srinivasaraomunagala

Member Since Jul-2007 | Answered On : 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

Answered by: ven on: 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...

Answered by: Srinivasaraomunagala on: 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

How do you automate the user login to web application ?

Asked By: Karimnazir | Asked On: Jun 12th, 2006

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

Answered On : 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. 

Answered by: Karimnazir on: Jun 13th, 2006

I am new to QTP and you made my day.

Thanks a lot.

nazir_karim@bah.com

Answered by: srinivas potnuru on: 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?

Asked By: sri | Asked On: Jun 15th, 2006

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

Star Read Best Answer

Editorial / Best Answer

Answered by: Guest

Answered On : 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.

Answered by: Guest on: 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?

Asked By: Vamsi | Asked On: Jun 20th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: md_vinodh

View all answers by md_vinodh

Member Since Apr-2008 | Answered On : 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

Answered by: md_vinodh on: 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

How is automation used in QTP for regresstion testing ?

Asked By: chakrapanig | Asked On: Jun 21st, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: mana.kare

View all answers by mana.kare

Member Since Jan-2007 | Answered On : 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.

Answered by: Anil on: 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.

Answered by: mana.kare on: 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...

How do you test Java tree objects ?

Asked By: prashantkatti | Asked On: Jun 23rd, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Taji

Answered On : 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.

Answered by: Prashant on: Jun 24th, 2006

Hi

Thanks for the answer

I have installed java plugin object and have tried to give a call to the java object tree

I just want to expand the Tree node

please can you send a small sample code which tests the Window explorer

regards

Prashant

Answered by: Taji on: 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?

Asked By: umangkapoor | Asked On: Jun 24th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: santosh

Answered On : 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""

Answered by: umangkapoor on: Jul 9th, 2006

Hi Santosh,In Object Identification, there are two Properties to be added-1)Mandatory 2) Assistive. First of all we cannot add the same properties in both. They must be different. I have added all the...

Answered by: umangkapoor on: Jun 29th, 2006

Thx santosh,

i wil try these and let u know

QTP sync

Asked By: pvinod02 | Asked On: Jan 26th, 2011

Explain about sync with an example

Star Read Best Answer

Editorial / Best Answer

Answered by: ch.bhaskar.mca

View all answers by ch.bhaskar.mca

Member Since Oct-2007 | Answered On : 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.

Answered by: ch.bhaskar.mca on: 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 bec...

Count number of links

Asked By: shruthi.b | Asked On: Sep 9th, 2010

How to count number of links in a web page using QTP?

Star Read Best Answer

Editorial / Best Answer

Answered by: calvin_29

View all answers by calvin_29

Member Since Sep-2010 | Answered On : Sep 20th, 2010

This is the script, We should first create an object

set oDesc=description.create()
'prefer descriptive programming...batter
oDesec("micclass").value="link"
'get all child objects in an variable
set oLink=browser("name:=.*").page("title:=.*").childobjects(oDesc)
'count all links
intC=oLink.count
'Use print or msgbox or 'reporter.reportevent'
print intC
'it glows links in the web page
for i=0 to intC-1
oLink(i).highlight
next
set oLink=nothing
set oDesc= nothing

'Offer me comment if it works properly

Answered by: tester_kolkata on: Feb 2nd, 2011

By using Description object, which contains a 'mask' for objects we would like to get we can count number of links. Set oDesc = Description.Create()oDesc("micclass").Value = "Li...

Answered by: ramprasad6 on: Feb 1st, 2011

For counting the number of links in webbased

set obj=description.create()
obj("micclass").value="Link"


set Links=browser().page().childobject(obj)
NumofLinks=Links.count-1
for i=0 to Links(count)-1
       Links(i).select i+1
Next
      

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

Asked By: venkatesanj | Asked On: Mar 18th, 2011

Star Read Best Answer

Editorial / Best Answer

Answered by: amereetto

View all answers by amereetto

Member Since Jul-2007 | Answered On : 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

Answered by: amereetto on: 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 ObjectDim colObject 'Object CollectionSet oDesc = Description.C...

Connect QTP to qc

Asked By: kishore12345 | Asked On: Jun 26th, 2010

How to connect QTP to quality center?

Star Read Best Answer

Editorial / Best Answer

Answered by: Satyesha

View all answers by Satyesha

Member Since May-2009 | Answered On : 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.

Answered by: Satyesha on: 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 write QTP results to a text file or an excel file ?

Asked By: Uday | Asked On: May 18th, 2006

I need to write the QTP results to a text file or an excel file as I don't want to see the results in QTP results window.Please can anybody provide the exact code for iturgent...............................Thanks in advanceuday

Star Read Best Answer

Editorial / Best Answer

Answered by: srinivas Potnuru

Answered On : Jun 6th, 2006

Hi all,

We actually have few functions to add the results to the Excel File instead in the QTP Results Window.

Solution description: We will be using a seperate Sheet by name "Results" in which the Results of the Test will be appened.

There are 2 functions

1) initOutExcel(sTablePath)

         Description : This function is to initialize a particular Excel Where you want to update the Results of the QTP Tests.

2) WriteResults(sTablePath,sStatus,sFunctionality,sDescription)

        Description : This function appends the Result of a  Test to the end of the existing results.

You can modify the below functions to suite your requitrement.

CODE:

Function initOutExcel(sTablePath)

  Datatable.addSheet "Results"

  Datatable.importSheet sTablePath, "Results","Results"

  iParamCount = Datatable.getSheet("Results").getParameterCount

  if iParamCount = 0 Then

     Datatable.getSheet("Results").addParameter "S.No",""

    Datatable.getSheet("Results").addParameter "Status",""

    Datatable.getSheet("Results").addParameter "Functionality",""

    Datatable.getSheet("Results").addParameter "Description",""

  End If

   Datatable.ExportSheet sTablePath,"Results"

End Function

Function WriteResults(sTablePath,sStatus,sFunctionality,sDescription)

  Datatable.addSheet "Results"

  Datatable.importSheet sTablePath, "Results","Results"

  iRowCount = Datatable.getSheet("Results").getRowCount

  Datatable.getSheet("Results").setCurrentRow(iRowCount+1)

  Datatable("S.No","Results") = iRowCount+1

  Datatable("Status","Results") = sStatus

  Datatable("Description","Results") = sDescription

  Datatable("Functionality","Results") = sFunctionality

  Datatable.ExportSheet sTablePath,"Results"

End Function

Answered by: SumalathaK on: Jul 9th, 2007

Hi all,I want to update a detailed Test Result report to Td, i dont want to save all the test cases results in to one folder. I want to display the test case name as the TEst Name (not the script name...

Answered by: hk on: Feb 23rd, 2007

Can somebocdy explain  how to  specify the parameters needed to call  these functions?

Object name is changing while executing test in QTP

Asked By: madhuri | Asked On: May 18th, 2006

When I am recording in QTP the object name of the text box is text1 and it is changing while I am executing. Whenever I am opening the login window it is assigning new names if it is like this how can I test the application

Star Read Best Answer

Editorial / Best Answer

Answered by: b.sainarayanarao

View all questions by b.sainarayanarao   View all answers by b.sainarayanarao

Member Since Oct-2007 | Answered On : Oct 23rd, 2007

go to Resources menu-Object Repository-select the particular text object in left window pane. In right window pane select attached text column field value, a browse icon ('<#>') becomes visible and  click on  it and  select  Regular  expression  checkbox (click on 'No' option in a appeared dialogbox) and  exactly in the place  of  1  write  as  [0-9]*  
example: text 1           'before  replacement
                text [0-9]*    'after replacement  is valid
                text[0-9]*    'after replacement  is not valid because no space in between text and regular expression

Answered by: b.sainarayanarao on: Oct 23rd, 2007

go to Resources menu-Object Repository-select the particular text object in left window pane. In right window pane select attached text column field value, a browse icon ('<#>') becomes ...

Answered by: shreyas on: Jun 27th, 2006

Hi

You can test the window by using regular expression.

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.