Forum Discussion

rameshrc's avatar
rameshrc
New Contributor
11 years ago

Project.TestItems.Current undefined while running from routine

Hi,



I get Project.TestItems.Current undefined while running from routine. But if I run from Project and select the TestItem and run, I get the current running test item. Is this defect?

1 Reply


  • Hi ramesh,


     


    This behavior is expected. Let me quote the "Current Property (Specific to Project Object)" article:


    If test items are not running (for example, you started a script routine or a keyword test manually from the Code editor or from the Keyword Test editor), Current returns an “empty” value (Nothing in VBScript, null in JScript, C++Script and C#Script, nil in DelphiScript).