GeekInterview.com
Series: Subject:

QTP FAQ

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

How many types of automation frame works are there?

Asked By: sreerama | Asked On: Oct 11th, 2006

Answered by: Manasi on: May 1st, 2013

6 types of automation frameworks are there.
Linear/modular/data-driven/keyword driven/hybrid/BPT framework

Answered by: mfsi_satyakamm on: Apr 5th, 2012

Hi

There are four types of automation framework :

1) Linear
2) Structured
3) Keyword Driven
4) Data Driven

In a Java table, all cells have different color so write a code for finding a particular cell color.

Asked By: anilpal25 | Asked On: Feb 9th, 2013

Answered by: simha on: Apr 18th, 2013

Code
  1.  
  2. For i =1 to B().P().WebTable().GetROProperty("rows")
  3.  
  4.    For j=1 to  B().P().WebTable().ColumnCount(i)
  5.         B().P().WebTable().GetCellData(i,j).object.bgcolor
  6.          i=i+1
  7.          j=j+1
  8.    Next
  9.  
  10. Next
  11.  

General run error

Asked By: satishkatari | Asked On: Apr 9th, 2011

I wrote descriptive programming for textbox and getting general run error in this line "set base=browser("name:=gmail: email from google").Page("title:=gmail: email from google").Childobjects(desc)". how to handle the error.

Answered by: glory on: Mar 21st, 2013

please use message err.number and err.description to exactly find out the error.

How can we determine the records count of a web table through QTP?

Asked By: anilpal25 | Asked On: Feb 9th, 2013

Answered by: Maria I on: Mar 5th, 2013

use rowcount method.

Ex: Browser().Page().Webtable().RowCount

Webtable and image

Asked By: atulsinghchouhan | Asked On: Mar 5th, 2013

Hi, i have to perform click on 6 “+” icons on 6 tabs having same alt property and file name and I use index also but I won’t help me , so any good idea how to perform click on these 6 tabs,also im using below script for these. browser(“”).Page(“”).Webtable(“innertext”).Image(“alt:=select...

Answered by: Maria I on: Mar 5th, 2013

Use descriptive programming

Analog recording

Asked By: neerajbug.neerajbug | Asked On: Nov 16th, 2009

In which codition we choose screen or window options in analog recording?

Answered by: krishnaponugubati on: Feb 16th, 2013

Recording relative to screen means operation based on screen co-ordinates, and the same with window recording means recording based on window co-ordinates

Answered by: dabas_rajender on: Oct 27th, 2010

We need to use Analog recording when there is a need to check the object or need to do something based on the x,y coordinates of the application.

How can I use childobjects in QTP for identification of webelements

Asked By: petorstudent | Asked On: Jul 1st, 2012

I wrote this code: set odesc = description.Create() odesc.Value("class name")="webelement" odesc.Value("innertext")= job job is name of parameter with string value-user defined params. ex.Job = "officemanager". set obj =browser().Page().Childobjects(odesc) set obj_number = obj.Count but...

Answered by: Brahma Sagar Gunda on: Nov 2nd, 2012

Set obj =Browser().Page().Childobjects(odesc) Set obj_number = obj.count this count represents the number of objects that are satisfying the description that you have made using description.create()....

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)

How to access a test input parameter?

Asked By: amitabh | Asked On: Nov 23rd, 2006

Answered by: ashish raval on: Oct 8th, 2012

this is how you can access test input parameter till QTP 11.00 myVar = TestArgs("inputparamName") you can use his in parent action in the test.. to use in other child actions you have to pass this pa...

Answered by: Purna on: Jan 17th, 2007

Hi,

Using  Parameter("Parameter Variable").

regards,

Purna

For loop problem in QTP

Asked By: raj2k0072000 | Asked On: Sep 3rd, 2007

I am using the for loop to get data from the data table. The summary code is:c=datatable.Getrowcountfor i=1 to cmsgbox datatable.Value("column1")next'the message box always returns data of row 1. Irrespective of the iteration. How is it possible.

Answered by: dhanunjay on: Aug 29th, 2012

iRows=DataTable.getrowcount
For i=1 to iRows
DataTable.SetCurrentRow(i)
MsgBox DataTable("Test", dtGlobalSheet)
DataTable.SetNextRow
Next

Answered by: Divya on: Sep 9th, 2011

Hi I hope this will useful to u

Code
  1. c=datatable.getrowcount
  2. for i=1 to c
  3. datatable.setcurrentrow(i)
  4. msgbox datatable.value("column1")
  5. next

Application throwing error while running the script

Asked By: Badri_20 | Asked On: Jun 21st, 2012

I am fresher in QTP. Till now I have faced only the error thrown by QTP. What needs to be done when application throws an error?? How to handle it through QTP??

Answered by: Pushpendra Varma on: Aug 28th, 2012

