Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mock wsdl and rest web services #2

Open
poliarush opened this issue Mar 15, 2012 · 8 comments
Open

mock wsdl and rest web services #2

poliarush opened this issue Mar 15, 2012 · 8 comments

Comments

@poliarush
Copy link

are going to implement such functionality in your library?

@pavlobaron
Copy link
Owner

do you mean this: http://www.soapui.org/Service-Mocking/mocking-soap-services.html and http://www.soapui.org/apidocs/com/eviware/soapui/model/mock/MockService.html ?

Seems to be possible to access it through the API, though I didn't work with it yet. But it should be possible. Do you have a working example in a project file and could you gist it please so I can have a look?

@poliarush
Copy link
Author

@poliarush
Copy link
Author

i got code that run mock service from soapui

def project = context.testCase.getTestSuite().getProject();
def mockService = project.getMockServiceByName("WorkScheduleServiceMock");
mockService.start();

@pavlobaron
Copy link
Owner

done. see examples/mock

@poliarush
Copy link
Author

super fast, thanks

i will check today's evening

@poliarush
Copy link
Author

i modified a bit run.bat to

set SOAPUI_HOME="c:\Program Files (x86)\SmartBear\soapUI-4.0.1"

jybot --pythonpath %SOAPUI_HOME%/bin/soapui-4.0.1.jar:%SOAPUI_HOME%/lib/STAR.jar --escape star:STAR --variable PRJ:tempconvert-soapui-project.xml --variable SUITE:suite --variable CASE:case --variable MOCK:mock test.txt

run it and get following issue
http://pastebin.com/PtXR3c21

looking for suggestions!

@pavlobaron
Copy link
Owner

That's plenty of error text...

As far as I can see, the whole problem is around "java.lang.ClassCastException: com.eviware.soapui.config.impl.InterfaceConfigImpl cannot be cast to com.eviware.soapui.
config.WsdlInterfaceConfig". But I have no idea, what it is. Is it any related to SoapUI running on Windows? Different versions? I must admit, I only tested on Ubuntu.

Can anyone confirm the error?

@poliarush
Copy link
Author

I tested on

  • Windows 7 RU
  • jython 2.5.1
  • soapUI 4.0.1

and can reproduce issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants