Region checkpoint
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Region checkpoint
I am going into Record Script and I add an image check, I have no numbers in the name at all (every post I read about this says something about number in the front) and I do a comparision mask. Everything works fine for a short time, I am able to see the log and test the region check and it finds the image just fine. I come back to the test a little later and try to run it again and it says "The region checkpoint "name" failed. See Additional Information for details". I check Addictional Info and it says: "Cannot get a picture object from the input parameter.". Nothing has change in the program and I have no idea why it would work at first and then not work later. I have tried creating the checkpoint and closing the program and the checkpoint worked correctly so I am not sure what is going on here.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see what is happening, the window is being renamed window2, or window1 ect and the regional checkpoint is looking for a specific window.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What it sounds like is that your original mapping of the object contains information that varies from test run to test run. You should edit your mapping to account for dynamic property values, either by finding more static values to identify the object or using wildcards in the property values to account for the dynamic portions.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Agreed, thanks.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Exept that I can't do a wildcard with a regional checkpoitn name mapping.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, you can... don't change the Regional Checkpoint, go to the NameMapping node in your project explorer, find the object you have mapped, and edit the mapping properties. Based upon your other post, you are not using distinct enough criteria to map the object.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
First: I agree that Robert's solution is the most elegant.
However if that doesn't work - you could dynamically
set the checkpoint by dynamically determining/creating the Aliases name and sending it to a common function. Something like (in VB):
Function Add_Region_To_Store(imagename, AliasesObject, xloc, yloc, widthloc, heightloc)
Dim holdscreenregion
Dim regionpanelname
dim tempregion
set holdscreenregion = Regions.CreateRegionInfo(AliasesObject, xloc, yloc, widthloc, heightloc, False)
regionpanelname = imagename
Regions.AddPicture holdscreenregion, regionpanelname
End Function
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found a much better solution. Instead of using the Aliases name mapping you can delete that and use the Sys.Process name mapping and that way you can edit the object name mapping with a wild card.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
