Get APK memory RAM Android application
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Mobile Testing
-
Script Tests
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you but I would need to find out using a script
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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,
Script will look so,
I'm assuming there will be something similar for Android, using adb?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
https://www.repeato.app/how-to-automatically-check-memory-usage-of-you-app/ might provide you with possible solution.
/Alex [Community Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes i use ADB emulator for tests
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I also use this adb command in powershell?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes you can, providing your path is correctly setup
Use whatever you find easier. I just prefer PowerShell over Command Prompt
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i try it.. but return .. ReferenceError: deviceConnector is not defined
