Autoplay



Transcripted Summary

# Installing Appium Doctor

For installing Appium Doctor, we can just run:


npm install -g appium-doctor

We will copy this command line and then go to our terminal and then install this one.

After we finish, we can run Appium Doctor from the command line.

Here, as we mentioned, Appium Doctor verifies that all the dependencies are set up correctly on our machine, and to be able to work with Appium.

After that, we can start Appium from the command line or from the Appium Desktop as a server.

Then, the next step is, write our first script or test using Appium Client.

Here, Appium Doctor is installed already, and then we can run:


appium-doctor

Then we will wait until Appium Doctor finishes all the diagnostics and checks all the necessary and optional dependencies for Appium.

After Appium Doctor has finished, we can go up and check all dependencies.

We start with:

The Node.js binary installed already with the latest version of Node.

Xcode is installed with the Xcode Command Line Tools that the DevToolsSecurity is enabled for the developer mode in Xcode.

Carthage is installed.

ANDROID_HOME is already installed with the Android SDK.

The bin folder for the Java JDK and also the adb and the emulator for Android SDK.

For the optional dependencies, we don't have Open CSV, or opencv4nodejs, which will be used for the image comparison, and ffmpeg for video and audio and images, and also something for handling the iOS devices.

For manual fixes, we should just go to download opencv4nodejs by ourselves.

For example, I can go to the given link, and here we can find that this is used for image comparison features.

To be able to install it, we just need to install this command line:


npm i -g opencv4nodejs

OpenCV is required to have a cmake.

To be able to use it, we just need to run:


brew install cmake

And now we are installing it.

After we finish, we will try to install Open CSV again.



Resources



© 2024 Applitools. All rights reserved. Terms and Conditions Privacy Policy GDPR