Skip to content
Jakub Raczek edited this page Dec 8, 2016 · 56 revisions

To get started using Objectivity Test Framework create new project in Visual Studio and install one of nuget packages:

In case of problems with running tests in your internet browser remember to update version of Selenium WebDriver from Nuget packages.

  1. If you want to use our framework with NUnit

    • 1.1. Create a new class library project in Visual Studio

    • 1.2. Install Objectivity.Test.Automation.Common.NUnit package. You can do this by selecting the packages via the Tools>NuGet Package Manager>Manage NuGet Packages for Solution dialog or run the following commands in the Package Manager Console:

      PM> Install-Package Objectivity.Test.Automation.Common.NUnit
    • 1.3 Edit App.config added as a content to you project during installation of Objectivity.Test.Automation.Common.NUnit nuget package. Change settings stored in App.config to target your application under tests.

    • 1.4 Create Page Object Pattern classes inherits class ProjectPageBase added as a content to you project during installation of nuget package.

    • 1.5 Create your first test class inherits ProjectTestBase added as a content to you project during installation of nuget package. More details about ProjectTestBase clasess can be find here.

    • 1.6 Build your project and run first test, to run NUnit tests from Visual Studio remember to install NUnit3 Test Adapter - make sure that adapter is available for your version of Visual Studio. You can run also test in NUnit.ConsoleRunner by executing following command in \bin\debug folder of your test project.

      .\..\..\..\packages\NUnit.ConsoleRunner.3.2.1\tools\nunit3-console.exe YourTestProject.dll
  2. If you want to use our framework with MsTest

    • 2.1. Create a new unit test project in Visual Studio

    • 2.2. Install Objectivity.Test.Automation.Common.MSTest package. You can do this by selecting the packages via the Tools>NuGet Package Manager>Manage NuGet Packages for Solution dialog or run the following commands in the Package Manager Console:

      PM> Install-Package Objectivity.Test.Automation.Common.MSTest
    • 2.3 Edit App.config added from Objectivity.Test.Automation.Common nuget package

    • 2.4 Create your first Page Object Pattern class inherits ProjectPageBase

    • 2.5 Create your first test class inherits ProjectTestBase. More details about ProjectTestBase clasess can be find here.

    • 2.6 Build your project and run first test. MsTest unit tests can be configured by using a *.runsettings file or *.testsettings. More details here.

Clone this wiki locally