After further investigation my issue is not the TESTING_MODE(), it’s the rule I have before that.
so TESTING_MODE function is working as expected as far as I can see and there is no issue here other than me 😉
i had the following process:
FIND SystemUser WHERE SystemUser =LoggedInSystemUser
Logout SystemUser
then I had the checking testing mode function
IF TESTING_MODE() = 'Yes' THEN
EXEC_SCRIPT 'window.location.replace(
https://myServer/AwareIM/logon.jsp?domain=myDomain&testingMode=true);'
ELSE
EXEC_SCRIPT 'window.location.replace(
https://myServer/AwareIM/logon.jsp?domain=myDomain);'
This was not working. From testing I assume after the logout procedure is run the system evaluates TESTING_MODE() differently.
@aware_support could you please confirm my assumption?