Ask a Question

Get APK memory RAM Android application

David91
Frequent Contributor

Get APK memory RAM Android application

Hi it is possible to detect the current ram memory of the tested application via Testcomplete javascript. Could someone advise me how to solve this... ?

 

Thank you

8 REPLIES 8
rraghvani
Valued Contributor

David91
Frequent Contributor

Thank you but I would need to find out using a script

rraghvani
Valued Contributor

You can invoke a PowerShell script to return the information you need. For example,

 

 

Get-CimInstance -ClassName Win32_Process -Filter "Name='TestComplete.exe'"

 

 

Will return,

rraghvani_0-1670340088096.png

Script will look so,

rraghvani_1-1670340542237.png

 

I'm assuming there will be something similar for Android, using adb?

Hi,

 

https://www.repeato.app/how-to-automatically-check-memory-usage-of-you-app/ might provide you with possible solution.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
David91
Frequent Contributor

Yes i use ADB emulator for tests

rraghvani
Valued Contributor

See https://stackoverflow.com/questions/14042687/cpu-usage-per-application-in-android/19889090#19889090, it mentions the command adb shell top -m 10

 

Once you've got the correct command to get the information you require, you can then use that, in the sample script that I provided above.

 

 

David91
Frequent Contributor

Can I also use this adb command in powershell?

 

David91_0-1670415864267.png

 

rraghvani
Valued Contributor

Yes you can, providing your path is correctly setup

rraghvani_1-1670417711097.png

Use whatever you find easier. I just prefer PowerShell over Command Prompt

cancel
Showing results for 
Search instead for 
Did you mean: