How to Test Chrome & Safari on Mobile device!

Mobile Testing, Android App Testing.
quynhnt
Posts: 8
Joined: Fri Jul 26, 2019 8:37 am

How to Test Chrome & Safari on Mobile device!

Post by quynhnt » Fri Jul 26, 2019 9:16 am

Hi All,

I intend to use Ranorex Studio 9.1.0 to test below web application by using Appium Webdriver
- Chrome on Android (Smartphone, Tablet) 
- Safari on iOS (Smartphone, Tablet) 

Please guide me!

Best Regard,
quynhnt

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: How to Test Chrome & Safari on Mobile device!

Post by qwertzu » Mon Jul 29, 2019 12:24 pm

hi,

I once was able to set up a small appium test via Ranorex.

You first need to download and set up an Appium server.
http://appium.io/

Before bringing in Ranorex, I would suggest making sure you are able to identify web elements with Appium itself and therefore use the Appium documentation.

As soon as the server is running and you are able to identify elements with Appium itself, you can bring in Ranorex.
You will need to add a webdriver endpoint in Ranorex Studio by using the correct ip address plus port to the server.


Furthermore, you have to enter JSON capabilities as endpoint configuration.

For your Android device, you will need these capabilities:

{
"platformName": "Android",
"deviceName": "<DEVICE_NAME>",
"browserName": "Chrome"
}

For iOS you will need these capabilities:

{
"platformName":"iOS",
"deviceName":"<DEVICE_NAME>",,
"automationName":"<automationname>",
"udid":"<UDID>",
"browserName":"Safari",
"xcodeOrgId":"<TEAMID>",
"xcodeSigningId":"<SignedID>"
}


regards, qwertzu

quynhnt
Posts: 8
Joined: Fri Jul 26, 2019 8:37 am

Re: How to Test Chrome & Safari on Mobile device!

Post by quynhnt » Tue Jul 30, 2019 9:56 am

Dear qwertzu,

Thank for your information
For iOS
How to install xcode on Windows

Regards,
quynh

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: How to Test Chrome & Safari on Mobile device!

Post by qwertzu » Tue Jul 30, 2019 1:16 pm

Hi,

I set up appium on a mac and installed xcode there.
You will not be able to use xcode on a windows machine.

regards, qwetzu

quynhnt
Posts: 8
Joined: Fri Jul 26, 2019 8:37 am

Re: How to Test Chrome & Safari on Mobile device!

Post by quynhnt » Wed Jul 31, 2019 4:33 am

Dear qwertzu,

Thank for your information

Ranorex Studio cannot be installed on Mac.
I don't know how to set Ranorex connect to Appium on Mac.
Is the setting as follows?

1. Install Appium on Mac
2. Install xcode on Mac
3. Install connect to Appium via Webdriver from Ranorex on Windows
4. Then set up below capabilities to open safari on iphone / ipad

{
"platformName":"iOS",
"deviceName":"<DEVICE_NAME>",,
"automationName":"<automationname>",
"udid":"<UDID>",
"browserName":"Safari",
"xcodeOrgId":"<TEAMID>",
"xcodeSigningId":"<SignedID>"
}

If above setting method is not correct, could you please tell me the detailed setting method to open Safari on iphone / ipad

Regards,
quynh

User avatar
qwertzu
Posts: 284
Joined: Wed Jan 25, 2017 11:08 am

Re: How to Test Chrome & Safari on Mobile device!

Post by qwertzu » Fri Aug 02, 2019 12:15 pm

hi,

Ranorex can of course not be installed on a Mac, but Appium can.

So, install appium on your mac and make sure you are able to identify elements on your device through Appium itself.
Afterwards, use Ranorex on your Windows machine and add an endpoint in Ranorex Studio that points to the Mac machine where your Appium server is running.

regards, qwertzu