Thursday, August 16, 2012
Setting up WebDriver for C# bindings with VS2010 ,NuGet , NUnit , TFS
With changing need & moving onto different businesses/work place.
We are thrown different challenges !!!! mine was get the framework done in C#
As the technology stack was .Net/IIS servers.
Here's a step by step illustration of Integrating Visual Studio 2010 with NuGet, webDriver C# bindings ,Team Foundation Server
1. I have a licensed Visual Studio 2010 installed on my box,if you don't you can live with a trial version too
2. Now adding NuGet to Visual Studio 2010
A bit about NuGet : Yeah it’s NuGet & not Nugget to all those nugget fans
NuGet is a Visual Studio that makes it easy to install and update third party
libraries(In our case it is webDriver API’s) and tools in Visual Studio.
3. VS 2010 > Click on Tools > Extension Manager
a. As shown in the screen shot as you don’t have NuGet already installed you should see DOWNLOAD against the NuGet Package Manager
b. I have NuGet on my box so a little green icon.
We are now done with adding NuGet Package Manager
Pre-requisite : TFS access if you are using Team Foundation Server as your version control get your Login details from whoever manages it
1.Start your Visual Studio 2010 on start you should your screen just like the one one displayed in screen shot
a.Click on servers and add your TFS server
b.Assuming that you have already identified location to check-in your code select that directory
d.Click on Connect
2. On click to connect a pop-up opens up
a.Enter the TFS server name /url just as shown in the screen shot
3. Now to we have gained access to TFS & integrated with VS 2010 we have to create a local folder that maps to the folder in TFS
4. Either select the default Workspace or create a new one. while you are on a Source Control Explorer view- like shown in the screen shot
5. On selecting one of the workspaces you'l see a popup just as shown in the screen shot
6.Now Click on Add & enter all details required as shown in screen shot
7.We are nearly there Switch to Source Control Explorer and get the latest version
8.Let's verify if a local sync was actually through just like the one displayed in screen shot
9.Add a file called packages.config look at the screen shot
10.For getting latest updates for any of your third party tool set.
Use NuGet - go to Extension manager & click on updates you'l be able to see them click on update you are all done.