nosedive 发表于 2009-1-6 18:31:50

Junit无法启动??-更新问题

在C盘下安装了Junit4.5,在系统环境变量中添加如下:
CLASSPATH=C:\junit4.5\junit-4.5.jar
然后cmd,运行javajunit.swingui.TestRunner预期的结果是启动Junit应用程序,但是实际结果却是:
'javajunit.swingui.TestRunner' is not recognized as an internal or external command,
operable program or batch file.

我又运行了java junit.swingui.TestRunner junit.samples.AllTests,预期的结果是一切OK,但实际结果却是:
Exception in thread "main" java.lang.NoClassDeFoundError: juint/swingui.TestRunner

这是怎么回事?是我的Junit安装的不正确么?by the way,JDK等等是正常的,在eclipse里运行Junit Test,编译之后没有任何反应,然后报错:
com.thoughtworks.selenuim.SelenuimException: ERROR Server Exception:sessionID should not be null;has this session been started yet?
我觉得eclipse里跑不起来的原因还是在于Junit不对,可是问题在哪里?跪求各位高人!

[ 本帖最后由 nosedive 于 2009-1-7 15:17 编辑 ]

honsangj 发表于 2009-1-6 22:33:47

这个问题还没遇到过:L

nosedive 发表于 2009-1-7 10:08:14

早上又捣腾捣腾,还是没有进展,谁能告诉我为什么呀!

nosedive 发表于 2009-1-7 15:21:33

我把项目部署到eclipse中,运行Junit test出现的BUG是:
com.thoughtworks.selenuim.SelenuimException:ERROR Server Exception:sessionId should not be null;has this session been started?
页: [1]
查看完整版本: Junit无法启动??-更新问题