Codeception / Codeception/module-webdriver

How to include url where webdriver test failed?

未关闭
#44 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
39
派生
25
PR 合并指标
30 天内没有已合并 PR

描述

I want to push url where test failed in standard html report

### Details

support/MyHelper.php I have this code:
```php
public function _failed(TestInterface $test, $fail)
{

$url = $this->getModule('WebDriver')->_getCurrentUri();
//HOW TO DO HERE SOMETHING LIKE "$I->comment($url);"?
parent::_failed($test, $fail); // TODO: Change the autogenerated stub
}
```
So I want to include some analog of `$I->comment($url_of_failed_test); `to push it in each failed test in html report. How to do it without make _failed function in each my test?

* Codeception version: 2.5.1
* PHP Version: PHP 7.1.17
* Operating System: centos
* Installation type: Composer

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。