cancel
Showing results for 
Search instead for 
Did you mean: 

How to test processes with timers.

andreasa
Champ in-the-making
Champ in-the-making
I've searched the forums and found some solutions on testing timers when doing unit-tests. Where suggestions are based around the management-service jobQuery/jobExecute.

However I'm unsure if this approach is also suited for testing done by a QA-team or end users. Any suggestions on how manage this?

Two solutions that I've found so far (that I find a little clumsy):
1 - Parameterize timer length. So a 30-day timer could be 1 hour etc.
2 - Make a tool that sets system clock.
2 REPLIES 2

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
1: don't
2: kind of already done (but differently) see the activiti testcases for timers.

andreasa
Champ in-the-making
Champ in-the-making
2 - Can be solved using ClockUtil which is showcased in the testcases:
trunk\modules\activiti-engine\src\test\java\org\activiti\engine\test\bpmn\event\timer