Skip to content

A base GUI automation framework made in C#, with NUnit as testing engine. Initially setup for mobile GUI automated testing.

Notifications You must be signed in to change notification settings

sebasonti/gui-automation-csharp

Repository files navigation

GUI Automation Framework

Mobile GUI automation framework in C#, extensible for other types of GUIs (desktop, web). It is a base framework that tries to apply best practices in a layered architecture. The example automated test was done for Loop Habit Traker, an open source mobile project that helps you create and maintain good habits, initially developed by Alinson S. Xavier.

Framework architecture

Tools

  • .NET 6
  • NUnit
  • Appium 2.*
  • Appium Inspector
  • Browserstack App Automate
  • Visual Studio

Requirements

In order to have this framework working locally, you need to install:

Usage

To start running tests, the best an easies way is through the Test Explorer on Visual Studio, preferably on VS2022. You will need to have an Appium server running, by default at http://localhost:4723. It is also necessary to have an AVD running, or a real device conected to your computer, which will be recognized by appium. Set all the info needed on configuration.json (appPackage, appActivity). To run tests on Browserstack, you can create a trial account, which includes 100 free minutes, and you need to specify the device you want to run the tests on, with "deviceName", "platformVersion", and upload the .apk of your app, which will return a URL that have to be set on "app". Finally, you have to provide your Browserstack username and access key.

Another way to run tests is with the dotnet test command, you can find more info here

About

A base GUI automation framework made in C#, with NUnit as testing engine. Initially setup for mobile GUI automated testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages