Forum Discussion

nidhi1's avatar
nidhi1
Occasional Contributor
14 years ago

Using wildcards in name mapping

Hello!!



I am using wildcards to define identifying properties for my objects. My problem is something like this:



1. I define my first object which is a homepage of my website:

   url: http://stg.shop.adidas.*/index.jsf



2. For subsequent pages, I am using

  url: http://stg.shop.adidas.*/checkout*

  url: http://stg.shop.adidas.*/cart*



and likewise...



But, it says that there is no unique mapping name for this object and it might be ambiguous at the time of recognizing objects. I get a message as following:

"The specified mapping criteria do not provide unique identification of the object. This may cause recognition problems during the test run."





Could you please suggest if this is the correct approach of using wildcarding? Or should I change something?



Many Thanks!!!



-Nidhi

1 Reply

  • Hi,



    Do you use only the URL property to map your pages? Does it help if you add some other properties to the recognition criteria? Also, when you're mapping your pages, make sure that there're no other open pages whose URL matches the recognition parameters you specify.



    Note that this message just indicates that your recognition parameters may be unreliable. Your tests will work fine if only a single object will meet these parameters at a time.