#!/usr/bin/env php batchResolve(); cid=1 pid=1 解决bug1 2 3,解决方式为bydesign >> resolution,,bydesign;status,active,resolved 解决bug4 5 6,解决方式为duplicate >> resolution,,duplicate;status,active,resolved 解决bug7 8 9,解决方式为external >> resolution,,external;status,active,resolved 解决bug10 11 12,解决方式为fixed >> resolution,,fixed;status,active,resolved 解决bug13 14 15,解决方式为notrepro >> resolution,,notrepro;status,active,resolved 解决bug16 17 18,解决方式为postponed >> resolution,,postponed;status,active,resolved 解决bug19 20 21,解决方式为willnotfix >> resolution,,willnotfix;status,active,resolved 解决bug22 23 24,解决方式为tostory >> resolution,,tostory;status,active,resolved 解决bug状态为resolve的bug >> 0 */ $bugIDList1 = array('1', '2', '3'); $bugIDList2 = array('4', '5', '6'); $bugIDList3 = array('7', '8', '9'); $bugIDList4 = array('10', '11', '12'); $bugIDList5 = array('13', '14', '15'); $bugIDList6 = array('16', '17', '18'); $bugIDList7 = array('19', '20', '21'); $bugIDList8 = array('22', '23', '24'); $resolutionList = array('bydesign', 'duplicate', 'external', 'fixed', 'notrepro', 'postponed', 'willnotfix', 'tostory'); $bug = new bugTest(); r($bug->batchResolveTest($bugIDList1, $resolutionList[0], $bugIDList1[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,bydesign;status,active,resolved'); // 解决bug1 2 3,解决方式为bydesign r($bug->batchResolveTest($bugIDList2, $resolutionList[1], $bugIDList2[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,duplicate;status,active,resolved'); // 解决bug4 5 6,解决方式为duplicate r($bug->batchResolveTest($bugIDList3, $resolutionList[2], $bugIDList3[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,external;status,active,resolved'); // 解决bug7 8 9,解决方式为external r($bug->batchResolveTest($bugIDList4, $resolutionList[3], $bugIDList4[0])) && p('0:field,old,new;4:field,old,new') && e('resolution,,fixed;status,active,resolved'); // 解决bug10 11 12,解决方式为fixed r($bug->batchResolveTest($bugIDList5, $resolutionList[4], $bugIDList5[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,notrepro;status,active,resolved'); // 解决bug13 14 15,解决方式为notrepro r($bug->batchResolveTest($bugIDList6, $resolutionList[5], $bugIDList6[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,postponed;status,active,resolved'); // 解决bug16 17 18,解决方式为postponed r($bug->batchResolveTest($bugIDList7, $resolutionList[6], $bugIDList7[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,willnotfix;status,active,resolved'); // 解决bug19 20 21,解决方式为willnotfix r($bug->batchResolveTest($bugIDList8, $resolutionList[7], $bugIDList8[0])) && p('0:field,old,new;3:field,old,new') && e('resolution,,tostory;status,active,resolved'); // 解决bug22 23 24,解决方式为tostory r($bug->batchResolveTest($bugIDList8, $resolutionList[7], $bugIDList8[0])) && p('0:field,old,new;3:field,old,new') && e('0'); // 解决bug状态为resolve的bug system("./ztest init");