Skip to content
Jakub Raczek edited this page Sep 17, 2019 · 56 revisions

To get started using Objectivity Test Framework download and install Visual Studio templates here:

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 and .Net framework

    • 1.1. Create a new Ocaramba.ProjectExample.NUnit.NetFramework project in Visual Studio, Target framework: .Net Framework 4.5

New Project
  • 1.2 Edit App.config. Change settings stored in App.config to target your application under tests.

  • 1.3 Edit Page Object Pattern classes inherits class ProjectPageBase added as a content to you project during creation new project.

  • 1.4 Edit your first test class inherits ProjectTestBase added as a content to you project during creation new project. More details about ProjectTestBase clasess can be find here.

  • 1.5 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.

  • 1.6 Add new Page Object classes or test classes using New Item Ocaramba templates image::https://user-images.githubusercontent.com/12324498/65060718-b0fa3000-d978-11e9-812f-ca9d4d4c880d.png[New Item]

.\..\..\..\packages\NUnit.ConsoleRunner.3.2.1\tools\nunit3-console.exe YourTestProject.dll

You can also clone project example of using our framework Ocaramba with NUnit from here and edit it to target your needs

  1. If you want to use our framework with MsTest

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

    • 2.2. Install Ocaramba.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 Ocaramba.MSTest
    • 2.3 Edit App.config added from Ocaramba 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.

You can also clone project example of using our framework Ocaramba with MsTest from here and edit it to target your needs.

  1. If you want to use our framework with SpecFlow first install “SpecFlow” plugin. Select Tools | Extensions and Updates from the menu in Visual Studio, switch to the Online search on the left and enter “SpecFlow” in the search field at the top right. More details here http://specflow.org/getting-started/

You can also clone project example of using our framework Ocaramba with SpecFlow from here and edit it to target your needs.

Clone this wiki locally