26 lines
775 B
PHP
Executable File
26 lines
775 B
PHP
Executable File
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/ui.php';
|
|
class createDocTester extends tester
|
|
{
|
|
/*
|
|
* 编辑接口库。
|
|
* Edit a apiLib.
|
|
*
|
|
* @param string $editLib
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
public function editApiLib($editLib)
|
|
{
|
|
$form = $this->initForm('api', 'index', array(), 'appIframe-doc');
|
|
$form->dom->fstMoreBtn->click();
|
|
$form->dom->fstEditBtn->click();
|
|
$form->wait(1);
|
|
$form->dom->name->setValue($editLib->title);
|
|
$form->dom->btn($this->lang->save)->click();
|
|
$form->wait(1);
|
|
if($form->dom->fstLibTitle->getText() != $editLib->title) return $thhis->failed('编辑接口库失败');
|
|
return $this->success('编辑接口库成功');
|
|
}
|
|
}
|