pub enum BrowserTestError {
StartWebdriver,
RunTest {
test_name: String,
},
Panic {
test_name: String,
message: String,
},
RunTests {
failed_tests: usize,
},
TerminateWebdriver,
FlushPausePrompt,
ReadPauseResponse,
}Expand description
Error contexts reported by browser-test runner operations.
Variants§
StartWebdriver
Chromedriver could not be started.
RunTest
A browser test failed while running in its WebDriver session.
Fields
§
test_name: StringThe test name reported by crate::BrowserTest::name.
Panic
A browser test panicked while running in its WebDriver session.
Fields
§
test_name: StringThe test name reported by crate::BrowserTest::name.
RunTests
Multiple browser tests failed or panicked and were collected into one report.
TerminateWebdriver
Chromedriver could not be terminated cleanly.
FlushPausePrompt
The pause prompt could not be flushed to stdout.
ReadPauseResponse
The pause response could not be read from stdin.
Trait Implementations§
Source§impl Clone for BrowserTestError
impl Clone for BrowserTestError
Source§fn clone(&self) -> BrowserTestError
fn clone(&self) -> BrowserTestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserTestError
impl Debug for BrowserTestError
Source§impl Display for BrowserTestError
impl Display for BrowserTestError
Source§impl Error for BrowserTestError
impl Error for BrowserTestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for BrowserTestError
impl PartialEq for BrowserTestError
Source§fn eq(&self, other: &BrowserTestError) -> bool
fn eq(&self, other: &BrowserTestError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BrowserTestError
impl StructuralPartialEq for BrowserTestError
Auto Trait Implementations§
impl Freeze for BrowserTestError
impl RefUnwindSafe for BrowserTestError
impl Send for BrowserTestError
impl Sync for BrowserTestError
impl Unpin for BrowserTestError
impl UnsafeUnpin for BrowserTestError
impl UnwindSafe for BrowserTestError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.