All Projects → atata-framework → Atata

atata-framework / Atata

Licence: apache-2.0
C#/.NET test automation framework for web

Programming Languages

csharp
926 projects

Projects that are alternatives of or similar to Atata

page-modeller
⚙️ Browser DevTools extension for modelling web pages for automation.
Stars: ✭ 66 (-81.77%)
Mutual labels:  webdriver, selenium, test-automation, selenium-webdriver
Htmlelements
Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Stars: ✭ 258 (-28.73%)
Mutual labels:  framework, selenium, webdriver, selenium-webdriver
Cdp4j
cdp4j - Chrome DevTools Protocol for Java
Stars: ✭ 232 (-35.91%)
Mutual labels:  selenium, test-automation, webdriver, selenium-webdriver
atata-kendoui
A set of Atata components for Kendo UI
Stars: ✭ 17 (-95.3%)
Mutual labels:  webdriver, selenium, test-automation, selenium-webdriver
Grizzly
A cross-platform browser fuzzing framework
Stars: ✭ 234 (-35.36%)
Mutual labels:  framework, test-framework, automated-testing
Seleniumwithcucucumber
In this project we will discuss working Selenium with cucumber
Stars: ✭ 104 (-71.27%)
Mutual labels:  framework, selenium, webdriver
tropic
🍍 Test Runner Library
Stars: ✭ 29 (-91.99%)
Mutual labels:  selenium, test-automation, test-framework
google-meet-bot
Bot for scheduling and entering google meet sessions automatically
Stars: ✭ 33 (-90.88%)
Mutual labels:  webdriver, selenium, selenium-webdriver
Steward
PHP libraries that makes Selenium WebDriver + PHPUnit functional testing easy and robust
Stars: ✭ 215 (-40.61%)
Mutual labels:  selenium, webdriver, selenium-webdriver
Selion
Enabling Test Automation in Java
Stars: ✭ 252 (-30.39%)
Mutual labels:  framework, selenium, webdriver
karate
Test Automation Made Simple
Stars: ✭ 6,384 (+1663.54%)
Mutual labels:  webdriver, test-automation, automated-testing
Carina
Carina automation framework: Web, Mobile, API, DB
Stars: ✭ 549 (+51.66%)
Mutual labels:  framework, selenium, test-automation
nightwatch101
使用 Nightwatch 實現 End-to-End Testing ★
Stars: ✭ 42 (-88.4%)
Mutual labels:  webdriver, selenium, automated-testing
selenified
The Selenified Test Framework provides mechanisms for simply testing applications at multiple tiers while easily integrating into DevOps build environments. Selenified provides traceable reporting for both web and API testing, wraps and extends Selenium calls to more appropriately handle testing errors, and supports testing over multiple browser…
Stars: ✭ 38 (-89.5%)
Mutual labels:  selenium, test-automation, test-framework
Recheck Web
recheck for web apps – change comparison tool with local Golden Masters, Git-like ignore syntax and "Unbreakable Selenium" tests.
Stars: ✭ 224 (-38.12%)
Mutual labels:  selenium, test-automation, test-framework
PWAF
Python Webdriver Automation Framework
Stars: ✭ 37 (-89.78%)
Mutual labels:  webdriver, selenium, selenium-webdriver
Thirtyfour
Selenium WebDriver client for Rust, for automated testing of websites
Stars: ✭ 191 (-47.24%)
Mutual labels:  selenium, webdriver, selenium-webdriver
Panther
A browser testing and web crawling library for PHP and Symfony
Stars: ✭ 2,480 (+585.08%)
Mutual labels:  selenium, webdriver, selenium-webdriver
spydriver
🕵️ Lightweight utility to intercept WebDriver and WebElement method calls.
Stars: ✭ 24 (-93.37%)
Mutual labels:  webdriver, selenium, selenium-webdriver
MAQS
Magenic's automation quick start
Stars: ✭ 46 (-87.29%)
Mutual labels:  selenium, test-automation, test-framework

Atata

NuGet GitHub release Build status Atata Templates
Gitter Slack Atata docs Twitter

C#/.NET web UI test automation full featured framework based on Selenium WebDriver. It uses fluent page object pattern.

