Forum Discussion

socc3rpr0's avatar
socc3rpr0
Occasional Contributor
9 years ago

How to Reload CLR Bridge Assembly Programmatically

I have reference an assembly in CLR Bridge and I want to be able to reload/refresh the assembly without having to close TestComplete. Is there any way I can do this programmatically? Its a custom DLL I wrote, but it seems that once I run my program once and then try to execute it again it fails because the reference is still in memory after the initial run. 

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    The CLR Bridge interface in TestComplete is not meant to test assemblies/DLL's but to use such assemblies and DLL's to be able to test other applications.  The assumption is that such things are staticly present when test complete attempts to access them.

     

    As far as I am aware, there's not a neat way to reload the assembly programmatically.

    • socc3rpr0's avatar
      socc3rpr0
      Occasional Contributor

      Well, I am not really testing the assembly I am just trying to use some features from it in my scripts so I don't have to re-write code that already does what I want it to. The problem I have is that after I close all threads the next go around If I want to re run the script it won't it won't work because TestComplete still holds the old reference in memory and only releases them when I close it. It would be a nice feature to have to be able to do this. Anyways, thanks for your reply. 

      • AlexKaras's avatar
        AlexKaras
        Icon for Champion Level 3 rankChampion Level 3

        Hi,

         

        > If I want to re run the script it won't it won't work 

        Can you provide more details about what actually does not work? Test cannot be started, or some error is posted to test log or something else? Screenshot(s) and/or exact error message might help as well.