运行 xamarin ui 测试时是否可以打开网络浏览器并在模拟器上进行交互
Is it possible to open a web browser and interact on simulator when running xamarin ui tests
在测试过程中,我需要登录该应用程序。在某种模式下,应用程序需要一次性密码。这是在定期使用新代码更新的网页上为测试人员创建的。是否可以打开浏览器 window 并在 Xamarin UI 测试中与它和应用交互。
示例:
app.Login(username, password);
app.MenuNavigation(MenuItems.PrivatePage);
app.EnterAccessCode(code);
//This is where I would need to enter the code from webpage.
如果该浏览器通过 webview 或其他方式嵌入到您的应用程序中,答案是肯定的。否则没有。
在测试过程中,我需要登录该应用程序。在某种模式下,应用程序需要一次性密码。这是在定期使用新代码更新的网页上为测试人员创建的。是否可以打开浏览器 window 并在 Xamarin UI 测试中与它和应用交互。
示例:
app.Login(username, password);
app.MenuNavigation(MenuItems.PrivatePage);
app.EnterAccessCode(code);
//This is where I would need to enter the code from webpage.
如果该浏览器通过 webview 或其他方式嵌入到您的应用程序中,答案是肯定的。否则没有。