Different screen resolution or sizes

Ask general questions here.
shruti441
Posts: 5
Joined: Mon Jul 05, 2021 9:30 pm

Different screen resolution or sizes

Post by shruti441 » Mon Jul 05, 2021 9:42 pm

Hi,

Please someone confirm that how to automate for different screen resolution in Ranorex. I'm trying to automate web application for different screen sizes (manually we do this by using 'inspect element' and them mobile view).

E.g. Screen sizes - S , M , L , XL or resolution : 325, 600, 840.

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

Re: Different screen resolution or sizes

Post by odklizec » Tue Jul 06, 2021 10:17 am

Hi,

I'm not quite sure what exactly you want to test? Ranorex tests, if properly configured, should be resolution-independent. So if the element is on the screen (even if it's out of the visible area of screen, but physically available), Ranorex should be able to find it and work with it. So please elaborate in more details, what exactly you want to do, ideally, post an example of scenario, you want to automate. Thanks.
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

shruti441
Posts: 5
Joined: Mon Jul 05, 2021 9:30 pm

Re: Different screen resolution or sizes

Post by shruti441 » Tue Jul 06, 2021 8:56 pm

Hi,

Thanks for the response.
Basically, I'm working on a web application which is fully responsive.(Responsive website testing).

E.g. For manual testing, I use 'inspect element'.
1)Open my application
2) Click 'F12' or select 'inspect element' (by right click on the screen)
3) Click on mobile view option
4)Set screen resolutions e.g. 325*600 , 600 * 900

With the help of this, I can test my application, if all the UI elements are aligned in all the screen sizes or not and it is fully responsive or not.

So, now I have to automate the same.

Please let me know,if there is any solution as I'm new to Ranorex.

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

Re: Different screen resolution or sizes

Post by odklizec » Wed Jul 07, 2021 6:57 am

Hi,

Well, I'm afraid, this description is still very vague.

I understand the steps to change the browser's resolution. That can be done with Ranorex. However, there may be a problem with checking if the web page elements are aligned ;) This can be easily checked by the human eye, but it will require some code and computation if the boundary of each element is within the visible web page area. I'm afraid, I can't provide you with such code. This is out of the scope of this support. And as with other your post, without, at very least, a Ranorex snapshot, there is not much else anyone here can do or suggest.
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

Fergal
Certified Professional
Certified Professional
Posts: 455
Joined: Tue Feb 18, 2014 2:14 pm
Location: Co Louth, Ireland
Contact:

Re: Different screen resolution or sizes

Post by Fergal » Thu Jul 08, 2021 5:49 pm

If you change the screen resolution, you could then validate that expected elements are visible on screen. This won't help with validating alignment, but perhaps image based validation, might be of at least some use - https://www.ranorex.com/help/latest/ran ... roduction/

Example image based validation: https://www.ranorex.com/help/latest/ran ... n-example/