regular expression in name mapping template
Hi, I need help to create templates using regular expressions as a match in the active property; in particular I need: 1) template A, active property WpfControlAutomationId, value= "match every object with AutomationId non null or empty or whitespace" (C# would be !string.IsNullOrWhiteSpace(value)) 2) templates B/C/D/..., active property ClrFullClassName, value= "Control specific type" (Button/TextBox/...) active property WpfControlAutomationId,value= "AutomationId is null or empty or whitespace" This way it should match every object with AutomationId with the first template, every other with the type specific template. For the first match I tryed different regex: .+/ (.)+/ ^(?!\s*$).+ For the second: ^$ It seems that it doesn't work anyway, in particular I get a match with the first template for every object or for none of them. Thank you!1.3KViews2likes1Commentregular expressions in property checkpoint
Hi everybody, I have an issue with regular expression in property checkpoints. I want to comparea string. In this stringthere's the current daytime. So to compare this string I need to substitute the daytime with a regular expression. Here's my string: 18:23:45 - test123 This is my regular expression to compare the string: \d\d:\d\d:\d\d - test123 So, this works just fine! My problem is, when I try to compare a string with two or more lines, like this: 18:23:45 - test123 18:23:52 - test456 This expression won't work in TestComplete: \d\d:\d\d:\d\d - test123 \d\d:\d\d:\d\d - test456 I just don't know why this won't work. any ideas? Thanks!Solved1.6KViews0likes1Comment