Points to take care before starting with QTP and Test Director/Quality Center | Quick Test Professional(QTP)
.

Points to take care before starting with QTP and Test Director/Quality Center

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 Testing Tools forum for posting questions now!

49 comments:

mohammad said...

THESE TWO POINTS ARE VERY IMPORTENT TO KEEP IN MIND FOR SAFE USE OF QTP ...AZHAR(KAZIPET(AP)-INDIA)

srikanthrudra said...

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.

Anonymous said...

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?

Anonymous said...

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"

Manyu Singh said...

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 said...

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

Ankur said...

@ Anon: try using .type instead of presskey. If that doesn't work refer my post on sending commands from keyboard to your application

Anonymous said...

...Excellent job buddy. Very helpful....Thx

hapte said...

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!

UMAR said...

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.

Anonymous said...

Hi Umar,
You can try WebEdit("xx").object.currentstyle.background. hopefully this should solve your problem.

UMAR said...

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?

Ravi said...

If we use discriptive programing for Scripting, Are we not using Object repository?

Ankur said...

@ 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.

Vibs said...

The Best intiative ever taken to help understanding QTP.
Thanks :)

Anonymous said...

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...

gems said...

Ankur,

can we use QTP for validating UI changes in an application?

thnx,
gems

Ankur said...

@ gems: Can you elaborate?

kamal said...

Hi Ankur,
Can you please tell me how can we write Expected and Actual result in QC using QTP...


Thanks in Advance

Kamal

suri said...

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.

arsh said...

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.

arsh said...

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.

Anonymous said...

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

Aparna said...

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 said...

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?

Ravi said...

Yes you can automated QC, however you need to enable some properties for web objects.

Krishna said...

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

manjula said...

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

manjula said...

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.

sushant said...

Hi, Aprna
My suggestion is,if you are not good in script then dont jump to QTP. Stay with mannual.

Anonymous said...

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

Dayanandacs said...

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

dayananda said...

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

Anonymous said...

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...

raghu said...

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 said...

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.

Prasanna said...

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 said...

Somebody can help please.
is there any programme for clearing cookies and close browser and open browser

Mayur Kumar Budha said...

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

Honey bee said...

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

Anonymous said...

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

USC said...

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

Thirupathi said...

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

Raga Sree Kondapaneni said...

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

pranati said...

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..

Anonymous said...

Hi,

Can some one please tell me how to automate the Testset execution in QC? like setting the hostname

Anonymous said...

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.

Puneetha said...

Hi,Plz let me knw..does QTP supports web applications developed by php?

Biography said...

Hi Ankur,
I sorted so many confusion through your posts.
Can you give a script for different framework.