All Projects → ObjectivityLtd → Ocaramba

ObjectivityLtd / Ocaramba

Licence: mit
C# Framework to automate tests using Selenium WebDriver

Projects that are alternatives of or similar to Ocaramba

Arduino Create Agent
The Arduino Create Agent
Stars: ✭ 298 (+27.35%)
Mutual labels:  chrome, firefox, safari
Etaoin
Pure Clojure Webdriver protocol implementation
Stars: ✭ 599 (+155.98%)
Mutual labels:  chrome, firefox, safari
Wpt
Test suites for Web platform specs — including WHATWG, W3C, and others
Stars: ✭ 3,573 (+1426.92%)
Mutual labels:  test-automation, firefox, safari
Extension Create
Create modern cross-browser extensions with no build configuration.
Stars: ✭ 167 (-28.63%)
Mutual labels:  chrome, firefox, safari
Test Each
🤖 Repeat tests. Repeat tests. Repeat tests.
Stars: ✭ 89 (-61.97%)
Mutual labels:  data-driven, test, test-automation
Link Preview Js
Parse and/or extract web links meta information: title, description, images, videos, etc. [via OpenGraph], runs on mobiles and node.
Stars: ✭ 240 (+2.56%)
Mutual labels:  chrome, firefox, safari
Browsertime
Your browser, your page, your scripts!
Stars: ✭ 474 (+102.56%)
Mutual labels:  chrome, firefox, safari
Octotree
Browser extension that enhances GitHub code review and exploration. You can download Octotree for your browser from our website.
Stars: ✭ 21,726 (+9184.62%)
Mutual labels:  chrome, firefox, safari
Freedom
The Freedom to Open URLs in Third-Party Browsers on iOS with Custom UIActivity Subclasses.
Stars: ✭ 85 (-63.68%)
Mutual labels:  chrome, firefox, safari
Automator
Various Automator and AppleScript workflow and scripts for simplifying life
Stars: ✭ 68 (-70.94%)
Mutual labels:  chrome, firefox, safari
Browser
The browser extension vault (Chrome, Firefox, Opera, Edge, Safari, & more).
Stars: ✭ 3,305 (+1312.39%)
Mutual labels:  chrome, firefox, safari
Lazy
Kule Lazy4 / CSS Framework
Stars: ✭ 147 (-37.18%)
Mutual labels:  chrome, firefox, safari
Tua Body Scroll Lock
🔐 Body scroll locking that just works with everything
Stars: ✭ 236 (+0.85%)
Mutual labels:  chrome, firefox, safari
Qawolf
🐺 Create browser tests 10x faster
Stars: ✭ 2,912 (+1144.44%)
Mutual labels:  parallel, chrome, firefox
Supercookie
💭 Inspiration
Stars: ✭ 3,630 (+1451.28%)
Mutual labels:  chrome, firefox, safari
Ublock
uBlock: a fast, lightweight, and lean blocker for Chrome, Firefox, and Safari.
Stars: ✭ 8,075 (+3350.85%)
Mutual labels:  chrome, firefox, safari
Known Css Properties
List of standard and browser specific CSS properties.
Stars: ✭ 89 (-61.97%)
Mutual labels:  chrome, firefox, safari
Cdp4j
cdp4j - Chrome DevTools Protocol for Java
Stars: ✭ 232 (-0.85%)
Mutual labels:  test-automation, selenium-webdriver, chrome
Rester
A REST client for almost any web service (Firefox and Chrome Extension)
Stars: ✭ 192 (-17.95%)
Mutual labels:  chrome, firefox
Hitchhiker
a Restful Api test tool
Stars: ✭ 2,175 (+829.49%)
Mutual labels:  test, test-automation

Ocaramba

Cross-Platform C# Framework to automate tests using Selenium WebDriver

Ocaramba Templates Build status AppVeyor tests Build Status Azure DevOps tests BrowserStack Status Build Status

Test Framework was designed in Objectivity to propose a common way how people should create Selenium WebDriver tests.

Project API documentation can be found here: http://objectivityltd.github.io/Ocaramba

It provides the following features:

  • .NET Frameworks 4.5, 4.7.2 and .NET Core 3.1 supported
  • Cross-Platform Windows, Linux and macOS systems supported
  • Ready for parallel tests execution, more details here
  • Possibility to use MSTest, NUnit or xUNIT framework
  • Specflow ready
  • Written entirely in C#
  • Contains example projects how to use it
  • Allows using Chrome, Firefox, Edge Chrominium, Safari or Internet Explorer
  • Overrides browser profile preferences, pass arguments to browsers, installs browser extensions, loading default firefox profile, Headless mode, more details here
  • Extends Webdriver by additional methods like JavaScriptClick, WaitForAjax, WaitForAngular, etc., more details here
  • Automatically waits when locating element for specified time and conditions, GetElement method instead of Selenium FindElement, more details here
  • Page Object Pattern
  • Support for SeleniumGrid, Cross browser parallel test execution with SauceLab, TestingBot and Browserstack more details here, Advanced Browser Capabilities and Options more details here
  • More common locators, e.g: "//*[@title='{0}' and @ms.title='{1}']", more details here
  • Several methods to interact with kendo controls, more details here
  • Verify - asserts without stop tests, more details here
  • Measures average and 90 Percentile action times, more details here
  • DataDriven tests from Xml, Csv and Excel files for NUnit and Xml, Csv for MSTest with examples, more details NUnit, MsTest
  • Possibility to take full desktop (only .NET Framework), save page source, more details here
  • Visual Testing - browser screenshot of the element, more details here
  • Logging with NLog, EventFiringWebDriver logs, more details here
  • Files downloading (Firefox, Chrome), more details here
  • Possibility to send SQL or MDX queries (only .NET Framework)
  • Possibility of debugging framework installed from nuget package with sourcelink, more details here.
  • AngularJS support, more details here.
  • Possibility to check for JavaScript errors from the browser, more details here.
  • Instruction on how to run Ocaramba tests with Docker container, more details here.

For all documentation, visit the Ocaramba Wiki.

Projects examples of using Test Framework :

  • Ocaramba.Tests.Angular for AngularJS
  • Ocaramba.Tests.Features for Specflow
  • Ocaramba.Tests.MsTest for MsTest
  • Ocaramba.Tests.NUnit for NUnit
  • Ocaramba.Tests.xUnit for xUnit
  • Ocaramba.Tests.PageObjects for Page Object Pattern
  • Ocaramba.Documentation.shfbproj for building API documentation
  • Ocaramba.Tests.CloudProviderCrossBrowser for cross browser parallel test execution with BrowserStack\SauceLabs\TestingBot\SeleniumGrid
  • Ocaramba.UnitTests for unit test of framework

NUnit Example Test:

namespace Ocaramba.Tests.NUnit.Tests
{
    using global::NUnit.Framework;

    using Ocaramba.Tests.PageObjects.PageObjects.TheInternet;

    [Parallelizable(ParallelScope.Fixtures)]
    public class JavaScriptAlertsTestsNUnit : ProjectTestBase
    {
        [Test]
        public void ClickJsAlertTest()
        {
            var internetPage = new InternetPage(this.DriverContext).OpenHomePage();
            var jsAlertsPage = internetPage.GoToJavaScriptAlerts();
            jsAlertsPage.OpenJsAlert();
            jsAlertsPage.AcceptAlert();
            Assert.AreEqual("You successfuly clicked an alert", jsAlertsPage.ResultText);
        }
    }
}

NUnit Example Page Object:

namespace Ocaramba.Tests.PageObjects.PageObjects.TheInternet
{
    using System;
    using System.Globalization;

    using NLog;

    using Ocaramba;
    using Ocaramba.Extensions;
    using Ocaramba.Types;
    using Ocaramba.Tests.PageObjects;

    public class InternetPage : ProjectPageBase
    {
        private static readonly Logger Logger = LogManager.GetCurrentClassLogger();

        /// <summary>
        /// Locators for elements
        /// </summary>
        private readonly ElementLocator
            linkLocator = new ElementLocator(Locator.CssSelector, "a[href='/{0}']");

        public InternetPage(DriverContext driverContext) : base(driverContext)
        {
        }

        public JavaScriptAlertsPage GoToJavaScriptAlerts()
        {
            this.Driver.GetElement(this.linkLocator.Format("javascript_alerts")).Click();
            return new JavaScriptAlertsPage(this.DriverContext);
        }
    }
}

Where to start?


Checkout the code or get it from nuget.org

  • Ocaramba NuGet Badge
  • OcarambaLite NuGet Badge - lighten version without selenium drivers

or download Ocaramba Visual Studio templates Ocaramba Templates

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].