-
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
How I can stop recording without saving the video? #13
Comments
Not sure, that you can do it via flick. |
@albka1986 Yeah, @alter-al is right. You can just do a kill of the flick process or you can write some code to delete the video after the tests complete if there was not a failure. Although, what your asking is not a bad feature to add but I'm not sure when I'd get around to adding it. I'll mark this as enhancement and will implement it at some point. |
@alter-al, @isonic1, Thanks for the answers! And I'he another questions: Have you any example? |
@albka1986 hmm, I'm not a java programmer so I'm not sure. Looks like you're missing a quote in ...exec("flick video -stop -p android -o \users\oleh), though. However, if I was trying to debug this in my language I'd look for expected output so you know it's working. E.g. write or print the output of Runtime.getRuntime().exec("ls -lstr"); You should see the directory files your test runs from if that in-fact is the correct function to run system calls. If that is working then flick should run with that function too. You can see if flick is running by doing a |
@albka1986, u can use the ProcessExecutor (such as gradle/maven dependency: org.zeroturnaround:zt-exec)
|
thanks for answering @alter-al! |
@albka1986 it depends what platform you're saving and when you invoke the start and stop flick commands. You should set the flick start in your setup block/function/method and the flick stop in your teardown block/function/method. If you're testing android emulator or real iOS device by default it will not be the full test time but only unique images from the test run. You can override this by passing -q false in the flick stop command. |
How can I stop recording without saving the video?
I want to set 2 options:
The text was updated successfully, but these errors were encountered: