Webrecorder : "no such property" when replaying existing script

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 Keys

WebUI.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’))

No idea of how to avoid this message ??

2022-03-08 18:23:05.574 ERROR c.k.k.core.main.WSVerificationExecutor - ? Verification FAILED.
Reason:
groovy.lang.MissingPropertyException: No such property: sscc for class: WSVerification1646760185417

It is really blocking me to modify existing scripts !

To me, the above error message indicates that something is wrong with the parameters that you have for a method. Either, you have the wrong data type, too many or too few parameters or possibly a misspelling of a variable in the parameter list (groovy is case-sensitive, so an uppercase letter is not the same as a lowercase letter). Do you see anything that has “sscc”?

Hello @grylion54,
sscc in another variable which were declared in variables tab such as loadDate and loadCode in my first example (it was another script with other variables, but same behavior)

hello @Shin, are you able to reproduce my problem or should I help to investigate ?

hello @Shin , @Jass
as I encoutered again the probleme, I created a text script sample in order to help you to reproduce my problem

could you try to reproduce it please ?

Here is my script :

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.testng.keyword.TestNGBuiltinKeywords as TestNGKW
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 Keys

WebUI.openBrowser('')

WebUI.navigateToUrl('https://www.google.com/?gws_rd=ssl')

WebUI.click(findTestObject('Object Repository/Page_Google/div_Tout accepter'))

WebUI.setText(findTestObject('Object Repository/Page_Google/input__q'), text_to_search)

WebUI.sendKeys(findTestObject('Object Repository/Page_Google/input__q'), Keys.chord(Keys.ENTER))

println('hello the world !')

not_run: WebUI.closeBrowser()

WebUI.click(findTestObject('Object Repository/a_Katalon Recorder'))

WebUI.click(findTestObject('Object Repository/div_Tout autoriser'))


in this test script, I added variable with default value “Katalon” :

when :

  • clicking on “Record Web”
  • answering Yes at question “Do you want to continue recording”
  • clic Expand
  • click “Run All steps”

I get this error message :

2022-07-18 17:27:05.596 DEBUG testcase.                                - 4: setText(findTestObject("Object Repository/Page_Google/input__q"), text_to_search)
2022-07-18 17:27:05.605 ERROR c.k.k.core.main.WSVerificationExecutor   - ? Verification FAILED.
Reason:
groovy.lang.MissingPropertyException: No such property: text_to_search for class: WSVerification1658158023532
	at WSVerification1658158023532.run(WSVerification1658158023532:25)
	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:180)
	at com.kms.katalon.core.main.WSVerificationExecutor.doExecute(WSVerificationExecutor.java:174)
	at com.kms.katalon.core.main.WSVerificationExecutor.processExecutionPhase(WSVerificationExecutor.java:157)
	at com.kms.katalon.core.main.WSVerificationExecutor.accessMainPhase(WSVerificationExecutor.java:149)
	at com.kms.katalon.core.main.WSVerificationExecutor.execute(WSVerificationExecutor.java:131)
	at com.kms.katalon.core.main.TestCaseMain.runWSVerificationScript(TestCaseMain.java:155)
	at com.kms.katalon.core.main.TestCaseMain$runWSVerificationScript$0.call(Unknown Source)
	at TempTestCase1658158021405.run(TempTestCase1658158021405.groovy:25)

2022-07-18 17:27:05.611 INFO  c.k.k.core.main.WSVerificationExecutor   - END Verification

Hi @staniere

We’re planning for a fix. Let us get you informed when the fix is shipped.

Thank you for your patience,
Jass

1 Like

hello
I just received a message from support team :

this bug has been fixed in the latest version 8.5.5. You can forward this information to your teammate who are still using Katalon so that he can be aware. The new version can be downloaded here

I tested it on 8.5.5 and it is ok for me now :slight_smile:

​

1 Like