Forum Discussion

h_jansen's avatar
h_jansen
Occasional Contributor
10 years ago
Solved

TC11.30 TestedApps do not run when having an UNC path of network path

 

I have installed the latest TestComplete 11.30 yesterday.

Now all my tests fail because the application will nog start anymore.

The error is "The system cannot find the file specified."

 

In the TestedApps we start an application on N:\path\start_data.bat

When I browse in TestedApps the batch file can be found, and it worked on TC 11.20.

When I start WinWord on the C-drive it starts.

 

So it appears to be the network/UNC-patch that makes it inpossible to start.

 

  • ykowalko the issue is this output in the json report, which records an "element" the feature corresponding to the feature itself (keyword: Scenario, type: feature), and has an empty steps: [] array.  The Zephyr scale https://usjira.iscinternal.com/rest/atm/1.0/automation/execution/cucumber api (which I presume the Jenkins plugin uses) doesn't support empty steps arrays. The latest wdio-cucumber-js-json reporter has been fixed so you can download the latest version 4.1.4 and try again (https://github.com/webdriverio-community/wdio-cucumberjs-json-reporter/issues/68)

     

    "tags": [],
    "elements": [
    {
    "keyword": "Scenario",
    "type": "feature",
    "description": "",
    "name": "PAYS - Russia - telecommandes header-main-menu - CTA",
    "tags": [],
    "id": "pays---russia---telecommandes-header-main-menu---cta;pays---russia---telecommandes-header-main-menu---cta",
    "steps": []
    },

     

    You can also test the uploads separately via url --basic --user ****:******** -F "file=@login.zip" https://usjira.iscinternal.com/rest/atm/1.0/automation/execution/cucumber/DP?autoCreateTestCases=true

  • ykowalko 

    That api endpoint should be available on Zephyr Scale Server.  I'm not entirely sure that is what the Jenkins plugin uses (though that would make sense).  But it's the endpoint that we use to test uploads manually with Postman.

    I was able to upload your tests to our instance by saving the text as a .json file and zipping (zipfile attached).  Perhaps the issue is that the file extension on your file is ".xml".  If the file extension is not ".json" in Postman, the error "Invalid zip file" is returned.  Maybe that is the error that Jenkins is reporting.

    Note the tags arrays were removed from the json in the attached zip file since otherwise there's an error about no matching test key.

     

     

17 Replies

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    Hi,

    I had this problem with the new version 11.30

    All my .bat files where invisible for TestComplete

    It's not related to UNC locations

    I separated the call to cmd.exe and the command line

     

    For example :

     

    TestTedApps.Clear;

    TestedApps.Add('cmd.exe', '/c \\ (enter your unc here)\batchfile.bat', 1, true, '');
    TestedApps.cmd.Run;

    • qtrolazyg's avatar
      qtrolazyg
      Contributor

      Do you know the patch for UNC was included in version 11.31?

  • h_jansen's avatar
    h_jansen
    Occasional Contributor

    Issues has already been reported with the Custer Care Team: Case #00165579

    • TanyaYatskovska's avatar
      TanyaYatskovska
      Icon for Alumni rankAlumni

      Great. Thanks.

      Please let us know the solution when you and the Team find it.

  • I'm also having this problem using:

     

    \\HQLIFSP02\Magic\Magicxpa2.4\MgxpaRuntime.exe

     

    Worked fine before the upgrade.  Saying it can't find the file now.  Should I open an additional ticket?

    • JNeedles's avatar
      JNeedles
      Contributor

      Difference seems to be this:

       

      Command Line in 11.20:

       

      "\\hqliapd05\Magicxpa2.5\MgxpaRuntime.exe" /ini=xpaPREPUser.ini /StartApplication=%APPLIC%al.ecf

       

      Command line in 11.30:

       

      UNC\hqliapd05\Magicxpa2.5\MgxpaRuntime.exe" /ini=xpaPREPUser.ini /StartApplication=%APPLIC%al.ecf

  • h_jansen's avatar
    h_jansen
    Occasional Contributor

    Issue is not related to batch files only.

    When changing my testedapp to an executable on the UNC-path it also does not start with the message file not found.

     

    When I chamge the testedapp to a batch file on the local drive it will start from TestComplete.

     

    Fact is, it worked in 11.20 and does not work in 11.30.

    • m_essaid's avatar
      m_essaid
      Valued Contributor

      it's related to the new 11.30 version.

      unc paths where already working before and are still working

      • TanyaYatskovska's avatar
        TanyaYatskovska
        Icon for Alumni rankAlumni

        Hi Guys,

         

        I see that our R&D Team has confirmed this issue in TestComplete 11.3, and they are preparing a patch that should fix it. The patch should be ready very soon. So, if you haven’t contacted our Support Team yet, please get in touch with them and request the patch. Here is the patch ID that you can specify in the message: CC-6032

        We are sorry for the inconvenience.