如何在linux中安装和运行appium?

问题描述 投票:0回答:5

我想做UI自动化在真正的Android设备中打开一个URL。为此,我想在我的linux系统上安装并运行appium,请指导我该怎么做?还建议我有没有在使用eclipse在Chrome浏览器中打开网址?

android ui-automation appium uiautomator android-uiautomator
5个回答
5
投票

Appium在Linux上安装18.04

如果您安装了node.js,可以尝试:

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

它对我有用。


3
投票

我想在Linux中运行Appium所需的所有信息都在这里:

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

如何运行测试

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

这里有一堆示例代码

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

如果您想在Chrome浏览器中运行测试,您将需要Chromedriver,它已经集成在appium项目中。更多信息:

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


1
投票

时代在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.

添加到.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

##设置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 

0
投票

你好appium安装很简单,请检查以下步骤

1)安装最新的Node.js.

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

更多信息请查看官方网站:https://nodejs.org/en/download/package-manager/

2)安装最新的时代

npm install -g appium

要么

sudo npm install -g appium

更多信息请查看官方文档:

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


0
投票

安装在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
© www.soinside.com 2019 - 2024. All rights reserved.