[task#137214, 0.5h] add edit testsuite function.
This commit is contained in:
@@ -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('编辑测试套件名称错误');
|
||||
Reference in New Issue
Block a user