Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

Atata Sample App Tests

Build status Atata docs Gitter Slack Twitter

Automated UI tests C#/.NET application based on Atata Framework. It uses Atata Sample App (repository) as a testing website and NUnit 3 as a test engine. Tests application demonstrates different testing approaches and features of Atata Framework.

Features

  • Atata configuation and settings set-up.
  • Page navigation.
  • Controls finding.
  • Data input and verification.
  • Validation messages verification.
  • Usage of triggers.
  • Interaction with pop-ups (Bootstrap modal) and alerts.
  • Work with tables.
  • Logging and screenshots.
  • Page HTML validation.

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.Email == email].View().
            AggregateAssert(x => x.
                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());
}

License

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

About

Automation tests application based on Atata Framework

Topics

Resources

License

Packages

No packages published

Languages