How to install and run appium in linux?

元气小坏坏 提交于 2020-01-03 06:20:51

问题


I want to do UI automation for opening an url in a real android device. For that I want to install and run appium on my linux system, please guide me how to do? Also suggest me Is there anyway to open an url in chrome browser using eclipse??


回答1:


Install appium on Linux 18.04

If you have node.js installed you can try :

sudo npm install -g appium --unsafe-perm=true --allow-root

it worked for me.




回答2:


I guess all the information you need to run Appium in Linux is in this here:

http://appium.io/docs/en/about-appium/getting-started/

how to run your test

http://appium.io/slate/en/master/?ruby#running-tests

and a bunch of sample code here

https://github.com/appium/sample-code

and if you want to run your test in Chrome Browser you will need Chromedriver, it's already integrated in the appium project. More info here:

https://sites.google.com/a/chromium.org/chromedriver/getting-started




回答3:



Install Appium on Linux(Fedora 22)

$ sudo dnf update -y
$ sudo dnf groupinstall -y "Development Tools"
$ sudo dnf install -y autoconf automake libtool gettext git scons cmake flex bison libcurl-devel curl ncurses-devel ruby bzip2-devel expat-devel
$ git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew

Until LinuxBrew is fixed, the following is required.

Add to .bashrc:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH

## Setup linux brew

export LINUXBREWHOME=$HOME/.linuxbrew
export PATH=$LINUXBREWHOME/bin:$PATH
export MANPATH=$LINUXBREWHOME/man:$MANPATH
export PKG_CONFIG_PATH=$LINUXBREWHOME/lib64/pkgconfig:$LINUXBREWHOME/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH


$ ln -s $(which gcc) ~/.linuxbrew/bin/gcc-4.4
$ ln -s $(which g++) ~/.linuxbrew/bin/g++-4.4
$ brew update

$ brew install node      # get node.js
$ npm install -g appium  # get appium
$ npm install wd         # get appium client
$ appium &               # start appium 



回答4:


Hello appium installation is very simple , please check below steps

1)Install Latest Node.js

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs  

More information please check official website : https://nodejs.org/en/download/package-manager/

2) Install latest Appium

npm install -g appium

or

sudo npm install -g appium

More information please check official documentation :

https://www.npmjs.com/package/appium




回答5:


install on nvm

sudo apt install build-essential checkinstall
sudo apt install libssl-dev
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
node -v
npm -v
npm install -g appium


来源:https://stackoverflow.com/questions/25605445/how-to-install-and-run-appium-in-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!