Closed sergio-sastre closed 3 years ago
Hi @sergio-sastre! Thanks a lot for your help! @eakurnikov is in progress to write special interceptors that will allow recording video, logs, and other useful stuff. Here is draft PR - https://github.com/eakurnikov/Kaspresso/pull/1 I think that there is a mind to join our efforts =)
Hi @matzuk! Glad to help if I can. I took a different approach, allowing the recording through a TestRule, independent of interceptors but relying on AdbServer though, since the recording happens through adb commands (I think it was the simplest solution).
You can find a code sample, as well as the TestRule here: https://github.com/sergio-sastre/KaspressoExperimentalRepo
What is the approach you are planning to take for the recording by using interceptors? Let me know if I can help anyhow :)
Hi @sergio-sastre! Got it, thanks! Please, give me time to analyze your solution =) Approximate estimation - next week.
Hi @sergio-sastre! Here some minds:
It seems there is no TestRule on Github enabling to record individual (i.e. 1 video per test) failing and/or successful tests
Since Kaspresso can execute Adb commands via AdbServer, I was able to successfully develop a TestRule that records the execution of the tests marked by the corresponding annotation.
Although I need to test it more thoroughly with different APIs and some edge cases, I thought it could be very interesting to anybody using Kaspresso.
Pull request in the upcoming days ;)
Thanks for your work. Keep improving this awesome tool!