« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
不得窥道门,不得悟佛门,不得入窄门,实乃破门。 |
Blog信息 |
blog名称:破门点滴 日志总数:161 评论数量:404 留言数量:-2 访问次数:1421059 建立时间:2004年11月13日 |

| |
[开发笔记]Eclipse 测试框架分析(未完) 随笔, 软件技术 破门 发表于 2005/2/21 11:24:52 |
Eclipse 测试框架分析
基于PDE运行时的参数设定如下:
Eclipse.buildId=unknown
java.version=1.4.2
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Framework arguments:
-version 3
-application org.eclipse.pde.junit.runtime.coretestapplication
-testApplication org.softme.triones.runtime.framework
-pdelaunch
-port 3655
-testpluginname org.softme.triones.runtime
-classnames org.softme.triones.runtime.TrionesRuntimeAllTests
Command-line arguments:
-version 3
-application org.eclipse.pde.junit.runtime.coretestapplication
-testApplication org.softme.triones.runtime.framework
-data D:\netshop\runtime-test-workspace
-dev file:D:/netshop/sources/.metadata/.plugins/org.eclipse.pde.core/Trionse Runtime Test/dev.properties
-pdelaunch -os win32 -ws win32 -arch x86 -nl zh_CN -clean
-debug -consolelog
-port 3655
-testpluginname org.softme.triones.runtime
-classnames org.softme.triones.runtime.TrionesRuntimeAllTests
由参数配置可以看出,Eclipse PDE中插件测试实际上是启动了
org.eclipse.pde.junit.runtime.coretestapplication 这个应用,而被测试的应用通过参数 –testApplication 指定,运行的参数通过 –dev file:…./dev.properties 来指定。我们先分析一下 dev.properties 文件:
org.softme.triones.runtime=bin
org.softme.triones.sdk=bin
org.eclipse.osgi=bin
org.softme.triones.hello=bin
com.opensymphony=bin
org.softme.triones.turbine=bin这里配置需要加载的工作区插件和class路径。 | |
|