QTP does not record on any applications | Quick Test Professional(QTP)
.
QTP Blog RSS

QTP does not record on any applications

After installing QuickTest Professional you attempt to record against an application but find that QuickTest Professional is unable to record anything other than "SystemUtil.Run" commands.

First make sure you have followed this

If you have done as mentioned above then try attempting the following:
Select the option to record and run on any open application

1. Go to Test -> Record and Run Settings.
2. Select the Windows Applications tab.
3. Select the "Record and run test on any open Windows-based application" option.

Note:
The "Record and run on these applications (opened on session start)" option (or its equivalent for other add-in environments) is the default option for QTP.

If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.

Please use the Testing Tools forum for posting questions now!

29 comments:

hadassa said...

Hi Ankur,

A question. What action needs to be taken when a pop-up window of an application is not recognized by QTP. Any action performed on it is not getting recorded. Tried to use descriptive programming...but did not work. How can I create a pop-up window programatically. Please advise.

Ankur said...

Hi Hadassa,
By default, QTP does not record on the pop-up windows. The reason why QTP does not record is that the menu's parent window is not visible. By default, QTP records a command if the object and all its parents are visible. In order to enable recording on an object with an invisible parent, the parent must have the visible property as one of the mandatory properties.Hence set the visible property to mandatory for the parent object.

let me know if this solves the problem.

hadassa said...

Thanks Ankur. I tried this. But let me post one more question. Consider google site. Given any criteria for searching, if I try clicking one of the options using ' Open in new window', action done on that window is not recorded. It's parent would be the google page where the options would be listed. Page do not have visible property. Could you please advise.

Ankur said...

Hi Hadassa,
Let me know if you are able to record right click action while opening a new window.
Remember that right-clicks will not be recorded by default unless the object specifically has defined the onmouseup event to handle a right-click. You need to do these settings in Web Event Configuration dialog.

hadassa said...

No Ankur, this did not work. I have changed Custom settings in the Web Event Configuration Dialog. Could you please suggest me with an alternative solutin. Thanks in advance.

Prajakti said...

Hi,

The java add-in is working fine with some of the smaller java applications but I am not able to record the java application used by our company. Could you please let me know how I should go about solving this problem.

Thanks

chinnu said...

Hi Ankur,

This is Manju. I don't know much of programming, but I am interested to learn Qtp. Could you please help me how to open both yahoo and google pages one after another in Qtp automatically.
Thanks Ankur
Manju.

srinu said...

Hi Ankur,

As per my requirements i have to test whether image is opened properly are not (Broken Image)

my code is like this:

set obj=Browser("name:=Blackboard.*").Page("title:=Blackboard.*").Frame("name:=main.*").object.all.tags("IMG")

msgbox obj.length

For each element in obj
s1=element.nameProp

If Browser().Page().Frame().Image("file name:="&s1,"index:=0").exist(0) then
If Browser().Page().Frame().Image("file name:="&s1,"index:=0").Object.complete="True" then

msgbox "pass"

else
msgbox "fail"

end if
end if

Next

Above code finding the broken images in web page , but its taking time to execute following lines

If Browser().Page().Frame().Image("file name:="&s1,"index:=0").exist(0) then
If Browser().Page().Frame().Image("file name:="&s1,"index:=0").Object.complete="True" then

Is any another option there to find broken images in web page.

Code is working fine but time is main concern here .

Thanks in advance.

Reenu said...

Hi Ankur....wow u r big help to everyone..I have aquestion too.I am new at this.I ma trying to record a VB application. QTP records everything but does not record click on menu items.like "find", "close". Please help. Please meail me on reenu6@yahoo.com

Ankur said...

@ Reenu and ALL:

Please use the Testing Tools forum for posting questions!

shariq said...

Hi ankur,

I am facing the problem of recording click on menu items. can you help?

Ankur said...

@ Shariq: As I have already written above, I have stopped taking questions on this blog. Please use Testing Tools forum for posting QTP questions.

Nivi said...

Hey,

