Contributions
Re: regular expression in name mapping template
Hi all, I got a suggestion from SmartBear Customer Care: "For the first case, \a+ should be enough (at least one alphanumeric character). For case 2 does \b* work? It should match a string which contains 0 or more whitespace characters and nothing else." It doesn't work at all. I think regex don't work with template also if they should. I would be glad to have a feedback from someone who tried regex with templates. Thank you.1.2KViews2likes0Commentsregular 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.3KViews2likes1CommentName Mapping images
Hello, Inside NameMapping I selected "Store all images automatically" cause I want to have a visual representation of every graphical object. This led to a couple of issues: 1) If I try to merge NameMapping with another one (because of concurrent tests registration), the "NameMapping.tcNM" file is correctly merged while the related "Images.NMimg" (and all the *.png automatically generated) is left untouched. In the end a lot of images have been lost. How is it possible to keep everything consistent? I couldn't find any documentation about name mapping images and the related "Images.NMimg" file. 2) I would like to know if there is a way to automatically regenerate lost name mapping images (not manually by means of the "Update image" button) in the same way a running test can regenerate his log images... Thank you very much!1.2KViews2likes0Comments