This page has moved to About LearnQTP It will be automatically redirected to http://www.learnqtp.com/about/. In case it doesn't, you can click here.
Learn QTP started in Nov 2006 on blogger CMS as a one-stop shop for those wanting to learn about HP Quick Test Professional. In a couple of months, the blog saw tremendous growth in its readership and responses.
To handle the increasing volume of testing-related questions on the blog, a separate Testing Tools forum was launched in Jan 2008. This forum has a managed environment for QTP users/experts to interact and learn, and is successfully running with 3050+ members, 1700+ threads, 5200+ posts at present.
Learn QTP covers topics such as QTP tutorials for scripting, concepts of object repository, descriptive programming, interview questions, regular expressions, QTP automation object model,XML etc that address the needs of beginners as well as advanced users of QTP.
If you are a beginner, refer this step by step guide to learn QTP.
If you are looking for optimizing your QTP scripts, refer how to optimize QTP scripts.
About Ankur: I work with and write about automation testing tools, and am a
Mercury (now HP) certified Quick Test Pro specialist. I have worked on several QTP projects to perform large-scale regression tests, health checks in ERP applications and automated data load in implementation projects, using various technologies like Visual Basic, Active X, Java, Siebel, Mainframes and Oracle. When not working on testing, I can be found online playing chess or researching cool new technologies.
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 do leave your comments/suggestions!
Disclaimer: The views expressed are my own and not necessarily those of my employers and their affiliates. The views and opinions expressed by visitors to this blog are theirs and do not necessarily reflect mine.
About MercuryQuickTestProfessional @ blogger
Subscribe to:
Post Comments (Atom)
179 comments:
Nice effort man...good to see this blog.
Hi Ankur,
Good work on initiating this blog. I'm going to be a regular here :-)
Look forward to more comments from me soon.
Thanks Mr Anonymous and Karthik...your comments will go a long way in making this place a beautiful place for QTP knowledge seekers.
thanks Ankur for wonderful blog on QTP.QTP tutorial and QTP Student Handbook is a dead link.can you plz fix those?
Thanks
Hi Jagat, Thanks for pointing the dead link...I have fixed the problem...check that out
Thanks Ankur.I really appreciate it.
Nice work Dude.... surely I would be a regular here....
Cheers..
Hey Ankur,
Thats Great
Thanks everybody, do leave your suggestions too...if u wish to have some more topics included under this blog
I have no idea what QT is, but just from an old guys eyes point of view ... The orange is just too much to look at.
Hey ankur,
what is the best start up point to start with QTP?i mean can you please point out to some programming tutorials/material to develop test cases n start working with QTP?
thanks a lot
Hi Jagat,
For the starters I would recommend going through the VB Script documentation provided with QTP especially get hold of the list of in-built functions. They will prove to be very useful while scripting.
From mine and my team experience I can say that VB Script is one of the most easiest scripting language to learn.Anyways...Keep frequenting the blog...I will try and see if I can put some relevant Vb Scripting material for beginners.
Regards,
Ankur
thanks Ankur.
Hi
ankur this is very useful blog for qtp tool .
Thanks
Pullareddy
Hi Ankur,
am relatively new to testing field and also in QTP....It would really help if you could post some challenges faced in using QTP and how one handles it in real life scenario. Also others can also post in their critical challenges if any so we can all learn from each other.
Hi Simi,
Thanks for your suggestion.Well,yes I am already in the process of writing some real life experiences and difficulties which I and my team have faced...u will get to c that soon...also in the same topic I shall be adding a dedicated section so that everybody could comment their past experiences with that tool.
Regards,
Ankur
Hi Ankur, Great work! Keep it going!
hi buddy i read ur blog and its very intersting on
> QTP .. well iam also ankur and doing manual testing
> since last 1.5 years ..i have done enough of manual
> testing both onsite and offsite and wanna expand my
> horizon so looking for learning automation.. i have
> started learning QTP and read your blog and cleared
> one interview also on QTP but didnt joined ....
> buddy like you i wanna do mercury QTP specialist
> certificaion i have checked the mercury site but
> almost all of the info is US related ...
>
> Can you guide me how to proceed for QTP Specialist
> certifcation
> can you aslo tell me how relevant is CSTE for a
> manual tester wid 1.5 yrs exp like me ..
>
> looking fwd to ur response ..
> ManyThanks,
Hi Ankz,
For the Mercury QTP cert...as far as i know there are very few people from India who go for certification on their own...My suggestion is to ask the Testing dept in your org...generally Mercury conducts exam in the org premises itself, if it finds the no of test takers tobe adequate enough.If at all you wish to go on your own, you can contact the local Indian cell of Mercury...details of which can be found on Training and Certification link i have given on my blog
Regarding CSTE, it will definitely be an add-on to your Resume considering you have 1.5 yrs of exp ...while studying for exam( though it becomes boring sometimes--all theory!!!)..you will get to learn many things on Testing perspective...which otherwise you might not get a chance to learn in your day to day Testing activities.
Thank you very much for this big effort Ankur. I'll be your biggest fan!
Nice effort man...keep it going
working out the student handbook enough for certification as Specalist
let me know Thanks
Hi Das,
Other than the student handbook make utmost use of the knowledge base of support.mercuryinteractive.com,if you are aiming for CPS certification. It contains excellent explanation of qtp concepts.
Let me know if you require some specific information
what concepts??? like framework can you be more specfic thanks a lot again ankur for answering if you have docs which I shd be reading can you email me @ dasarathy18@gmail.com
Thanks a lot again
HEY ANKUR I FIGURED THERE WOUL DBE 70 QUestions IN THE TEST WHATS THE MINIMUM SCORE FOR passing .it would be great if you have the details
Thanks
Regards
Das
Hi Das,
By concepts I mean, you should clarify the smallest of doubt regarding QTP before appearing for the exam from support site.
Regarding your 2nd Q: The passing marks are 70% and no of questions will not be 70 but "ll be 40.Also learn the demo client-server application provided with QTP installation, they ask one debugging question from that generally.You will get 4 hrs to answer the questions.
Best of luck!
Thanks my tutor
iam reading and hope i pass
well thanks again keep up the godo work
Great work Ankur..!!!!!
Great to see some one invisible helping others....!!!!!
Keep this work going...!!!!!!!
Hi Ankur,
Great job dude!!!!!!!!!I really appreciate the way you have collected and put down all the articles and experiences relevant to QTP and Automated Testing in this portal...keep up the good work.
Can you suggest me how to get a good grip on VB Scripting and use the VB SCripting extensively.Currently I have knowledge and experience in using the QTP Features but what I think that the next level of automation will be VB Scripting. Please suggest me how I can pick up the things in VB Scripting..moreover still I consider myself at beginner level in VB Scripting -:).
Looking fwd to ur reply and suggestions.
Gaurab
Thanks Gaurab, For your query please refer to my comment written on December 08, 2006. Do let me know if you have any specific query regarding VB Script/QTP.
Hi Ankur,
Great job, keep it up. At one stop you have provided all the information related to QTP. Where do you work ?
Thanks.
With best regards
Ranjit Vanka
Hi Ankur,
I need to test an SOAP API through WSDL file. I am new to QTP. Could you point to a resourse please?
Thank you,
rAnAre
Hi Ankur,
Great Job yar..
The blog is really useful n informative.
Hi Ankur;
First of all I would like to thanks for your effort to saving effort in hunting on web. I’m new born baby for QTP so I tried to open/ save QTP tutorial and QTP Student Handbook for reference but I have observed that these two links are dead links. Can you fix those so that other can use it for reference?
Thanks in advance...
Thanks and Regards;
Pranjul
Hi Pranjul,
Thanks! Check it out now.
Hi..,
Its shantha..
could i know y QTP is meant for Keyboard Driven Testing.......
Hi Shantha, Its not Keyboard driven but keyword driven testing. You can refer http://mercuryquicktestprofessional.blogspot.com/2006/11/whats-your-automation-framework.html for more clear understanding.
Hi Ankur,
I came across your site through Google search and I found a treasure trove of information on QTP and automation testing. Thank you very much for the effort you have put for this. Continue blogging.
Regards
Rajesh (Raju)
Hi,
I have been searching for QTP tutorials for a long time. Your efforts to make this notes availble to all is highly appreciated. Thanks for this effort.
Regards,
Rakesh.S.
Hi,
This is Vinay..
Can we create QTP Exe or Run QTP Scripts without opening QTP.
Regards,
Vinay
@Rakesh---Thanks!!!
@Vini---You can use a utility called Test Batch Runner provided with QTP installation.You can find it here: Quick test professional-->Tools-->Test Batch Runner OR secondly if you are using QC/TD, you can directly run your scripts from there also.
Hi
I have installed QTP on Windows Vista and now when i am launching it
it normally shows 4 windows
in my case Active screen window is not coming up ..
i have reinstalled it 2 times, no luck
Can someone pls help me
thanks
Manav
Hi Manav,
Try View-->Active Screen. if that doesnt help..let me know the version of QTP you are working on.
Hi Ankur,
First of all thanks for collecting relevant information at one place.
Definitely I will keep in touch ...
Really Hats Off To You
Hitendra
Hello Ankur,
Thanks for leaving a comment on Nuts & MIlk. What I see is light grey text on a dark grey background. I didn't understand what you meant by black on black :) Did you check the page in Internet Explorer? The page looks same in IE & Firefox. Do check it out in IE & lemme know :)
Thanks
hi ankur,
How to create a process by which kick off the scripts to run automatically and create output files on scheduled time?
Hi ankur
this indeed is the best blog for QTP users, especially beginners like me.
i have not been given any training for QTP. what all little things i can do with QTP is my own R&D, though it works for simpler things, i face problems when i have bigger problems to tackle.
and this blog have been useful in terms of directly searching for the solution than going topic by topic which demands more time which i dont have at the moment.
thanks again for estimable effort.
Here is one problem that i am facing which i feel is related more to the QTP settings than the application i am testing.
i want to record any pop up window that may occur while the QTP is running. This pop up is not something that appears in normal flow and hence it is not recorded in original script.
for this we can use Scenario Manager.
after opening the scenario manager, i click on Pop Up checkbox which forwards me to next page where there is a "pointing finger" option which i am suppose to use to click on the header of the application. for this when i click on the "pointing finger" all other windows including that of the QTP should get minimized so that i can click on the header of the pop up and capture the text and error message that it shows.
but it is not happening in my case.
Here QTP's main window do not get minimised the way it should and hence i cant click on the application.
is there any setting in QTP which is preventing main window from minimizing??? how do i solve this problem?
i closed all other windows thinking that it might me creating trouble and kept only QTP and my Application active, still the problem is persistent.
do let me know if i need to change any settings.
Thanks in advance :)
PS: i am using QTP 9.0 version.
@ Breathing Thoughts...Thanks!
Regarding your question, Ideally as soon as you click on the hand icon it should minimize all QTP windows but if it is occurring you can press ctrl key, the hand pointer will convert into mouse pointer where you can manually minimize the required windows then release the ctrl key mouse pointer will again convert back to hand.
Hey thanks so much Ankur
i am sure that will help....
but as a tester, i feel i should have known this.... ;)
thanks anyways!!!
hi, this is very nice to learn more about qtp
give some scripts like how to select a mail from web table and give some real time senarios etc..
give some good examples to real time senarios
hey hi ankur
your last tip worked. :) thanks
now i am trying to run Recovery Scenario Manager for Oracle based application.
when i am trying to capture header name and text of the pop up window by using Pointing Hand icon, it wouldnt capture it.
i have loaded oracle add in but still the problem is persistent.
i tried restarting but wouldnt help. it would capture Web Based Headers though. :(
can u suggest any good tutorial for Recovery Scnario Manager?gh
@ Breathing Thoughts
Please refer my comment on the post QTP does not record on any applications
Hi Ankur,
I want to learn testing including QTP. However, I do not know anything about testing!!How do I start? Do u offer any courses-on line or ???? Please respond at your earliest. My e- Mail ID is rajarao_rao@yahoo.com
Hi Ankur,
I am srinivas from Bangalore working as QA Analyst, I am into Test Automation using WinRunner.
I think you have comeup with a good idea of collecting what all you have come across in QTP.
Great job.
I would take your blog as a refrence for getting knowledge in QTP.
Regards,
Srini.
Hi Ankur,
This is Vasu,working as a Senior QA Analyst.I am in manual testing and I want get the knowledge & practice in automation ASAP.Is it better to learn QTP directly rather than learning WinRunner.I am waiting for your reply.To learn QTP which one is appropriate tutorial for beginners.
Thanks
Vasu
@Vasu: Start with the QTP tutorials and use the demo app provided with the installation.Use this blog for your questions.
Hi Ankur..
Really good job ur doing.. and also thanks making available all the documents regarding QTP..
Now i have an request for you..
The link which u have mentioned for Download QTP 8.0 CBT has been taken off from the HP,,
so can u suggest if there is any other means to Download QTP software.
Hi Ankur,
How to enable the checkbox in File -> Test Settings -> Run Tab ->
Disable Smart Identification during the run session
Using QTP Script
(see this for help : Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
qtApp.Launch ' Launch the Application
qtApp.Visible = True ' Make QuickTest visible
' Configure options
qtApp.Options.AutoGenerateWith = True
qtApp.Options.WithGenerationLevel = 3
qtApp.Options.DisableVORecognition = True
qtApp.Options.SaveLoadAndMonitorData = False
qtApp.Options.TimeToActivateWinAfterPoint = 600
qtApp.Options.RestoreLayout
Set qtApp = Nothing ' Release the Application object )
Hi Ankur,
During web testing, the values changes dynamically....whats the logic for VB Script to tick the Checkboxes depending on the condition ..
Hi Ankur,
How to write descriptive programming to handle dynamic objects.....
Could you put some scripts..
Thanks in advance
Deepa
Hey Ankur,
How is the QTP certification exam. Is it multiple choice or written..Do they ask us to write the scripts ...could u telll m
e how exactly is that...
Ramya
Hi ankur,
Can you please tell me the connection string for connecting to DB2 using QTP? I need it urgently if you could reply soon that could be great
Thanks
Subrat
Hi Ankur,
I am facing a problem in qtp. I needed your help.The problem is in our web application when we search for say a user(eg users starting with "a") we will get a list of user with "a". Now for each rows there will be a radio button and a checkbox. First i need to select the radio button and then check box then click delete/modify user. Now using scripting i am able to automate for the first record only i am not able to repeat the same for many rows as searching with different names yields different rows. SO can you suggest how i need to overcome this issue. Can you give u r mail id/contact id. mine is sharath.mnsk@yahoo.com
@ Sujay:
Dim App 'As Application
Set App = CreateObject("QuickTest.Application")
App.Launch
App.Visible = True
App.Test.Settings.Run.DisableSmartIdentification = True
@ Anon1 asked: During web testing, the values changes dynamically....whats the logic for VB Script to tick the Checkboxes depending on the condition
You can simply use if then else or case select statements.
@ Deepa: Please refer my post Descriptive Programming Simplified
@ Ramya: When I took the exam QTP certification was of two types, CPS (Certified Product Specialist) and CPC (Certified Product Consultant). For CPS, The questions were all MCQ's type. They will not ask you to write the scripts for CPS. I would suggest to have a fair amount of hands-on experience before taking this exam.
@ Subu: Its the same way as you create the normal connection strings but for DB2 you need to make sure that after creating the connection string, you remove all the information from it except for the DSN, username, and password.
@ Skumar: As you said searching with different names yields different rows. You need to dynamically find the no of rows at run time for a given query and then use a for loop, with its max value as that dynamic value.
Hi Ankur,
But getting the number count is not a problem. My question I not able to automate so that i select each radio button once. Also the index of the radio button is not sequential.It is random. Did u get the question. Plz help me out
Hi Ankur,
I have got an unresolved issue of QTP 9.2 with Peoplesoft.
QTP Version- 9.1
Addins used- Web and PeopleSoft
PeopleSoft Addin version- 8.2
Framework- Data driven & Modular framework
Problem- The PeopleSoft application is being crashed every time at the 3rd or 4th dataset producing an Visual C++ RunTime error. The same test case is scripted in WinRunner and in that case it does not produce any Run Time Error even if we executed more than 20 datasets. Could you suggest us what are the the bottlenecks for QTP and PeopleSoft combinations? We had referred Mercury knowledge base and it suggested minimizing and maximizing the People Soft application after execution of each record, so that it can release some memory and the application crash can be avoided. This did not help us at all.
Could you let us know, if you have any solution for this?
Thanks in advance.
Can I get your email id and contact number?
@ Skumar: You need to find out one unique property. Have you tried using "Location" ordinal identifier?
@ Niranjan : After closing the Visual C++ run time error box does your app behave normally or it crashes? If it behaves normally you
can check for the existence of run time error box and close it programatically or can use recovery scenario.
On second thought this issue appears to be related to memory hogging. Try to free up your RAM as much as possible, especially while test is running.
Have you tried it on some other machine?
Hi Ankur,
After closing the Visual C++ run time error box the app[PeopleSoft IE browser] crashes alongwith parent IE Browser. So no question arises of using recovery scenario.
The second thought is true and memory hogging happens. Observing through the Task Manager, we got know that the process memory [in memory] is not consuming more than 800 MB at any particular point of time as it is getting released from time to time during the execution. The commit charge [paging] memory only accumulated and never getting released. I feel, to overcome this scenario, a script (Wscript) which releases paging memory can be of help.
I explored all possible sources and did not find any code for VM release which I could run in a frequent interval [may be after every 2 transactions] during script run.
I can send you some snapshots, if you can provide your mail ID.
Niranjan Biswal
niranjan.biswal@target.com
mobile- 9880614825
Thanks Ankur,
Thanks 4 ur prompt reply..
U R THE MAN
SUJ
Is it possible to record QTP actions when remotely accessing another machine??
@ Niranjan: I didnt get the answer to my previous question...Did you try it on other machine?...If the answer is yes and problem is still occurring I would say its an interesting problem and would like to see if I can emulate the same at my end...Is it possible for me to access your App URL?
@ Benny: Yes!
Hi Ankur,
We have tried it in 7-8 lab machines and the probelm still persists. This is really an interesting problem I have ever seen. The application is only restricted to be used the Target intranet. As you are in Bangalore, can we have a telecon sometimes today or monday about the issue?
Niranjan
Mobile- 9880614825
Hi Ankur,
Can you let us know how to develop automation framework for qtp test?
Hi Ankur,
First of all tons of thanks for the work that you are carryings on your strong shoulder .You really deserve pat. Hat off to you my brother.
I have a big question for you it might be very small, but for me it's like climbing to Mount Everest. I have been moved to QTP Testing from 2 years of .NET rigorous development. It's not because of I was incapable to code, but because of Personal Inspiration. I got QTP project in my company since I knew VB Scripting very profoundly. And I now learned QTP tool very well I got trained on QTP 9.2.Now its like marriage of VB Scripting and QTP Tool with me.
Problem:--I am the only resource for QTP in my project. Could you please let me know what all thing I need to know to start the project. I will just give some pointers here.
1>How do decide which add-in in needed to install for my application to enhance the functionality of object recognisation.Do we have any quick check what addin is required to proceed ahead by just knowing the application
2> When we say web add in is shipped by default with QTP .Then what exactly it implies. I will just share my knowledge here if I am wrong just rectify me. I think any application that could navigated (opened) through internet explorer is termed as web application for this why we require any extra Add in. But again I am contradicting myself suppose I am having SAP application as my web application ,Java Application as a web application definitely default add in is not suffice to recognize all this universal set of object. So the web addin, that is shipped with QTP recognizes which type of object? And what exactly Web Application specifies here. As far I know suppose any application built using .NET and if I am opening that through url then there is no prerequisite of installing .NET while navigating that application.)
3>What all document I need to ask from my client to carry out task successfully. Since I am alone in this project and moreover this is my first testing project
4> Any other prerequisite pointers that you think I require for preceding ahead.
I definitely hope you are going to answer my query
@ Niranjan: What are the Add-ins you are using? Does that include Active X add-in also. If yes, please see my post on Points to take care with Active X add-in
@ Anon:
1) The best and the quickest way to find which add-in should be used is to ask the application team developers. Once that is known, install the add-in and do some sample scripting to see (and possibly resolve) the issues you get out of using it.
2) There are 3 add-ins which are shipped by default with QTP namely Web, Active X and VB. If you are working on any application built through normal HTML coding then only web add-in would suffice but if any app is built using SAP , Java or .NET technology then you would require SAP , Java or .NET add-in respectively.
3) It depends on the scenario in which you are working. Some documents I can suggest are:
i) Automation Test Plan: Can cover time lines, framework, info regarding repository for storing and accessing scripts.
ii) Manual Test case doc having test cases and navigation of the app clearly defined.
iii) Application Data
hi ankur.
how to export excel sheet data into quality center
Hi Ankur,
We are only using Web and PeopleSoft addins in our test scripts.
Niranjan
Hi, Regarding my last comment....how is this possible to record when accessing remotely?? For example I access a application using citrix metaframe. I want to record my actions with only QTP installed on my machine and not the server i am accessing! Please help this has been bugging me for ages, I need to stop it recording as citrix window
Hi Ankur,
Could you suggest me script snippet to automatically enable “POP-UP” blocker. Since my application requires clicking a link which opens up a pop up but by default pop up is clock .So every time I need to go to toolbar and right click and select allow pop up. I don’t want to this manually .Could you suggest me script for the same.
Hi Ankur,
I have an interseting question. When i am trying to record on www.google.com/reader website after logging in with gmail account.
There is a "Add subscription" link, which looks like a link but its(QTP) not recognising that object. After adding subscription with some name for cnn.com . I am trying to search the added blog name.
But its not working.....
I TRIED USING ALL TYPES : VIRTUAL OBJECTS / SMART ID / LOW LEVEL.....
HOW CAN WE DO THIS?????????????????
Browser("Google Reader#directory-welcom_2").Page("Google Reader").WebEdit("Email").Set "USERNAME"
Browser("Google Reader#directory-welcom_2").Page("Google Reader").WebEdit("Passwd").SetSecure "47554670794aaacaa416db7e1c5eae9004590255c960"
Browser("Google Reader#directory-welcom_2").Page("Google Reader").WebButton("Sign in").Click
Browser("Google Reader#directory-welcom_2").Page("Google Reader#directory-welcom").WebEdit("quickadd").Set "cnn.com"
Browser("Google Reader#directory-welcom_2").Page("Google Reader (10)").Link("CNN.com (10)").Click
I AM PUTTING THE SCRIPT HERE...BUT ITS NOT RECORDING THE ADD SUBSCRIPTION.....
COULD U PLS TELL ME HOW TO FIX THIS....THANKS HEAPS IN ADVANCE
Hi Ankur,
For my previous question can we do it using. Class Mapping....
What exactly is Class Mapping...
Thanks
Hi Ankur,
In my application I am having a link that opens up a lookup pop up which is having a text box for searching an item since pop up window is having so many pages. so developers have given text box for searching. I need to search two items so I am entering item name in the textbox and clicking search button its listing the same and then I am selecting that item .Again I am repeating the same for new item
The thing is that every time its opening a new page is opening with _2._3,_4 that doesn’t look good I need to do the same through DP.Could you please assist me
I am pasting the code here
Browser ("B_LookUp").Page("B_LookUp ").WebEdit("txtboxsearch").Set "XYZ"
Browser ("B_LookUp").Page("B_LookUp ").WebButton("btn_search").Click
Browser ("B_LookUp").Page("B_LookUp 2"). WebButton ("btn_clear").Click
Browser ("B_LookUp").Page("B_LookUp 3").WebEdit("txtboxsearch ").Set "ABC"
Browser ("B_LookUp").Page("B_LookUp _3").Image("btn_search").Click
How could I make QTP to release about new pop up browser and new pop up page through DP since all this is opening through a popup and parent window is already residing at background?
Regards,
Bharat
Hi Ankur,
Could we parameterize the property value of a control through Descriptive Programming i.e Browser(“Google”).Page(“Google”).Link(“name:=DataTable.Value(“LINK_NAMES”) ?
I am trying to recognize a couple of link through descriptive programming. Here I am maintaining the scenarios also. Suppose I am having links “Hindi” ,”Bengali”,”Telagu” on http://google.co.in home page .I am trying to recognize all of them through Descriptive Programming but its failing.
Datatable.import(“C:\linkname.xls”)
Dim goog_br : set goog_br= browser("name:=.*")
Dim goog_pg : set goog_pg=br.page("title:=.*")
For i=0 to 2
Dim temp
Temp=Datatable.value(“LINK_NAMES”)
Dim lnk : set lnk=goog_pg.Link("name:=temp")
If lnk.exist Then
MsgBox temp & "Link Exist On Page "
else
MsgBox temp & "Link doesnot Exist On Page”
End If
Datatable.setnextrow
Next
You help i ssolicated?
Regards,
Kumar
@ Gareema: Use the object Spy on Add Subcription Link to check its properties. Otherwise check on which technology that link is developed, you might need to add that particular add-in to recognize that link.
@ Bharat: You can use regular expression here. Replace B_LookUp with B_LookUp.*
@Kumar: Try giving some unique properties for browser and page objects and avoid using Set in such situations. Let me know the result.
Hi Ankur,
Could we parameterize the property value of a control through Descriptive Programming i.e Browser(“Google”).Page(“Google”).Link(“name:=DataTable.Value(“LINK_NAMES”) ?
I am trying to recognize a couple of link through descriptive programming. Here I am maintaining the scenarios also. Suppose I am having links “Hindi” ,”Bengali”,”Telagu” on http://google.co.in home page .I am trying to recognize all of them through Descriptive Programming but its failing.
Datatable.import(“C:\linkname.xls”)
Dim goog_br : set goog_br= browser("name:=.*")
Dim goog_pg : set goog_pg=br.page("title:=.*")
For i=0 to 2
Dim temp
Temp=Datatable.value(“LINK_NAMES”)
Dim lnk : set lnk=goog_pg.Link("name:=temp")
If lnk.exist Then
MsgBox temp & "Link Exist On Page "
else
MsgBox temp & "Link doesnot Exist On Page”
End If
Datatable.setnextrow
Next
You help i ssolicated?
Regards,
Kumar
Ankur said...
@Kumar: Try giving some unique properties for browser and page objects and avoid using Set in such situations. Let me know the result.
6:09 PM, December 06, 2007
I have done that situation by declearing couples of variables,But i wanted to know could
i parameterise the property value pair .If so how ? Could you mentain the script also..?
Hi Ankur,
I am having an image control in my page which property is changing dynamically very rapidly. So QTP doesn’t able to recognize uniquely. Sometimes IMAGE Control’s index value is 2, 5, 8 or 3 .And its name is also changing like “ctl00$cphMain$00089f4892064ffd”, “ctl00$cphMain$a5e3515bfd17437b”etc that’s why I could not pass unique description. Image control count is not constant its number keep changing.
So my main concern is how to identify which property remains CONSTANT for dynamic changing object? I am trying to use object spy still unable to indentify the same. One more thing I am adding that object to OR to see which property remains constant but still cant make out.
So just let me know couples of step to indentify constant property for dynamic changing object such that QTP identify the control uniquely?
Regards,
Kumar
Hi Ankur,
Am new and my issue is that after QTP installation, i launch the application but when i click 'ok' on Add-in manager page along with ActiveX and web button selected. the page closed. i tried many times but i can't launch QTP. i have IE7 install.can u help please.
Hi Ankur,
i will like to know if QTP8.2 work with IE7. if it does, how will i go about it 'cause i can't open my to work. please help.
Regards,
QA.
Hi
I have an excel file which stores an object class name, say 'Link' in a cell. I store iable say, this value in a variable, say var1. Now I want to use this object as follows -
Browser(..).Page(..).var1(..).Click
How to do this? I am trying to create an app-indep framework. CAn u pls help me in this?
@ Kumar(1): Property Values pair can be used this way "Property1:=Name1", "Property2:=Name2","Property3:=Name3" that is give the property name and its value comma separated.
@ Kumar(2): For dynamic value,in your case I see that only way out is iteration,
i)Run the test few times
ii) note down each and every property-value pair.
iii) Check for the similarity in them( the one which remains constant)
iv) Use the similar values as the property for the given onject.
Regarding the name property of image I see that "Main" word is always appearing. So here you can use regular Expression .*Main.*
@ qa(1): Have you referred my post Points to take care with Active X add-in ?
@qa(2): For IE7 and QTP, Please refer Some Useful Tips with QTP
@ Anon: An easier way out for your Q is use DP for the given object you wish to get from excel. Also I am not really sure whether assignment operator works this way, try using Set instead.
Let me know how it goes.
No Ankur it doesn't work using DP bcoz u need an object at the first place to define its properties. Wat I m trying is picking up object class, object name & its one unique property from excel. Not sure whether it is possible. Another way out may be using classes. But there I m whirling around let, set & get properties.
Alternatively, there might be any function to create user defined objects that can be mapped to web objects?
Or something else I can't think of?
Any solution! But I Need It!
Hi Ankur
Great Blog.Great job done!
I have worked on QTP 8.2 a year ago.Now I want to certify in QTP.I am not sure if HP has any certification programme on QTP. Any suggestion?
@ Bostonqa:
Please refer the link alongside under heading HP related links. Dont click the link just copy and paste the link in your browser.
Hi,
I am currently using QTP 9.1 trial version with concurrent lisence. I have to access an application (based of SOA architecture)through CITRIX metaframe presentation server. I have installed QTP 9.1 locally on my machine and am facing the problem in object recognition. I have gone through the discussion earlier which says that you need to have tool and application in the same server but then as because the application is on a different server and installaing QTP in that server is not possible due to restrictions. Is there any other way by which it can be done. Use of addins or some programming. Please suggest.
Hi - This is really wonderful site. I have a question regarding whether QTP can be used for automate Microsost Softgrid applictaton .
Looks like its not recognizing the objects. Could you please let me know is there any way we can automate Softgrid?
Much Appreciated your help on this.
Hi
can anybody help me about "how i get the licence for QTP and what is the cost and renewal fee"
another thing is that is it good to start in the middle of the project having so many requirement complexity"
Himanshu
Hi Ankur & Other Readers of this Blog,
I'm the doc manager for the QuickTest documentation team.
I was happy to see Ankur's quote:
"Remember - the best place to find information is documentation provided with QTP itself. That is the most exhaustive material available for QTP." :-)
I would welcome additional feedback (both positive & constructive) on our content, navigational structure, or other features. I also welcome suggestions for good use case scenarios or other improvements that we could add to our docs.
The best place to send this feedback is: sw-doc@hp.com.
Thanks!
- Jackie
@ JackieDock:
You can surely look forward for suggestions from this blog readers.
By the Way, I liked the way you rhymed, he best place to send this feedback is: sw-doc@hp.com :)
Hi Ankur,
Its fanstic blog for which was looking for a while.
I would like to request to post session on Exception handling through functions in QTP just like you have posted for in parts for excel and vb scripts.
Regards,
Sachin
@ Sachin: ya this is one of the posts in pipeline...you will see it soon
Hi ankur,
I work in Oracle and presently im doing manual testing.I wanted to know..is there any way to automate excel using QTP.Actually in my project we use a hosted application and in that excel is a non-browser client and QTP automates only browser clients..so if u could tell me any other way to automate the excel sheet.
Ankur,
would you please post or email me the release date for QTP 8.0 , QTP 8.2 , QTP 9.0 and QTP 9.2.
my email is my18friends@gmail.com
Can you please tell me what are the minimum requirements to attain QTP certification??
Hi,
I am working in testing for around 8 years recently spend a year in working with QTP...
would be intrested to know the Path for QTP certification....
Would also be intrested to refer a good training / Guide... to achive certification...
Please help.
Regards
V Tandon
Can anyone help me in solving a query of mine,does
QTP supports works on Linux operating System
Hello, do you know if there is a sample basic qtp keyword driven framework? Is there is, can you point me to where i can get a copy.
Hi Ankur,
please tell me about output parameter with an example. how do i pass one parameter from one test to another test .
thanks
Damayanti
Hi Divya QTP does not supports Linux/Unix
but X-Runner Supports Linux
Hi Ankur,
I am working as test automation lead. It's nice to see your blog. For the last few weeks i am searching for QTP certification exam dates and appropriate centers where i can write exams, but i have not got any clue even after googling. Will you please help in knowing the Exam Fees for QTP certification. I heard it is about 2500 dollars, but not sure, i doubt. Will you please email me at akilram_79@yahooo.com or you can even give your suggestions here in this site.
thanks
Akilram
Hi,
When i do a right click on the desktop and an menu gets poped up. So, my question how to record it.
Thanks & Regards
Anil Panama
Hi
I am new to this QTP but iam very much intersted in learning this will u help me.
Can u help me form where i should start. Can u provide those materials to me
thanks
Hi Ankur,
I know some basics in QTP and VB Script but that is not enough to do automation. I want to become perfect in QTP and VB Script. But i dont have that much of knowledge. please help me to become a perfect automation test engineer. Give me suggestions how to reach my goals and give me support.
Thanks and Regards,
Shravani
Hyderabad
Hi,
I m working on a e-learning software in Java. It is a GUI with audio, video functionality. I wanted to automate the testing process of my product. Can I use QTP to test such product?
Thanks and Regards,
Asmita
Mumbai
Hi Ankur,
This is a nice blog for beginers and also professionals.I am planning for QTP Certification.Can you please let me know the details like whats the cost for this certification and remaining things are already available in this blog.I could not find this in HP site as the info is US-based.
Thanks in Advance
Roopa
can anyone let me know from where can ii do QTP certification,how much it costs n materialrequired to study?????????????
Hi I am a total novice and have just installed QTP. I am trying to record my first session but its failing. Im trying to do the mercury Tours tutorial. I have put the URL correctly into the record and run settingsand a browser window opens opening the website but i get an error - "The Browser Application can't be launched. Possibly the URL is wrong" even though a IE has opened correctly.
Hi Ankur,
I am regular visitor of your blog, and I really got benefit.
I would like to ask you one question
Is it possible to add paramaeters in analog recorded script??
Can u send the link to download the QTP-SAP Addin
hey ankur..kashif here...remember accenture testing...nice to see you man and u doing a real great job...i found u searching for one of my qtp solution...let me know your email id..mine is mukhtar_kashif@yahoo.co.in
Anyone have come across Syncfusion grids in .NET application??
Hi Ankur,
We are trying to automate a .NET application, where in they have used a thirdparty grid from SyncFusion.
We just wanted to know have anybody come across syncfusion's grid.
If so do post your comments and experiences.
Hi friends i have a doubt.
Can we get the QTP scripts in the form of exe or some dll. so that the code will be hiden and secure.
I have installed QTP. How do we test a SAP business process like Order to Cash. What is the connectivity....Any help would be appreciated. Thanks
Hi Ankur:
I am totally new to this blog. I found it very interesting n more informative. You are doing a great job. I need some information if you or any one can help me....
I need to do QTP certification. Can you suggest that the workshops conducted by different institutes are good or not?
For example: HTS and CresTech Software Systems Pvt. Ltd. they conduct the QTP workshops and certification programs.
Can you suggest one should go for this certification and workshops?
Please reply, I need it urgently.
Thanks in advance.
Rashmi
or please reach me at
rashmi.rajpal@gmail.com
Hi am new learner in QTP , i am working on qtp tool and hence stuck in midway.
I saw ur blog found it very helpful and wish will definitely get a way out of my problem soon from u Ankur .
Here link where u will find forum posted by me, kindly so through it and suggest me to come out of this hurddle
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1227187649391+28353475&threadId=1287052
Hi Ankur,
i am facing one problem in my application
there is one Link(View) when i click on View link then i is opening a new window and then file download dialog but when i am running this script then the download dialog box not displaying so what can i do for this
Please answer
hi ankur,
While running test batch runner, I am getting only last test results. If I want to get all the tests results what would i do?
Hi Ankur,
i will like to become a software tester.i should i go about it and what is take .you can email on kollsherif@hotmail.com please
Hi Ankur,
I didn't know where to post my question, but I need an answer at the earliest.
Hoping you are a right person to ask.
I'm totally new to automation and QTP.
In my organisation, they would like to know whether QTP can handle something they want and if so then they will buy and use QTP for it.
They just want me to find out whether QTP can take user id/ pwd info from a file / place and try to enter into different screens /applications , log into them using the info and save screen shots of the web page logged in(actually we need to find out whether it can save multiple page application i.e., with scroll)and repeat it for 'n' number of different applications.
Can we do it with QTP?
Please reply when you get a chance to priscillamagdalin@gmail.com
Hi,Ankur i really happy to see this blog about QTP I'm visiting this first time it just wondurful.So many Queries and that much of you.I am beginner about QTP n following ur "step by step guide.....".I'm trying to learn it out,but the intention to write my comment is just to thank you for helping the people,I really inspired by u.If any suggestion for me pls post.
Hi Ankur,
I just came across your website today.Good job Ankur and keep up the good work.
I have been attending interviews for 2+ exp in Testing(includes 1 year-QTP). I'm quite good in QTP concepts. The problem i'm facing is that they are giving me some scenarios and asking me to write scripts on them or atleast explain them how my approach is going to be programitacally (The scenarios were mainly mails related or calendar).I have been practising on it. I have seen lots of QTP interview qsns on various websites but never come across the scenarios that i was refering to.It would be of great help if you could give me such scenarios that you know or kind of those normally asked in interviews. This will help me to prepare myself better.
regards,
Vishal
Hi Ankur
I felt the blogsite really good.
I wanted some information about working with QTP on SyncFusion Essential Studio. Could you kindly help me with the same.
Thanks and regards
Krishna
Hi All !
Thanks for this fantastic blog !
I have just got the trial version of QTP running on my machine and start already going through the handbook .
In fact i would like to have your opinion regarding the following :
QTP is of the type of record and playback
which i think its not nice at all ,if the future system will be build under
Agile / scrum methodology meaning that the automated tester using it
for example has to wait till "premature" system is running then he can start testing : in other words the automated tester relies heavily on the output of programmers ( Quality Assurance is not done correctly if you imagine that the requirement was not implemented correctly hence the automated tester wont
see it.( might require Manual testing before starting the automation one )
In the other hand httpunit gives the opportunity to the
automated tester to build his test cases at early stage based on the
requirement rather then on the system (even before implementation ).
Here it guide the developer to test his work before committing his changes .
I guess as QA person the job will be done better with this kind of software.
With record and playback its more easy doesnt require to learn coding
I would like to have your opinions if i see things with right glasses
Thanks Again
yacine
Nice question Yacine. We have something called as "Business Process Testing" build on top of QTP and comes with Quality Center as an add-on. This should address your concern.
For further questions, I request you and everybody else to use QTP Forums [http://www.learnqtp.com/forums/]
Hi Ankur,
This site is really helpfull. Thanks a lot for this.
-Leena
Hi Ankur,
it is really helpful for me.Now I want to study qtp. thanks a lot.
-candy
-My email:zsp_123zhang@163.com
hi ankur
veygood
Good blog.
In fact this sites Google rating is good too. wish you post more articles here...:)
Hy Ankur,
This is the best place to keep update ourselves.
Good Blog Ankur
Thanks
Bharat
how can i capture data from an image in QTP?
hey.,
i've been working on Clarify thick client. i'm on testing part of it. we get requirements and have deployment almost every month, and before the changes go live we need to do the regression testing, which is really a pain and takes nearly a week to complete.
can you please suggest any tools to automate testing of thick client applications. does QTP facilitate the same.??
if yes can you give some directions on how to.
any response will be highly appreciated.
thanks in advance.
Hi Ankur,
I have done a course in QTP and wanna to take up QTP certification, could you help me out for the same, like could you provide details of hw to register and wat kind of preparation has to be done..
Thnx in Adv!
Deepa
Hai Ankur,
Its a fine Blog about QTP tks lot man...
Hi Ankur,
your is a very helpful blog, thanks a lot. I have a question, that How can I write something to test results. For example if I trap an error message with if statement, Let say I am expecting it to happen, and it happened, how would write to test results that this happened.
hi anukar,
You done great work,can you include one topic for different framework and its performance.
Regards
Sreelesh kunnath
Hi, Ankur, Its great to be here with u guys! This forum is very much of value to starters and professionals. Keep it going! Good work man..
hi Ankur,
Thanks very much for the blog.
It provides good information regd QTP & very helpfull
Hi,
I'm using Microsoft Vista Home Premium. Whenever i record the web application, i'm getting the following error, "The Browser application can't launched. Possibly the URL is wrong." I've set all parameters correct. Any one can suggest the solution for this. Thanks in advance!
Bala.
Hi Ankur
Hope u doin well
I need to know whether it is possible to run 3 different QTP VM Sessions with 1 Seat licence (on the host PC)?
HI ANKUR, I HAVE A QUESTION,To learn QTP is necesary to know any programming language? what do you recommend me?
email: aarmelendez@yahoo.com.mx
Hi,
I am a QTP professional.I have gone through so many blogs and articles on QTP and I can say this blog is the best one i have come across.Topics are written in such a simple way there will no second thought to understand them.From today onwards i'll regularly visit this Blog.This Blog is so much informative i believe i don't have to go anywhere else.
Thanks.
Nice blog. I specially like the Interview with QTP experts section a lot!..Keep up the good work Ankur.
@Anon, Roshan: Thanks! :)
Hi would like to know QTP versions released dates of all versions.
Evrything is good but one thing how,when we start automation,
1)My name is sushant sinha working with v-angelz technologies working as software testing engineer.
2)What is diff between test scripts & test case,I know what is test case...but if you say automate these test cases so unable to do this,
So how is it possible to enhance my skills,because after namual testing u have to be in automation because there is no more growth,& every person needs growth...So if you feel that you HELP me i will be very thankful to you guys...
hi ankur,
thanks for this site and i need it very much for enhancing my knowledge in qtp.
thanks for the nice blog has i have lots of doubts on qtp, i want to go through this blog for reference.
Dear Mr. Ankur Jain,
I am KoolJ from Vietnam, i am a tester for FPT software JSC, a big software outsourcing company in Vietnam.
I would like you to spend a little of your busy time to read and determine this kind of IP (Intelligent Proposal) that related to HP-QuickTest Professional.
The story is: we had a team who did a project with customer and use QTP, they created a framework to make work more efficiently.
So, i really need your help, in the view of an expert to look through this document, and determine which in this work would be defined as IP.
Why would i contact you to do this, because we really need some outside experts to qualify the work.
So i thank you so much and i really appreciate you if you leave some comment for this work.
The link to get the framework here: http://cid-3925eb2256203dc7.skydrive.live.com/self.aspx/Public/QTP/IP%20HFS%20Automation%20Test.rar
I am sorry if this disturbing you and your time.
I am looking forward to hearing from you.
KoolJ.
@KoolJ:
Please post your queries on http://www.learnqtp.com/forums/
May be the word excellent is not sufficient to praise this blog.
Really its great Ankur that u r responding to our queries and balancing ur career.
I am new to this blog.
I have a query infact many questions in my mind.
1. If a browser contains 5 pages then how QTP identifies and differentiate those pages?
Thanks,
Mohana
Really Great Work Dude........!
Hi Ankur,
I have been experiencing the same application crash issue across multiple machines as was mentioned in post "11:13 AM, November 27, 2007." The only difference is that we are using a RMS instead of PeopleSoft. Do you recall how we can resolve this issue? Any advice would be greatly appreciated.
Thanks, Kari
@Kari: By any chance did you see the post on Visual C++ errors else post your query in QTP Forums
Hi Ankur,
I read the Visual C++ errors post, but it is not the same issue, so I have posted my query in QTP Forums.
Thanks, Kari
Hi Ankur,
I have created some tests and configured them to a particular URL.
I now need to change the URL of these tests as I have deployed the same application else where. Can you please let me knoe the steps for the same.
Thanks in advance,
~ Dexter
Hi Ankur
Please tell me what are the different problems can I face while using QTP via VPN.
The Licence Server (Site Licence) is installed in US and I have to use it from India via VPN.
Can you please suggest me some better ideas so that I can convience the client that if he can purchase Concurrent User Licence.
Or Please suggest some good ideas so that I can convience the client.
Thanks & Regards
Munish Sood
Munish,
So you have to work through remote desktop connection.
Though people do rdc recording all the time without any problems but answering your question, this is what I can think off the top of my head now...
1) You have to be always dependent on the remote desktop availability.
2) System will run sluggish vis-a-vis if you were recording the same scripts on your system
3) Having concurrent license mean anyone in your team would be able to access the license.
Please use QTP Forums for further questions.
Thanks!
Hi, Ankur
I am basically from Electronics branch i have 6 months exp in manual testing .
My company wants me to shift to automation, is it mandatory for me to learn programming concepts to start automation using QTP?I am very new to QTP.
PLZ Suggest me the best way to start my automation testing career.
thank u
Hey Anonymous,
Answering the query as it's obvious one :).
Well you can do very basic stuff without knowing programming and going through QTP tutorial in detail but 'decriptive' programming requires knowledge on VBScript, also connecting to any external API it will be a lot beneficial. Suggest you to start learning the technical side as well, starting point will be VB script.
Hi Ankur,
I am Ashwin. I need to open a email from the Outlook 2K3/2K7 Inbox using subject line.
Please help me in this regard.
Hi... Ankur
This is Chandrakant here
Thanks for initiating on QTP
I found here lots of answers of query ..... I am realy thanks u
Not many people share there knowledge like you Ankur.
Thanks a lot and hope this will be helpful for me.
Post a Comment