Custom Bug Tracking Plugin

3 posts, 1 answers
  1. Mark
    Mark avatar
    5 posts
    Member since:
    May 2012

    Posted 25 Jun 2012 Link to this post

    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... 
    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?


  2. Answer
    Anthony avatar
    19 posts

    Posted 26 Jun 2012 Link to this post

    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,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Mark
    Mark avatar
    5 posts
    Member since:
    May 2012

    Posted 26 Jun 2012 Link to this post

    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 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... 
    (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... 

Back to Top