VOOZH about

URL: https://deepwiki.com/Accenture/Ocaramba/1.1-getting-started

⇱ Getting Started | Accenture/Ocaramba | DeepWiki


Loading...
Last indexed: 6 June 2026 (fb3580)
Menu

Getting Started

This guide provides a step-by-step onboarding process for engineers to set up the Ocaramba framework locally. It covers repository initialization, dependency management, framework selection, and the configuration required to run your first automated test.

Repository Setup and Initialization

To begin working with Ocaramba, clone the repository and restore the necessary dependencies. The framework is built on .NET 8.0 and supports cross-platform execution on Windows, Linux, and macOS README.md5-22

  1. Clone the Repository:
    
    
  2. Restore NuGet Packages: Ocaramba uses deterministic restores with lock files (packages.lock.json) to ensure environment consistency Ocaramba/Ocaramba.csproj64-65 Ocaramba/packages.lock.json1-2
    
    

Dependency Hierarchy

The framework relies on several core libraries for its functionality, including Selenium WebDriver, Appium for mobile support, and NLog for diagnostics Ocaramba/Ocaramba.csproj31-35

Core Dependency Flow


Sources: Ocaramba/Ocaramba.csproj31-55 OcarambaLite/OcarambaLite.csproj29-47


Choosing Between Ocaramba and OcarambaLite

The framework is split into two primary projects to provide flexibility in how drivers are managed.

ProjectPurposeKey Characteristics
OcarambaLiteFoundational layerLight version without bundled selenium drivers. Ideal for custom driver management or CI environments where drivers are pre-installed OcarambaLite/OcarambaLite.csproj6
OcarambaFull frameworkExtends OcarambaLite and includes standard drivers like Selenium.WebDriver.ChromeDriver and Selenium.WebDriver.GeckoDriver out of the box Ocaramba/Ocaramba.csproj36-55

Sources: Ocaramba/Ocaramba.csproj1-66 OcarambaLite/OcarambaLite.csproj1-63


Configuration via appsettings.json

Ocaramba uses Microsoft.Extensions.Configuration to manage test settings. The primary configuration file is appsettings.json, which contains the default execution parameters Ocaramba.Tests.NUnit/appsettings.json1-57

Key Configuration Sections

Configuration and Driver Initialization


Sources: Ocaramba.Tests.NUnit/appsettings.json1-57 Ocaramba/Ocaramba.csproj46-47


Running Your First Test

Ocaramba provides example projects for NUnit, MsTest, and xUnit README.md52-59 To run a test locally, follow these steps:

  1. Select a Test Project: Navigate to Ocaramba.Tests.NUnit.
  2. Configure Browser: Open appsettings.json and ensure the browser key is set to your preferred local browser (e.g., Chrome) Ocaramba.Tests.NUnit/appsettings.json5
  3. Execute via CLI:
    
    

Anatomy of a Test

A standard test inherits from ProjectTestBase, which manages the DriverContext lifecycle. Page Objects inherit from ProjectPageBase to access the driver instance via the DriverContext property README.md68-107

Natural Language to Code Entity Mapping


Example Test Implementation


Sources: README.md68-107


Troubleshooting Local Setup

  • Driver Mismatch: If the test fails to start the browser, ensure the version of the driver in Ocaramba.csproj (e.g., Selenium.WebDriver.ChromeDriver) is compatible with your installed browser version Ocaramba/Ocaramba.csproj36-37
  • Pathing: If using a custom driver location instead of NuGet-provided ones, update the PathToChromeDriverDirectory in appsettings.json Ocaramba.Tests.NUnit/appsettings.json7
  • Logs: Check the TestOutput folder (configured via DownloadFolder and ScreenShotFolder) for NLog files and screenshots if a test fails Ocaramba.Tests.NUnit/appsettings.json23-30

Sources: Ocaramba.Tests.NUnit/appsettings.json1-57 Ocaramba/Ocaramba.csproj36-37