Performance testing on Android Phones (Neon, OpenCL)

Answered

Hi

I have features that use Neon and/or OpenCL code on Android phones. Each feature have few implementations because each of the implementations is faster on different phones.

Basically i need to be able to run program on phones and report whatever it's reporting and maybe be able to parse it on TeamCity side.

I saw android builder and IntelliJ IDEA Project runner but from their descriptions it looks like they only build applications.

0
1 comment

Hi Michal,

Android Studio usually builds the apps using gradle. You can use the gradle runner in TeamCity as well, and is what would make the most sense if you are using gradle in Android Studio.

Using gradle, you can run the tests on a device using the connectedAndroidTests task, and those can be ran by a build agent that has a phone connected, working as usual and generating an XML Report. You can then load that report through the build feature "XML Report Processing" (https://confluence.jetbrains.com/display/TCD10/XML+Report+Processing) and obtain the results directly on teamcity.

More info on the reports generated by gradle with the connectedAndroidTests task here:
http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Test-reports

If you are running another tool to run your tests which is not the connectedAndroidTests, please check whether that tool produces some kind of report that our XML Report Processing can load, and see whether that tool can be launched via any given command line, then you can use a command line build step to launch it.

If you are running multiple build agents, make sure you set up a requirement for the build configuration that only an agent with a connected device can match.

1

Please sign in to leave a comment.