How can I test Existing app on Phone - xamarin

I already have installed app on device, how can I use XAMARIN UI TEST for test it ? I don't need to reinstall or install apk on my Android.

For testing with Xamarin.UITest, iOS requires that you link in either the Xamarin Test Cloud Agent for Xamarin.iOS application projects or linking in the Calabash agent in your ObjC/Swift Xcode project for "native" applications.
Non-Xamarin.iOS apps are also supported by Xamarin.UITest, but instead of the Xamarin Test Cloud Agent require linking Calabash.
https://github.com/calabash/calabash-ios/wiki/Tutorial%3A-How-to-add-Calabash-to-Xcode
So for existing iOS application that are not linked to the Xamarin.TestCloud.Agent or the Calabash framework, Xamarin.UITest` can not be used.
Testing frameworks like Appium can be used on existing native, hybrid and mobile web app iOS applications as it uses Apples' UI Automation framework (which Xamarin.UITest does not use).

Related

Is it possible to test a hybrid app with Xamarin UI.test c# and upload the same tests to cloud?

I have developed a Xamarin UI test for my hybrid app (not written with Xamarin). It is an android app and i have used Visual Studio2015 for the c# based test script development.
Now i need to upload the tests to the Xamarin Test cloud ? Is it possible ? If Yes then How? Thanks.
Since the mobile app was development outside of Visual Studio / Xamarin Studio, you need to submit the test and a release build of the .apk via the cmd-line tool (test-cloud.exe):
test-cloud.exe submit <PATH-TO-APK> <TEAM API KEY> --devices=<DEVICES> --assembly-dir=<PATH-TO-TEST-ASSEMBLY-DIR> --user=<EMAIL>
Consult the following link for details concerning app signing.
Ref: Submitting_Android_Tests

Geting exception "SetUp : System.Exception : Unable to contact test backend running in app" while running a UI test case using Xamarin UI Test

I have an iOS app which is not developed using Xamarin. Now I am trying develop UI test cases for this App Using Xamarin UI test project. I am using Xamarin studio to develop my UI Test Cases in C#.
I am running the test cases in Mac machine.
I am using .ipa file to install the App on to the iOS device. I installed the app and trying to execute below code. Below code is opening the App successfully but failing with below exception
"SetUp : System.Exception : Unable to contact test backend running in app. A common cause is that the app is not properly linked with Calabash. Please verify that it includes the Calabash component."
Code i have used is:
IApp app = ConfigureApp.iOS .EnableLocalScreenshots() .DeviceIdentifier("f8c67472f88efb1985c2f5e73698d6bb367807fd").InstalledApp("<<App Bundle ID>>").StartApp();
You must add the Xamarin TestCloud Agent to your iOS solution ; here is the link for the Xamarin package, where you can have a lot of information. Since you're using native iOS I suggest you find the same framework package for native iOS, which should be somewhere on github.
The rest of the setup is still valid wether its Xamarin or iOS

How can I build an app in Appcelerator that can be deployed via the Mac App Store

Having successfully built an Appcelerator generated application for iOS, I am thinking about deploying the same application on the Mac App Store.
Is this possible?
If so what do I have to do test test and what do I have to do to deploy?
No you can't. Appcelerator is a mobile app platform. It doesn't support Mac desktop applications.
Only if you've create a webapp you could use a different wrapper (like Electron) to create standalone wrappers so you could upload it to the Mac-Store. But that's not related to Appcelerator.

Creating NativeScript app with Teleriks AppBuilder

I am writing hello world on nativeScript at AppBuilder platform. I created new project from template. It works perfetct with companion app (Run->Build->NativeScript) but i can't:
1) run it on iOS or android emulator
2) build app package (Run->Build->App Package)
Thanks much
From the browser you can't run on native emulators, but you can deploy to the NativeScript companion app for Android/iOS, and you can also build app packages for Android/iOS.
To build iOS app packages you need to register for the iOS developer program and register your provisioning profiles and certificates with AppBuilder before you can create app packages. If you have any other questions related to this let me know.

Adding PhoneGap onto Xcode Project Without Using XCode

I was running Windows 7 desktop only. My next project is about a social network app created from my fellow programmer. Check out his XCode project at GitHUB repository right here.
He asked me to convert this iOS compatibile into an Android compatible app so that his created app can now run on Android.
I discovered PhoneGap Build, an online app converter that requires to copy the URL of a GitHub repository and in order to make the conversion successful, I have to implement some kind of PhoneGap engine (Cordova.jar, HTML5 [index.html], and a simple Javascript).
It's preferred to do this in Xcode, but Xcode requires Mac OS X. Is there another way, if it's possible, to add a PhoneGap engine without Xcode?
Here's the reason why I have to update and added the PhoneGap without using XCode since I'm running on Windows 7 before taking a second attempt to convert it using PhoneGap Build. Here's the picture:
PhoneGap allows a developer to build a native application using HTML5 - essentially, the web application is packaged into a native application container that simply renders a webview then loads the index.html from the web app into that webview and passes control to the web app.
There is no conversion of a native iOS application into an Android application.
You do not need Xcode to package PhoneGap apps using PhoneGap Build - all you need is the web content for your app. When you initiate the build process, the Build service packages your web app into native apps for Android, BlackBerry, iOS, webOS, Windows Phone.
You can learn a lot about PhoneGap in my book PhoneGap Essentials - www.phonegapessentials.com.

Resources