The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> HP Functional Testing / Mercury QuickTest Pro / QTP

Pages: 1
DevarajRanganathan
Member


Reged: 12/06/09
Posts: 255
QTP learns enough properties to identify objects?
      #605102 - 12/08/09 11:28 PM

While I was dealing with Winobjects, I found this weird behavior. I am still finding this weird, because I am not able to understand the reason behind this!!

My observation:

I was trying to automate an ordinary windows based application programmed in Delphi, without any Delphi addins. The objects were recogonized as "Winobjects". I had the mandatory property as "Native class" and some properties like "Window id" and others under assistive properties!! I did not enable the smart identification!

While I tried to execute, QTP threw me an error, saying that it was not able to identify the object.

At this point I tried to read the values of the properties that I had given in the assistive properties section. I found that qtp has not learnt those except for the "Window Id" property. I made sure of this by using "GetTOProperty" method. I had "Window Id" at the top of the list

My doubt is: If QTP cannot identify the object in an unique fashion with the description of just "Native clas" and "Window id", why it did not care to read the properties that I had given under window id? Why it just stopped with Window id?


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mann_India
Member


Reged: 06/07/07
Posts: 353
Loc: India
Re: QTP learns enough properties to identify objects? [Re: DevarajRanganathan]
      #605129 - 12/09/09 02:20 AM

The reason may be: First of all you have not installed Delphi ad-in and another thing you have disabled the smart identification.

Suggestion:
1. Please try enabling the smart identification.
2. Try writing descriptive programming with max properties.

--------------------
- Manish


Post Extras: Print Post   Remind Me!   Notify Moderator  
DevarajRanganathan
Member


Reged: 12/06/09
Posts: 255
Re: QTP learns enough properties to identify objects? [Re: Mann_India]
      #605132 - 12/09/09 02:27 AM

My concern was why QTP did not learn the properties that I had given below "Window id" property in the "Assistive Properties" list.

How could QTP stop learning with the "Window id" property as the properties that it has learnt was not enough for it to recogonize the object during the run time?

-Devaraj R


Post Extras: Print Post   Remind Me!   Notify Moderator  
rscholz660
Super Member


Reged: 12/05/06
Posts: 1556
Loc: Germany, Dresden
Re: QTP learns enough properties to identify objects? [Re: DevarajRanganathan]
      #605135 - 12/09/09 02:35 AM

Quote:

My concern was why QTP did not learn the properties that I had given below "Window id" property in the "Assistive Properties" list.

How could QTP stop learning with the "Window id" property as the properties that it has learnt was not enough for it to recogonize the object during the run time?

-Devaraj R




sometimes the windows id is changed from start to start, depends from your application, the window id is not the best to recognize a object.
thatswhy QTP have addins for several applications to recognize objects correctly...

--------------------
http://qcmt.pc-polis.de

de omnibus dubitandum

For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mann_India
Member


Reged: 06/07/07
Posts: 353
Loc: India
Re: QTP learns enough properties to identify objects? [Re: DevarajRanganathan]
      #605137 - 12/09/09 02:37 AM

may i know what other properties you have given under "window id" property?

--------------------
- Manish


Post Extras: Print Post   Remind Me!   Notify Moderator  
DevarajRanganathan
Member


Reged: 12/06/09
Posts: 255
Re: QTP learns enough properties to identify objects? [Re: Mann_India]
      #605138 - 12/09/09 02:40 AM

I have had the following properties under window id
1. Text
2. regexpwndclass

These ones were there in smart identification filters too. Thus the script worked when I enabled the SI. At first I had the SI disabled!!


Post Extras: Print Post   Remind Me!   Notify Moderator  
DevarajRanganathan
Member


Reged: 12/06/09
Posts: 255
Re: QTP learns enough properties to identify objects? [Re: rscholz660]
      #605139 - 12/09/09 02:43 AM

What do you mean "from start to start"?

Could you please explain that?

-Devaraj R


Post Extras: Print Post   Remind Me!   Notify Moderator  
Mann_India
Member


Reged: 06/07/07
Posts: 353
Loc: India
Re: QTP learns enough properties to identify objects? [Re: DevarajRanganathan]
      #605146 - 12/09/09 03:15 AM

Quote:

Thus the script worked when I enabled the SI




means your problem gets solved right?

--------------------
- Manish


Post Extras: Print Post   Remind Me!   Notify Moderator  
DevarajRanganathan
Member


Reged: 12/06/09
Posts: 255
Re: QTP learns enough properties to identify objects? [Re: Mann_India]
      #605148 - 12/09/09 03:22 AM

I never had a problem in executing the script.

My problem is in understanding why QTP did not learn the properties below "Window id" if it cannot identify the object with the properties that it has already learnt.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 84 anonymous users are browsing this forum.

Moderator:  IanFraser, Rajkumar_Rajangam, thorwath, TReddy, AJ, Tarun Lalwani, mwsrosso 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 2154

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5