使用HTML开发桌面应用程序视图,作为Web应用程序(Develop desktop applications view with HTML, as a web application)
我习惯于用Java开发Web应用程序(Struts,Spring,JSP ...)。 但现在我想开发一个桌面。 我从来不喜欢用Java设计窗口(AWT,Swing,SWT):对于难看的界面来说,工作太多了。 所以我认为如果可以利用我的网络应用技能,这可能是一个好主意。 一种选择是修改SWT浏览器并调用Java函数而不是HTTP请求。 一个非常好的插件就是使用JSP。 最后,我认为可能有一些框架或工具。
你认为我提出的是一个好主意吗? 有这样的框架吗?
我需要这个轻量级应用程序。 所以我认为嵌入一个Tomcat服务器并将它用于HTTP请求并不是一个好主意。
谢谢你的帮助。
编辑:一个示例应用程序可能是一个文件夹比较器:您指定两个文件夹,并且该应用程序显示至少文件夹和文件不同。 在这种情况下,我认为打开外部浏览器很丑陋。 膨胀的应用程序(与其服务器,MVC等)不会是最好的选择。
I am used to develop web applications in Java (Struts, Spring, JSP...). But now I want to develop a desktop one. I never liked to design windows in Java (AWT, Swing, SWT): too much work for an ugly interface. So I think it could be a good idea if could take advantage of my web-app skills. One option is to modify the SWT Browser and make calls to a Java function instead of HTTP requests. A very good add-on would be use of JSP. Finally, I thought that probably there is some framework or tool for this.
Do you think that what I propose is a good idea? There is available some framework for this?
I need this for light applications. So I think that embedding an Tomcat server and using it with HTTP requests is not a good idea.
Thanks for your help.
Edit: One example application could be a folder comparer: you specify two folders and the app shows you wich folders and files are different. In this case, I think opening an external browser is ugly. Bloated application (with its server, MVC, etc) wouldn't be the best choice.
原文:https://stackoverflow.com/questions/1433602
最满意答案
UITestControl
类有一个名为WaitForControlNotExist
的方法,它可以完成这个操作!The
UITestControl
class has a method calledWaitForControlNotExist
that did the trick!
相关问答
更多-
UITestControl类有一个名为WaitForControlNotExist的方法,它可以完成这个操作! The UITestControl class has a method called WaitForControlNotExist that did the trick!
-
CodePlex上的Code First编码的UI测试API项目( http://codeduicodefirst.codeplex.com/ )包含一个您可以下载的项目演示 - 应用程序和测试。 它旨在构建CUIT测试,而不依赖于录制/回放。 如果您要在纯代码基础上工作,则最需要的是避免依赖CUIT记录创建的自动生成的对象映射。 Code-First项目使用映射到单个页面对象的类来解决此问题 - 如果我没有记错的话,您需要扩展项目代码以使用桌面应用程序。 (我不以任何方式与这个项目有关 - 它只是我发现的 ...
-
如何最小化编码UI测试的DTAExecutionHost.exe(how to minimize DTAExecutionHost.exe for coded UI tests)[2023-11-17]
我设法在测试代理配置完成后立即将所有窗口最小化,以解决此问题。 I managed to work around the issue by minimize all windows right after Test Agent being configured. -
在编码UI测试中只有部分窗口标题已知的情况下查找窗口(Finding a window when only part of the window title is known in Coded UI Tests)[2023-01-26]
我已经缩小到这个范围:当搜索控件时,编码UI测试使用搜索属性和类似树的控件结构。 如果它找不到完全匹配,它会发现一个匹配的匹配(所以它不能找到确切的窗口标题名称,它将排除该匹配并继续搜索与任何其他给定属性相匹配的窗口),这就是它与控件一起工作的原因在其他窗口中。 解决方案是真正给它更多的搜索属性。 我使用的一种方法是使用PropertyExpression添加属性并将其传递给PropertyExpressionOperator.Contains 。 作为一个例子,我记录了打开MS Word并关闭它。 这将在 ... -
由于您的应用程序将来可能会发生变化,因此您可能会引入一个导致UI无法正确显示的错误。 这就是为什么你编写测试,测试你的应用程序总是按照你期望的方式运行。 Because your application is likely to change in the future, so there's a possibility you could introduce a bug that causes your UI not to display correctly. That's why you write t ...
-
为从Control.ControlAccessibleObject继承的每个控件创建一个CustomAccessibleObject 。 然后覆盖控件上的CreateAccessibilityInstance()方法,以便它返回CustomAccessibleObject 。 在你的控制中: public class MyControl : SomeDevExpressControl { protected override AccessibleObject CreateAccessibilit ...
-
我不确定AngularJS,但看起来像编码用户界面用于跟踪的XMLHttpRequest对象存在问题 编码UI无法获取Ajax成功消息以刷新数据的JQuery也存在同样的问题。 在我的情况下,你可以尝试下面的解决方案它像魅力 使用Coded UI测试项目不会触发Jquery AJAX成功 I am not sure about AngularJS but it seems like there's and issue with XMLHttpRequest object which is used by C ...
-
使用Windows Phone上的Coded UI与MessageDialog进行交互(Interact with MessageDialog using Coded UI on Windows Phone)[2023-06-10]
使用自动生成的代码后,我能够找到答案。 要访问MessageDialog,您需要实例化引用弹出窗口的UITestControl。 出现此问题是因为此窗口超出了正在测试的应用程序的范围。 我能够使用以下代码实例化此窗口的UITestControl对象: UITestControl popupWindow = new UITestControl(); popupWindow.TechnologyName = "UIA"; popupWindow.SearchPro ... -
编码的UI测试不知道或关心如何编写正在测试的应用程序。 编码的UI测试使用应用程序的UI控件提供的MSAA或UIA接口。 需要编写UI控件来支持MSAA或UIA,这并不容易! 用于WPF和Windows窗体的Microsoft库中的UI控件支持MSAA或UIA。 一些较旧的UI控件库(如MFC)的支持有限。 自定义控件可能支持也可能不支持MSAA或UIA,因此可能不支持编码UI。 UI控件的第三方库通常提供构建在Microsoft UI控件之上的自定义控件,因此它们可能支持也可能不支持MSAA或UIA。 对 ...
-
我找到了一个解决方法: [DllImport("user32.dll", EntryPoint = "SendMessage", CharSet = CharSet.Auto)] public static extern bool SendMessage(IntPtr hWnd, int msg, int wParam, StringBuilder lParam); const int WM_GETTEXT = 0x000D; var edit = new WinEdit(Window); edit.S ...