Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Get path from defect subject - I can't get Bug_fields("BG_SUBJECT") to behave like a subjectNode

$
0
0

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?

 

 


Viewing all articles
Browse latest Browse all 14708

Trending Articles