Compare while recording image and saved file?

Class library usage, coding and language questions.
CarsonGrey
Posts: 1
Joined: Wed May 20, 2020 8:56 am

Compare while recording image and saved file?

Post by CarsonGrey » Wed May 20, 2020 9:05 am

Hello,

Creating a new post because I haven't found in the exemples here something similar.

Is there a way to get the name of a screenshot while recording ?

If my question is not clear I am trying to do something like this:
I have this screenshot of a graph saved manually with Ranorex (Save Screenshot...) which is my reference.
When running the test, I want to get the image that is at the same position and compare it with my reference to check if they are the same.

Any idea ?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6541
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Compare while recording image and saved file?

Post by odklizec » Wed May 20, 2020 3:43 pm

Hi,

I'm still not quite sure what exactly you mean by... "Is there a way to get the name of a screenshot while recording ?"
You mean you want to get the name/path of external screenshot file?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

robinjamess
Posts: 1
Joined: Mon Jan 04, 2021 8:02 am

Re: Compare while recording image and saved file?

Post by robinjamess » Thu Mar 11, 2021 11:54 am

CarsonGrey wrote:
Wed May 20, 2020 9:05 am
Hello,

Creating a new post because I haven't found in the exemples here something similar.

Is there a way to get the name of a screenshot while recording ?

If my question is not clear I am trying to do something like this:
I have this screenshot of a graph saved manually with Ranorex (Save Screenshot...) which is my reference.
When running the test, I want to get the image that is at the same position and compare it with my reference to check if they are the same.

Any idea ?
Although these terms are related, they mean different things. The meaning of each is explained below.

Image size: This represents the physical size and resolution of an image measured in pixels. For example, A 10 megapixel (MP) camera may provide settings to take pictures in 10.2 MP (3872 x 2592), 5.6 MP (2896 x 1944), and 2.5 MP (1936 x 1296). A higher image size setting means a larger picture and bigger file size. A lower image size setting makes a smaller picture and smaller file size. Depending on your camera, there may be different sizes available.

File size: This is the amount of space that the image file takes up on your memory card, or internal memory if your camera has one. It is measured in megabytes. The actual file size depends on the image size and image quality settings selected on the camera.

Image quality: This dictates how much compression is used to record the file information. Some digital cameras have a Fine and Standard setting where the Fine setting uses less compression than the Standard setting. Therefore, the detail of a picture taken with the Fine setting is a sharper than one taken with the Standard setting. Similar to the image size setting discussed above, this also affects the file size. Since the Fine setting uses less compression and records more detail, the file size will be larger than one recorded with the standard setting.