As we are aware nowadays testing our test case on mobile devices (especially
on different mobile browsers) are one of the important aspects of any testing methodology.
In this session, we will look into how we can execute our Protractor Test
Case on any Mobile browsers.
Please Note pre-requisite for testing protractor test on mobile is that
we should have appium installed on our local machine and appium server should be up
and running.
Once this is done we need to do a few changes in our Conf.js file.
In seleniumAddress, we need to provide the address of our appium server
along with the port. My appium server is currently running on 127.0.0.1
and port no 4723.
In the Capabilities section, we need to provide the Browser, platform name, version
and device name on which we are executing our test cases.
Below is my conf.js file
Now once we execute our this conf.js file, we would be able to view that our test cases are getting executed on our mobile devices.
Appium Execution Logs |
Protractor Server Logs |