Submitting UITests at the Command Line



Similar documents
Test Automation Integration with Test Management QAComplete

PaperStream Connect. Setup Guide. Version Copyright Fujitsu

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

Mobile Labs Plugin for IBM Urban Code Deploy

Capture Pro Software FTP Server System Output

Installation of IR under Windows Server 2008

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

Frequently Asked Questions Enterprise Mobile Manager

Developing In Eclipse, with ADT

WHMCS LUXCLOUD MODULE

Installation and Configuration Guide

Product Manual. MDM On Premise Installation Version 8.1. Last Updated: 06/07/15

Trend Micro Worry- Free Business Security st time setup Tips & Tricks

Configuring MassTransit Server to listen on ports less than 1024 using WaterRoof on Macintosh Workstations

Add User to Administrators Group using SQL Lookup Table

Secure Messaging Server Console... 2

Getting Started with the Ed-Fi ODS and Ed-Fi ODS API

Setting up Citrix XenServer for 2X VirtualDesktopServer Manual

DESLock+ Basic Setup Guide Version 1.20, rev: June 9th 2014

Volume SYSLOG JUNCTION. User s Guide. User s Guide

Installing and configuring Microsoft Reporting Services

Introduction. There are several bits of information that must be moved:

Windows Azure Support in Kentico CMS 5.5 R2

Introduction to Mobile Access Gateway Installation

Enterprise Content Management System Monitor. How to deploy the JMX monitor application in WebSphere ND clustered environments. Revision 1.

Backing Up TestTrack Native Project Databases

Installing the ASP.NET VETtrak APIs onto IIS 5 or 6

FTP, IIS, and Firewall Reference and Troubleshooting

GENERAL FILE TRANSFER GUIDELINES

VMware vcenter Discovered Machines Import Tool User's Guide Version for vcenter Configuration Manager 5.3

How to configure the TopCloudXL WHMCS plugin (version 2+) Update: Version: 2.2

NAS 242 Using AiMaster on Your Mobile Devices

CRSP MOVEit Cloud Getting Started Guide

Migrating Trend Micro Mobile Security for Enterprise (TMMS) 8.0 to TMMS 9.0 Patch 1

