Testing native mobile apps in C# using Appium
Run the existing demo app
- Get the code:
- Option 1:
git clone https://github.com/applitools/tutorial-appium-csharp-basic
- Option 2: Download it as a Zip file and unzip it.
- Option 1:
- Import the project into Visual Studio:
- Open Visual Studio from the command line by running something similar to:
open /Applications/Visual\ Studio.app/
rather than double-clicking on it. This approach will load all the environment variables such as APPLITOOLS_API_KEY from the command line shell.
- Open Visual Studio from the command line by running something similar to:
Note
Do not open Visual Studio by double clicking it as it will not load environment variables. If you already have it open, please close it and open it from the Command line.
-
In Visual Studio, open the
ApplitoolsTutorial
by navigating to the downloaded project viaFile | open
and double click theApplitoolsTutorials.sln
file. -
Update SDK and Dependencies:
- Right click the Dependencies folder in Visual Studio
- Select Update
-
Ensure Appium is downloaded and running
-
Hit Run button in Visual Studio to run the code
Add Applitools to an existing project
- Include the SDK as a Nuget Package
- In Visual Studio select Project > Manage Nuget Packages
- Search for Eyes.Appium Package and select the package
- Click "Add Package"
Example Test On Android Simulator
Having Trouble?
Don't suffer in silence! Let us help you. Please reach out to us to get your project working.
Taking the next steps with Applitools
Congratulations on completing this quickstart! There's still so much to learn about visual testing with Applitools, but you're off to a great start.