Desktop: WindowsTestObjects null in GlobalVariables

Stepps to reproduce:

  • Open any Profile
  • Add a GlobalVariable with ValueType “TestObject”
  • Click in field “Value”: Object Reporitory Tree is displayed. Select any WINDOWSTestObject → possible
  • Close selection

Expected behaviour:
EITHER
WINDOWS testObjects can not be selected (if it is not possible to put the in global vars, which is very poor)
OR
WindowsTestObject is displayed as value

Actual behaviour:
value = findTestObject(null)


Setting Object via Script view also does not work …

1 Like

I was able to reproduce this:

It seems an error in KS. I tried the same using a Web Test Object and it worked!

I don’t know exactly who I could mention in this reply, but @albert.vu or @viet.nguyen surely do.

2 Likes

Thanks Gaston for sharing! We will inform our product team @Elly_Tran can help create an internal ticket.

1 Like

Hi @veroS,

Welcome back after a while. Thank you for letting us know your issue.

I will create the ticket for my team to investigate and keep you updated about this. Thank you

Hi @veroS,

Sorry for my late response. I got the answer that the root cause may be when adding a variable as Global Variable/Variable, the function shows as findTestObject, the correct function must be findWindowsObject.

And in script mode, we could assigned to a variable. It works as expectation.

Also, remember to use the correct function findWindowsObject as well. Hope this can help. Thank you

Thank you for your answer, @Elly_Tran . No, this does not solve the problem because the bug is, that the GlobalVariables can not be used to store a WindowsTestObject. Please fix the bug.

Will there be any action?