How To Download A Github Project and Open It in Visual Studio

Today I want to share with you how to download a project from Github. You can do this with any project, but I specifically want to teach you how to download this Automation Testing framework that I developed. The framework is HERE.

 

For Visual Studio 2015 (Since the project was coded in VS 2015, importing it into here is the easiest. Another version will have a few extra steps that I will show you all)

1. Go to the url in the search bar. Alternatively, you can also go to "github.com/nadvolod" and then find the project called "LightPomFrameworkTutorial".
2. Click the "Download ZIP" button to download the project.

 

 

 

 

 

 

 

 

 

 

 

3. This is the .zip file that was downloaded. Go ahead and extract it to a location of your choice.

4. Open Visual Studio 2015 as administrator.

5. Open the Solution in Visual Studio.

 

 

 

 

 

 

 

 

 

 

 

 

6. Go to the location of the extracted files. Open the "LightPomFramework.sln" file from VS. This is the solution file that will load all of the appropriate assets for you to make the automation framework run.

 

 

 

 

 

 

7. You might get this security warning. Go ahead and click "OK". Don't worry, I'm a trustworthy source and I won't be sending any viruses haha. You can yell at me if something goes wrong 🙂

8. In the Solution Explorer, you should not be able to now see all of the framework assets in all of their glory.

9. Build the solution and make sure that everything is okay and there are no errors. Visual Studio will download all of the Nuget packages for you and build the code.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10. Here is the output of the build. Success.

 

 

 

 

 

11. Now try to run the tests, they're pretty sweet. Oops, you're going to get an error. See the error below. If you carefully read through it, you will notice that it says, "The file C:\the path where you downloaded the framework\Drivers\chromedriver.exe does not exist". Do not worry. This is on purpose. The reason that this happened is because I do not want to commit a .exe file or any executable to Source Control (like .dll files).

Because these versions can always change, it is not a good idea to commit them to Source Control. I can have version 2.1 now, and in 1 year, you update to the latest version of 3.0. Then you commit your source code. Then I will pull down the code and now I will have 2 versions of the executables in my project, 2.1 and 3.0. Not good. And this causes a lot of trouble. That's why they call it ".dll hell". This is also the same reason why we do not commit Nuget package .dlls to Source Control. Something that I teach you in my Selenium Webdriver course.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

12. Download the latest version of ChromeDriver from this link: http://chromedriver.storage.googleapis.com/index.html. Make sure to select the appropriate version for yourself, depending on your Operating System. I have Windows 10, so I am going to download the Windows zip file.

 

13. Unzip the file. Inside, you will find a piece of gold called chromedriver.exe.

14. Move the chromedriver.exe into the Drivers folder of the framework location. Now, it is available for you to use in your tests.

 

15. Rerun the test that failed. And now you should see the test run and pass, depending on the test that you ran. Congratulations, your framework is set up. If you have any questions, ask them in the forum here.

Nikolay Advolodkin

Test Automation Engineer at QTP Tutorial
Nikolay Advolodkin is infinitely passionate about three things: self-improvement, IT & computers, and making an impact. He teaches people the art of automated software testing and quality assurance worldwide. His goal is to help develop higher quality software in a more efficient manner. Nikolay is the creative mind and co-owner behind QTP Tutorial. Follow Nikolay on his Twitter page for all of the latest updates: @Nikolay_A00

Pin It on Pinterest

Clef two-factor authentication