QTP
* Always start QTP first then start the application that you want to automate.
* Try to avoid the Text Checkpoint, GetText function and other similar functions that deal with screen resolution as this may fail your test in the long run.
Test Director/Quality Center with Web Add-In
If you are working on Web app along with TD/QC open, you might witness that the app opens up on TD/QC browser itself during playback instead of opening in a separate window. The answer for this is to set the index property for browser.
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.
Note: Please use the QTP forum for posting questions now!
Check the up-to-date matrix for the currently supported versions of QC/ALM by QTP (UFT).
If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by email below and have new UFT articles sent directly to your inbox.
Ratna says
Hi Ankur,
Recently we migrated from UFT11 to UFT12. and we are using ALM11.52. We are trying to execute scripts directly from ALM. Session is often disconnecting say after 20 min and because of this result is not getting updated in ALM if we keep the scripts which takes execution more than 20 min. Could you please help me how to overcome this. let me know is there any patch available.
Your effort is really appreciated.
Thanks
Ratna
Vipin Ganesh says
hai ankur
iam vipin, iam new in qtp can u please help me when i installing qtp 9.2i got following error 1. qt_exec.cfg missing
2. gsw32.exe missing
after the completion of installation , i record a new test ,but i cant save the test ,and also when it click on the run button an error shows failed to find.cfg file (msgid merr-10777)
Anonymous says
1. There is a web table with two columns. First column contains the name and second having an image link, based on some conduction. For some row image doesn’t exists.
How would we calculate the total image exists in the second columns.
2. We want to count the number of the text box of the right side of the page.
sainipra@gmail.com
Only right side of the page not left side
Arun says
One thing I noticed while I run the QTP scripts from QC is the responce time is very slow.
If I save the script in the local folder of my computer and than ran it, the responce time is better.
Tip: while developing the QTP script it alwyas safe to store in the lcoal folder(there will be no. of re-run of the scripts). On final completion of the script and succssful completion of a trail run then the scripts can be saved in QC to officially run the script.
pradeep says
Hi ,
This is Pradeep. New to QTP. I am facing problem whenever I try to record a script with IE7, the browser crashes and i cant record anything. Do you have any patch for this problem so that i could install that in my system. I have valid licensed version of QTP. Please advice,
Thanks in advance
Pradeep
sachin says
Hi Ankur,
I am sachin from pune, i am having 3 year of exp in manual testing . i would like to move to Automation , Please help me out for same. i am beginner for QTP. if you have any document for sharing then please help me out . How i start ??
Please help Dear.
My Mail Id:
sachin.kasar234@gmail.com
Biography says
Hi Ankur,
I sorted so many confusion through your posts.
Can you give a script for different framework.
Puneetha says
Hi,Plz let me knw..does QTP supports web applications developed by php?
Anonymous says
HI …. im new to QTP …i want to know how to check create a cheCk point using VB Script for text value…
and how to test a web page with same recorded senario if changes are made in the web page.
plzzzzz very urgent.
Anonymous says
Hi,
Can some one please tell me how to automate the Testset execution in QC? like setting the hostname
pranati says
Test Director/Quality Center with Web Add-In
If you are working on Web app along with TD/QC open, you might witness that the app opens up on TD/QC browser itself during playback instead of opening in a separate window. The answer for this is to set the index property for browser.
Instead of giving the Index property u can open QC from start menu->my Computer->Type the path..It will open QC as a window…No need to gieve index..
Raga Sree Kondapaneni says
Hi,
I have question regarding pop-up Recovery Scenarios:
How can we handle an unexpected pop-up box which is raised while I am running script (I know we can handle, if we know the name or properties of the pop-up window)?
Can any one please help on this?
Cheers
Sree
sreeni123@gmail.com
Thirupathi says
Hi Ankur,
How are you..?I hope you are doing well..
1.Advantages and Disadvantages of keyword driven frame work.
2.Adv and Disadv of Peraction Repository and shared Repository.
3.adv and Disadv of Smart identification.
4.How convert number to string and string to number without using strreverse function?
Please help me..
Thnaks,
Thirupathi
thiru.qtp@gmail.com
USC says
HI Friends,
This is SrinivasUppalapati. i am trying to learn QTP own.so how to learn the qtp .i want process and guidance for qtp friends. uscmca@gmail.com and uscmca@yahoo.co.in
Regards
Srinivas
Anonymous says
Hi,
In Winrunner, we have win_get_text(), Obj_get_text(), find_text() functions are there, is there any same type of funcations In QTP?
to find text and get text..
plz reply me to chanda.rao@enfs.com
poornachebrolu@yahoo.com
–poorna
Honey bee says
Hi,
when i run the QTP(version-9.2) in vista machine,the system gets hang.Pls give me any solution for this.
Regards,
Hanesh
Mayur Kumar Budha says
Q1. How can i use a variable in Test2 – Action’s, that is defined in test1 (action1 –reusable), if we have a way to this then can we modify the value assinged to the variable.
Q2. Environmental –User Defined Veriables are specifi to a Test?
Mayur
Anonymous says
Somebody can help please.
is there any programme for clearing cookies and close browser and open browser
Prasanna says
Hi,
I have installed QTP 8.2 demo version in my PC,I have also installed required add ins for that .Later when I tried to open it,the application is not getting launched.Can anyone suggest me what to do to launch the application?
Thanks in Advance,
prasanna
Anonymous says
Hi
I’m trying to open Object Repository from QTP through VPN(Working from Home), Not able to open…Do you have solution, If so, Please give me the steps.
raghu says
Hi..Ankur
I am Raghavendra, working with qtp
as automation engg , but new to this site .want to do certification in qtp, could you suggest me a way how i can go ahead
Thanks
Anonymous says
I am working on .Net Application.
I want to check the background color of cell.
Cell is not identifying rather it’s identifying whole grid.
below is sample code
SwfWindow(” “).SwfObject(“SwfObject”)
I am able to retrive background color of Grid not the cell.
If you have any solution plz let me know my email ID is ijaz.gadiwan@rediffmail.com
Thanks…
dayananda says
HI
I created scripts in one system and copied to other system when i try to run in other system , my OR is not recognizeing
wht QTP settings needs to be made change before recording so that it will run on all the syetm
if try to record on the other system every object recording like object_2 but object is allready there
Can any body advice me wht shell i do for this ,
Thanks in advance
Dayanand
Dayanandacs says
HI ankur
I created scripts in one system and copied to other system when i try to run in other system , my OR is not recognizeing
wht QTP settings needs to be made change before recording so that it will run on all the syetm
if try to record on the other system every object recording like object_2 but object is allready there
Can any body advice me wht shell i do for this ,
Thanks in advance
Dayanand
Anonymous says
I have a problem with connectivity to the server.
When trying to connect from QTP with appropriate hostname\qcbin
I get this message:
‘Failed to download tdclntui.dll from the server’
Can you help? Thanks
sushant says
Hi, Aprna
My suggestion is,if you are not good in script then dont jump to QTP. Stay with mannual.
manjula says
Hi,
In my comment i asked about the getting text content of pop-up.
I created object by using name, innertext and index value.But i am not getting how to use it further for getting the text content of pop-up.I am working on web application.
manjula says
Hi,
Can you tell me how to get the content of pop-up using QTP.
I tried with GetRoProperty but i dint got the content of pop-up it giving blank…can you please look into my issue
Krishna says
Hi Ankur!
I have one doubt. How to produce the result (using VB script) using QTP? As like ‘tl_step’ in WinRunner. Is there any scipt available in QTP as like tl_step in WinRunner.
Can you pls help me in this.
Thanks,
Krishna
Ravi says
Yes you can automated QC, however you need to enable some properties for web objects.
Anonymous says
Hello,
I wanted to know if i can automate Quality Centre features using QTP. I wanted to automate process like creating project, adding users and things like that using QTP, but i notice that QTP doesnot support recording on QC.
Any Thoughts?
Aparna says
Dear all,
I am very novice for qa. Just entering in qa and had training in automation for mercury tools from consutancy here in USA. But as I am completely at zero level of scripting is it good Idea to enter and start carrier through QTP. I know this is a little offbeat question but as you people are actually working on it your suggestions from your experiences on first job will really help me to make my decision.
Thanks in advance
Anonymous says
Hi,
I am trying to write Desriptive programming for flight application.I got stuck in menu.Object spy is not identifying the menu.
then how should i proceed
arsh says
Hi ,
You have mentioned in froums all about the addin but you dont discuss about .Net Addin and user defined controls. I wan to learn more about the .net addin so please include this topic also in your forum.
Thaks.
arsh says
Hi,
i want to ask that for qtp use, its must have to know about the VB or can esily design the dynamic cases through avialable menu options avialable in qtp.
Thanks.
suri says
Hi Ankur,
On Earlyer u told about this You can try WebEdit(“xx”).object.currentstyle.background. hopefully this should solve your problem
But this will not work becaue background will not support .
can u please tell me this answer.
kamal says
Hi Ankur,
Can you please tell me how can we write Expected and Actual result in QC using QTP…
Thanks in Advance
Kamal
Ankur says
@ gems: Can you elaborate?
gems says
Ankur,
can we use QTP for validating UI changes in an application?
thnx,
gems
Anonymous says
Hi,
Is it possible to integrate a qtp variable in an oracle command/instruction (e.g. in an select or insert command). Perhaps somebody knows more…
thanks…
Vibs says
The Best intiative ever taken to help understanding QTP.
Thanks 🙂
Ankur says
@ Ravi:
Depends on till what level you are using DP.
Example:
Browser(“Name:=yahoo”).Page(“Name:=yahoo”)…
You are only using DP above but in case
Browser(yahoo).Page(“Name:=yahoo”)…
its a mix of OR and DP as browser is taking properties from OR.
Ravi says
If we use discriptive programing for Scripting, Are we not using Object repository?
UMAR says
Hi Ankur/Anonymous
Can you give some details regarding
Citrix metaframe server 4.0 that is
How QTP will identify the objects?
Is that we need to add any addins?
Which version of QTP will suppport this?
Anonymous says
Hi Umar,
You can try WebEdit(“xx”).object.currentstyle.background. hopefully this should solve your problem.
UMAR says
Hi Ankur
As per Test Case i need to check colour of a box which is blue in colour. When i spyed it out i am not able to see any of the colour property even in run time properties. Could you let me know is there any other possible way to check the colour of the box.
Please let me know.
hapte says
Hi All:
I am seeing a problem with QTP where it is pointing to the wrong verision of the Action. To better explain this:
I have following folder structure:
automation/oldfolder
automation/newfolder
I had made changes to oldfolder which I then copied over to newfolder. I then made change to one of the Actions say Action A in newfolder.
Now when I am running the script in newfolder QTP which calls ActionA it is referring to the Action A from oldfolder and not the newfolder.
I commented out the action call to ActionA and used QTP to insert “call to existing action” and called ActionA. Renamed the ActionA in oldfolder to Actionfoo but still I do not see the changes I made to ActionA when I run the script. When I directly go to ActionA I see my changes but when I run the script I see its referring to the older version of Action.
Hope somebody has a solution for this problem. Thanks!
Anonymous says
…Excellent job buddy. Very helpful….Thx
Ankur says
@ Anon: try using .type instead of presskey. If that doesn’t work refer my post on sending commands from keyboard to your application
Anonymous says
Hi all,
How can I record an event where I am pressing ctrl+shift+F5 on a web browser (This is used for changing mode on a Web-based Content Management System).
Can anybody help me with this? I am not able to figure out, How can I use micCtrl, micShift, micF5 in a code like following:
Browser(“WebPage”).Page(“WebPage”).PressKey (micCtrl+micShift+minF5″
Thanks in Advance
email: pramonga@gmail.com
Manyu Singh says
Hi all
I came across a problem with QTP 9.2 ie When i m using DP for Text check point it is giving me error as ” General Run error”. Following is the code. Checkin of Text present on Notepad.
Window(“regexpwndtitle:=Notepad”,”regexpwndclass:=Notepad”).WinEditor(“nativeclass:=Edit”,”text:=MAIN HUN DON”).Check (CheckPoint(“text:=MAIN HUN DON”))
Can anyone help me to solve this?
Thanks in advance.Please
mail me on singhmanyu@gmail.com
Anonymous says
This was the interview question…
Are you some kind of idiot? The answer you should have given was “I have no idea because I have no experience with this tool”
Anonymous says
hi all, how do you automate manual scripts using QTP? this was the interview question asked…can any one give me a clear idea like how to answer this question?
srikanthrudra says
hey really very nice to see your site. but i need some scripts on webapplicatin could u pls help it out. and just know that it is very worthy for getting a job.
mohammad says
THESE TWO POINTS ARE VERY IMPORTENT TO KEEP IN MIND FOR SAFE USE OF QTP …AZHAR(KAZIPET(AP)-INDIA)