xamarin.uitest

How can I run a Xamarin.UITest from the commandline?

放肆的年华 提交于 2021-02-07 09:10:57
问题 I would like to run tests (made using Xamarin.UITest) on my build server, which runs TeamCity on OS X. I have searched online on how to do this, but I am only able to find how these tests can be submitted to Xamarin Test Cloud. This is not what I want, I want to run the tests I wrote directly on devices (and/or simulators) connected to the build server. 回答1: according to the docs (requires NUnit 2.6.3) $ mono <path-to>/Nunit-2.6.3/bin/nunit-console.exe <path/to/uitest-assembly.dll> 回答2: Here

How can I run a Xamarin.UITest from the commandline?

被刻印的时光 ゝ 提交于 2021-02-07 09:10:20
问题 I would like to run tests (made using Xamarin.UITest) on my build server, which runs TeamCity on OS X. I have searched online on how to do this, but I am only able to find how these tests can be submitted to Xamarin Test Cloud. This is not what I want, I want to run the tests I wrote directly on devices (and/or simulators) connected to the build server. 回答1: according to the docs (requires NUnit 2.6.3) $ mono <path-to>/Nunit-2.6.3/bin/nunit-console.exe <path/to/uitest-assembly.dll> 回答2: Here

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

拈花ヽ惹草 提交于 2021-02-07 02:48:27
问题 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 connected iPhone. The problem is that I cannot override permissions questions and my tests fails. I found out that application deployed by IDE (Xamarin Studio) will ask for permissions, but application deployed via UITests will not. So I tried with

How to click the element using automation id in Xamarin.UiTest?

不问归期 提交于 2021-02-05 09:47:43
问题 The app is developed using Xamarin.forms. I am examining the app using repl(). While using tree command i can see following output >>> tree [[object CalabashRootView] > DecorView] [LinearLayout > FrameLayout] [FitWindowsFrameLayout] id: "action_bar_root" [ContentFrameLayout > ... > PlatformRenderer] id: "content" [NavigationPageRenderer] id: "NoResourceEntry-9" [PageContainer] id: "NoResourceEntry-22" [PageRenderer > Platform_DefaultRenderer] id: "NoResourceEntry-17" [Platform_DefaultRenderer

Can't find an element on iOS in my xamarin ui tests

这一生的挚爱 提交于 2021-01-29 12:41:00
问题 I wrote some tests on android and now I'm trying to make it compatible to iOS too. I have some picker : enter image description here I gave the picker automation id and also to the label inside him so I can read it text, in android I succeed but in iOS I can't even see the label. tree repl in iOS : Ios repl tree tree repl in android: android repl tree the xaml code: <scrControls:ScrPickerWithBorder x:Name="SleepStartPicker" Grid.Row="1" Grid.Column="1" Margin="0" ArrowColor="{StaticResource

Xamarin.uitest how to close app instance

∥☆過路亽.° 提交于 2021-01-27 18:32:40
问题 How to close and relaunch app in Xamarin.UI Test ? I want to restart app for each scenario in feature . Platform: android There is no quit() or close() session methods like we have in appium. 回答1: Calling ConfigureApp.Android.StartApp() in your test will launch a new session of your application for you to interact with (just make sure to save the new object). However, with the use of NUnit, methods tagged with [Setup] will run automatically before every method tagged with [Test] . That means

xamarin UI Test - Unable to load the native APK path that I point to

此生再无相见时 提交于 2020-02-02 06:44:33
问题 I want to run a REPL UI Test on native android APK by referring to the path of the APK with following code. public void BeforeEachTest() { app = ConfigureApp.Android .ApkFile("C:/app-debug.apk") .StartApp(): } public void AppLaunches() { app.Repl(); } But, during running test, it will always load test like below which is not the path that I've set. Loading tests from testing\Xamarin Testing\AndroidTest\AndroidTest\bin\Debug\AndroidTest.dll the REPL console is not opening and my selected APKis

Xamarin.UITest 2.2.4 start session failed on the first test

本小妞迷上赌 提交于 2020-01-16 04:06:32
问题 Since my macOS made me update to XCode 9.3 I had to upgrade Xamarin.UITest from 2.2.2 to 2.2.4. The problem is that when I run all my tests, every single time the first one fails with the error attached. I think is not a test issue because all tests run correctly on a macOS with XCode 9.2 and Xamarin.UITest 2.2.2. Also if I delete that test, then the next one that is going to be the first one fails with the same error. Can anyone help me, please? Thank you so much in advance! 1) SetUp Error :

Xamarin.UITest 2.2.4 start session failed on the first test

烂漫一生 提交于 2020-01-16 04:06:29
问题 Since my macOS made me update to XCode 9.3 I had to upgrade Xamarin.UITest from 2.2.2 to 2.2.4. The problem is that when I run all my tests, every single time the first one fails with the error attached. I think is not a test issue because all tests run correctly on a macOS with XCode 9.2 and Xamarin.UITest 2.2.2. Also if I delete that test, then the next one that is going to be the first one fails with the same error. Can anyone help me, please? Thank you so much in advance! 1) SetUp Error :

I would like to connect my Iphone to a MAC mini and remotely run tests on it from my Windows machine using Xamarin UI test

江枫思渺然 提交于 2020-01-15 05:38:49
问题 I am getting the error saying "iOS tests are not supported on Windows" while trying to execute UI test script written against the Xamarin.UI.Test framework. Is there any way to remotely run UI test on IOS app from Visual studio 2017 (windows machine)? Appium has a remote server feature which enable us to connect to mac and run test script. Does Xamarin UI test has any feature like this? 回答1: Running iOS Xamarin.UITests from Windows using the Mac Agent is not supported. Cause: The UITest