When calling a test-case I supply variables:
WebUI.callTestCase(findTestCase('TESTCASE'), [('Gebruikersnaam') : 'katalon1', ('Wachtwoord') : 'katalon1'], FailureHandling.STOP_ON_FAILURE)
However, I often use the same variables. Is there a way to set a default value inside TESTCASE that’s set in case a variable is undefined?
I had to do some complicated work-around now with try/excepts. There must be simpler way?
Just using:
if(Gebruikersnaam == undefined) {
Doesn’t work, because the script won’t run because… “Gebruikersnaam” isn’t defined