This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Copyright (c) 2013-2015 Frank A. Krueger | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ContentView.ConstrainLayout (() => | |
border.Frame.Top == ContentView.Frame.Top && | |
border.Frame.Height == 0.5f && | |
border.Frame.Left == ContentView.Frame.Left && | |
border.Frame.Right == ContentView.Frame.Right && | |
nameLabel.Frame.Left == ContentView.Frame.Left + hpad && | |
nameLabel.Frame.Right == ContentView.Frame.GetMidX () - 5.5f && | |
nameLabel.Frame.Top >= ContentView.Frame.Top + vpad && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private XamlWindow _window; | |
public string AppId { get; set; } | |
internal IApp StartApp() | |
{ | |
try | |
{ | |
_window = XamlWindow.Launch(AppId); | |
return this; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-InstalledFamilyName() { | |
$installedApps = get-AppxPackage | |
foreach ($app in $installedApps) { | |
if ($app.Name -eq $packageName) { | |
foreach ($id in (Get-AppxPackageManifest $app).package.applications.application.id) | |
{ | |
$app.packagefamilyname+"!"+$id >> "$solutionDir\Installed-AppxFamilyName.txt" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public AppResult[] Query(string marked) | |
{ | |
try | |
{ | |
var control = _screenDictionary | |
.FindControl(_window.FriendlyName, () => marked); | |
return new AppResult[] | |
{ | |
new WindowsAppResult(control) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void EnterText(string marked, string text) | |
{ | |
var control = _screenDictionary | |
.FindControl(_window.FriendlyName, () => marked); | |
Keyboard.SendKeys(control, text); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IApp StartApp(string appId) | |
{ | |
return _app = new WindowsApp() | |
.GetAppxPackage(appId) | |
.InitializePlayback() | |
.StartApp() as WindowsApp; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using TechTalk.SpecFlow; | |
using Xamarin.UITest; | |
namespace TipCalc.UITest.Shared | |
{ | |
public abstract class FeatureBase | |
{ | |
protected IApp App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using TechTalk.SpecFlow; | |
using TipCalc.UITest.Shared.Common; | |
using Xamarin.UITest; | |
namespace TipCalc.UITest.Shared | |
{ | |
public abstract class StepsBase | |
{ | |
protected IApp App => FeatureContext.Current.Get<IApp>(ScreenNames.App); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace TipCalc.UITest.Windows | |
{ | |
[TestClass] | |
public abstract class WindowsFeatureBase : FeatureBase | |
{ | |
protected static string AppId; | |
protected static string Device; | |
protected static bool ResetDevice; | |
/// <summary> |
OlderNewer