#!/usr/bin/env php responseAfterBatchCreateTest(1, 'all', array('app' => array('tab' => 'qa')))) && p('result,load') && e('success,/testcase-browse-productID=1&branch=all.html'); // 步骤1:正常QA tab环境 r($testcaseTest->responseAfterBatchCreateTest(1, 'all', array('app' => array('tab' => 'project'), 'session' => array('project' => 5)))) && p('result') && e('success'); // 步骤2:项目tab环境 r($testcaseTest->responseAfterBatchCreateTest(1, 'all', array('request' => array('HTTP_X_REQUESTED_WITH' => 'XMLHttpRequest'), 'app' => array('requestType' => 'GET', 'rawParams' => array('modal'))))) && p('result,closeModal') && e('success,1'); // 步骤3:模态框AJAX请求 r($testcaseTest->responseAfterBatchCreateTest(1, 'all', array('viewType' => 'json'))) && p('result') && e('success'); // 步骤4:JSON视图类型 r($testcaseTest->responseAfterBatchCreateTest(1, 'all', array('daoError' => array('测试错误信息')))) && p('result,message') && e('fail,测试错误信息'); // 步骤5:DAO错误情况