Skip to content

Getting Started

Mahmoud A. Zaid edited this page Jul 14, 2019 · 1 revision

Now Let's start to build our framework, we will try to design the architecture peace by peace and install needed packages

1. Open Visual Studio

2. Open-File > New > Project

3. Choose Test > Unit Test Project (.NET Framework)

4. Right-Click on the project > Manage NuGet Packages...

5. Search for the following packages and install them

  • NUnit
  • SpecFlow
  • SpecFlow.Assist.Dynamic
  • RestSharp
  • FluentAssertions

6. Right-Click on the project > Add > New Folder

  • Features
  • StepDefentions

6. In the App.config file add the below code to configure the Client URL

This code for global configuration of the endpoint

<appSettings>
    <add key="RestAPI" value="http://dummy.restapiexample.com/api/v1/" />    
</appSettings>

Check The final app.config file here

7. Make sure to add System.configuration reference

We need this reference to provides access to configuration files for client applications. Right-Click > Add Referance > Search for the referance

Clone this wiki locally