Micro Focus QTP (UFT) Forums
Smart Id configured but not being used - 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: Smart Id configured but not being used (/Thread-Smart-Id-configured-but-not-being-used)



Smart Id configured but not being used - wheelercha - 12-10-2009

Hi Ankur,

I am new to the site, the forum and to QTP. I have been thru the tutorials and now I am beginning automation of the company site. Two questions for you.

1) I configured the smart identification Base Filters and Optional Filters for a WebEdit. When I run my test I get a warning. The warning show the Base and Optional filters that are not the ones I set up. Is there something else I need to do to actually 'turn on' this smart identification to look at my custom configuration? Warning message :
The smart identification mechanism was invoked.

Reason: object not found.

Original description:
name=invDate
micclass=WebEdit
html id=editInvoiceDate
class=dijit.form.DateTextBox

Smart Identification Alternative Description:

Base filter properties (36 objects found)
type=text
micclass=WebEdit
html tag=INPUT

Optional filter properties
name=invDate (Skipped)
html id=editInvoiceDate (Used, 1 matches)
max length=30 (Ignored)
default value= (Ignored)
class=dijit.form.DateTextBox (Ignored)
rows=0 (Ignored)
visible=1 (Ignored)

Next Question:
I have totally matched an objects properties but when I run the test it gets stuck and says it doesn't recognize it. I have clicked the WebElement to make the focus in the WebEdit field. Now all I need to do is Set "32.00". Set does not seem to be doing anything, is it because it doesn't recognize the object? What can I try?

Thanks,
Charles


RE: Smart Id configured but not being used - Saket - 12-10-2009

Hi Charles,
have you set the mandatory properties?
here I can suggest you a better object identification settings for webedit.
Mandatory Properties - html id,html tag,name,type
these are sufficient to recognize the object, incase you want to try using smart identification
Base filter - html tag,type
Optional filter - name,html id, class, default value,visible

try this and let us how it goes.


RE: Smart Id configured but not being used - wheelercha - 12-10-2009

(12-10-2009, 09:52 AM)Saket Wrote: Hi Charles,
have you set the mandatory properties?
here I can suggest you a better object identification settings for webedit.
Mandatory Properties - html id,html tag,name,type
these are sufficient to recognize the object, incase you want to try using smart identification
Base filter - html tag,type
Optional filter - name,html id, class, default value,visible

try this and let us how it goes.



RE: Smart Id configured but not being used - Saket - 12-11-2009

Charles, I think you missed to write in your post. is it working now?


RE: Smart Id configured but not being used - wheelercha - 12-11-2009

Saket,

I decided to use a new approach. I deleted the old Object from the repository and added a new one with the same exact mandatory properties. It works like a charm now.

Thank you very much Saket.

Let me ask - why do you think it worked although they both matched?