This is a migrated thread and some comments may be shown as answers.

Providing reference path in Settings file

3 Answers 93 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
VVP
Top achievements
Rank 2
VVP asked on 20 Jul 2015, 09:55 AM

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

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 21 Jul 2015, 04:47 PM
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!
0
VVP
Top achievements
Rank 2
answered on 22 Jul 2015, 04:16 AM

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

0
Cody
Telerik team
answered on 22 Jul 2015, 08:05 PM
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!
Tags
General Discussions
Asked by
VVP
Top achievements
Rank 2
Answers by
Cody
Telerik team
VVP
Top achievements
Rank 2
Share this question
or