Pre-Requs:
Appium server should be up and running
Protractor server should be running
Device(Android/iOS) should be connected to PC and accessible through adb
Its above all is Ok, only few changes in conf.js of protractor are required to point its requests appium,
seleniumAddress: ‘http://localhost:4723/wd/hub’,
capabilities: {
platformName: ‘android’,
deviceName: ‘galaxy s4’,
browserName: ‘chrome’,
newCommandTimeout: 60
},
baseUrl: ‘http://10.0.2.2:’ + (process.env.HTTP_PORT || ‘8000’),
Some points to understand,
1. Selenium use port 4444 but to use Appium it should be port 4723 instead of 4444
2. platformName: should be name of env where script will execute, like Andorid/iOS
3. deviceName: should be name of device like s4/iphone 5
4. browserName: should be chrome/safari
5. baseUrl is 10.0.2.2 instead of localhost because it is used to access the localhost of the host machine in the android emulator/device
Sources:
https://github.com/angular/protractor/issues/361
https://github.com/angular/protractor/issues/697
https://github.com/angular/protractor/blob/master/docs/browser-setup.md
The information which you have provided is very good. It is very useful who is looking for selenium Online Training Bangalore
Good post…..I appreciate yor way of writing that make the blog attractive and make reader to hold longer to your blog.
Regression Testing Services
Functional Testing Services
Performance Testing Services
Wow this is really amazing post. Thanks for sharing the useful informative data. I appreciate your difficulty work. Keep blogging. Protractor Training in Electronic City
Great Article android based projects
Java Training in Chennai Project Center in Chennai Java Training in Chennai projects for cse The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training Project Centers in Chennai