Test Automation Using JUnit

I am trying to automate manual testing of modules in my project. We are dealing with IBM Websphere Message queue software. We have a trigger component written in the Java kernel, which when polling for a message in a configured queue. Its an indefinite while loop that supports triggering a trigger component. I wrote test cases in JUnit to queue a message, and now can I start / stop the trigger component on demand? Calling the trigger component makes it work, and I don't get control back to check the expected result. If I ran it in a stream, then the log files to which the trigger component should be updated during message processing are not updated. How can I solve this situation. Your suggestion and guidance are highly appreciated. Thanks, -Vijay

+4
source share
1 answer

I would look at porting your assembly manually to a scripted assembly using something like Apache Ant and using junit support, see http://ant.apache.org/manual/Tasks/junit.html .

After you have your own tests that you can run through Ant, you can integrate into a continuous integration container such as Hudson (hudson-ci.org) and make it schedule the build to run on a timer. You can also schedule a run when registering code.

For more on continuous integration, see Martin Fowler's article, http://martinfowler.com/articles/continuousIntegration.html .

+2
source

Source: https://habr.com/ru/post/1309966/


All Articles