Animation testing in Squish: Cup filling animation
-
Hi everyone,
How can we test a cup filling animation in squish?
I have used test.startVideoCapture() and test.stopVideoCapture() to capture videos of animation and test it with object.grabScreenshot of each 10% filling from 0 to 100.
But the captured video is stored in test results and I have issues in accessing it. Also I am unable to compare the screenshots and video frames.
Anyone have ideas on how to test this animation? This would be really helpful.
Thanks & Regards
Prithashasni -
@Pritha-Suresh you can modify the path where the video is getting saved by passing the path to the "test.startVideoCapture(/path)"
to do animation testing you will need external tools like opencv or someting similar.
It will be easier to test any internal property corresponding to the animation rather than attempting to test the filling animation.