isonic1 / flick

A CLI with helpful QA tools for Android (Devices & Emulators) and iOS (Devices).
MIT License
101 stars 26 forks source link

Flick Jar File & Sample Java Code to capture recording IOS & Android #24

Closed rsudam closed 7 years ago

rsudam commented 7 years ago

It would be helpful for Java community to include sample programme to demonstrate Flick recording capabilities. I searched your account for Jar file & Sample Java code but somehow I couldn't able to find one.

rsudam commented 7 years ago

Figured out to work without Jar File & Java code.

isonic1 commented 7 years ago

Hi @rsudam - would you mind posting your solution. Might be helpful for others looking for the same thing. Thanks.

rsudam commented 7 years ago

Sure, I have created two .sh files with below commands and running in via runtime.exec method available in java startVideoRecoding.sh #!/bin/bash cd ~ /usr/local/bin/flick video -a start -p ios -c 1000

stopVideoRecording.sh #!/bin/bash cd ~ flick video -a stop -p ios -o ./Documents -n newVideo1 -f mp4

but when ever I tried running the code I'm getting below error.

 idevice_id was not found. Please ensure you have installed idevice_id and it's in your $PATH 

I have done following things, but no use. I suspect that it is running in different location.

brew uninstall ideviceinstaller brew uninstall libimobiledevice brew install --HEAD libimobiledevice brew link --overwrite libimobiledevice brew install ideviceinstaller brew link --overwrite ideviceinstaller

swarnimdixit commented 6 years ago

flick video -a start -p ios -o /Users/shubham_v/Documents/workspace/IOS-Testing-Framework-For-Single-device/RecVideo -n Myvideo -u cadbfa009236b43083441e55446476be41a91a

like this u have to mention the device id