Atata Sample App Tests
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.Be("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.Be($"{firstName} {lastName}").
Email.Should.Be(email).
Office.Should.Be(office).
Gender.Should.Be(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.