-
Notifications
You must be signed in to change notification settings - Fork 0
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 support for Selenium end-to-end test debugging #9
Comments
v0.6.1 supports running Selenium tests, but it still needs support for debugging these tests. |
I spent several days trying to make it possible to debug Selenium tests in Also, stdout or stderr written from within webdriver.io tasks gets lost under So I'll focus on having UPDATE: I didn't take this route, as I found ways to resolve both issues. I'm focusing on the more user-friendly library, webdriver.io. |
Update! I'm able to get |
v0.7.0 now works with webdriver.io. It includes a feature that allows you to have the test wait for There were also a few issues associated with preserving stdout/stderr when a webdriver.io test errors, and those have been fixed in I'm leaving this issue open for now, until I'm sure that I've got all the basics covered. |
When hitting multiple browsers and servers at the backend, there's all sorts of opportunities for tests to timeout. If a timeout happens in the middle of a lengthy test file and the run terminates as a result, you have to rerun the whole series of subtests to try again. This should be unnecessary. It seems that we need a way to time out individual root subtests without timing out the whole test run. When a root subtest times out, subsequent root subtests should be able to run, because test numbering won't be affected. Interesting that the UPDATE: Because all subtests run in the same thread, it seems that the best I could do is cause the next test to begin running and terminate the timed-out test the next time it tests an assertion. I couldn't prevent the prior test from suddenly resuming in the middle of the subsequent test, perhaps with negative consequences for the subsequent test. UPDATE #2: However, I could completely terminate the test file and then rerun it starting from the next subtest. I could also specify a number of retries for timeouts and keep rerunning the file from the timed-out subtest until either there's no timeout or we reach the retry count. |
Implementing retries requires being able to close open browser windows on timeout. My initial attempts to do this via |
We should be able to use one test runner for all of our testing and debugging. I'm now looking at mods that might help make subtap useful for testing and debugging with Selenium.
The text was updated successfully, but these errors were encountered: