Completed
Last Updated: 26 Oct 2016 10:36 by ADMIN
ADMIN
Elena
Created on: 24 Jun 2016 08:11
Type: Bug Report
1
Using a custom baseclass in Test Studio is not working in release 2016.1 330.2
Custom baseclass is defined in an external DLL with the following info:
The namespace of the baseclass is: TestBaseClass
Class name is: BaseTest which inherits 'BaseWebAiiTest'

located in DLL: TestBaseClass\bin\Debug\TestBaseClass.dll

Reference to TestBaseClass.dll is added to both the dotnet telerik project as well as the telerik project itself.
it complaints about "there are no classes in code behind that extend the webaii base class 'TestBaseClass.BaseTest'"

Expected behavior: to be compiled in Visual Studio and to be able to run a test in Test Studio

Actual behavior: Visual Studio cannot compile the project, If a coded step is created in the Test Studio project it displays an error message

It works as expected in version 2015_3_1314_2
10 comments
ADMIN
Ivaylo
Posted on: 26 Oct 2016 10:36
I am glad to hear this is now working for you. Regarding the update with the intellisense problem I guess it will be best to submit a separate feedback for better track.I hope you agree
Elo
Posted on: 19 Oct 2016 08:49
Thanks.

I can positively confirm that it works :)

although one minor thing: code completion/ intelli sense does not seem to work when I try and use functions defined in the base class.


Let me elaborate on that.

I am able to intelli sense into:  "base.SqlTestHooks"
but it wont go any further than that.


this does not work: base.SqlTestHooks.PortalServiceAdminTestHooks, 
nor does 
base.SqlTestHooks.CalendarAdminTestHooks

even though they are public properties on the SqlTestHooks class.

SqlTestHooks is a local class placed within the telerik project and added to the csproj file beloging to the test project itself.


-----------------

public abstract class LdkBaseTest : VFL.TestStudio.Helpers.BaseTests.BaseTest (the namespace "VFL.TestStudio.Helpers.BaseTests.BaseTest" resides in a seperate DLL.)
    {
        private SqlTestHooks SqlTestHooksInstance { get; set; }       

        public SqlTestHooks SqlTestHooks
        {
            get
            {
                if (SqlTestHooksInstance == null)
                {
                    SqlTestHooksInstance = new SqlTestHooks(base.ExecutionContext);
                }
                return SqlTestHooksInstance;                
            }
        }

    }
	
	
	
	



public class SqlTestHooks
{
        private ExecutionContext ExecutionContext { get; set; }
       
        public LdkTestHooks PortalServiceAdminTestHooks { get; private set; }
        public CalendarTestHooks CalendarAdminTestHooks { get; private set; }
		
        public SqlTestHooks(ExecutionContext executionContext)
        {            
            ExecutionContext = executionContext;
            PortalServiceAdminTestHooks = new LdkTestHooks(executionContext);
            CalendarAdminTestHooks = new CalendarTestHooks(executionContext, "Calendar");
        }
}



ADMIN
Ivaylo
Posted on: 14 Oct 2016 13:34
Please excuse us for the delayed response. The custom build including the fix can be downloaded using the following URL : https://www.dropbox.com/s/buq3j9kgu52q3oz/TestStudio_Ultimate_2016_3_1013_0_Purchase.msi?dl=0

Give it a try and let us know whether this is working for you.
Søren
Posted on: 27 Sep 2016 14:00
Thats brilliant - thanks!
ADMIN
Konstantin Petkov
Posted on: 27 Sep 2016 13:04
Hi guys,

Sorry for the delay in responding here!

The engineering team is working to release the next official product version by the end of this week and then will look into this issue again as top priority. We will do our best to respond with solution as early as possible.

Thanks for the understanding!
Elo
Posted on: 26 Sep 2016 07:28
Any news on this defect ?

We would like to upgrade our old telerik builds but are unable to do so - atleast until this bug has been fixed.

regards
Elo
Søren
Posted on: 13 Sep 2016 09:32
Hi - we need to update our telerik installation, but this issue is blocking us. Do you have a timeframe for fixing this? Thanks.
ADMIN
Ivaylo
Posted on: 16 Aug 2016 12:12
Hello Elo,

You are correct, on a non-dev pc this is not working as expected. I am reopening this bug.

Thank you for your cooperation.
Elo
Posted on: 09 Aug 2016 09:15
I did everything that you proposed.
Sadly it still doesn't work.

when I open the Webtest and enter the code behind c# file I can see that Intelli-Sense for "TestBaseClass.BaseTest" works ok.
So it does recognize it just fine.

Also the test is able to run just fine through VS2015 when using the telerik teststudio VS plugin.

In teststudio desktop app I get the error message "there are no classes in code behind that extend the webaii base class 'TestBaseClass.BaseTest'"

I even tried uninstalling telerik and reinstalling it all over.
Clean out the telerik folder for good measure.

I attached the project with the proposed fixes from you.
I also attached the logs from the assembly binding using fusionlog viewer.

Pay attention to :
fusionlogs.rar\Default\Telerik.TestStudio.Desktop.exe\TestBaseClass.HTM

By the way; did you try this scenario on a clean install on a non-dev pc ?

Anyways, this issue effectively holds us back from doing any further update :(

regards
Elo
ADMIN
Ivaylo
Posted on: 19 Jul 2016 12:47
After further investigation it turns out there is no Test Studio problem in the scenario above, just building the projects properly solves the compilation errors:

1. Update the ArtOfTest.WebAii.Design reference in TestBaseClass to SpecificVersion=false. This makes it build the dependency project.
2. Update the "baseclass fun" to target .Net 4.5.2 as the other project does. Otherwise VS compiler errors with warnings.

Rebuild the solution is successful.