是否可以使用VS和JScript自动测试WPF桌面应用程序 [英] Is it possible to automate testing of WPF desktop applications using VS and JScript

查看:60
本文介绍了是否可以使用VS和JScript自动测试WPF桌面应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过JScript,我不是指Javascript。我的意思是微软的JScript语言。

By JScript, I do not mean Javascript. I mean Microsoft's JScript language.

推荐答案

朋友,

如果我理解正确,你可能想要在 WPF中的Web浏览器控件中调用 JS并执行
,同时使用coed  ui测试,对吧?

If I understand you correctly, you might want to invoke JS and execute it in Web browser control in WPF, while coed ui testing, right?

如果是这样,您可以在编码的UI中执行JavaScript。

If so, you could execute JavaScript in coded UI for sure.

这是 用法的例子,它不是一个完美的,但它只是提供了证据。

Here is the example of usage of it, not a perfect one but it just gave the proof.

https://stackoverflow.com/questions/39266158/how-can-i-execute-javascript-function-in-c-sharp-or-wpf

祝你好运,

Fletcher


这篇关于是否可以使用VS和JScript自动测试WPF桌面应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