Unable to run on a physical device without activation

I get the following error:

Test Name:  AppLaunches_SwipeLeft_To_FourthView
Test Outcome:   Failed
Result Message: 
SetUp : System.Exception : Unable to run on a physical device without activation.
The full version is available for Xamarin Test Cloud customers, for more information contact [email protected]
If you are already a Xamarin Test Cloud customer, you can provide your api key in one of the following ways:
* Adding it ConfigureApp using the ApiKey method
* Setting the XTC_API_KEY environment variable
* Adding the following attribute to your Properties/AssemblyInfo.cs file: [assembly: Xamarin.UITest.TestCloudApiKey(YOUR_API_KEY)]
* Place an xtc-api-key file containing your api key in an upstream directory from the test assembly.
Result StandardOutput:  Full log file: C:\Users\youdoo\AppData\Local\Temp\uitest\log-2016-03-13_20-07-27-497.txt
Attempting IDE connection through pipe df10e3eab7fd4df99ad78e1894699bac.
Deploying app through IDE.
Instructing the IDE to prepare the test app for execution. Session: Assembly=C:\Users\youdoo\Source\Repos\CarouselPOC\CarouselPOC.UITest\bin\Release\CarouselPOC.UITest.DLL
Platform=Android
Android test running Xamarin.UITest version: 1.0.0
Running in unactivated mode. Test run will be restricted to simulators for a maximum duration of 15 minutes. The full version is available for Xamarin Test Cloud customers, for more information contact [email protected]

however in my app initialiser I have the following:

            if (platform == Platform.Android)
            {
                return ConfigureApp
                    .Android
                    .EnableLocalScreenshots()
                    .ApiKey("MY_KEY")
                    .StartApp();
            }

I have also tried an alternative, by adding the following to AssemblyInfo.cs:

[assembly: Xamarin.UITest.TestCloudApiKey("MY_KEY")]

however despite a reference to Xamarin.UITest, the TestCloudApiKey method is not recognised.

When I upload to TestCloud (select droid project, right-click / run in test cloud), the test runs.

Any suggestions?

My platform is as follows:

Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Community

Visual Basic 2015   00322-20000-00000-AA585
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA585
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA585
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   4.3.60226.3
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11106.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

JetBrains ReSharper Ultimate 10.0.2   Build 104.0.20151218.120627
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2016 JetBrains, Inc.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50616.0
Microsoft SQL Server Data Tools

TypeScript   1.7.6.0
TypeScript for Microsoft Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.24720.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.0.1.145 (f869dba)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.2.1 (46c3f7e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.4.2.24 (49ba15e)
Visual Studio extension to enable development for Xamarin.iOS.

Best Answer

Answers

Sign In or Register to comment.