I have an Electron app which I test using Spectron framework. The tests will run every night on a remote server which builds other projects. I need to test offline features of the app and I need to deactivate the Network/Internet connection in various scenarios.
The remote Server run windows. The thing is that I can not use netsh
to kill the network and then reactivate it, so I need something like Proxy for my app that I can activate and deactivate in order to guarantee that the server always on the grid.
any ideas who could I achieve this using windows, Spectron or any hack ?
Aucun commentaire:
Enregistrer un commentaire