Questions tagged [xamarin.uitest]

Xamarin.UITest, an Automated UI Acceptance Testing framework based on Calabash that allows programmers to write and execute tests in C# and NUnit that validate the functionality of iOS and Android Apps.

319 questions
12
votes
1 answer

Xamarin "xcodebuild output not as expected"

I'm trying to get Xamarin.UITests working for an iOS project and I keep getting this error: SetUp : Calabash.XDB.Core.Exceptions.ExternalProcessException : xcodebuild output not as expected If anybody has any idea how to continue debugging this,…
argbo
  • 526
  • 3
  • 10
7
votes
3 answers

Visual Studio Xamarin.UITest: "System.Exception : Android SDK not found." running UITests

I am attempting to get some UITests set up for my project, and am receiving an error when running them: System.Exception : Android SDK not found. Please install it and if it is still not located, please set the ANDROID_HOME environment variable to…
7
votes
3 answers

Xamarin.UITests - testing on real device - iOS - app permissions popups issue

I've iOS app that needs some privileges (GPS, Push notifications). When app starts for a first time iOS asks user if they're ok with granting those permissions to application. I've written some UITests and want to automate running them on locally…
6
votes
1 answer

xamarin UITest not compatible with dotnet core?

My apologies for this one small question but i'm checking out to convert the xamarin uitest project to dotnet core. But i'm facing difficulties. When I create a new xamarin uitest project it is automatically in 4.6 and I don't have the option to set…
John
  • 728
  • 2
  • 15
  • 37
6
votes
1 answer

Xamarin.UITest incompatible with OS X 10.15?

Today after my iOs upgrade to Catalina 10.15.3 from 10.14.1 I am now getting an os dialog when running Xamarin.UITest steps to repeat: Create new Xamarin Solution Select Master Detail project Add the UITest project Build all Run templated iOS app…
Mark Wardell
  • 493
  • 7
  • 25
6
votes
1 answer

Testing my Xamarin.Forms iOS Application with Xamarin.UITest: The first test always fails

I am testing an Xamarin.iOS Application on a real device (iPhone 6s with iOS 12.1) with Xamarin.UITest. When I am running my few UI Tests, the first test always seam to crash (regardless of what is happening inside the test) due to the same error…
6
votes
2 answers

Xamarin UI Tests Error: Type 'MonoDevelop.MonoDroid.DeploymentException' is not marked as serializable

I'm currently getting the following error and stacktrace when attempting to run UI Tests locally against my Xamarin.Android project. This error doesn't occur on every run, but its pretty frequent. A clean and rebuild will usually "fix" it, but when…
6
votes
3 answers

Xamarin.UITest: How To Pause a Test Step

I have a UITest written in C#/Xamarin and the test is executing too quickly, causing it to fail. I need the test to wait for an Image to appear on the screen before executing the next step. How can I pause the Xamarin UITest and make it wait for an…
Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
5
votes
0 answers

Xamarin.UiTest Failed to install Device Agent (ExitCode 143) on physical device

I am trying to run test on physical iOS device with Mac using Xamarin UiTest . The configuration in AppInitializer is: return ConfigureApp .iOS .Debug() .InstalledApp("Bundle-Identifier") .DeviceIdentifier("Physical-Device-UUID") …
5
votes
1 answer

How to use WireMock.Net in a Xamarin.UITest project?

My UITest project works well with original web server, but I want to replace it with mock server using WireMock.net. I already used it in a non-UITest project successfully. Here's my code in UI Test project: [SetUp] public void…
VahidShir
  • 2,066
  • 2
  • 17
  • 27
5
votes
5 answers

Xamarin.UITest Screenshot location

I've got a problem with Xamarin.UITest, specifically screenshot feature. It is not working as expected. I'm trying to copy "created" screenshot to another directory, but I get the following error: Message: System.IO.FileNotFoundException : Could…
Marko Jovanović
  • 2,647
  • 3
  • 27
  • 36
5
votes
1 answer

Xamarin iOS App getting crashed while using AssociatedObject to set AutomationId for UIAlertController - objc_getAssociatedObject

We are trying to set the AutomationId for UIAlertController using extensions in Xamarin.iOS. But the app is getting crashed inconsistently at var valuePtr = objc_getAssociatedObject(alertAction.Handle, DescriptiveName.Handle); under…
Ramesh Annadurai
  • 356
  • 1
  • 10
5
votes
2 answers

Xamarin UI Test "1 is not a supported code page."

I have a problem with my computer when trying to run xamarin UI tests. It's a xamarin forms project and I'm building and testing on android devices. I'm using visual studio community 2017 and windows. I have tried both in my own project and in the…
5
votes
2 answers

How do I create an Apk file in Visual Studio for developing Xamarin UI tests?

I am trying to develop Xamarin.UiTests using this: "Introduction to Xamarin UITests which says my setup code needs to look like this: [SetUp] public void Setup() { app =…
JKennedy
  • 18,150
  • 17
  • 114
  • 198
5
votes
1 answer

How to run Xamarin UI tests on Android emulator

How to run Xamarin UI tests on Android emulator? Always I run my test on real devices, but for CI I need tests on emulator, but I don't know how and google didn't give me a specific answer public class AppInitializer { private const string…
user7405556
  • 73
  • 1
  • 5
1
2 3
21 22