Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atata-framework/atata-sample-app-tests
Automation tests application based on Atata Framework
https://github.com/atata-framework/atata-sample-app-tests
atata csharp demo tests
Last synced: 3 months ago
JSON representation
Automation tests application based on Atata Framework
- Host: GitHub
- URL: https://github.com/atata-framework/atata-sample-app-tests
- Owner: atata-framework
- License: apache-2.0
- Created: 2016-06-03T09:57:06.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-04-08T14:56:08.000Z (10 months ago)
- Last Synced: 2024-04-14T06:49:35.739Z (10 months ago)
- Topics: atata, csharp, demo, tests
- Language: C#
- Homepage:
- Size: 11.2 MB
- Stars: 27
- Watchers: 8
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Atata Sample App Tests
[![Build status](https://dev.azure.com/atata-framework/atata-sample-app-tests/_apis/build/status/atata-sample-app-tests-ci)](https://dev.azure.com/atata-framework/atata-sample-app-tests/_build/latest?definitionId=26)
[![Atata docs](https://img.shields.io/badge/docs-Atata_Framework-orange.svg)](https://atata.io)
[![Gitter](https://badges.gitter.im/atata-framework/atata.svg)](https://gitter.im/atata-framework/atata)
[![Slack](https://img.shields.io/badge/join-Slack-green.svg?colorB=4EB898)](https://join.slack.com/t/atata-framework/shared_invite/zt-5j3lyln7-WD1ZtMDzXBhPm0yXLDBzbA)
[![Twitter](https://img.shields.io/badge/[email protected])](https://twitter.com/AtataFramework)Automated UI tests C#/.NET application based on [Atata Framework](https://github.com/atata-framework/atata).
It uses [Atata Sample App](https://demo.atata.io) ([repository](https://github.com/atata-framework/atata-sample-app)) as a testing website and NUnit 3 as a test engine.
Tests application demonstrates different testing approaches and features of Atata Framework.## Features
- Atata configuration 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, screenshots and snapshots.
- Page HTML validation.## Sample Test
```cs
public sealed class UserTests : UITestFixture
{
[Test]
public void Create() =>
Login()
.New()
.ModalTitle.Should.Be("New User")
.General.FirstName.SetRandom(out string firstName)
.General.LastName.SetRandom(out string lastName)
.General.Email.SetRandom(out string email)
.General.Office.SetRandom(out Office office)
.General.Gender.SetRandom(out Gender gender)
.Save()
.GetUserRow(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.BeVisible()
.Notes.Should.Not.BeVisible());//...
}
```## License
Atata is an open source software, licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.