Forum Discussion
- Marsha_RModerator
You can use a wildcard to match any seconds value or you can use aqString methods to match a partial string or to truncate the compared strings to remove the seconds value.
https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html
https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqstring/index.html
- mikefStaff
You can use a wildcard or regular expression as the value - double-click the checkpoint in the KeywordTest and change the Condition to a suitable value.
- jyothinbContributor
I am using the property checkpoint code as below, how can I use the regular expression or wild card here?
aqObject["CheckProperty"](dshbrd, "WndCaption", cmpEqual, "aqConvert["DateTimeToFormatStr"](aqDateTime["Now"](), "%A, %B %d, %Y %#I:%M:%S %p"));
- rraghvaniChampion Level 3
Here's an example using wildcard,
Using cmpMatches and using wildcard to omit seconds and am/pm
Related Content
- 3 years ago
- 2 years ago
- 2 years ago
Recent Discussions
- 3 minutes ago
- 8 minutes ago