Recording Katalon with token
search cancel

Recording Katalon with token

book

Article ID: 267791

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

How can we configure Katalon recording when url has a token/session? Documentation do not approach when using Token/session: Techdocs ASM - Build WebDriver Scripts

 

Environment

App. Synthentic Monitor SaaS

Resolution

Katalon will not make a correct script for this particular scenario as it requires some manual work, It recorded just a set of URLs the client was going thru redirected by the SSO.

Those URLs are generated by the SSO application and contain some generated data which work only once and cannot be replayed.
To make the script work we need to write a scenario as the user would go thru SSO:

  1. Open login page (open command)
  2. Fill inputs / Select user (typeAndWait/clickAndWait command)
  3. Click login (clickAndWait command)
  4. And follow further required steps one by one

The only challenge here is to write proper selectors for the web driver, we usually go with the XPath selectors as they are the most powerful ones.
These selectors can be checked directly in the Chrome Dev Tools here: