Forum Discussion

jdbraden's avatar
jdbraden
Occasional Contributor
9 years ago

Chrome opens no matter what

Anyone,

 

Why is Chrome opening when I run my scripts? For the simplest scripts, it still opens. For example:

 

Sub test()
Browsers.Item("iexplore").Run()
End Sub

 

Or

 

Sub test()
Browsers.Item(btIExplorer).Run()
End Sub

 

So on and so forth. Is there a system setting on my computer that somehow got enabled? Does TestComplete 11.31 have a bug that is doing this? Is it a Project setting I'm missing? Project Suite setting? I'm losing my mind, here. 

 

  • My problem was a script file I created called "GlobalVariables" that had a run Chrome command...apparently, no matter what SCRIPT you are trying to run, TestComplete will compile ALL entities within a project. This seems stupid to me, but I'm no expert. IMO, TestComplete should only compile what is referenced I.E. 'USEUNIT [File Name].

  • jdbraden's avatar
    jdbraden
    Occasional Contributor

    My problem was a script file I created called "GlobalVariables" that had a run Chrome command...apparently, no matter what SCRIPT you are trying to run, TestComplete will compile ALL entities within a project. This seems stupid to me, but I'm no expert. IMO, TestComplete should only compile what is referenced I.E. 'USEUNIT [File Name].

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      Testcomplete doesn't run as a "compiler" so it doesn't know to only select particular objects or units. Because it is a scripting engine, it needs to load everything so that, if necessary, scripts can be called.