Use the Object spy feature

My laptop can’t use the Object spy feature, it can run testcase. - Version: 5.4.0
My desktop can use the Object spy feature, it can’t run testcase. - Version: 5.3.1
Can you tell me how can I fix it.