16 lines
634 B
PHP
Executable File
16 lines
634 B
PHP
Executable File
<?php
|
|
include dirname(__FILE__, 5) . '/test/lib/ui.php';
|
|
class viewCommitTester extends tester
|
|
{
|
|
public function viewCommit($expectNum)
|
|
{
|
|
$form = $this->initForm('design', 'browse', array('projecID' => 1), 'appIframe-project');
|
|
$form->dom->viewCommitBtn->click();
|
|
$form->wait(1);
|
|
$string = $form->dom->commitNum->getText();
|
|
$commitNum = preg_replace('/\D/', '', $string); //从字符串中提取数字部分
|
|
if($commitNum == $expectNum) return $this->success('查看提交页显示数据正确');
|
|
return $this->failed('查看提交页显示数据不正确');
|
|
}
|
|
}
|