* Support case group.

This commit is contained in:
zhujinyong
2022-03-22 11:14:08 +08:00
parent 0cf390702c
commit 43af3185e2

View File

@@ -80,9 +80,11 @@ class testcasesEntry extends entry
$stepType = array();
foreach($this->requestBody->steps as $step)
{
$type = isset($step->type) ? $step->type : 'step';
$steps[] = $step->desc;
$expects[] = $step->expect;
$stepType[] = 'item';
$expects[] = $type == 'group' ? '' : $step->expect;
$stepType[] = $type;
}
$this->setPost('steps', $steps);
$this->setPost('expects', $expects);