Micro Focus QTP (UFT) Forums
QTP Recording problem - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: QTP Recording problem (/Thread-QTP-Recording-problem--4684)



QTP Recording problem - Dhruvaljoshi - 04-13-2011

Hello Ankur,

I am not able to record some part of my tutorial. For e.g
1. when i click on start button and open calculator, it doesn't record
2. When i make short-cut of calculator still it doesn't record
3. I clicked on the 'Flight' turorial from HP and record, it opened the page but when i click on 'file' menu and click on exit...it doesn't record.

I'm learning QTP and installed trial version but it is vey sad that i stuck up and couldn't learn. Please help me.

Details of ex.3 is as below :-



RE: QTP Recording problem - Jay - 04-13-2011

try simple solution restart the QTP.



RE: QTP Recording problem - Dhruvaljoshi - 04-13-2011

Hello Jay,
Thanks for your reply.
I restarted the QTP and tried also.. I think something is wrong with window application recording. It works fine with web base application. evne in window recording, it doesn't open the 'Flight' tutorial...once open it records the data...plz tell me..it doesn't record only opening of window application and then record..plz suggest...


RE: QTP Recording problem - Jay - 04-13-2011

try this:
go to add/remove program in control panel
select QTP installation
there is a option here change/repair
go through the onscreen instructions

if something wrong with the QTP setup then this will resolve


RE: QTP Recording problem - Shama Ahsan - 04-13-2011

Hi,

Solution: Make sure to launch QTP as Administrator. For this, right click on qtp icon and select run as administrator. If this dosent solve the problem, I would suggest to reinstall it. Login the machine as Administrator, right click on setup.exe and select run as administrator .
hope it will work.


RE: QTP Recording problem - Dhruvaljoshi - 04-14-2011

Thanks Guys,
I tried and reinstalled it but it did not work out. I Copy-pasted below command but it did not run it.
1. Dialog("Login").Activate
2. Window("Notepad").Activate
I have my personal laptop and i always log-in with my log-in id but when i reinstall it, i ran it as a admin....

plz let me know what can be done...


RE: QTP Recording problem - Jay - 04-14-2011

are directly running code with only copy and paste?

if no OR present for this you wan't be able to run. First try record and they run. Objects should be presents in OR to recognizie by QTP unless you are usign DP.


RE: QTP Recording problem - Dhruvaljoshi - 04-14-2011

Thanks Jay,

First of all, what is DP? Yes, i directly copy-pasting it...and i got the msg that there is no object.....
I'm using Window7 and i think there is some problem with Window because i checked with word document and it is recording on that. One problem i'm facing that when i open word document by copy-paste...it doesn't record but when i keep it open and record....It records...what could be the reason...it may be i have selecte the radio button 'Run on any open window'


RE: QTP Recording problem - Jay - 04-14-2011

First,
Go to Automation-->Record and run setting --> Windows application tab.
make sure that you have selected Record and Run test on any windows based application.
Run on any open window is the right option.

Go through the options available here. If you have selected ‘recode application mentioned below’ option then QTP will record only those application which are mentioned here

Second,
DP is descriptive programming in which we provide object description in the line itself.
Ex:
Browser("name:=Google", "creationTime:=0").Click
what you are using is not DP. QTP goes to OR for object properties and it will lean which object to choose based on the Object. GO through to
help for more details .
Ex:
Browser("brw_google").Click
This is the basic concepts you should learn first.





RE: QTP Recording problem - Dhruvaljoshi - 04-14-2011

Thanks a lot!! I got it!!

Thanks Shama,
I followed your suggestion. Eventhough it did not work out in my case but i learned something new...