Testcases for MAGN- 3399,MAGN-4967

Automation cases for bugs