What I'm trying to achive is to use the next-to-topmost folder in the test plan as default for a user field when creating a new defect.
My code is here:
set mySubjectNode = Bug_Fields("BG_SUBJECT")
myFolderPath = mySubjectNode.Path
This throws an error, saying path is not a valid attribute for mySubjectNode. By trial and error, the only attribute I got to work is mySubjectNode.Value, which returns a string with the name of the folder the test set resides in.
But, according to the documentation, Bug_fields("BG_SUBJECTS") returns an object of type SubjectNode, and .path is an attribute of those objects. So what am I doing wrong? Ideas, anyone?