Providing reference path in Settings file

4 posts, 0 answers
  1. VVP
    VVP avatar
    61 posts
    Member since:
    Mar 2015

    Posted 20 Jul 2015 Link to this post

    Hi,

    When i tried to execute scripts via command line, it was failing saying System.IO.Filenotfound exception.

    I debugged and found that it is due to the reference dll path set in Settings.aiis file.The settings.aiis file was checked in to TFS and while executing from remote machine / test machine, it will look in the TFS mapped folder which doesn't exist in the test machine.

    Then i pointed to correct local location and it worked. 

    So is there any way we can specify reference dlls path as generic rather than hardcoded.

     

    Thanks,

    VVP

  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 21 Jul 2015 Link to this post

    Hi Vishnu,

    What DLL is giving you this problem? If the DLL is placed in either the test projects root folder or in the machines GAC, Test Studio will not store it with an absolute path. It will use just the DLL name like this:

    "ProjectReferences": [
      "System.Core",
      "ArtOfTest.WebAii, Version=2013.1.1120.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c",
      "ArtOfTest.WebAii.Design, Version=2013.1.1120.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d",
      "Telerik.WebAii.Controls.Html, Version=2013.1.1120.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
      "Telerik.WebAii.Controls.Xaml, Version=2013.1.1120.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
      "Telerik.WebAii.Controls.Xaml.Wpf, Version=2013.1.1120.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
      "Telerik.TestingFramework.Controls.KendoUI, Version=2013.1.1120.0, Culture=neutral, PublicKeyToken=528163f3e645de45",
      "System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
      "System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
      "System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
      "Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a",
      "System",
      "System.Data",
      "System.Drawing",
      "System.Windows.Forms",
      "System.XML",
      "System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    ],



    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. VVP
    VVP avatar
    61 posts
    Member since:
    Mar 2015

    Posted 21 Jul 2015 in reply to Cody Link to this post

    We have a Classlibrary.dll which is internally developed and used it in the project.

    When I checked settings file, it is showing ProjectName\\bin\\ClassLibrary1.dll​. I Changed it to "ClassLibrary1.dll​"; So that worked.

    Next problem was during execution, Telerik is looking for dlls at ProjectName\bin location . So changed  "OutputFolder": "bin" to "OutputFolder": "". But still it is looking at bin location. Is there any way we can tell telerik where to look for the dlls.

    Problem is as part of continuous integration, we copy all dlls to a folder in test machine. So we may not copy as per folder structure and there may not be bin folder.So we should have control to tell dll folder to Telerik.

     

    Thanks,

    VVP

  4. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 22 Jul 2015 Link to this post

    Hello Vishnu,

    Our recommendation is to add your Classlibrary.dll to the GAC using GacUtil. We also recommend that you NOT put your dll into the test projects Bin folder. Place it in the root folder for the project, right alongside our settings.aiis file.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top