I'm trying to automate some manual tests for a desktop app written in Java. I'm using FEST to do t开发者_运维技巧his. Is it possible to execute some parts of the code on the app being tested from FEST and get the results back in a stream or something. Or is there any other testing framework that lets you do it?
I'm currently using JUnit for testing everything in any Java application, it writes the results in a hmtl set of documents for an easy consulting.
Try use this framework. For a good ref i advice you O'Reilly Pocket Ref.
Using FEST reflection module.
There is a method called staticMethod
that lest you do it.
Example
String xml = staticMethod("staticMethodName")
.withReturnType(String.class)
.in(Class.forName("com.package.className"))
.invoke();
return xml;
精彩评论