Ask a Question

Wild card not supported in Property Checkpoint > URL? I am getting an error!

SOLVED
royd
Regular Contributor

Wild card not supported in Property Checkpoint > URL? I am getting an error!

Trying to confirm a page/url, as in -

 

aqObject.CheckProperty(Aliases.browser.pifHome, "URL", cmpEqual, "https://*.mydomain.com/THC/MainMenu.aspx*");

I am getting "The "URL" property of the "Aliases.browser.pifHome" object does not meet the checkpoint's condition."

 

chkURL.png

 

Help is much appreciated.

 

Dave

3 REPLIES 3
Marsha_R
Community Hero

Rather than cmpEqual, I think you need cmpMatches

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqobject/checkproperty.htm...

 

and then set your value up as a regular expression

https://support.smartbear.com/testcomplete/docs/reference/misc/regular-expressions.html

 

The way you have it now, the * is just part of the string that's being compared and it doesn't match, so the error shows up.


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
royd
Regular Contributor

Thank you for your reply. I will try that, and post here if I have any issues.

 

 

royd
Regular Contributor

Hi Marsha

 

First, thank you for pointing me to right direction!  For now, I am bypassing having to learn regular expression (deadline!), by using cmpContain to match "mydomain.com/THC/MainMenu.aspx".

 

Need to learn regular expression. 🙂

 

Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: