VBScript Brain Teaser

Posted on 4 CommentsPosted in Programming

Okay, here’s a “fun” little brain teaser to test how well you understand VBScript. This first code snippet behaves exactly as you would expect: Z() defines a global variable, and this variable remains visible after the function returns:

This next code snippet introduces a minor variation, but now the last line produces an error: […]

Auto-Loading QTP Function Libraries through Quality Center

Posted on 7 CommentsPosted in Programming

For reasons that are unknown to me, QTP only loads function libraries that are associated with the top-most Driver Test.  Suppose the Driver Test invokes an external Action that is contained within another Test.  If this external Action requires function library X, then this function library must also be associated with the Driver Test.  Otherwise, […]