[task#137214, 0.5h] add edit testsuite function.

This commit is contained in:
lijie
2025-02-18 14:22:59 +08:00
committed by 李阳
parent 687e81ae26
commit 2abaede6d4
@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
include dirname(__FILE__, 5).'/test/lib/ui.php';
class editTestSuiteTester extends tester
{
/*
*
* @access public
* @return object
*/
public function editTestSuite()
{
$form = $this->initForm('testsuite', 'edit', array('id' => 1), 'appIframe-qa');
$form->dom->name->setValue('测试套件编辑');
$form->dom->saveBtn->click();
$form->wait(1);
$viewPage = $this->loadPage('testsuite', 'view');
if($viewPage->dom->name->getText() != '测试套件编辑') return $this->failed('编辑测试套件名称错误');