SWTBot test outside Eclipse application

旧时模样 提交于 2020-01-24 10:09:27

问题


I have an application that can run as a regular Eclipse plug-in, and I can test it with my SWTBot tests as usual.

The same plug-in application can be installed separately on my computer (like any other windows application).

The question is - How can I configure the SWTBot tests to run on the separately installed application? (Instead of class name I need to use some folder/file name as the application place).


回答1:


You'll need to install SWTBot in your target application in one way or the other. Please see http://wiki.eclipse.org/SWTBot/Automate_test_execution#On_an_already_packaged_RCP_application




回答2:


Tycho recently made it possible to run JUnit tests (so SWTBot ones too) against an existing application without much effort: http://wiki.eclipse.org/Tycho/Testing_with_Surefire#p2Installed_on_provisioned_RCP_application



来源:https://stackoverflow.com/questions/13181246/swtbot-test-outside-eclipse-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!