automation tests execution on mobile devices

Refresh

April 2019

Views

71 time

1

In order to address the question, I have to shortly brief you:

  • I'm writing and running e2e-automated-tests in order to test our company's web-site;
  • the purpose is off-course, to make sure we have the site tested on both desktop and mobile phones;
  • our tests are written in typescript, under a node.js environment, using Testcafe;
  • for desktop testing, Testcafe does an excellent job, of executing the tests on whatever local browsers I have installed on the testing environment;
  • to execute the same e2e-automated-tests, on a mobile phone, we're using an integration of Testcafe with browserstack; so whatever tests I have, are executed on the real devices that browserstack platform provides;
  • as we are not fully pleased with Browserstack, we're trying to find an alternative for browserstack;

Questions:

  1. for mobile phone devices: what are you guys using, to run/execute your e2e-automated-tests on mobile devices, having in mind the above configuration?

  2. what about taking Testcafe out of this discussion, and addressing the question again: what are you guys using, to run/execute your e2e-automated-tests on mobile devices, having in mind the above configuration (but without Testcafe)?

Thank you in advance

1 answers

3

You can connect your iOS or Android device to TestCafe as a remote browser by using a QR code: Remote Browsers.

There are also third-party browser plugins for testing on mobile devices: testcafe-browser-provider-idevice and testcafe-browser-provider-android.

As far as I know, the most popular approach to mobile testing used by SauceLabs and BrowserStack is installing Appium on your devices. You can use testcafe-browser-provider-selenium to run TestCafe tests on devices with Appium.

I see that you're against using mobile simulators, but if you change your mind, you can use the Chrome emulation mode and testcafe-browser-provider-fbsimctl with TestCafe.