Book Image

Creating Cross-Platform C# Applications with Uno Platform

By : Matt Lacey, Marcel Alexander Wagner
Book Image

Creating Cross-Platform C# Applications with Uno Platform

By: Matt Lacey, Marcel Alexander Wagner

Overview of this book

Developers are increasingly being asked to build native applications that run on multiple operating systems and in the browser. In the past, this would have meant learning new technologies and making multiple copies of an application. But the Uno Platform allows you to use tools, languages, and APIs you already know from building Windows apps to develop apps that can also run on other platforms. This book will help you to create customer-facing as well as line-of-business apps that can be used on the device, browser, or operating system of your choice. This practical guide enables developers to put their C# and XAML knowledge to work by writing cross-platform apps using the Uno Platform. Packed with tips and practical examples, this book will help you to build applications for common scenarios. You'll begin by learning about the Uno Platform through step-by-step explanations of essential concepts, before moving on to creating cross-platform apps for different lines of business. Throughout this book, you'll work with examples that will teach you how to combine your existing knowledge to manage common development environments and implement frequently needed functionality. By the end of this Uno development book, you will have learned how to write your own cross-platform apps with the Uno Platform and use additional tools and libraries to speed up your app development process.
Table of Contents (13 chapters)
Section 1: Getting to Know Uno Platform
Section 2: Writing and Developing Uno Platform Apps
Section 3: Test, Deploy, and Contribute

Getting started with Uno.UITest

Before we get started with Uno.UITest, let's cover what Uno.UITest is and what its aim is. Uno.UITest is a library developed and maintained by the Uno Platform team to allow developers to write unified UI tests for their Uno Platform apps. These UI tests allow you to simulate users interacting with your app and verify the UI of your app to ensure that user interactions work correctly and that your app behaves as designed. With Uno.UITest, you can write UI tests (also sometimes referred to as interaction tests), which you can run against the Android, iOS, and WASM heads of your app.

Under the hood, Uno.UITest uses Xamarin.UITest to run tests against the Android and iOS head of the app. For the WASM version of the app, Uno.UITest uses Selenium and Google Chrome. Using these libraries, Uno.UITest allows you to write tests that mimic user interactions with the UI of your app, including mimicking mouse input such as clicking, and keyboard input such...