This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 14
Mar 2016

Hi
I'm running appium in my application's tests. However I'm looking for a way to get cpu , memory and network info while I'm running tests.
I checked appium documents and couldnt find any info about that, should I have to use a 3rd party application for that? If thats so how can I do that?

Thanks
Tolga

  • created

    Mar '16
  • last reply

    Dec '17
  • 13

    replies

  • 5.2k

    views

  • 7

    users

  • 1

    like

first you should mention where you want to get this data from:
device where tests are running (is it iOS or Android or ?) or PC where tests are running?

Sorry I forgot to mention that
I'm looking for the resource usage(Cpu,memory etc..) information from real IOS devices

with real iOS device there are 2 ways:
- execute tests while enable memory usage with xCode profiler
- programmatically in client log memory usage and read iOS sim logs with Appium

How can I do that?
Can you show me an example?

"programmatically in client log memory usage" - ask iOS dev.
"read iOS sim logs with Appium" - enable driver capability 'showIOSLog' = true.

I do not know but, how can you measure CPU and memory where your appium backend instruments is constantly keep running during automation. In such case, the numbers are not accurate, and specially in IOS, automation run on debug app, which it is different from its release counterpart.
And most important, you can baseline your app in certain conditions but this is manual activity and should not be mixed up with automation. I would not say this as performance testing at all.

2 months later

with Android we did it using phones connected to same machine where tests are running.

in test code we just execute:

adb shell dumpsys cpuinfo
adb shell dumpsys meminfo 'your apps package name'

and in code just parse values needed. then we just printed them in test logs and just manually looked through them.

test itself was kind of walking among many screens and good long swipe with large lists.

Thanks for your response
Isn't there any way we can use appium so that it can be cross-compile? I am trying to avoid ADB commands
@Aleksei

3 months later

No
I'm still not found a solution for that.
We've found a solution for android already through using adb but we couldnt find a solution for IOS yet

7 months later
7 months later