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

Add more details in certain cases of UnrecognisedException #1529

Closed
MosheElisha opened this issue Jan 17, 2019 · 4 comments
Closed

Add more details in certain cases of UnrecognisedException #1529

MosheElisha opened this issue Jan 17, 2019 · 4 comments

Comments

@MosheElisha
Copy link

Hi,

When a UnrecognisedException is thrown from net.thucydides.core.model.stacktrace.FailureCause#restoreExceptionFrom, it sometimes misses the details in case "buildThrowable" method does not support it.

When such unrecognized exceptions occur, the report simply shows "Unrecognised exception" which is not very beneficial.

We can easily add more info to UnrecognisedException by doing something like:

new UnrecognisedException(testFailureClassname + ": " + testFailureMessage);

in both places:

@wakaleo
Copy link
Member

wakaleo commented Jan 17, 2019

Good idea - could you propose a PR?

@MosheElisha
Copy link
Author

Thanks. Sure.

@MosheElisha
Copy link
Author

Hi,

I want to work on the PR so I followed the instructions and followed the "How to build" but when running the tests (before making any changes) the tests failed on:

shouldProvideAccessToAngularLocatorsAndWaitForAngularToFinish

net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate new WebDriver instance of type class org.openqa.selenium.firefox.FirefoxDriver (Timed out waiting 45 seconds for Firefox to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'me-dev-0-server', ip: '192.168.1.23', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-862.14.4.el7.x86_64', java.version: '1.8.0_191'
Driver info: driver.version: FirefoxDriver

When I run "firefox" command it works fine and even when the tests were running, firefox did start automatically.

Can you please assist? Should I raise a different issue for this?

@wakaleo
Copy link
Member

wakaleo commented Jan 24, 2019

Thanks for trying. What the instructions don't mention is that you need to have an up-to-date version of chromedriver, geckodriver and phantomjs on your system path for the integration tests.

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants