Name of DLL for IExecutionExtension implementation.

1 Answer 78 Views
Test Execution
Todd
Top achievements
Rank 1
Iron
Todd asked on 07 Oct 2022, 04:23 PM

After following the steps at https://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/execution-extensions, I am having an issue with the name of the DLL placed in C:\Program Files (x86)\Progress\Test Studio\Bin\Plugins\.

This is a follow up to the issue mentioned at https://www.telerik.com/forums/writing-to-executioncontext-manager-log-in-oninitializedatasource#1581852. I'm starting a new thread as this is a different issue than the subject of the prior thread.

Visual Studio is creating TelerikExecutionExtension.dll. I copy this DLL to C:\Program Files (x86)\Progress\Test Studio\Bin\Plugins\ and when I run a test. The method OnInitializeDataSource fails to execute. If I copy TelerikExecutionExtension.dll to C:\Program Files (x86)\Progress\Test Studio\Bin\Plugins\ClassLibrary.dll (or simply rename the existing DLL) and rerun the test, the method OnInitializeDataSource is executed. The DLL name does not appear to impact the other methods within the IExecutionExtension implementation.

Telerik Test Studio Trace Log for both runs show the DLLs found and loaded, albeit in alphabetical order:

Only when named ClassLibrary.dll does the code in OnInitializeDataSource write to the log (red below). OnBeforeTestStarted and OnAfterTestCompleted write to the log regardless of DLL name (green below).

I can provide full logs from "C:\Program Files (x86)\Progress\Test Studio\Logs" and "C:\WebAiiLog", along with the test and test list files if a non-public drop location is available.

Thank you.

Todd
Top achievements
Rank 1
Iron
commented on 13 Oct 2022, 11:04 AM

To close this thread out, it was determined that the extensions are loaded in alphabetical order and when method names collide, the 1st one loaded is used. The name of the DLL is only important in that it should be named anything alphabetically first when compared to the other DLLs in the plugin folders to ensure its methods take precedence.

Thanks to Elena for sorting this out for me.

Elena
Telerik team
commented on 13 Oct 2022, 03:00 PM

Hi Todd,

Thanks for following up in the public thread as well. This is very kind of yours. 

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 12 Oct 2022, 08:14 AM

Hello Todd, 

I am sorry to hear you experience any troubles with the execution extension and will assist you with this.

I tested the described scenario but the text to output from the OnInitializeDataSource method was logged regardless of the DLL name. Therefore I suspect that there is something specific in the execution you perform, or the execution extension code you have implemented. 

To be able to explore these I created a private support thread on your behalf - only you can access it with this link after you login with your Telerik account. Please, follow up on the case in the private ticket. 

Thank you in advance for your time and cooperation.

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
Tags
Test Execution
Asked by
Todd
Top achievements
Rank 1
Iron
Answers by
Elena
Telerik team
Share this question
or