Thank you for taking the time to answer me, grylion54.
I’m especially interested in your first solution. I want to avoid Global Variables.
From TC_05_03_03 I want to target these custom keywords in TCLogin:
CustomKeywords.'loginLogout.Login.loginProcedure'(TCLogin_username, TCLogin_password)
CustomKeywords.'actuBU.modals.remplirModalPrincipal'(TCLogin_titre, TCLogin_description)
In TCLogin I’ve renamed the variables:
In TC_05_03_03 I followed your advice:
AFAIK this code is valid (another example):
WebUI.callTestCase(findTestCase('LogInOut/Login'), [(TCLogin_username) : TC050303_username, (TCLogin_description) : TC050303_description,
(TCLogin_titre) : TC050303_title, (TCLogin_password) : TC050303_password], FailureHandling.STOP_ON_FAILURE)
I checked if my TC_05_03_03 variables have any values and they do.
I get this error which makes no sense to me as I do have TCLogin variables listed as in use, as shown above:
2024-04-25 15:24:23.> 443 ERROR c.k.katalon.core.main.TestCaseExecutor - Test Cases/ActuBu/TC_05_03_03 FAILED.
Reason:
groovy.lang.MissingPropertyException: No such property: TCLogin_username for class: Script1713517697054
Many thanks,