Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Testcafe with Appium

I'm searching for some time now how to use TestCafe with Appium.

Long story short: testing env is a node.js env; automated test script is written in typescript using TestCafe; the plan is to execute those tests on desktop browsers and on mobile phones.

Desktop browsers: this is covered trough TestCafe and testcafe-browser-provider-selenium and a Selenium grid server.

Mobile phones: I'm trying to cover this by executing tests on mobiles phones using TestCafe along with Appium.

Here, the documentation is not easy to find, and I had no luck in doing any progress. I'm interested what do I need to do from Testcafes side, because inside LAN, I can access an already running Appium server, with real devices attached to it.

Is there someone who uses the above tools and would like to share the know how?

PS: I've seen this link already, and it's not helping, as it needs human interaction and it's not fully automated: QR code suggestion for TestCafe mobile device testing

Later edit:

using the testcafe-browser-provider-webdriverio package did not solve the problem, because it has some connections issues. So, I'm back on searching a solution and I refuse to believe that there is no option for the above scenario...

like image 837
Eugen Avatar asked May 02 '19 13:05

Eugen


People also ask

Does TestCafe use selenium?

Unlike most testing solutions, TestCafe is not built on Selenium. This allows us to implement features you cannot find in Selenium-based tools (for example, testing on mobile devices, user roles, automatic waiting, etc.). TestCafe uses a URL-rewriting proxy which allows it to work without the WebDriver.

What is TestCafe used for?

Test Cafe is a Node. js end-to-end free and open source automation tool which is used to test web applications. It works on all popular environments such as Windows, MacOS, and Linux. With its easy to install feature in a single command, you can write scripts in JavaScript [or] TypeScript.

Is TestCafe a framework?

What is TestCafe Framework? TestCafe framework is an open-source automation framework built with NodeJS. It supports JavaScript, Typescript, and CoffeeScript out of the box, which means zero configuration is needed. TestCafe is distributed under an open-source MIT license and is managed by DevExpress.


1 Answers

You can try testcafe-browser-provider-webdriverio plugin. The author claims this provider can connect to an Appium server.

like image 61
mlosev Avatar answered Sep 27 '22 22:09

mlosev