Supports .NET Framework 4.0+ and .NET Core/Standard 2.0+.

What's new in v1.10.0

Features

  • WebDriver. Based on Selenium WebDriver and preserves all its features.
  • Page Object Model. Provides unique fluent page object pattern that is easy to implement and maintain.
  • Components. Contains a rich set of ready to use components for inputs, tables, lists, etc.
  • Integration. Works on any .NET test engine (e.g. NUnit, xUnit, SpecFlow) as well as on CI systems like Jenkins, Azure DevOps or TeamCity.
  • Triggers. A bunch of triggers to bind with different events to extend component behavior.
  • Verification. A set of fluent assertion methods and triggers for the component and data verification.
  • Configurable. Defines the default component search strategies as well as additional settings. Atata.Configuration.Json provides flexible JSON configurations.
  • Reporting/Logging. Built-in customizable logging and screenshot capturing functionality.
  • Extensible. Atata.Bootstrap and Atata.KendoUI packages have a set of ready to use components. Framework supports any kind of extending.

Usage

Page Object

Simple sign-in page object for https://demo.atata.io/signin page:

using Atata;

namespace SampleApp.UITests
{
    using _ = SignInPage;

    [Url("signin")] // Relative URL of the page.
    [VerifyH1] // Verifies that H1 header text equals "Sign In" upon page object initialization.
    public class SignInPage : Page<_>
    {
        [FindByLabel] // Finds <label> element containing "Email" (<label for="email">Email</label>), then finds text <input> element by "id" that equals label's "for" attribute value.
        public TextInput<_> Email { get; private set; }

        [FindById("password")] // Finds password <input> element by id that equals "password" (<input id="password" type="password">).
        public PasswordInput<_> Password { get; private set; }

        [FindByValue(TermCase.Title)] // Finds button element by value that equals "Sign In" (<input value="Sign In" type="submit">).
        public Button<_> SignIn { get; private set; }
    }
}

Test

Usage in the test method:

[Test]
public void SignIn()
{
    Go.To<SignInPage>().
        Email.Set("[email protected]").
        Password.Set("abc123").
        SignIn.Click();
}

Setup

[SetUp]
public void SetUp()
{
    AtataContext.Configure().
        UseChrome().
        UseBaseUrl("https://demo.atata.io/").
        Build();
}

Find out more on Atata usage. Check atata-framework/atata-samples for different Atata test scenario samples.

Demo

Demo atata-framework/atata-sample-app-tests UI tests application demonstrates different testing approaches and features of Atata Framework. It covers main Atata features: page navigation, data input and verification, interaction with pop-ups and tables, logging, screenshot capture, etc.

Sample test:

[Test]
public void User_Create()
{
    string firstName, lastName, email;
    Office office = Office.NewYork;
    Gender gender = Gender.Male;

    Login().
        New().
            ModalTitle.Should.Equal("New User").
            General.FirstName.SetRandom(out firstName).
            General.LastName.SetRandom(out lastName).
            General.Email.SetRandom(out email).
            General.Office.Set(office).
            General.Gender.Set(gender).
            Save().
        Users.Rows[x => x.FirstName == firstName && x.LastName == lastName && x.Email == email && x.Office == office].View().
            Header.Should.Equal($"{firstName} {lastName}").
            Email.Should.Equal(email).
            Office.Should.Equal(office).
            Gender.Should.Equal(gender).
            Birthday.Should.Not.Exist().
            Notes.Should.Not.Exist();
}

Documentation

Find out more on Atata Docs and on Getting Started page in particular.

Tutorials

You can also check the following tutorials:

Contact

Feel free to ask any questions regarding Atata Framework. Any feedback, issues and feature requests are welcome.

You can ask a question on Stack Overflow using atata tag.

If you faced an issue please report it to Atata Issues, write to Atata Gitter or just mail to [email protected].

Links

Author

Contact me if you need a help in test automation using Atata Framework, or if you are looking for a quality test automation implementation for your project.

SemVer

Atata Framework follows Semantic Versioning 2.0. Thus backward compatibility is followed and updates within the same major version (e.g. from 1.3 to 1.4) should not require code changes.

License

Atata is an open source software, licensed under the Apache License 2.0. See LICENSE for details.

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].