znt/module/program/test/lib/ui/startprogram.ui.class.php

25 lines
747 B
PHP
Executable file

<?php
include dirname(__FILE__, 6) . '/test/lib/ui.php';
class createProgramTester extends tester
{
/**
* 开始项目集。
*
* @access public
* @return void
*/
public function startProgram()
{
$this->openUrl('program', 'browse');
$browsePage = $this->loadPage('program', 'browse');
$browsePage->dom->allTab->click();
$browsePage->wait(2);
$browsePage->dom->fstStartBtn->click();
$browsePage->wait(3);
$browsePage->dom->startProgramBtn->click();
$browsePage->wait(3);
if($browsePage->dom->fstStatus->getText() != '进行中') return $this->failed('开始项目集失败');
return $this->success('开始项目集成功');
}
}