How to get run data value as variable?

I have searched for this information in the forum and documentation but don’t seem to be able to find how to do this?

When Katalon runs, it puts information like this into the log:

04-27-2018 12:40:46 PM - [RUN_DATA] - Logging run data ‘sessionId’ with value ‘9a355b44-8ac8-4410-bfb7-272057e53221’

04-27-2018 12:40:47 PM - [RUN_DATA] - Logging run data ‘browser’ with value ‘IE 11’

04-27-2018 12:40:47 PM - [RUN_DATA] - Logging run data ‘platform’ with value ‘Windows 7’

_04-27-2018 12:40:47 PM - [RUN_DATA] - Logging run data ‘seleniumVersion’ with value ‘3.7.1’

What i am trying to figure out is how to get this run data so I can use it in my script?

In my example I have a site that returns different html depending on the browser, for IE11 it sends HTML4, for the others it sends HTML5 so the object I’m after is in a tag unless it’s IE11 then it’s in a

I would like to somehow (pseudo code):

If (_run data ‘browser’ = “IE 11”){
click span
} else {
click bgi
}

_
Katalon already knows which browser it launched, I just want to use that information in my script.
_

Please find my comment to

There you will find a way how to determine the type of driver.

2 Likes

Thanks, that’s what I needed.