Contributions
Re: Using OpenShift To Run SoapUI Test Suites\Cases
Thank you! Believe it or not, your simple reply says a lot to someone new to both SoapUI and OpenShift. My next step would have been to contact Red Hat or the OpenShift community, however I just wanted to get an idea of how anyone out there might be running their SoapUI tests in OpenShift first. Thanks again, Mike1.8KViews0likes0CommentsUsing OpenShift To Run SoapUI Test Suites\Cases
Is anyone running their SoapUI test suites\cases in Red Hat OpenShift? Are there any tutorials or documentation for how to do this? I would like to start with a proof of concept demonstration using a MOCK REST service deployed to a WAR file and then deploy that WAR file to an OpenShift Docker container to run it. I would then like to run my test suite\case by executing mocktestrunner.batfrom another OpenShift Docker container. This configuration would be to demonstrate how SoapUI test cases could be run automatically from OpenShift. Presently the MOCK REST service would be used in the proof of concept because the production service is not yet ready. In the future when the production service is ready we will run it in it's own OpenShift container and test it with the SoapUI testrunner.bat used for command line automation. We would like to deploy and run the testrunner.bat in an OpenShift container as well, thus the proof of concept would demonstrate this environment by simulation. I am new to both SoapUI and OpenShift. I have already created all the SoapUI artifacts I need, i.e. a SoapUI project with test suite, test case and MOCK REST service; exported the project as a WAR, and prepared a .bat file to execute the mocktestrunner.bat. What I need now is to know what has to be done in OpenShift. So if there is anyone out there that has done this I would really like to hear from you. Thanks!!!1.8KViews0likes2CommentsRe: Open Source SoapUI 5.4.0 Documentation
Thank you! Right after I posted this I found the sample script and it was very helpful. I was able to do what I needed to do. But I must disagree about the documentation; not the availability but the quality. For instance, from the example you determine that you need to make a call to the mockRequest object. The API shows the methods of the object, but the API is extensive. Where is the documentation to find out how to use it to do something else that is not provided in a example script? In this same context, I find the documentation for both the exporting of a mock REST service to a WAR file lacking as well as DETAILED information about how to run a test case using the mock REST service WAR in an automated command line environment. In my opinion, just stating that you can create a WAR file is not good documentation. Yes it's important to state this so one knows the feature is available, but good documentation would show how to do this and explain why one is doing what one does! For example it would be extremely helpful to have an explanation of what the WAR file will contain since it appears you have to export the whole project, but the only thing you really want tin the WAR file is the mock REST service. Is this or should it be a concern? If yes, why. If not, why.1.6KViews0likes0CommentsOpen Source SoapUI 5.4.0 Documentation
Is the only "documentation" for SoapUI Open Source 5.4.0 the on-line documentation you get to from the Help menu? If so, this is woefully lacking. There are many features that are not explained. For instance, how do you use the Dispatch feature for the response of a mock REST service? The existing documentation states that sequence uses the listed responses in sequence and script allows you to make responses dynamic, but there is no explanation how this is done.1.6KViews0likes2CommentsRe: Where can I find more information about working with MOCK REST Services?
Thank you Rao. I figured out a solution to my problem. I'm not sure if it's the right way to do it, but it seems to work just fine. Anyone out there with a similar question, here is a summary of what I did: I had a WADL for a REST service that has not yet been implemented. It will be my responsibility to test it once it is implemented. So I wanted to start getting familiar with the interface before the service was actually ready. I thought the MOCK REST service feature might be just what I was looking for. I created a REST service from the WADL I had. Then I noticed the "Generate MOCK REST service" menu item. I used it to generate a MOCK REST service from the REST service I created from the WADL. But then I was having trouble executing the MOCK REST service using the REST service from the WADL as the underlying service. After playing with it for two days I tried something. First I changed the URL in the WADL for the resource in the service to my local machine name. Then I recreated the service from the changed WADL. After I used "Generate MOCK REST service" to recreate the MOCK service I changed the port number generated to match the port I used in the WADL. Then I created a test suite and test case in the project that contains both the service and the MOCK service. I added a response to the MOCK services and then added an assertion to the request test step in my test case. I made the assertion validate the response I wrote for the MOCK service, started up the MOCK service and ran the test case. It worked perfectly! The last thing I did was figure out how to run different test cases using the same request from the REST service I created with the WADL and using different actions I created with different resources for the MOCK service and different test cases I created in the original test suite. Each time I ran a test case I would simply change the resource for the REST service request to match the resource for the specific MOCK REST service response I wanted to test. I hope this helps anyone else that wants to do something similar. Mike7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsRe: Where can I find more information about working with MOCK REST Services?
Let me ask this another way..... What is the purpose of the Generate MOCK REST Service functionality available from the Popup Menu of an existing service? And How is it used? The documentation for this feature is not helpful. Mike7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes0CommentsRe: Where can I find more information about working with MOCK REST Services?
Thank you Rao. Your video is helpful with setting up the MOCK REST service. Is there a way to also use SoapUI to test the service, rather than using Postman? Mike7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes2CommentsWhere can I find more information about working with MOCK REST Services?
I created a REST service from a simple WADL. Then from this REST service I generated a MOCK REST service. Now I would like to execute the service so I can see the response I set up in the MOCK REST service. How do I do this? I don't see anything in the documentation on REST MOCKING that explains this. Thanks, Mike7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes5Comments