How can we set variable value in console tab in chrome?

Hi, I am trying to test a flow. Before that I have to set variable attivaCombinata = ‘N’ in console tab in chrome and validate that the value is set as ‘N’.(Please refere below screenshot). Can anyone help me with the solution? How can we proceed with setting the variable value in Console using Katalon Studio?
image

You’re not very clear about the scope of this variable. I’m going to assume it needs to have global scope based on your screenshot.

In your test case:

String js = "window.attivaCombinata = 'N';"
WebUI.executeJavaScript(js, null)
// continue testing here

Thank you. this code works for me :slight_smile: