-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please post some examples of using it from java code #26
Comments
@VenkateshPS Hi, I try to help you. For example:
After that, you can call this function
|
Thanks @shapovalovei |
what is the command to fetch device vitals(memory, cpu) |
@VenkateshPS Your question how to get memory and CPU from the device ? |
@shapovalovei yes , will this help $ flick vitals -n com.package.name ? |
@VenkateshPS flick as library helps you capture video from android and iOS device, you cannot get device stats from this library |
@shapovalovei @saikrishna321 Thanks , are you aware of some libraries which can get device vitals during Automation runs. |
@VenkateshPS I think you can use ADB for Android devices. for example:
and in code just parse values needed. then we just printed them in test logs and just manually looked through them. |
Hey guys - Flick vitals are android only. So you YOU CAN get memory and cpu info for both the app and device for Android. You CANNOT get this information for iOS. If anyone comes across a tool to capture this for iOS I'd gladly add it to Flick. @shapovalovei thank you for you assistance in answering @VenkateshPS question. |
I tried using flick vitals -p android -n com.xxxxx.xxx -u 3208df540c2471a1, but get below error even if app is installed and i am passing the correct package name com.xxxxx.xxx was not found on device 3208df540c2471a1! Please choose one from above. e.g. package:com.samsung.android.asksmanager |
Make sure the package name and UUID are correct. Can you see the package listed when running this command flick vitals -p android -n com.myawesomeapp.com |
Thanks @isonic1 |
@isonic1 : Any luck wth capturing iOS vitals ? |
@shapovalovei Above java code is not working for me. Note: Output of the above code
But I can do the same via terminal. Please guide me to use flick in my Appium test script(java) |
@isonic1
could you post some examples of using flick from java code or please point me if there is already some.
The text was updated successfully, but these errors were encountered: