Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

We have camel based system domain-agnostic data channel framework which facilitate the raw data flow from an external data source , validate the raw data, enrich and standardize the data to ensure that data can be consumed by our system, determine the changes to the data and persist the data. All of these asynchronously and exposed as rest webservices. We need to develop a test framework for this system. Please suggest tools and design for this.

share|improve this question
    
What have you considered so far? –  dzieciou Oct 22 '13 at 18:37
    
We are exploring Camel TestNG but not sure how to check asynchronous part –  saurav Oct 23 '13 at 6:36
    
1) What do you mean by processing asynchronously and where this asynchronous element appears? 2) HTTP is synchronous protocol (client waits for the response and there is no callback), so how do you combine this with asynchronous processing? 3) Are there some situations where messages from channels A and B arrives asynchronously, but must be processes together because they are coupled together in some way? –  dzieciou Oct 23 '13 at 7:02
add comment

1 Answer 1

I have worked on systems which involved (Async Processing). The implementation of Asyc processing will be technically achieved through below examples

  • Queue based processing (Service Broker / MQ Series)
  • Custom Tracking tables (JMS etc..)

In all this cases, You can either validate by having

  • Retry for fixed number of times with configurable timeouts to validate messages are processed. I have seen a similar case in file processing, file will be picked up but it will not be loaded completely (processing). In this scenario I wait and retry for a configurable number of times to validate data loaded
  • Option#2 - If you have any tracking table you can run your validation once tracking table notifies messaged is processed
  • Option#3 - Wait until all messages are cleared from the queues, directly query where the message queues where messages are stored intermittently to identify message status
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.