I need to capture a pop up menu in my WPF application using QTP. The pop up doesn't show up in the Object Repository. Could someone help me resolve this issue?

-Nivi

Ning said...

Hi Ankur,
I am new to QTP and I am using QTP 9.2. I tried to record a web application, the application has some child window, such as click a Find button, and it will open a new window. When I recode the workflow everything seems fine. But when I tried to run the record script, I have few problems.
1. It missed few steps, and opens the child window inside the main window.
2. Sometimes since it misses clicking, or double clicking steps the script can not completely replay.
3. I am using IE7, and when I run the record script, it gets some error, and the IE window hangs, or giving the Miscrosoft.com searched by SysFader: iexplore.exe – Application Error.
Do you have any idea on how to fix this problem?
Thanks,
Ning

Anonymous said...

hi Ankur

This is nimisha. I want to know thta is QTP supports HTTPs sites recording ?

Kumar Gaurav said...

hi ankur,

actually i hv just started working on QTP.
I need some help in the beginning.
Actually when I try to record a windows application with QTP, it only records the System.Util....and then it doesnt record anything..
Even it doesnt keep anything in object repositories.
I have ticked "record and run test on any open windows based application" in record and run settings.
I have ticked all the plugin like .net,vb,web,activex,wpf......
when i add object manually to object repositories and code in vb script in expert view...seeing the methods from object spy..
the code works on running
It is getting very troublesome where the problem is.
If you can suggest me anything, then it will be of great help.

rao said...

Hi Ankur,

My query is that, QTP scripts developed for web application using IE6.0 can be reused in MS Vista OS. And also whether the same scripts can be applicable in IE7.0.

Please let me know
Thanks in Advance

shwetha said...

hi all,
i am getting browser pop up window whil running my windows based application can u please help me how to ahndle this.
when i am clicking dont send on the pop up window its not displaying...plz help me in detail

shubh said...

Hi Ankur,
U r really a superstar.....a big help for QTP beginners....I want to test a client server window based application developed in asp.net on QTP 9.0..which .net add in do i need to load???? and please tell me hat will be the classes used for .net application, for visual application it used be like winbutton, winedit etc..

Anonymous said...

Hi.....

I am unable to open the browser while i started my QTP for recording.
one more thing all the browser gets closed automatically.

Anonymous said...

Hi Ankur,
this is Harish
i am using QTP 10.0 and i am not able to identify the Java Object(i have already installed the Java-addin and web service add in) when i do the object spy onn the application it shows as

"winobject:SunAwtCanvas"

plesae let me know how it identify the java object

ashwin said...

Hi Ankur.

I am Ashwin. I got a high prority task. Using QTP I need to Open the a new email from the Outlook using suject line.Please help me in this regard.

Fayaz said...

Hi Nivi,

could you please help me in getting a sample WPF application. Iam currently doing a research on WPF controls with QTP.

Anonymous said...

Hi All,

QTP 10 dosn't Identify WPF objects On Windows Vista (64 bite) OS
Do you have any idea how could i make this work ?

jack sparrow said...

Hi Ankur,
I am working on LoadRunner but I am very much interested to learn QTP, I have downloaded the trial version QTP 10.0 from HP site and installed it in my system which is having windows vista. Now I am trying to record one web application but no code has been generated while recording. Can you please let me know what is the reason behind this.

Thanks,
Prasenjit

Anonymous said...

Any suggestions using QTP 9.2 on a SmallTalk application? QTP dose not recognize some of the objects.

Anonymous said...

Iam a new hand on QTP. Iam using QTP 10 to test a Flex 3.0 application. Is it possible to test Flex 3.0 application with QTP 10. If yes, do i need to include any additional plug ins. Any suggestions on how to get started would be welcome.

Regards

Natesh

Anonymous said...

Hi Ankur,

Can anybody tell me what language the QTP tool itself is written in?

Regards,
Sarkar2009

Ashish.Sarad said...

Hi Sarkar,

QTP is written in C# code

----------------------------

Hi Natesh,

You need a flex addin in your case, that you need to contact flex or adobe to get that, they provide flex addin for QTP