This project is read-only.

Unable to utilize a new control added to CUITe framework

Aug 5, 2015 at 10:28 AM
Recently upgraded CUITe solution to VS 2013 and had to build my solution from scratch as the VS 2012 solution was giving multiple run-time errors when opened in VS2013

I have added a several new control(s) to CUITe 'SilverlightControls' -
  1. CUITe_SlListItem
  2. CUITe_SlTreeItem
I am not able to use the same in my object repository although the same functionality worked in VS2012

See Error screenshot --> https://www.dropbox.com/s/f4dx5ctor8zopcb/Screen1.jpg?dl=0

My personal guess is that this issue is due to tying up of Silverligth control files to "metadata" in my setup whereas they were directly linked to their corresponding ".cs" files in the original (VS2012) solution.

See screenshot --> https://www.dropbox.com/s/02o5tajke8i8cj5/Screen2.jpg?dl=0

See screenshot --> https://www.dropbox.com/s/gctpxk5jiv2v8iw/Screen3.jpg?dl=0

I just don't know how to fix this issue.

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

Any help is appreciated.

Regards
Ankit
Aug 5, 2015 at 9:47 PM
In your solution, the DTAF_VS2013 project references CUITe.dll from DTAF_VS2013\Proj_References.

However, when the CUITe project is built, it's output assembly is in CUITe\bin, and that's why DTAF_VS2013 cannot find the new code you've added to the CUITe project.

I recommend removing the existing reference to CUITe and then re-add from the Solution tab of the "Add Reference" / "Reference Manager" Visual Studio dialog.
Marked as answer by saxenaankit123 on 8/6/2015 at 3:15 AM
Aug 6, 2015 at 5:31 AM
Hi,

I tried referencing the CUITe dll from the CUITe\bin directory which would be "C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\CUITe\bin\Debug\CUITe.dll" in my case and got a bunch of reference missing errors as shown below.

"Error 3 The type or namespace name 'CUITe' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\ObjectRespository\Login_obj.cs 6 7 DTAF_VS2013
Error 4 The type or namespace name 'CUITe' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\Tests\Misc\RG08_ReturnToOTIS_link.cs 7 7 DTAF_VS2013
Error 5 The type or namespace name 'CUITe' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\ObjectRespository\Login_obj.cs 7 7 DTAF_VS2013
Error 9 The type or namespace name 'CUITe' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\Tests\Misc\RG08_ReturnToOTIS_link.cs 22 7 DTAF_VS2013
Error 6 The type or namespace name 'CUITe_BrowserWindow' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\ObjectRespository\Login_obj.cs 14 30 DTAF_VS2013
Error 7 The type or namespace name 'CUITe_HtmlEdit' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\ObjectRespository\Login_obj.cs 19 16 DTAF_VS2013
Error 8 The type or namespace name 'CUITe_HtmlEdit' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\ObjectRespository\Login_obj.cs 20 16 DTAF_VS2013
Error 10 The type or namespace name 'CUITe_SlListItem' could not be found (are you missing a using directive or an assembly reference?) C:\Test_Automation\Test Automation\VS2013\DTAF_VS2013\DTAF_VS2013\ObjectRespository\Login_obj.cs 23 16 DTAF_VS2013
"


I still see the validity in your point but I am not sure why this is happening. I also noticed that every time I run a build a new copy of "CUITe.dll" gets generated in the 'bin' directory which is what I was expecting.

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

Not sure what is messed up. Please look into it.
Aug 6, 2015 at 11:15 AM
All errors were fixed after cleaning the solution. I had way too many cross references so had to de-link and re-link all of them.

All good now !! Thanks a lot