<div class="__aliyun_email_body_block"><div style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14px;color:#000000;"><br></div><div style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14px;color:#000000;">How to build my automation test process in this way? Which tool chains are avaiable? which is the most easiest one?<br><br>Hi all,<br>I'm going to create an automation test process for my Maya2014 plugin development. Maya is a DCC software, and Maya2014 uses python2.7.<br>And here is my basic ideas about my automation test process:<br>- create a root directory which includes test cases, e.g.<br>&nbsp;&nbsp;&nbsp; test_root\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |___testcase_0001\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; |____test.ma<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; |____reference.png<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |___testcase_0002\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____test_anim.ma (this is an animation file)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____reference.001.png<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____reference.002.png<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____reference.003.png<br><br>- visit each test case directory, render the *.ma file and output the rendered image to test_tmp\testcase_*\<br>&nbsp; I'm afraid that I have to override the setup() and tearDown() functions on each testcase.<br>&nbsp;&nbsp;&nbsp; test_tmp\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |___testcase_0001\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; |____output.png<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |___testcase_0002\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____output.001.png<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____output.002.png<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____output.003.png<br><br>- compare the output image(s) with the reference image(s). And generate the difference image if they are different, it means this test case fails.<br>&nbsp;&nbsp;&nbsp; test_diff\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |___testcase_0001\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp; |____diff.png (if any)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |___testcase_0002\<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____diff.001.png (if any)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____diff.002.png (if any)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |____diff.003.png (if any)<br>&nbsp;For now, I tend to use imagemagick's command-line tool compare.exe for image comparison and generating the diff image. Here is the detail: http://www.imagemagick.org/script/compare.php<br><br>I'm looking for available tools to create my automation test process. There are so many unittest modules avaiable, e.g. unittest, unittest2, nose, ....<br>But I'm new to python unittest, I don't know how to choose these modules for my needs, <br>which are suitable for me? and which is the most easiest tool chain? which is most light-weight tool chain?<br><br>Any other suggestions are appreciated, and thank you in advance.<br><br>Cheers<br>yao</div><div class="__aliyun_signature_wrap"></div><div style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14px;color:#000000;"><br></div></div>