#!/usr/bin/env php loadYaml('product')->gen(1); $story = zenData('story'); $story->id->setFields(array(array('range' => '2'))); $story->version->setFields(array(array('range' => '1'))); $story->gen(1); $bugs = array(); $bugs[0] = array('title' => 'bug' . time(), 'deadline' => '2025-06-06', 'steps' => 'step1'); $bugs[1] = array('title' => 'bug' . time(), 'deadline' => '2025-06-06', 'steps' => 'step2'); $bugs[2] = array('title' => 'bug' . time(), 'deadline' => '2025-06-06', 'steps' => 'step3'); $product = array(); $product['productID'] = 1; $product['branch'] = 'all'; $product['executionID'] = 0; $product['moduleID'] = 0; r($tester->batchCreate($product, $bugs)) && p('message,status') && e('批量创建bug成功,SUCCESS'); //批量创建bug $tester->closeBrowser();