Php 如何在forms PHUNIT+上进行测试;硒+;密码点火器

Php 如何在forms PHUNIT+上进行测试;硒+;密码点火器,php,selenium,phpunit,integration-testing,Php,Selenium,Phpunit,Integration Testing,我开始设计软件测试,并使用selenium和phpunit,然后我遇到了以下情况 我需要为代码点火器 我们需要在会话中设置代码点火器上的数据 我有两个表单,第一个表单捕获数据字段,然后我用它生成第二个表单 我使用以下函数捕获第一种形式和第二种形式的输入 类HistorialBeajesfecha扩展ConsultasWebController { ... 公共功能seleccioneFecha() { $this->idVehiculo=$this->input->post('placa');

我开始设计软件测试,并使用
selenium
phpunit
,然后我遇到了以下情况

  • 我需要为
    代码点火器
  • 我们需要在会话中设置代码点火器上的数据
  • 我有两个表单,第一个表单捕获数据字段,然后我用它生成第二个表单
  • 我使用以下函数捕获第一种形式和第二种形式的输入
  • 类HistorialBeajesfecha扩展ConsultasWebController
    {
    ...
    公共功能seleccioneFecha()
    {
    $this->idVehiculo=$this->input->post('placa');
    //我需要与codeigniter的系统会话生成信息
    //如何设置会话以进行测试
    $this->session=$this->session->userdata('myproject');
    $idUsuario=$this->session['id_usuario'];
    $results=$this->factura->listarHistorialPagos($idVehiculo,$idUsuario);
    $data=数组(
    “idVehiculo”=>this->idVehiculo,
    'attributesForm'=>array('id'=>form\u seleccion\u fecha'),
    “其他”=>$results
    );
    $this->load->view('consultasWeb/templateHeaderView');
    $this->load->view('consultasWeb/templateMenuView',$data);
    $this->load->view('consultasWeb/historialFecha/seleccioneFechaView',$data);
    }
    ...
    }
    
    我的问题是,我如何设计测试来检查输出视图(“consultasWeb/historialFecha/seleccioneFechaView”)和第一个表单的输入

    URL 1表单:localhost/myproject/index.php/consultasWeb/historialFecha/


    URL 2 FROM:localhost/myproject/index.php/consultasWeb/historialFecha/seleccioneFechaView

    对于phpunit in code,您可以下载composer并安装