From 663434a666bc14b8d1411762eccf8fadd07faaba Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Sat, 27 Aug 2022 21:55:30 +0800 Subject: [PATCH] * Code for story import. --- module/testcase/config.php | 2 +- test/ztest | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/module/testcase/config.php b/module/testcase/config.php index e8074d3717..fb2bd8aa6d 100644 --- a/module/testcase/config.php +++ b/module/testcase/config.php @@ -203,7 +203,7 @@ $config->testcase->datatable->fieldList['story']['fixed'] = 'no'; $config->testcase->datatable->fieldList['story']['width'] = '90'; $config->testcase->datatable->fieldList['story']['required'] = 'no'; $config->testcase->datatable->fieldList['story']['control'] = 'select'; -$config->testcase->datatable->fieldList['story']['dataSource'] = array('module' => 'port', 'method' => 'getRelatedObjects', 'params' => 'testcase&story&id,title'); +$config->testcase->datatable->fieldList['story']['dataSource'] = array('module' => 'story', 'method' => 'getProductStoryPairs', 'params' => '$productID&$branch'); $config->testcase->datatable->fieldList['bugs']['title'] = 'B'; $config->testcase->datatable->fieldList['bugs']['fixed'] = 'no'; diff --git a/test/ztest b/test/ztest index 8454508f16..41af27c063 100755 --- a/test/ztest +++ b/test/ztest @@ -187,6 +187,9 @@ switch($argv[1]) case 'gitea': ztfRun('model/gitea'); break; + case 'webhook': + ztfRun('model/webhook'); + break; default: ztfExtract($argv[1]);