Best practices with the wdio intercept service #436
Replies: 3 comments 1 reply
-
@chadbellangivelify : Did you get any updates on the same? |
Beta Was this translation helpful? Give feedback.
-
You run the method when you want to start capturing network requests. EDIT: with the above, I mean to say that it does not matter when you start stop although generally I would only capture the traffic when needed and not always capture everything by default. |
Beta Was this translation helpful? Give feedback.
-
I took the liberty to convert this to a Discussion :) |
Beta Was this translation helpful? Give feedback.
-
I wanted to inquire:
If I have multiple tests in a test file that use the intercept service, should I call browser.setupInterceptor() within each test or do you suggest that I run the browser.setupInterceptor() once in the before
When do you suggest that I disable the interceptor:
a) within each test when the test is done
b) not at all and let the browser shutdown take care of it (does shutting down the browser actually take care of the network interceptor teardown
c) or once at the very end of all the tests (using the after)
Beta Was this translation helpful? Give feedback.
All reactions