Codeception / Codeception/module-webdriver

How to include url where webdriver test failed?

Aberta
#44 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
PHP
Estrelas
39
Forks
25
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.