We can use here recovery scenarios.

How do you close the task manager through QTP?

Asked By: ganesh kumar22 | Asked On: Feb 21st, 2007

Answered by: Lingesh Mukilan on: Aug 23rd, 2012

QTP Scripting is easy way.

Answered by: mahesh.1986 on: Aug 22nd, 2012

First we need to identify the task manager and then close the program by 3 ways: using CloseProcessByName using CloseProcessById CloseProcessByWndTitle methods we can close sny application. Now we wi...

Is there any way to convert .Tsr (object repository) file to an XML file?

Asked By: Nagelli Anil Kumar | Asked On: Mar 28th, 2006

Answered by: jjoseph on: Aug 3rd, 2012

I was not able to do this in QTP 11.

Answered by: Meena on: Jun 29th, 2007

In QTP 9.2, there is an option to export to XML file

from Object repository manager, File-> Export to XML option is there.

Is this what you wanted or something else

Regards,
Meena

separate this string into two strings like, abc, 123" href="http://www.geekinterview.com/question_details/87965">Vb script

Asked By: prash036 | Asked On: Mar 28th, 2012

If var="a1bc23"->separate this string into two strings like, abc, 123

Answered by: ratna on: Jun 29th, 2012

Code
  1. dim a,x
  2. a="ab1c23"
  3. for i=1 to len(a)
  4. if asc(mid(a,i,1))<>32 then
  5. if asc(mid(a,i,1))>=97 and asc(mid(a,i,1))<=122 and asc(mid(a,i,1))>=65 and asc(mid(a,i,1))<=90 then
  6. mystring=mystring&mid(a,i,1)
  7. else
  8. if asc(mid(a,i,1))>=48 and asc(mid(a,i,1))<=57 then
  9. mynumber=mynumber&mid(a,i,1)
  10. end if
  11. end if
  12. end if
  13. next
  14. msgbox (mystring)
  15. msgbox (mynumber)

QTP scripts from quality center

Asked By: beginner_82 | Asked On: Jan 11th, 2008

How to run QTP scripts from quality center

Answered by: Arunkumar on: May 15th, 2012

This script Answer is: it will connect to QTP server first then the user will give the username and password and Enter in to the particular login page.

Answered by: vickyviz on: Jan 29th, 2008

Firstly we got to download Mercury Quality Center Connectivity Addin and QuickTest Professional Addin Open QC,Create a new Subject in Test PlanThen place all your QTP scripts in folderOpen Q...

What is smart identification in QTP

Asked By: Ebenezer | Asked On: Mar 27th, 2006

Answered by: Mani on: May 14th, 2012

Smart identification to identify the dynamic object smartly, this is used only for web applications. The base filter information will be in mandatory property and the associated properties details wil...

Answered by: mfsi_satyakamm on: Mar 20th, 2012

Whenever normal identification fails due to the dynamic changes in the properties of the objects, QTP uses Smart Object Identification which is a unique feature of QTP.

Smart Identification is an algorithm used by QTP when it is not able to recognise an object.

QTP not capturing the page for web application

Asked By: Aishwarya | Asked On: Aug 23rd, 2011

Hi am using QTP 9.2 version.Window applications are working fine,but for web applications QTP is not capturing the page when we click the (add objects to local icon) and the objects are not getting added in object repository.Am using ie9 and os is windows 7.I don't know if some settings are wrong in...

Answered by: mfsi_satyakamm on: Apr 30th, 2012

QTP 9.2 version doesnt supports IE9
QTP 9.2 supported browsers are IE6 and IE7
Turn off your protected mode in IE and also disable User Access Control setting in windows 7
It will work fine :)

Data driven testing in QTP

Asked By: anurag.sinha80 | Asked On: Sep 8th, 2009

How to test login module with different username and password by using data driven testing in QTP.

Answered by: mfsi_satyakamm on: Apr 25th, 2012

We can use Data Table for this purpose (i.e. either local Data Table or global Data Table). We can put datas to the Data Table under columns declared as username and password (i.e. column names are gi...

Answered by: prasanti on: Apr 2nd, 2012

Here is the script below for gmail log in page. "vbscript SystemUtil.Run "iexplore.exe" Browser("micclass:=Browser").Navigate"http://www.gmail.com" Browser("title:=Gmail","micClas...

How will we know if the test case is executed correctly or not?

Asked By: Sagar | Asked On: Sep 7th, 2007

After execution of the script, how we will come to know that test case is executed correctly or not?

Answered by: mfsi_satyakamm on: Apr 23rd, 2012

After execution of the script for a test case, we can insert print message or alert box in the script which can show us the immediate result after a script run which will help us determine whether a particular test case executed correctly or failed.

Answered by: saroj.swain on: Sep 22nd, 2007

Put some print messages in the scripts so that after running the script you can see the test result and easilt identify whether its pass or fail.

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.