Contributions
regular 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.6KViews0likes1CommentWildcard in Property Checkoint via keyword test
Hi there, is it possible to put a wildcard in a property checkpoint via keyword testing? I.e. I want to test a string with a variable (e.g. time): 12:43PM, lorem ispum So my test would be something like: *+",lorem ipsum" It works in a script, but does it also work in keyword testing? Thanks in advance. ArminSolved1.2KViews0likes2CommentsUpgrade to Win 7 - 64bit + Office 2013 --> Image Comparison doesn't work properly
Hi everybody, I recently upgraded my PC from Win7 (32bit) & Office 2010 to Win 7(64bit) + Office 2013. I created some tests under my old system, which worked properly. Now under my new systems i have some issues in the image comparison. I don't know why, but all pictures are now slightly different in there pixels and colors. It's not recognizable with naked eye. I attached two files where I zoomed into some letters. The one pic is without and the other with the red mark where you can see the difference, or at least where TestComplete sees a difference. Does anybody got an idea what's the problem with my project? I don't want to change all image comparisons manually. :(Solved1.3KViews0likes2CommentsRe: Combine "if...then" statement with image recognition
Thanks for your answer, but that's not exactly what I wanted to do. In your scenario I first check if the image is visible and then compare the image to another. But what I wanted was, first compare the image to another and then depending onwhether the image is the same ornot do something. I solved it now as follows: 1. ComparePictures I stored one picture in regions and compared it to an onscreen object 2. If...then LastResult equals true Now if the images are the same the "then" condition will be executed otherwise the "else" condition.2.1KViews1like0CommentsCombine "if...then" statement with image recognition
Hi, my problem is, I don't want to use the "if...then" statement to check an object property but to check an image. Like I want to check if an image appears on the screen AND looks like image "A". Then do something. If not so do something else. Is there a way to do this in the keyword script? Thanks in advance. Armin2.6KViews0likes4Comments