Integration Testing - 4

August 22, 2013 - 3 minute read -
testing gsoc

Commits

Things done

  • Modified the code in compare.py: Earlier, the same class was being used to both generate the reference frames as well as for comparing an input video with these reference frames. Now these are separate classes which are inherited from a base class containing the methods common to them. GenerateReferenceFrames generates the frames, whereas CompareVideo compares a video to these reference frames. The video frames of the test video are created in the /tmp/ directory.
  • Added integration tests for new_record. Calling this remote method results in creation of a new record file. Verification of the file was done through comparing if a file with the expected filename was found in the current working directory.

Working on:

I am currently doing integration tests for adjust_pip remote method. This method takes 4 paramaters - dx, dy, dw, dh. This method also returns an integer. I found a brief description in the c code regarding this method - here. But I got a problem. I have tried passing some combinations of these four arguments. The results of some of these combinations (dx, dy, dw, dh) are:

  1. (1, 1, 1, 1) - A black screen output and return value of 15
  2. (0, 0, 0, 0) - Screen output not visibly changed, returns 1
  3. (1, 0, 1, 0) - A black screen output and return value of 5

Currently got no idea about the return value of this method. Also I always get a black screen output.

Edit:

The adjust_pip method works with giving dw, dh as zero. If I give (50, 75, 0, 0) , the PIP is modified just as expected :) Check out this video -

But still the black output if dw or dh are set :(

Comments Section

Feel free to comment on the post but keep it clean and on topic.

blog comments powered by Disqus