How to test cron strings in TaskSchedule

Which IIQ version are you inquiring about?

8.3

Please share any images or screenshots, if relevant.

Share all details about your problem, including any error messages you may have received.

I have configured below cron strings in a TaskSchedule to run a task once on every Saturday except the fourth Saturday of a month

  <CronExpressions>
    <String>0 0 0 ? * 7#1 *</String>
    <String>0 0 0 ? * 7#2 *</String>
    <String>0 0 0 ? * 7#3 *</String>
  </CronExpressions>

But how do I test it? I mean the ‘Next Execution’ stat on the Task page shows me correctly the next execution is on coming Saturday. But how can I test whether the 4th Saturday would be skipped as needed? Is there something like a TimeMachine that we use to test future email triggers

Hi @aseelvn07,

you can use th time machine.

Add this key in configuration system:

<entry key="timeMachineEnabled" value="true"/>

and leter you can access at this page:

[IdentityIQ Base URL]/debug/timeMachine.jsf

On this page you can add min,hour or day to IIQ localtime

I don’t think it works for Task schedules, it is only for workitem reminders and escalations.

Hi @aseelvn07 as far as I know the time machine is not working for the Task Schedule.

You can test it locally on SERI VM since you can control the date and time, also you can test it in your local machine or installing IIQ on any VM that you have.

Reagrds,
Muhammad

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.