Performance testing with Appium and browser-perf
Performance is a big challenge when you develop for PhoneGap/Cordova. It is always important to look at the code in our application that may make an app junky. There is a tool for developers to help measure frame rates, repaints, layout, and so on. The name of this tool is browser-perf. It is a Node.js-based tool that is taking data from browser developer tools and converting it to performance indicators. It supports iOS and Android Cordova applications.
Let's install it from npm
:
$ npm install -g browser-perf
Before starting testing, we need to install Appium as well.
Tip
Appium is a tool used to automate our application and emulate user interactions such as click, swipe, and so on.
It can be installed through npm
as well:
$ npm install -g appium
Tip
Appium requires installation without using root/Administrator privileges. Otherwise, you will get issues within testing.
Once both tools are installed, we can start writing the test. I will insert...