Contributions
Re: syntax highlighting or content assist inside soapUI?
To anyone who is thinking that if they install the Eclipse SoapUI plugin and then also install the latest Groovy plugin for Eclipse, the content assist will not work within that context, I can tell you that it doesn't work. You will have to create a separate Groovy project that includes the SoapUI dependencies in order for that to work. Then, you will need to manually copy code over into SoapUI (assuming you are are then NOT using the Eclipse SoapUI plugin).11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsRe: How do I read global preferences in a Script Assertion?
I get the exact same result. I don't have any problem at all reading Project, Suite, or TestCase properties. I just get a "null" when I try to get the Global property as documented in the documentation. I tried this, and it didn't make a difference: import static com.eviware.soapui.SoapUI.globalProperties def globalHostPort = com.eviware.soapui.SoapUI.globalProperties.getPropertyValue( "suite.endpoint" ) assert globalHostPort != null749Views0likes0CommentsHow do I dynamically alter SOAP REQUEST packets?
How do I dynamically alter SOAP request packets? I have either SOAP XML input or POST XML input defined in my test case step but I want to be able to place the current time stamp within a particular node of the request (not the header) before I send the request. Is this possible to do? OR, is it possible to have a "SOAP request template" and dynamically fill in parameter values (using Groovy?) within the request before sending the request? If so, how do I accomplish it? I've done this sort of thing using pure Java code before but I am hoping SoapUI has something built-in that can do this? If this feature existed, it would save me time and perhaps make the tests easier to understand for other people.978Views0likes1CommentRe: maven-soapui-plugin: Can I log server responses
In my experience with using the Maven plugin, the test result and output also gets logged to a .txt file in the workspace. I am using the PRO version of soapui though and that might explain why, since I use the maven plugin option: <exportAll>true</exportAll> , which may or may not be a PRO option ( I am unsure).1.1KViews0likes0CommentsHow do I bind a mock response to a request?
I have created a simple project ( https://github.com/djangofan/soapui-test ) where I have a Mock service with 2 responses defined. When I run a suite with a request on this mock service, the response alternates between the 2 defined mock responses. I don't want it to alternate since my assertion is defined for a particular response. I don't know how to "bind" a certain mock response to a particular request. Can anyone tell me how to do that? If I run both suites, each with one test case, I get: Test1 - gets response 1 Test2 - gets response 2 Result = ok But, if I run only the second specific test, using Maven '-P' arg, I get: Test2 - gets response 1 Result = fail1.1KViews0likes1CommentRe: How do I begin to implement a custom JUnitReportCollector?
redfish4ktc2 - Thanks for the answer and the links. My GitHub url is shared in the initial post on this thread. In that project I am using your extension plugin. I discovered a "workaround" for my problem by moving test steps into their own test cases (each test case having one step). I still would like to figure out a way to log individual steps but I am not feeling very confident that I will be successful. Feel free to fork my project and give me a pull request.2.8KViews0likes0CommentsRe: How do I begin to implement a custom JUnitReportCollector?
Yes, I get a report generated. The report generated by my project (see above URL) gives me the number of test cases but only shows test case names if the test fails. The report doesn't show me successful test case names, which I wish it would do. As you can see from my configuration, I have set "exportAll" as a Maven option to the plugin but it seems that SoapUI is ignoring that option.2.8KViews0likes0CommentsRe: How do I begin to implement a custom JUnitReportCollector?
Yes, I saw that post but nobody seems to be using the maven-soapui-plugin like I am, and since those suggestions are out of context, I am at a loss as to how to do this, for example, by using a Groovy script step or a Groovy class defined outside of a SoapUI project. My workaround is simple. I think I was incorrectly adding “tests” in SoapUI as “test steps within a case” instead of adding them as separate test cases , each containing one step. This was causing my report to have no detail about each individual test case. So, my opinion is that my original question (above) is something that nobody has yet done, and may not be possible.2.8KViews0likes0CommentsHow do I begin to implement a custom JUnitReportCollector?
Maybe biting off more than I can chew, but I am looking for advice on how to implement the new feature in maven-soapui-extension-plugin for "configuring the JunitReportCollector to be able to modify xml junit files generation" but I am having trouble figuring out where to start. I basically want a ReportCollector that is capable of printing out the test steps (in the HTML report) as it runs through each test case within a suite. I am not sure this is even possible. I can do this, I just need a basic idea of where to start. I have read all the related threads and help docs on this matter and everything is very vague. Here is my project template, which is the point I want to start from, in order to implement this: https://github.com/djangofan/soapui-test I am guessing this might involve building sub-nodes into the report.xml "testcase" node, like so? .... <testcase name="RequestTime TestCase" time="0.292"> <teststep name="Step1" time="0.122"/> <teststep name="Step2"> <failure type="Assertion" message="Test failure.">That statement is not true!</failure> </teststep> <teststep name="Step3"> <failure type="Exception">java.lang.NullPointerException</failure> </teststep> </testcase> </testsuite> </testsuites> If this is not possible, then the workaround, of course, is to put each of my test steps into it's own test case. This would be perfectly acceptable if I could attach a link to specific console output to each test case.6.4KViews0likes12Comments