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

Compilation failed for "shared web test project".

2 Answers 24 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 2
Richard asked on 20 Feb 2014, 12:47 AM
Hi, 

     I am creating a "Proof of concept" project at work verifying if Test Studio standalone can run a "Test Studio Web Test" referencing another test from a separate Telerik Test Studio project. 

    Here's a high level of what I've created so far:
     
    1. I have created two Telerik test studio projects in Visual Studio 2012. Let's name them ProjectA and ProjectB. 
    2. ProjectB is special. It is a shared project.
    3. ProjectA references ProjectB. 
    4. In ProjectB, I have a "test studio web test". It consists of one step called "NavigatesToUrl". The step has been converted to code to become public and be seen to other projects. I modified the test's constructor so if class "Manager" ever goes null, it is always instantiated.
    5. ProjectA also has a "test studio web test". The test calls "NavigatesToUrl" method referenced from ProjectB. 
   
   The Problem: In Test Studio standalone, when I call the test in ProjectA, the test always fail. However, when i run in Visual Studio 2012, ProjectA's test passes. 
   
   Errors Messages:
     1. Compilation failed for [Test Studio Web Test].
     2. The type or namespace name 'ProjectB could not be found (are you missing a using directive or an assembly reference?). The assembly is there. I even added all the dlls in a separate folder. 













2 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 2
answered on 20 Feb 2014, 11:31 PM
I fix the problem. Sharing in Telerik standalone will not work. The shared .tstest.cs files needs to be inside ProjectA for this example. I have just created a post build event in visual studio to copy the files I need to Project A.
0
Velin Koychev
Telerik team
answered on 24 Feb 2014, 01:03 PM
Hello Richard,

Sharing in Telerik standalone will not work. The shared .tstest.cs files needs to be inside ProjectA for this example.

Yes, you are right. We have an article about working with multiple projects and the options you have for sharing and integrating resources between them.  

Let me know if you have any further questions. 

Regards,
Velin Koychev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Richard
Top achievements
Rank 2
Answers by
Richard
Top achievements
Rank 2
Velin Koychev
Telerik team
Share this question
or