Forum Discussion

guoguo's avatar
guoguo
Contributor
10 years ago

"Unable to navigate to the HTTP..." TestExecute

Hi all,

 

We get problem "Unable to navigate to the http://xxx.xxx.x.xx" when we using textexecute.

 

We installed TestComplete 10.60 and TestExecute 10.60. We write the script by using TestComplete, and the script can run successfully in the TestComplete.

 

We copied the script to the test server which we installed TestExecute. From the command line, we try to execute the same routine from the script. The browser is launched, but we get the error: "Unable to navigate to...".

 

Does anyone have an idea or meet the same problem?

 

 

Regards,

 

5 Replies

  • An additional information:

     

    We wrote a mimal test script which only contains the following lines.

     

    function Unit1()

    {

       Browsers.Item("Firefox").Run();

       Delay(1000);

       NameMapping.Sys.browser.ToUrl("http://192.168.58.2");

    }

     

    When we run this script using testComplete, the firefox will be lauched and will navigate to the above http address.

    When we run this script using testExecute, the firefox will be lauched, but the test stays "waiting for page(*)", then we get the error information.

     

    • AlexKaras's avatar
      AlexKaras
      Icon for Champion Level 2 rankChampion Level 2

      Hi,

       

      Just a quick idea: check that no Firefox process exists on the test server before starting the test.

      The case here is that if some Firefox process is running in the background (i.e. without UI), it does not have a Page child and this causes your test to fail.

      • guoguo's avatar
        guoguo
        Contributor

        Hi,

         

        We found that the problem is browser versions.

         

        We use IE, Chrome und Firefox. We have two test servers: Server1 is testcomplete, Server2 is testexecute)

         

        IE on both test servers: 11.0.9600. Both work for the following test code

         

        Browsers.Item(btIexplorer).Run("http://smartbear.com/");

        var Page = Sys.Browser().Page("http://smartbear.com/");
        Page.ToUrl("http://blog.smartbear.com");

         

        Firefox on Server1: 36.0 while Firefox on Server 2: 40.3

        For the code below, only Server1 works. After we upgrade the version on the Server1, both can not work 

         

        Browsers.Item(btFirefox).Run("http://smartbear.com/");

        var Page = Sys.Browser().Page("http://smartbear.com/");
        Page.ToUrl("http://blog.smartbear.com");

         

        Chrome on Server1: 43.0 while Firefox on Server 2: 45.0

        For the code below, only Server1 works. After we upgrade the version on the Server1, both can not work. And we get "This site uses a plugin (application/x.testcomplete10-0-chrome-browser-agent) that is unsupported".

         

        Browsers.Item(btChrome).Run("http://smartbear.com/");

        var Page = Sys.Browser().Page("http://smartbear.com/");
        Page.ToUrl("http://blog.smartbear.com");

         

        Shall we revert the firefox and chrome back to the older version?

         

         

        Regards,

        Jie