I don’t understand something in REFramework. Why is InitAllApplications out of FirstRun sequence ?
In case of SystemException, process will back to Initialization, and so, InitAllApplications many times. That is potentially a problem (open apps, log in and more…).
This is for the reason that it should run whenever there is System Exception. System exception occurs when there is something wrong with the systems involved in the automation. To start a new transaction we will have to bring all the system to the starting point. This also resolves the issue of some applications gets stuck which will require a restart of it.
Yes that will be a problem but, it is a good practice to fix all the system exception whenever occurs which will be reducing this redundancy.
By default it’s given outside of the first run for the reasons I explained earlier but if your use case demands this logic to be in first run then only move it to first run.