Page 1 of 1

Validate Screenshots depending on endpoint

Posted: Wed May 23, 2018 5:11 pm
by Pamana
Hello,

I have a question regarding the endpoint configuration.

Is it possible to verify screenshots depending on the endpoint and the active endpoint configuration used?

Many Thanks in advance

Re: Validate Screenshots depending on endpoint

Posted: Fri May 25, 2018 2:09 pm
by asdf
Hi Pamana,

The following code could help you to reach your goal.

Code: Select all

        	string host = Host.CurrentHost;
        	if (host == "Samsung S7") {
        		//Do Image-comparison
        	}
        	if (host == "iPhone") {
        		//Do Image-comparison
        	}
You can combine this with the conditional execution-feature in Ranorex. This helps to keep the maintenance of the TestSuite as small as possible.

I hope that helps.
asdf