klauern
12 years agoContributor
More documentation for writing custom Factory Extensions
I've been looking at how I can add more functionality to SoapUI to simplify some complicated testing that our team does for most projects. I've looked at both http://www.soapui.org/Developers-Corner/custom-factories.html and http://www.soapui.org/Developers-Corner/extending-soapui.html. I've been able to do some demo things with creating custom Actions, which the tutorial was pretty good for, but as soon as I wanted to see how to create a custom Assertion, I ended up with more questions about how the interfaces and more complicated things inside the TestAssertionFactory.
Are there some tutorials available for writing any of these Factories? It seems that there's probably a lot of context to understand how to write a custom Assertion, for example. Just taking a custom Assertion, I have these questions, and I can only imagine how many more I will have when I get deeper into just that one Factory:
Etc., etc. There's just so little documentation (actually as far as I can tell, none) I am going to end up guessing until I either miraculously find something that works, or give up in frustration.
Am I missing some tome of knowledge out there that explains all of this, or even the major parts that might make this a bit easier to understand?
Are there some tutorials available for writing any of these Factories? It seems that there's probably a lot of context to understand how to write a custom Assertion, for example. Just taking a custom Assertion, I have these questions, and I can only imagine how many more I will have when I get deeper into just that one Factory:
- What is an Assertable?
- What's a TestAssertionConfig? What's useful to know about how it works?
- In getAssertionClassType(), I have to either create a WsdlMessageAssertion or find a pre-existing one. In this class, there's three methods I need to overload, and absolutely no documentation (not even javadoc) explaining what these methods do:
@Override
protected String internalAssertResponse(MessageExchange messageExchange, SubmitContext submitContext) throws AssertionException {
return null;
}
@Override
protected String internalAssertRequest(MessageExchange messageExchange, SubmitContext submitContext) throws AssertionException {
return null;
}
@Override
protected String internalAssertProperty(TestPropertyHolder testPropertyHolder, String s, MessageExchange messageExchange, SubmitContext submitContext) throws AssertionException {
return null;
} - What kind of Category should I return for public String getCategory()?
Etc., etc. There's just so little documentation (actually as far as I can tell, none) I am going to end up guessing until I either miraculously find something that works, or give up in frustration.
Am I missing some tome of knowledge out there that explains all of this, or even the major parts that might make this a bit easier to understand?