This project is read-only.

vstest.executionengine.x86.exe' has exited with code 0 (0x0) ERROR

Aug 8, 2015 at 8:11 AM
Hi,

I am working on CUITe with VS 2013 and my solution builds fine but I get the below error msg on trying to debug/run the existing script

The program '[8856] vstest.executionengine.x86.exe: Program Trace' has exited with code 0 (0x0).
The program '[8856] vstest.executionengine.x86.exe' has exited with code 0 (0x0).

Complete error msg --> https://www.dropbox.com/s/3wghdfkeyxaxs7t/Error%20msg.txt?dl=0

My solution needs 'Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight' ver 11.0 whereas the plugin with VS2013 provided ver 12.0. I have ensured that my soluion is referring to ver 11.0 itself so there is no problem there

Complete soln --> https://www.dropbox.com/s/ye6nhltjtzes95b/DTAF_VS2013.zip?dl=0

Please help here as I am stuck on this issue.
Aug 9, 2015 at 6:39 AM
Fork or download CUITe from GitHub (https://github.com/icnocop/cuite), run Build.bat and then use use the binaries in the VS2013 zip.
Aug 9, 2015 at 7:39 AM
Hi,

I downloaded CUITe from the above mentioned and zipped it out to the primary Test Automation repository (C:\Test_Automation\Test Automation). I saw a bunch of test failed messages upon running the 'Build.bat' file --> https://www.dropbox.com/s/l1fx7jnit67eg49/build%20status.txt?dl=0

Is this expected or do I need to do some form of troubleshooting before I move forward?

Also, I apologize in advance for my naive question --> What is meant by "then use use the binaries in the VS2013 zip." - Please elaborate

Regards
Ankit
Aug 9, 2015 at 7:48 AM
Another observation -

If I load 'CUITe.sln' locally from "C:\Test_Automation\Test Automation\VS_2013_Try2\cuite-master\src" and then try to run one of the included tests I get the same error --> https://www.dropbox.com/s/nz2ytngy9k1544m/new%20error.txt?dl=0

Appreciate your help I am just hoping to get out of this soup soon.

Regards
Ankit
Aug 9, 2015 at 1:46 PM
I'll look into the details tonight, hopefully we'll solve your problem.
Aug 9, 2015 at 2:10 PM
Thanks a lot I really hope I get a resolution to this soon. I tried re-installing VS2013 ultimate but no luck there as well :(

Latest soln for troubleshooting - https://www.dropbox.com/s/ye6nhltjtzes95b/DTAF_VS2013.zip?dl=0
Latest error msg on trying to debug a script - https://www.dropbox.com/s/la88c583apdwzyi/Error_msg_9Aug15.txt?dl=0

Regards
Ankit
Aug 9, 2015 at 7:08 PM
What I meant by using the 2013 zip was that running Build.bat produces three zip files in the CVS root:
  • CUITe_VS2010.zip
  • CUITe_VS2012.zip
  • CUITe_VS2013.zip
They contain CUITe assemblies compatible with different versions of Visual Studio. You should use the files in CUITe_VS2013.zip since you are using VS2013.

The failed unit tests have been reported by me as well, see https://github.com/icnocop/cuite/issues/3 for more information.

I've fixed the problems you had, and uploaded it to my Dropbox: https://dl.dropboxusercontent.com/u/5415889/DTAF_VS2013.zip
It will remain there for a week, then I will remove it. The problems you had with your solution where the following:
A final note. It will be hard for you to maintain an up-to-date version of CUITe if you aren't contributing back to CUITe. You keeping CUITe source code in your project will lead to more problems, since maintainer and contributors will disregard how you use the source code. If it works for the CUITe project, it should be enough.

What I recommend you to do is to fork the GitHub project and constantly rebase the code to keep up to date with CUITe if you are unwilling to contribute back to CUITe.
Aug 10, 2015 at 5:02 AM
Hi,

Thanks for your response. Were you able to debug the scripts post making the required changes.

I downloaded the project from the location you mentioned and still see similar error message on trying to debug --> https://www.dropbox.com/s/btc9lhkrffxo1kn/Error%20msg_10Aug15.txt?dl=0

Can u please have a look at this. Do I need to change some settings on VS2013, I feel that some of my settings may be overriding the options you choose in the dropbox uploaded project

Regards
Ankit
Aug 10, 2015 at 7:23 AM
Yes, I am able to debug the tests. With that said, the tests are still failing but not because of CUITe. Here are the error messages from the tests:

Delete_Processing_Specs_test
Test method DTAF_VS2013.Common_Functions.Delete_Processing_Specs.Delete_Processing_Specs_test threw exception:
CUITe.Exceptions.ResourceNotFoundException: Failed to get resource 'DTAF_VS2013.Tests.TestData.Test.xml' from type 'DTAF_VS2013.Common_Functions.Delete_Processing_Specs' and assembly 'DTAF_VS2013, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

RG08_ReturnToOTIS_link_test
Test method DTAF_VS2013.Tests.D3.D3_Dashboard.Dashboard.RG08_ReturnToOTIS_link.RG08_ReturnToOTIS_link_test threw exception:
System.TypeLoadException: Could not load type 'DTAF_VS2013.Tests.D3.D3_Dashboard.Dashboard.RG08_ReturnToOTIS_link.cs' from assembly 'DTAF_VS2013, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

As you can see these are your errors, not CUITe's. Search your logs for ResourceNotFoundException and you'll find it there as well.
Aug 12, 2015 at 4:34 AM
Hi,

I was also able to debug now with your latest solution post clean-up of solution. I was also able to fix the underlying local build problems that you highlighted above.

Post checking in my solution to TFS and trying a build to link my scripts to MTM/Hyper-V setup I received the following failure -
Latest Activity
Build last modified by svc_TFS_Service svc_TFS_Service 20 seconds ago.
Request Summary
Request 11034, requested by Ankit Saxena 38 seconds ago, Completed
Summary
Debug | Any CPU
 12 error(s), 1 warning(s)
$/OTISv2/Test Automation/VS2013_Github/DTAF_VS2013/DTAF_VS2013.sln - 12 error(s), 1 warning(s), View Log File
 Controls\SilverlightControls\CUITe_SlControl.cs (4): The type or namespace name 'SilverlightControls' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITesting' (are you missing an assembly reference?)
 Controls\SilverlightControls\CUITe_SlControl.cs (5): The type or namespace name 'Silverlight' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITest.Extension' (are you missing an assembly reference?)
 Controls\SilverlightControls\CUITe_SlListItem.cs (7): The type or namespace name 'SilverlightControls' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITesting' (are you missing an assembly reference?)
 Controls\SilverlightControls\CUITe_SlListItem.cs (10): The type or namespace name 'Silverlight' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITest.Extension' (are you missing an assembly reference?)
 Controls\SilverlightControls\CUITe_SlListItem.cs (19): The type or namespace name 'SilverlightListItem' could not be found (are you missing a using directive or an assembly reference?)
 Controls\SilverlightControls\CUITe_SlScrollBar.cs (6): The type or namespace name 'SilverlightControls' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITesting' (are you missing an assembly reference?)
 Controls\SilverlightControls\CUITe_SlScrollBar.cs (10): The type or namespace name 'Silverlight' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITest.Extension' (are you missing an assembly reference?)
 Controls\SilverlightControls\CUITe_SlScrollBar.cs (14): The type or namespace name 'SilverlightControl' could not be found (are you missing a using directive or an assembly reference?)
 Controls\SilverlightControls\CUITe_SlTreeItem.cs (1): The type or namespace name 'SilverlightControls' does not exist in the namespace 'Microsoft.VisualStudio.TestTools.UITesting' (are you missing an assembly reference?)
 Controls\SilverlightControls\CUITe_SlTreeItem.cs (12): The type or namespace name 'SilverlightTreeItem' could not be found (are you missing a using directive or an assembly reference?)
 Controls\SilverlightControls\CUITe_SlControl.cs (8): The type or namespace name 'SilverlightControl' could not be found (are you missing a using directive or an assembly reference?)
 Controls\SilverlightControls\CUITe_SlControl.cs (124): The type or namespace name 'SilverlightControl' could not be found (are you missing a using directive or an assembly reference?)
 C:\windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1605): Could not resolve this reference. Could not locate the assembly "Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
 $/OTISv2/Test Automation/VS2013_Github/DTAF_VS2013/DTAF_VS2013.sln compiled
 No Test Results
 No Code Coverage Results
Other Errors and Warnings
 1 error(s), 3 warning(s)
 Exception Message: MSBuild error 1 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
 TF42095: Failed to update 'Priority' field. Error message: TF26027: A field definition Priority in the work item type definition file does not exist. Add a definition for this field or remove the reference to the field and try again.
 A work item could not be assigned to Ankit Saxena. It has been left unassigned.
 TF42097: A work item could not be saved due to a field error. The following fields have incorrect values: Field: 'Reason' Value: 'Build Failure', Field: 'Sprint Name' Value: '', Field: 'Reproducible' Value: '', Field: 'Issue Type' Value: '', Field: 'Environment' Value: '', Field: 'Reproducible in QA' Value: '', Field: 'Reproducible in Dev' Value: '', Field: 'Reproducible in UAT' Value: '', Field: 'Reproducible in Prod' Value: ''
The control files that I have in CUITe solution (apart from the default CUITe control files that came packaged with the dll) seems to be causing the problem - An interesting observation is that none of the 'ExtJs control' files are showing any build errors and all the error msgs correspond to additional silverlight control files -
CUITe_SlControl
CUITe_SlListItem
CUITe_SlScrollBar
CUITe_SlTreeItem

Is my solution somehow still using the old build definition just for the above mentioned files with specific regard to Silverlight.

Can you please have a look ? --> https://www.dropbox.com/s/ye6nhltjtzes95b/DTAF_VS2013.zip?dl=0

Regards
Ankit
Aug 12, 2015 at 10:05 PM
Are you sure that the computer (or VM) has Microsoft Visual Studio 2013 Coded UI Test Plugin for Silverlight (https://visualstudiogallery.msdn.microsoft.com/51b4a94a-1878-4dcc-81e0-7dc92131d2da) installed?

Also, I am pretty new to CUITe, and the fact that I added the new Silverlight controls in the project CUITe.Extensions won't work. Look at the method WrapUtil in the code here: https://github.com/icnocop/cuite/blob/master/src/CUITe/Controls/SilverlightControls/CUITe_SlControl.cs
If you introduce new Silverlight controls as you have, won't you have to update this code in CUITe as well?
Marked as answer by saxenaankit123 on 8/16/2015 at 7:39 AM
Aug 16, 2015 at 3:39 PM
Edited Aug 17, 2015 at 5:41 AM
You were right!! All I needed was to update the new control classes in the CUITe source code version downloaded from Github, generate a new CUITe dll and use it.

There is also a need to install 'Microsoft Visual Studio 2013 Coded UI Test Plugin for Silverlight ' on the given VM as suggested by you

At this point all new controls have become a part of CUITe library and all my scripts work, really appreciate all your help and guidance.

Regards
Ankit
Aug 21, 2015 at 9:37 PM
Glad I could be of any help.