Desktop App: can't get any TestCaseContext or properties

*Summary
TestCaseContext.getTestCaseId() not working for Tests of Desktop Apps

*Steps to reproduce
Try to get TestCase name or ID
by e.g. TestCaseContext.getTestCaseId()
TestCaseContext.getProperties().getAt(‘Name’)
TestCaseContext.getProperties()

*Expected Results
Name or ID as seen in the TestCase Properties

*Actual Results
TestCaseContext.getTestCaseId() not known
TestCaseContext.getProperties().getAt(‘Name’) is null
TestCaseContext.getProperties() itself shows, that no information is given (see below)


*Operating System
Windows 10

*Katalon Studio version
e.g. version 9.5.0 since 10 is not able to automate desktop projects…

*Katalon Studio logs

annotation:false, hidden:false, interfaces:[], anonymousClass:false, name:com.kms.katalon.core.context.TestCaseContext, simpleName:TestCaseContext, enclosingMethod:null, genericInterfaces:[], genericSuperclass:null, nestMembers:[interface com.kms.katalon.core.context.TestCaseContext], enclosingClass:null, canonicalName:com.kms.katalon.core.context.TestCaseContext, componentType:null, typeParameters:[], typeName:com.kms.katalon.core.context.TestCaseContext, enumConstants:null, packageName:com.kms.katalon.core.context, annotatedSuperclass:null, permittedSubclasses:null, signers:null, declaringClass:null, declaredClasses:[], package:package com.kms.katalon.core.context, synthetic:false]

1 Like

Hi @veroS,

Thank you for sharing the bug. Appreciate your time and contribution

I will let my team know and investigate this. Thank you

Hi @veroS,

Sorry for my late response. I get the answer that TestCaseContext does not have the properties method

For your reference, please take a look at TestCaseContext Java API: TestCaseContext (Katalon Studio API Specification).

Thank you

Thank you, @Elly_Tran , I expirienced this.
The idea was the find a way to get any usable information about TestCaseContext, since non of the mentioned methods work (not only properties).

Also not getTestCaseId(), which clearly should:


→ I think, this is a Bug.

Is there any other possibility to get the ID during runtime??

Sorry, i DOES work. I found a solution for my issues here:

Thank you!