Hi all,

I Have been "playing arround" with Quality Center for a while now.
At the moment I'm kinda stuck at the point where I try to get a link between A particular Bug and a TSTest.

This is a piece of the code in VBScript where I'm trying to link the object Bug (which really exists in the list of BugFactory) to the object t (an existing tstest in the list of tsTestFactory).


Set BugLinkF = t.BugLinkFactory
Set buggy = BugLinkF.AddItem(Bug)

[/ QUOTE ]
It crashes at the point of AddItem(Bug)

When I use


Set buggy = BugLinkF.AddItem( <font color="blue"> Null </font> )

[/ QUOTE ]

Then it crashes at the point of posting since it needs some fields defined that are required.

I really don't understand what's wrong. It seems to have trouble finding the targetEntity (the Bug) but why?

When I tried the same code in VB defining
<font class="small">Code:</font><hr /><pre> Dim BugLinkF As LinkFactory </pre><hr />
It was all OK. But in VBScript, I can't use this reference I guess?

Would appreciate some help here [img]/images/graemlins/crazy.gif[/img]