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

Custom Bug Tracking Plugin

2 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 25 Jun 2012, 07:28 PM
I have written a very simple plugin for submitting bugs to our company's issue tracker.  This plugin does no more than send an e-mail to the issue tracker's watched e-mail address.

The plugin works fine on my machine:
 - Windows 7 64-bit
 - Visual Studio 2010
 - Test Studio Express

But after putting the .dll in the plugins/bugtrackers directory of my co-worker's machine it does not show up.
 - Windows 7 32-bit
 - Test Studio (Standalone)

I have devoured the documentation at...
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/extensions/bug-tracking/custom-plugin.aspx 
and have not seen anything to suggest what I am doing wrong.

I've tried building it using both the 4.0 and 3.5 framework versions, and as both anycpu and x32 platforms.

Is there a way to generate a log to help me figure out what is going wrong, or does anyone have any other suggestions?

Thanks,
Mark














2 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 26 Jun 2012, 01:57 PM
Hello Mark,

If it does not show up on your colleague's machine, that means Test Studio failed to load it. There is likely an exception in the application log. Please provide that log and the custom plugin DLL in a zip file so we can debug it directly. If you do not wish to post these files in a public forum, please open a ticket (which is confidential) and reference this thread.

Kind regards,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Mark
Top achievements
Rank 1
answered on 26 Jun 2012, 05:55 PM
Ah, thanks!  The application log was what I was looking for.

Just as a note to anyone else that may come across this...

It turned out to be this error...

[06-26 11:36:36,Telerik.TestStudio.exe(2700:1),Error] BugTrackersLoader.LoadSystems() : EXCEPTION! (see below)

     Situation: Error loading bug trackers in "C:\Program Files\Telerik\Test Studio\Bin\Plugins\BugTrackers\TestStudioEventumPlugin.dll".

     Outer Exception Type: System.NotSupportedException

     Message: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

     HRESULT: 0x80131515 (Official ID (if app.) = COR_E_NOTSUPPORTED, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5397)

     Call Stack:

          at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)

          at System.Reflection.Assembly.LoadFile(String path)

          at ArtOfTest.WebAii.Design.BugTracking.BugTrackersLoader.LoadSystems()


...which, although she is not using a networked location for any files, looks like it is related to the Standalone version of Test Studio using .net 4.0 instead of 3.5 as my Express version, and the call I highlighted in the trace log above...

I was able to add loadFromRemoteSources in the runtime config, as demonstrated in this link...
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/test-execution-problems/cannot-access-network-dll-net-4.aspx 
(although, I think I had to add it to Telerik.TestStudio.exe.config instead of the config file listed in the link.... will have to  do more testing later to make sure which file requires the change)

A few other links that are helpful...

http://blogs.msdn.com/b/shawnfa/archive/2009/05/27/coding-with-security-policy-in-net-4-0-implicit-uses-of-cas-policy.aspx 
http://blogs.msdn.com/b/shawnfa/archive/2009/06/08/more-implicit-uses-of-cas-policy-loadfromremotesources.aspx 
http://social.msdn.microsoft.com/Forums/en/clr/thread/e955f228-7b29-493f-98bb-47bf6a584a6f 

Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Mark
Top achievements
Rank 1
Share this question
or