forked from appium/appium
-
Notifications
You must be signed in to change notification settings - Fork 0
The advanced way to install appium
Larry Cao edited this page May 27, 2013
·
4 revisions
If you want to modify Appium source code. You must take full control of the installation process. This will allow you to:
- Modify Appium server source code
- Understand how Appium works
For Appium to works you need:
- Nodejs
- Appium server
- Mocha & Grunt modules
Homebrew is the best way to install node since it doesn't then require sudo privs later on.
brew install node
- Option 1 - Github:
- Clone appium project:
git clone https://github.com/appium/appium.git
- Run
./reset.sh --dev
in the new appium directory - Run
node server.js
to launch appium
- Clone appium project:
- Option 2 - Node Package Module (npm):
- npm install -g appium
- This command will download and create appium project folder globally
- cd /usr/local/bin/
- ln -s /path/to/appium/app/bin.js appium
- Run
appium
to launch appium
- npm install -g mocha
- npm install -g grunt-cli
Congratulation, you are done! And now you can run appium server by CLI and test your script Here is the simple example for you to play:
mkdir appium-test && cd appium-test npm install wd curl -O https://raw.github.com/appium/appium/master/sample-code/examples/node/simplest.js appium & node simplest.js