O'Reilly logo

PhoneGap By Example by Andrey Kovalenko

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required