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.3KViews2likes1CommentCan i generate a random number without using a data source and have it passed in the rest request?
I need to generate random numbers which needs to be sent for a field call "ID" and there can be multiple occurrences of this field and thus i want to generate a random number for these tags where ever ID is present of a specified length . Some thing like below is what i want to put where ever field ID is present. "id": %STR(6,6,True,false,false,false), "brand": "e-commerce", "channel": "online", I see that it does not work when i tried and i do not want to use Data Source . Any alternate options?Solved22KViews0likes7Commentsregular 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