Automated testing of Ensemble productions

Hello everyone,

Does anyone know how to create integration tests using the Cache unit test framework in order to test an Ensemble production?

For example, what would be the best way to create automated tests for a BPL that calls multiple business operations (SQL, WebService ...)?

Should we create some kind of mock service/operation to simulate the response from the business operations ? 

 

 

  • 0
  • 0
  • 584
  • 3
  • 1

Answers

There is documentation, including a tutorial, here: http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=TTEP

Thanks Derek. I've been through the tutorial already but it shows how to test HL7 Routing rules + DTL or business operations that are not connected to an external system. 

I'd like to be able to test a BPL that do sync and async calls to a downstream system I don't have access to. So in order to test the BPL, I'll need to simulate some responses from the business operation. So I'll probably need to create some kind of mock service/operation maybe using a second production...

Comments

It's a little confusing: you want to do integration tests with a unit test framework, that doesn't sound right.

I'm not a big fan of unit testing, but for integration tests you'll need mockup services to emulate the 'outside' world. We use Soap Sonar, SoapUI and Cache services to just do that.

Sorry for the confusion: I'm talking about integration tests.  

I'd like to test the logic of a BPL that makes calls to multiple external application. I'll create my mockup services in SoapUI and will try to run multiple scenarios.  

Thanks for the advice.