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

Add assembly reference on computer with Run-time edition

1 Answer 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Leo
Top achievements
Rank 1
Leo asked on 25 Mar 2017, 08:11 AM

Hi! I have my local computer with Test Studio Ultimate installed (let's call it  'A') and I want to run tests on external computer with Run-time edition ('B'). 
During testing I write data into Excel file, so, I have added to 'A' reference to Excel.Interop dll via Setting | Script | Add Reference.
When I run tests in 'B' (attached it to 'A' as Scheduling server) I receive compilation error 'Office' not found in current contest'. 

How can I install assembly reference to 'B' (Run-time edition doesn't have grafic interface) ?

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 29 Mar 2017, 12:23 PM
Hi Leo,

Thank you for choosing Telerik Test Studio. 

Please note that when a test list is executed remotely a temporary copy of the project is deployed to the execution machine. It contains all necessary files to execute the tests included in the given test lists. 

However when a dll is referenced it will be searched in the referenced path. Since the reference path is different from the project root folder Test Studio runner will try to find it in the given folder on the execution machine. So if such dlls are not present at the same location they will be missing and the compilation will not be possible. 

There are two possible approaches - one is to add the dll to the same location under C:/ on the execution machine. And second which I would recommend is to copy the dll to the project root folder and add a reference to its current location in the project. 

Please let me know if that was helpful to you. Thanks for your cooperation! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Leo
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or