vendredi 16 septembre 2016

How to write unit tests for WebView in UWP application

I have an UWP application with WebView which is used to load javascript library.

I want to check with unit test if the library is loaded (basically to check if LoadCompleted event is raised).

It works properly when I start the application manually, but when I try to unit test that functions, nothing happens after navigation and I can't catch any events.

I've seen this thread, but I'm not sure if Coded UI test is what I want, and how it works with UWP.

Is there any way to unit test this scenario properly?

Aucun commentaire:

Enregistrer un commentaire