Auto-Unit-Test-Case-Generator工具--java项目测试用例自动生成
geek_Chen01:
Cannot consider com.sun.controller.Text2Controller because it belongs to one of the packages SmartUt cannot currently handle
这个错误消息的意思是,SmartUt 不能处理属于 com.sun 包的 Text2Controller 类。这可能是因为 com.sun 包下的类是 Java 平台的一部分,通常包含专有的、内部使用的 API,这些 API 不是为公众使用而设计的。因此,SmartUt 可能出于安全或策略的考虑,决定不处理这些包中的类。
Auto-Unit-Test-Case-Generator工具--java项目测试用例自动生成
geek_Chen01:
(wrong name: com/sun/controller/TextController)
意思就是类名错了,在你给的路径上找不到这个类;
我看你的命令直接运行工具了,有没有设置setup路径?
Auto-Unit-Test-Case-Generator工具--java项目测试用例自动生成
m0_61207110:
用不起来
Auto-Unit-Test-Case-Generator工具--java项目测试用例自动生成
m0_61207110:
* Error while initializing target class: TextController (wrong name: com/sun/controller/TextController)
[MASTER] 15:46:18.778 [logback-2] ERROR TestSuiteGenerator - Problem for TextController. Full stack:
java.lang.ClassNotFoundException: TextController (wrong name: com/sun/controller/TextController)
at org.smartut.instrumentation.InstrumentingClassLoader.instrumentClass(InstrumentingClassLoader.java:164)
at org.smartut.instrumentation.InstrumentingClassLoader.loadClass(InstrumentingClassLoader.java:132)
Auto-Unit-Test-Case-Generator工具--java项目测试用例自动生成
m0_61207110:
D:\IdeaProjects>java -jar ./smartut.jar -class com.sun.controller.Text2Controller
* SmartUt 1.1.0
* Going to generate test cases for class: com.sun.controller.Text2Controller
[MASTER] 15:51:14.396 [main] ERROR SmartUt - Fatal crash on main SmartUt process. Class using seed 1728978674395. Configuration id : null
java.lang.IllegalArgumentException: Cannot consider com.sun.controller.Text2Controller because it belongs to one of the packages SmartUt cannot currently handle
at org.smartut.executionmode.TestGeneration.generateTests(TestGeneration.java:226)
at org.smartut.executionmode.TestGeneration.executeTestGeneration(TestGeneration.java:83)
at org.smartut.SmartUt.parseCommandLine(SmartUt.java:383)
at org.smartut.SmartUt.main(SmartUt.java:131)