Forum Discussion

salley's avatar
salley
Frequent Contributor
6 years ago

Error:Variable uses an Automation type not supported in VBScript

Hi,

Error is triggering only when i'm executing the test from QAComplete but when i'm running the same test from TestComplete it's running perfect, not sure how to debug that because it's only triggering while running from QAComplete.

Thanks

 

7 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

     

    Any more info about the variable that causes the problem? Where it is initialized? How? With what value? Is this a project/project suite variable? How it is used? Anything else that might provide others with some insights instead of just guessing?

     

    • salley's avatar
      salley
      Frequent Contributor

      Hi Alex,

      all i'm trying to do is call out a function that returns me a boolean value. Please see the attached file, test is running fine when executing from test complete , 

      thanks

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        And what line errors out?

         

        Meanwhile:

        a) AuthPage is an object, so

        sMainPage=Aliases.browser.AuthPage

        must be changed to

        Set sMainPage=Aliases.browser.AuthPage

         

        b) PageObjExists return value is undefined if Else branch for the

        If sPage.Exists

        condition is executed;

         

        c) As sPage parameter of the PageObjExists() function is an object, I am not sure what the result of string and object concatenation will be at the

        Log.Error "PAGE NOT FOUND: "&sPage

        line of code.