Completed
Last Updated: 28 Aug 2014 13:07 by ADMIN
ADMIN
Rodney
Created on: 02 Aug 2013 16:17
Type: Bug Report
1
Framework Samples fails in VS2012
The  "quickstarts_vsts_cs Sample" runs perfectly in VS 2010 but does not run in VS 2012. All the tests fail. 

Steps to reproduce:

Open solution found in C:\Program Files (x86)\Telerik\Test Studio\Samples\Testing Framework\QuickStarts_VSTS_CS
Run BrowserActions.cs (or any test)

You will imediatelly be presented with an error. We excluded the app.config file from the project but the issue persisted. Here is the error:

Test Name:	CheckAnElement
Test FullName:	QuickStarts_VSTS_CS.BrowserActions.CheckAnElement
Test Source:	c:\Users\manor\Documents\QuickStarts_VSTS_CS\Tests\BrowserActions.cs : line 252
Test Outcome:	Failed
Test Duration:	0:00:00.0013173

Result Message:	
Initialization method QuickStarts_VSTS_CS.BrowserActions.MyTestInitialize threw exception. System.Configuration.ConfigurationErrorsException: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for WebAii.Settings: Could not load file or assembly 'ArtOfTest.WebAii' or one of its dependencies. The system cannot find the file specified. (C:\Users\manor\Documents\QuickStarts_VSTS_CS\TestResults\Deploy_manor 2013-08-02 11_11_02\Out\QuickStarts_VSTS_CS.dll.config line 4) ---> System.IO.FileNotFoundException: Could not load file or assembly 'ArtOfTest.WebAii' or one of its dependencies. The system cannot find the file specified.WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
.
Result StackTrace:	
at System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
   at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
   at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
 --- End of inner exception stack trace ---
    at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at ArtOfTest.WebAii.TestTemplates.BaseTest.GetSettings()
   at ArtOfTest.WebAii.TestTemplates.BaseTest.Initialize(String logLocation, TestContextWriteLine vsWriteLineDelegate)
   at QuickStarts_VSTS_CS.BrowserActions.MyTestInitialize() in c:\Users\manor\Documents\QuickStarts_VSTS_CS\Tests\BrowserActions.cs:line 129




4 comments
ADMIN
Konstantin Petkov
Posted on: 30 Aug 2013 20:16
The aforementioned update is applied to the sample tests with the internal build we published this week:
http://www.telerik.com/account/your-products/internal-builds.aspx

Release notes:
http://www.telerik.com/versionnotes.aspx?nb=1&id=3301

Thanks for the feedback!
ADMIN
Konstantin Petkov
Posted on: 20 Aug 2013 11:28
Hello,

Just to follow up the problem is general in reading the framework settings and is due to the deployment changes in VS 2012. VS needs the configuration handler in the deployment items in order to be able to read the configuration. In order to solve the problem one can:
- Add .settings file to the VS 2012
- Enable deployment  and add ArtOfTest.WebAii.dll to the deployment items.

Check the following documentation for details:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/test-execution/test-list-settings.aspx
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/troubleshooting_guide/visual-studio/enable-deployment.aspx

I hope this helps!
ADMIN
Konstantin Petkov
Posted on: 19 Aug 2013 15:04
Hello,

I agree this is a serious problem on the framework product with the latest release. Please excuse us for the temporary inconvenience!

We're working on resolving the problem this week and including the solution in an upcoming internal build. The fix should also join the next official release in a few weeks.

Thank you for the understanding!
Stuart
Posted on: 07 Aug 2013 13:46
Same for me. Unbelievable!!! Surely this is the first thing many people evaluating the test framework will do, download and run through the tests. Cannot run in 2012!.
Also I tried the Nunit samples, wouldn't run either.
Shame, I had high hopes for the TTF, was really hoping to give it a go.