Forum Discussion
Hi Lucian,
I was looking at your code, and if you don't mind may I make a sugestion? Rather than handling each type of step independently, when you loop through the steps have you considered checking to see if they implement an interface and then handle that for all steps? For example I see you get the assetion details for the HttpTestRequestStep, but you could check to see if the step implements the Assertable interface and if so then process with common code regardless of type.
You can use the "in" keyword to check to to see if an object implements an interface, the following post is an example where I have done this:
Sorry for the late response, Radford. Your suggestion is good. This was actually my starting point.
However, either I'm missing it or there is no common interface for all type of requests. From what I can see ReadyApi uses both new methods (from the premium product) and old methods (from the free version of SoapUI) which makes it difficult for me to work with it.