How to Setup Appium Server for iPhone and Android Applications
Setting up Appium Server:-
Go to http://appium.io/ and download
appium server. You have couple of option which appium to download
1. appium UI
2. appium nodeJs
I prefer nodeJs as I can launch it
directly from code through command line terminal. However some times I use the
UI version to inspect the elements. You can even launch the Inspector from
terminal, hmm need to figure out and would be posting soon.
To work with appium on ease,I would
recommend you to have your own MAC laptop with SDK 6. SDK 7 should also be fine
but preferebly SDK 6 is recommended.
Steps to setup appium in MAC Machine:-
1. Open up your mac terminal
2. Type the command sudo npm install
-g appium
3.You should see appium getting
downloaded and installedThat's it. What's next?1.You should have your Sample
IOS app '.app'2. Get xCode 4.6 installed
3.Download the sample app source code from the URL
https://developer.apple.com/library/ios/samplecode/uicatalog/introduction/intro.html
4. Open the code in xCode and build
and run the app on Simulator. Good now you have your .app file built in
project's product folder. Get the path of the app and note it some where (Check
the below Image)
Next? Setting up your appium server to
run your tests. Initially we will see how to setup appium server for Simulator
tests.
1.Open the terminal and just run the
command appium &
2.You should see the messages in the
terminal that appium server is started on port 4723. This is the default port
and can be customized later.
3.All set to run your tests.
Comments
Post a Comment