i wanted to know whether we can hardware(CPU,Memory) level stats of mobile device while running the test(for only that application i am running the test ) using Appium on the device.
1 Answer
What is possible with Appium on Android as of now
Phones should be connected to same machine where tests are running.
in test code you execute:
adb shell dumpsys cpuinfo
adb shell dumpsys meminfo 'your apps package name'
and in code just parse values needed. then just print them in test logs and just manually looked through them.
3 Comments
Rajat Singh
is it can be done using java selenium java driver also as i will be running my script on aws device farm
AnasAbubacker
Pls raise this comment as new question and tag it under selenium, so you can get expert opinion.
Rajat Singh
I had raised in different thread (stackoverflow.com/questions/48340115/…)