How To Backup In Cisco Uk Central And Cisco Cusd (Cisco) Cusm (Custodian) (Cusd) (Uk) (Usd).Com) (Ucs) (Cyse

DataCove PST Import Tool

Configuration Manager Error Messages

Using Internet or Windows Explorer to Upload Your Site

Magento OpenERP Integration Documentation

Dove User Guide Copyright Virgil Trasca

Deployment Topologies - DPAdmin An isoagroup Product

LifeCyclePlus Version 1

CUSTOMER Installing SAP Afaria

SPHOL205: Introduction to Backup & Restore in SharePoint Hands-On Lab. Lab Manual

SafeNet KMIP and Google Cloud Storage Integration Guide

Secure Data Transfer

HP AppPulse Active. Software Version: 2.2. Real Device Monitoring For AppPulse Active

IIS, FTP Server and Windows

How to Migrate to MailEnable using the Migration Console

Capture Pro Software FTP Server Output Format

IN STA LLIN G A VA LA N C HE REMOTE C O N TROL 4. 1

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

Elevated Privileges and User ID in Active Directory Environments

Note: With v3.2, the DocuSign Fetch application was renamed DocuSign Retrieve.

Custom Web Service site - Setup and Configuration

Chapter 12: Finale! Publishing Your Android App

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Sophos Endpoint Security and Control How to deploy through Citrix Receiver 2.0

Integrating Cisco ISE with GO!Enterprise MDM Quick Start

Authoring for System Center 2012 Operations Manager

Cloud Storage Service

ios Deployment Simplified FileMaker How To Guide

Active Directory Authentication Integration

Network Load Balancing

Only LDAP-synchronized users can access SAML SSO-enabled web applications. Local end users and applications users cannot access them.

Installing and Configuring vcloud Connector

Migrating Mobile Security for Enterprise (TMMS) 8.0 to version 9.0

AXIS 70U - Using Scan-to-File

Backup and Restore with 3 rd Party Applications

Higher National Unit specification: general information

Bitrix Site Manager. VMBitrix Virtual Machine. Quick Start And Usage Guide

Secure FTP. Client user guide. Author: Steria A/S Version: 2.2 Date: 20 January 2010 Document SecureFtpClientUserguideV2_2.doc

Log Analyzer Reference

Adeptia Suite 6.2. Application Services Guide. Release Date October 16, 2014

IBM WebSphere Application Server Version 7.0

Reference and Troubleshooting: FTP, IIS, and Firewall Information

Published. Technical Bulletin: Use and Configuration of Quanterix Database Backup Scripts 1. PURPOSE 2. REFERENCES 3.

System Administration Training Guide. S100 Installation and Site Management

How to Configure Certificate Based Authentication for WorxMail and XenMobile 10

How to Install Applications (APK Files) on Your Android Phone

Installation and Administration Guide

XMLVend Protocol Message Validation Suite

Mobility Manager 9.0. Installation Guide

HP Cloud Service Automation

WildFire Reporting. WildFire Administrator s Guide 55. Copyright Palo Alto Networks

Migrating Trend Micro Mobile Security for Enterprise (TMMS) 8.0 to TMMS 9.0

9. Database Management Utility

ReadyNAS Remote. User Manual. June East Plumeria Drive San Jose, CA USA

WirelessOffice Administrator LDAP/Active Directory Support

Kollaborate Server Installation Guide!! 1. Kollaborate Server! Installation Guide!

USER GUIDE. Lightweight Directory Access Protocol (LDAP) Schoolwires Centricity

Demo of Data transferring (.CSV Files) from EGX300 to Our local PC/Laptop using- FTP

Authentication in XenMobile 8.6 with a Focus on Client Certificate Authentication

Configuration Guide. BES12 Cloud

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Retailman POS Multi-location Setup

Upgrade Guide BES12. Version 12.1

Advanced Configuration Administration Guide

LICENSE4J LICENSE ACTIVATION AND VALIDATION PROXY SERVER USER GUIDE

Transcription:

Submitting UITests at the Command Line Overview This guide discusses how to submit your UITests tests to Xamarin Test Cloud using the command line. This scenario is appropriate for continuous integration servers or builds that performed at the command line using a script. It will also discuss strategies for signing your Android APK s with custom keystores. Requirements It is assumed that UITests have been written and are running in your local environment, and that you have the test-cloud.exe application installed via NuGet. It is assumed that a Test Cloud project has been created, your account has been added to the team for that project, and you have the Team API Key. Please see the Organizations & Teams document for more Details. Familiarity with the command line is required. Internet access to the Test Cloud web servers is required. Firewalls should be configured to allow traffic to the Test Cloud servers at the following IP addresses: 195.249.159.238 195.249.159.239 The Test Cloud servers require port 80 and 443. Android applications must request the INTERNET permission in AndroidManifest.XML. Submitting UITests

Tests are submitted to the using test-cloud.exe command line application, which is distributed as a part of the Xamarin.UITest NuGet package. This is a multi-purpose utility that will submit both Android and ios tests, and it works on both OS X and Windows. The following table describes some of the more important command line parameters for test-cloud.exe, which may be found in the packages directory as shown in the screenshot below. It is not a complete list of all parameters. Parameter --assembly-dir <PATH> --devices <DEVICE ID> --user <EMAIL> --nunit-xml --sign-info --dsym --category <NUNIT- CATEGORY> --fixture <NUNIT- FIXTURE> --test-chunk --fixture-chunk Description The path to the folder holding the test assemblies. The device ID that was provided in the Test Cloud Upload dialog. The e-mail address of the team member submitting the tests. The filename to which test results are exported, formatted as NUnit results XML. Optional. Android only. Supply a signing information file that will be used to sign the Test Server APK. See the section below for more details. Optional. ios only. Will upload the dsym files along with the application and tests. This allows for more detail in the log files. Optional. NUnit category to run. (Can be used multiple times) NUnit fixture / namespace to run. (Can be used multiple times) Run tests in parallel by method Run tests in parallel by fixture It is important that all commands be run from the solution directory. As an example, the following screenshot of the CreditCardValidation folder on Github identifies the solution project for the CreditCardValidation-UITest project:

It is important that all commands be run from the root of the solution directory. As an example, the following screenshot of the CreditCardValidation folder on Github identifies the solution project for the CreditCardValidation-UITest project: Note: Xamarin Test Cloud will terminate test runs that take longer than 180 minutes. Submitting ios Tests The following snippet is the simplest command line that could be used to submit an ios application and tests to Test Cloud: test-cloud.exe submit <PATH-TO-IPA> <TEAM API KEY> --devices=

<DEVICES> --assembly-dir=<path-to-test-assembly-dir> --user=<email> Submitting Android Tests The following snippet is the simplest command line that could be used to submit an Android application and tests to Test Cloud: test-cloud.exe submit <PATH-TO-APK> <TEAM API KEY> --devices= <DEVICES> --assembly-dir=<path-to-test-assembly-dir> --user=<email> Only release builds of an Android application should be submitted to Test Cloud. test-cloud.exe will sign the application APK and the test server APK with the same keystore before uploading to Test Cloud. It is possible to control this signing step as described in the next section. Signing Android APK's test-cloud.exe will use one of three algorithms to sign the APKs prior to submission: 1. Use Build-in Keystore. This is the default behaviour. test-cloud.exe will sign the application and the test server APK using it s own keystore. 2. Provide your own Keystore. The second option is to provide your own keystore (along with credentials) that test-cloud.exe will use to sign the application and test server APK. The following snippet shows the additional command line parameters: test-cloud.exe submit <PATH-TO-APK> <TEAM API KEY> keystore <PATH-TO-KEYSTORE> <KEYSTORE-PASSWORD> <KEYALIAS> <KEYALIAS- PASSWORD> This option allows for complete control over what key will be used to sign the application, but it presents a potential security risk because the application keystore must be included in source code and the password for the keystore will be in clear text in build scripts. 1. Use a signing information file. This option involves using test-cloud.exe to extract a few files from a signed test server APK, which are then stored in a small zip file, known

as a signing information file. The main reason for using a signing information file is so that it can be added to source code control. This ensures that the application and test server are consistently signed with the same key information. The following snippet shows how to create the signing information file: test-cloud.exe gen-sign-info <PATH-TO-SIGNED_APK> <PATH_TO_KEYSTORE> <KEYSTORE-PASSWORD> <KEYALIAS> <KEYALIAS-PASSWORD> --dir <DIRECTORY- TO-SAVE-SIGN-INFO> When run, test-cloud.exe will create a file called testserver.si in the directory specified by the --dir parameter. Note: The signing information file must be recreated each time the Xamarin.UITest package is updated. Summary This guide discussed how to use test-cloud.exe to upload Xamarin.UITests and applications to Xamarin Test Cloud for testing. It also discusses several options for how to sign Android APKs prior to submitting test runs to Test Cloud.