77647

Does SOAPUI have the concept of an unexpected message

Question:

I have a test where I am sending a message in SOAPUI, usually this will trigger an message coming back asynchronously to my Mock Service so I have a Mock Response.

Now I have a testcase where receiving any message to my mock service would be considered failure.

Other tools I have used in the past had the concept of unexpected messages wherein receiving a message would fail the test.

Anyone have any ideas on this?

Answer1:

Hm..You can add an assertion to Mock Response. There is an assertion inspector at bottom of Mock Response panel. Add script assertion with:

assert false

That should do the trick.

Recommend

  • Haskell exceptions and unit testing
  • ant excluding files
  • How do I interpolate a line number from __LINE__ into the name of a test in Perl?
  • how to write UI test to test whether image existing when click the first cell in an UITableView?
  • Add filename and length parameter to WCF stream when Transfermode = Stream
  • passing parameter to server in ExtJs
  • wsContext.getMessageContext().get(MessageContext.SERVLET_REQUEST) returns null on Jetty?
  • Testing custom SOAP Headers in ASMX
  • twisted.internet.error.ConnectError when run scrapy spider
  • Jackson mapper write id instead of entire object
  • Extjs, handling success or failure when doing a standard submit in a form
  • How to implement simple validation in Scala
  • Return to second to last URL in MVC (return View with previous filter conditions applied)?
  • Mockery and Laravel constructor injection
  • Best win32 compiled scripting language? [closed]
  • init_seg and warning C4073 from library code?
  • EntLib Way to Bind “Null” Value to Parameter
  • can variables be set randomly when declaring them again?
  • Examples of how to a STS in .Net 4.5 using WCF
  • Ruby on Rails App deployed to heroku showing “We're sorry, but something went wrong”
  • How can I mock ui-router's resolve values when testing a state's configuration?
  • Consuming a WCF service in a Java Client using wsHttpBinding
  • Access user's phone number on iOS 7
  • Salesforce Different WSDL files and when to use
  • Undefined references when compiling gSOAP client
  • Force show.bind execution
  • Specifying Castle WCF Integration Facility Endpoint Behavior per Endpoint
  • How to do unit test for HttpContext.Current.Server.MapPath
  • NHibernate Validation Localization with S#arp Architecture
  • How can I send an e-mail from a vbs script
  • Accessing IRQ description array within a module and displaying action names
  • Is there a amazon webstore API for customers?
  • angularjs unit test when to use $rootScope.$new()
  • Circular dependency while pushing http interceptor
  • Is there a mandatory requirement to switch app.yaml?
  • File upload with ng-file-upload throwing error
  • ExecuteAsync RestSharp to allow backgroundWorker CancellationPending c#
  • AngularJs get employee from factory
  • Angular 2 constructor injection vs direct access
  • Getting Messege Twice Using IMvxMessenger