Test session expiration

Hello ,

I’m trying to test if the website has a session and it expired after 30 mins, how we can test it though WebUI? is this scenario even possible in Katalon ?

this largely depends on how the website reacts after a session expires
if it shows a popup, you can validate if the popup is present
if it redirects you, you could wait 31 minutes and then navigate to a page on the website

it will redirect to the login page, how I can create a step s to wait for 30 and validate the redirection?

WebUI.navigateToUrl(“url that will cause a redirect”)
assert WebUI.getUrl()==“url user is redirected to”