Could not find matching constructor for: com.kazurayam.materials.TSuiteResultId

Hi @kazurayam, sorry for the directly mention. Thanks as always.

I use your Visualtest feature and I updated your vt.version to 1.22.0 in my custom Visualtest.
And I did following :

  • Replace Test Cases/CURA/restorePreviousScreenshots -> Test Cases/VT/restorePreviousScreenshots

Then I got following error when I run my tests. Should I change something in my test more?

Test Cases/Exam_capture/backupCurrentTSuiteResult FAILED.
Reason:
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.kazurayam.materials.TSuiteResultId(com.kazurayam.materials.TSuiteName, com.kazurayam.materials.TSuiteTimestamp)
	at backupCurrentTSuiteResult.run(backupCurrentTSuiteResult: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.TestCaseExecutor.runScript(TestCaseExecutor.java:339)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:191)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:141)
	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:90)
	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
	at TempTestSuite1595983615557.run(TempTestSuite1595983615557.groovy:39)
07-29-2020 09:55:06 AM Test Cases/Exam_capture/backupCurrentTSuiteResult

Elapsed time: 2.147s

Test Cases/Exam_capture/backupCurrentTSuiteResult FAILED.
Reason:
groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.kazurayam.materials.TSuiteResultId(com.kazurayam.materials.TSuiteName, com.kazurayam.materials.TSuiteTimestamp)
	at backupCurrentTSuiteResult.run(backupCurrentTSuiteResult: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.TestCaseExecutor.runScript(TestCaseExecutor.java:339)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:330)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:309)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:301)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:235)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:191)
	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:141)
	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:90)
	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:157)
	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
	at TempTestSuite1595983615557.run(TempTestSuite1595983615557.groovy:39)

RestorePreviousScreenshots.log (11.9 KB)

FYI : I found a typo in “restorePreviousScreenshots” …
3. user just pushed CACEL button without selecting any yyyyMMdd_hhmmss dir.
CACEL -> CANCEL

Sorry, this question is not about Katalon Studio.

Could you repost this into the Issues of my GitHub project at https://github.com/kazurayam/VisualTestingInKatalonStudio/issues ?

ok thanks, I will.