hi all,
is there any way to get by 'user code' the following things:
1. current battery level
2. memory
3. data consumption
i want to be able to test if my application is using too much from one of the params above.
10x.
battery level, memory and Data consumption
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: battery level, memory and Data consumption
Hi roey.oren,
You can get the information about your device by using the following lines of code:
It is also possible to get other device information.
Please find more information about Non-UI testing on Android devices in our User Guide in this section.
Regards,
Markus (S)
You can get the information about your device by using the following lines of code:
Code: Select all
var app = repo.AndroidApp.Self.As<AndroidApp>();
var info = app.GetDeviceInfo();
Report.Info("Battery level: ",info.BatteryLevelPercent);
Please find more information about Non-UI testing on Android devices in our User Guide in this section.
Regards,
Markus (S)