Testing escalations without waiting X days??!!

  • 17 January 2006
  • 2 replies
  • 2 views

Badge
Hi everyone,

I'm BA/QA for a K2 solution we're developing. As part of my QA, I've identified the need to test to ensure the activities that are contained in a path followed by an escalation works.

The escalation is currently set for X days. It's not very realistic to wait days for the test to proceed so i need to find a way to do it faster.

What is everyone's strategy for testing esclations? We don't really want to be swapping the "elapsed time" value for something smaller like "10 seconds" instead of "10 days"

2 replies

Badge +4
Use a default escalation and edit the code to something like this:

Dim Days As Integer = 0
Dim Hours As Integer = 0
Dim Minutes As Integer = 0
Dim Seconds As Integer = 0

'Hours = K2.ProcessInstance.DataFields.Item("SLAHours").Value
Minutes = K2.ProcessInstance.DataFields.Item("SLAHours").Value

K2.SetEscalationRule(Days, Hours , Minutes, Seconds,0)
Badge +11
As David suggested, changing the Escalation time value through datafields is one way of doing it.

Alternatively, you can use String Table entries to define the 'Days', 'Hours' and 'Minutes' values. These string table entry values can then be manipulated through K2.net Service Manager.

Both of these solutions is unfortunately 'swapping' of escalation time value but apart from changing your system clock, I can't think of any other way.

Regards,
Ockert

Reply