Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to include url where webdriver test failed? #44

Open
mpolynskyi opened this issue Dec 6, 2018 · 0 comments
Open

How to include url where webdriver test failed? #44

mpolynskyi opened this issue Dec 6, 2018 · 0 comments

Comments

@mpolynskyi
Copy link

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

Details

support/MyHelper.php I have this code:

	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
@Naktibalda Naktibalda transferred this issue from Codeception/Codeception Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant