So is this basically selenium in javascript with some neat features?
EDIT: I am aware there are many other tools that can address this, we just haven't had the time yet to implement them. :)
31–40 of 91 posts
So is this basically selenium in javascript with some neat features?
EDIT: I am aware there are many other tools that can address this, we just haven't had the time yet to implement them. :)
Earlier quoted context omitted.
What's the core distinction between this/wiremock vs selenium?
Selenium is for behavior testing. Simulating clicks and form filling. This is for mocking http endpoints.
await fillIn('email', 'polly@netflix.com');
await fillIn('password', '@pollyjs');
This is exactly like selenium code I've written to login. I struggle to see the difference in purpose.Related to that, is there anything that allows to completely save the state of a modern website with all of the fetch requests and websocket related stuff it fired off? I just want an ability to save and reopen exactly what I'm looking at. There are some cool websites which will eventually go down and I want to preserve an interactive snapshot of them.
This won't work for WebSockets, really websites that use WebSockets require some interaction to generate the transmitted message which is often dependent on the servers response. Private websites, or websites that require a login are hard - but it can be done. Would suggest HTTrack.
Earlier quoted context omitted.
What's the core distinction between this/wiremock vs selenium?
Selenium is for behavior testing. Simulating clicks and form filling. This is for mocking http endpoints.
Sure this makes the problem of mocking the server less painful. Well done. But I'd take completely integrated tests over these any day. Sure they're slower but that's more or less irrelevant with feature toggling, staged roll-out and continuous production monitoring.
It's totally possible to completely avoid mocking http endpoints thus making these tools completely obsolete.
I would love to hear from people involved in projects like this, what kind of work/ how much, was done to get it ready for and approved to be open sourced by the company. Especially at large corps like Netflix I'm sure there's a lot of hoops to jump through.
Netflix seems to also have a really strong culture around this though, so I wouldn't be surprised if it's a lot less hoopy than you'd imagine.
Earlier quoted context omitted.
Selenium is for behavior testing. Simulating clicks and form filling. This is for mocking http endpoints.
The example is form filling though: await fillIn('email', 'polly@netflix.com'); await fillIn('password', '@pollyjs'); This is exactly like selenium code I've written to login. I struggle to see the difference in purpose.
Earlier quoted context omitted.
Selenium is for behavior testing. Simulating clicks and form filling. This is for mocking http endpoints.
The example is form filling though: await fillIn('email', 'polly@netflix.com'); await fillIn('password', '@pollyjs'); This is exactly like selenium code I've written to login. I struggle to see the difference in purpose.
Earlier quoted context omitted.
Selenium is for behavior testing. Simulating clicks and form filling. This is for mocking http endpoints.
I still don't get why we do this [mocking http endpoints]. Sure this makes the problem of mocking the server less painful. Well done. But I'd take completely integrated tests over these any day. Sure they're slower but that's more or less irrelevant with feature toggling, staged roll-out and continuous production monitoring. It's totally possible to completely avoid mocking http endpoints thus making these tools comp…