when bot open the application, i manually make the application session timeout, so that bot goes to other case and try to click on login, so that it login again, but not able to test properly. let me know how can i test it. so that i can test it both the cases properly.
Note - i have used left side Retry scope, when i run the bot in debug mode, first time it goes to right side where session timeout code is written and i intentionally keep the session time out window but then it come again to left side where Action sequence is present.
Parallel with Retry Scope causes unpredictable behavior because Parallel stops other branches once one completes. That’s why session-timeout testing doesn’t work reliably when done manually.
To test timeout properly, let the session expire using a Delay or navigate directly to the timeout page if possible. For a cleaner solution, avoid Parallel and use sequential Check App State activities to handle timeout first, then logged-in state.
what you can do is use check app state for login successful..if not then use check app statet for session timeout…no retry scope is needed(increase the timeout value in check app state).
if session timeout also is not available then its a complete failure
i understand if i use parallel activity it will give me unpredicted behavior of the bot, but if i do not use retry incase of failure how as human will make sure that bot has done enough number of retry in order to login properly, what will increase timeout will does here, will that satisfy our need could you pls explain?
increasing timeout ensures that the timeout sequence for the site is less than the timeout of the activity - could you pls elaborate, do i need to change the timeout to 60 seconds?
current bot behaviour, when i kept retry and kept the check app state in for timeout in right side where successful target doesn’t appear and tried debuging it is properly going and checking the timeout and clicking on click here so that again it able to login to page and it is doing as well but after that it went to retry and again opened the login sceen. one more thing i observe is that after it clicked on click here button to go to main page it opened in new window.
my activity
used try catch block- under try- retry-useapp browser- check app state to check successful login if not- right side again- check app state to check timeout -if yes- click here to login again-check app state if login successful-at last used check true activity in retry condition.