csharpc-sharpdotnetxamlavaloniauicross-platformcross-platform-xamlavaloniaguimulti-platformuser-interfacedotnetcore
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| Properties | 4 years ago | |
| AppiumDriverEx.cs | 2 years ago | |
| AutomationTests.cs | 2 years ago | |
| Avalonia.IntegrationTests.Appium.csproj | 2 years ago | |
| ButtonTests.cs | 2 years ago | |
| CheckBoxTests.cs | 2 years ago | |
| CollectionDefinitions.cs | 3 years ago | |
| ComboBoxTests.cs | 2 years ago | |
| DefaultAppFixture.cs | 2 years ago | |
| ElementExtensions.cs | 3 years ago | |
| GestureTests.cs | 2 years ago | |
| ListBoxTests.cs | 2 years ago | |
| MenuTests.cs | 2 years ago | |
| NativeMenuTests.cs | 2 years ago | |
| OverlayPopupsAppFixture.cs | 3 years ago | |
| PlatformFactAttribute.cs | 3 years ago | |
| PlatformTheoryAttribute.cs | 3 years ago | |
| RadioButtonTests.cs | 2 years ago | |
| ScrollBarTests.cs | 2 years ago | |
| SliderTests.cs | 2 years ago | |
| WindowTests.cs | 2 years ago | |
| WindowTests_MacOS.cs | 2 years ago | |
| macos-clean-build-test.sh | 2 years ago | |
| readme.md | 2 years ago | |
| xunit.runner.json | 4 years ago | |
readme.md
Running Integration Tests
Windows
Prerequisites
- Install WinAppDriver: https://github.com/microsoft/WinAppDriver
Running
- Run WinAppDriver (it gets installed to the start menu)
- Run the tests in this project
macOS
Prerequisites
- Install Appium: https://appium.io/
- Give Xcode helper the required permissions
cd samples/IntegrationTestAppthen./bundle.shto create an app bundle forIntegrationTestApp- Register the app bundle by running
open -n ./bin/Debug/net8.0/osx-arm64/publish/IntegrationTestApp.app
Running
- Run
appium - Run the tests in this project
Each time you make a change to Avalonia or IntegrationTestApp, re-run the bundle.sh script (registration only needs to be done once).
Appium 2
Tests in this project are configured to run with Appium 1 (as only this version supports WinAppDriver). If you need to run with Appium 2 on macOS, extra steps are required:
- Install Appium 2 with mac2 driver
- Set
<IsRunningAppium2>true</IsRunningAppium2>msbuild property on the test project or globally - Run appium 2 with
appium --base-path=/wd/hub(custom base path is required) - Run tests as normally