Hello,
when trying to modify an existing test case with webrecorder, I get stucked because properties are not taken in account.
Any idea on how to make it working ?
Error message in web recorder :
Altough, my variables seem to be well detected by webrecorder ; here is tab variables :
extract of webrecorder log :
2021-12-08 15:58:55.209 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2021-12-08 15:58:55.214 DEBUG testcase.Authentification si besoin - 14: warn_MSG = getText(findTestObject(âObject Repository/Authentification/Page_Reflex - QCSGERFX023/pop_warn_txt_divâ))
2021-12-08 15:58:55.527 DEBUG testcase.Authentification si besoin - 15: if (warn_MSG)
2021-12-08 15:58:55.527 INFO c.k.katalon.core.main.TestCaseExecutor - END CALL Test Cases/Common Test Cases/Authentification si besoin
2021-12-08 15:58:55.527 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2021-12-08 15:58:55.539 ERROR c.k.k.core.main.WSVerificationExecutor - ? Verification FAILED.
Reason:
groovy.lang.MissingPropertyException: No such property: loadCode for class: WSVerification1638975510399
at WSVerification1638975510399.run(WSVerification1638975510399:21)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.WSVerificationExecutor.runScript(WSVerificationExecutor.java:178)
at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:172)
at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:155)
at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:147)
at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:129)
at com.kms.katalon.core.main.TestCaseMain.runWSVerificationScript(TestCaseMain.java:151)
at com.kms.katalon.core.main.TestCaseMain$runWSVerificationScript$0.call(Unknown Source)
at TempTestCase1638975508724.run(TempTestCase1638975508724.groovy:25)2021-12-08 15:58:55.540 INFO c.k.k.core.main.WSVerificationExecutor - END Verification
extract of testcase :
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as KeysWebUI.callTestCase(findTestCase(âCommon Test Cases/Authentification si besoinâ), [:], FailureHandling.STOP_ON_FAILURE)
WebUI.callTestCase(findTestCase(âTest Cases/Load/HFCG01 - Manage loadsâ), [(âloadCodeâ) : loadCode, (âloadDateâ) : loadDate],
FailureHandling.STOP_ON_FAILURE)WebUI.rightClick(findTestObject(âObject Repository/Common Object/table_row_colâ, [(âtitleWindowâ) : âHFCG01â, (ârowNoâ) : â1â
, (âcolumnNoâ) : â1â]))WebUI.click(findTestObject(âObject Repository/Common Object/menuâ, [(âNomEcranâ) : âHFCG01â, (âlabelDuMenuâ) : âPreparationâ]))
WebUI.delay(1)
WebUI.click(findTestObject(âObject Repository/Common Object/menuâ, [(âNomEcranâ) : âHFCG01â, (âlabelDuMenuâ) : âTransfer to dockâŚâ]))
WebUI.click(findTestObject(âObject Repository/Page_Reflex - QCSGERFX022/HFCG35_input_Loading_priority_listâ))
WebUI.click(findTestObject(âObject Repository/Page_Reflex - QCSGERFX022/HFCG35_input_Loading_priority_value_0â))
//WebUI.sendKeys(null, priority)
//WebUI.sendKeys(findTestObject(âObject Repository/Page_Reflex - QCSGERFX022/HFCG35_input_Loading_priority_listâ), Keys.chord(Keys.DOWN))
/*
WebUI.sendKeys(findTestObject(âObject Repository/Page_Reflex - QCSGERFX022/HFCG35_input_Loading_priority_list_valuesâ), priority)WebUI.sendKeys(null, Keys.chord(Keys.ENTER))
*/
WebUI.delay(1)WebUI.click(findTestObject(âObject Repository/Page_Reflex - QCSGERFX022/HFCG35_div_Confirmâ))