To install Java on your machine, follow the following instructions:
1. For Mac and Linux machines:
Download Node.js for Mac OS from https://nodejs.org/en/download/ (Make sure you download the *.tar.gz file)
Copy the downloaded file to /robustest/tools folder
Unzip the file by running the following command
tar -xzf <file name>Delete the tar file
Rename the unzipped folder to ‘node’
Add Node.js to the system path by running the following command:
PATH=$PATH:~/robustest/tools/node/binRun the following command to install appium
npm install -g appium
If Appium is already installed, then first uninstall it by running the command:
npm uninstall -g appiumThen execute the command above to install Appium
In the setEnvironment.sh file, in the node section, ensure that the path to the node.js folder is correct
2. For Windows machines:
- Download Node.js for Windows from: https://nodejs.org/en/download/
- Select the Windows installer (.msi) file suitable for your system (i.e., 32-bit or 64-bit)
- You can check your windows version as follows:
- Searching for ‘This PC’ on the Windows search bar.
- Then right-click on ‘This PC’ and click on ‘Properties’
- On the page that opens up, you can see the type of Windows version you are currently using
- While installing, change the Destination folder to C:\Users\<username>\robustest\tools\node
- You will have to create the folder ‘node' inside the robustest\tools folder
- Add C:Users<username>robustesttoolsnode to the PATH environment variable as follows:
- Under the section ‘User Variables’, click and select the environment variable named PATH
- Click on the ‘Edit’ button
- Click on the button ‘New’
- Enter the path to the node folder,
- i.e., C:\Users\<username>\robustest\tools\node
- Provide proper path above by replacing username
- Restart the computer for the path to be updated
- Run the following command:
npm install -g appium
Node.js and Appium are now installed