{"id":4149,"date":"2019-02-24T23:41:48","date_gmt":"2019-02-24T14:41:48","guid":{"rendered":"http:\/\/denasu.com\/blog\/?p=4149"},"modified":"2019-05-07T23:49:01","modified_gmt":"2019-05-07T14:49:01","slug":"appium%e3%81%ab%e3%82%88%e3%82%8bxamarin-forms%e3%81%ae%e8%87%aa%e5%8b%95%e3%83%86%e3%82%b9%e3%83%88","status":"publish","type":"post","link":"https:\/\/denasu.com\/blog\/2019\/02\/diary4149","title":{"rendered":"Appium\u3067Xamarin.Forms\u306eUI\u81ea\u52d5\u30c6\u30b9\u30c8"},"content":{"rendered":"<p>\u3061\u3087\u3063\u3068\u524d\u304b\u3089<a href=\"https:\/\/denasu.com\/software\/weathertyping.html\">Weather Typing<\/a>\u306eWindows\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248\u4ee5\u5916\u306e\u66f4\u65b0\u3092\u3084\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u30c6\u30b9\u30c8\u304c2300\u4ef6\u304f\u3089\u3044\u3042\u3063\u3066\u3001\u3055\u3059\u304c\u306b\u30c6\u30b9\u30c8\u304c\u5927\u5909\u3002\u3066\u3053\u3068\u3067UI\u30c6\u30b9\u30c8\u306e\u81ea\u52d5\u5316\u3092\u672c\u683c\u7684\u306b\u8abf\u67fb\u30021\u9031\u9593\u304f\u3089\u3044\u304b\u304b\u3063\u3066\u3088\u3046\u3084\u304f\u898b\u3048\u3066\u304d\u305f\u306e\u3067\u30e1\u30e2\u3002\u3061\u306a\u307f\u306bAndroid\/UWP\/WPF\u306f\u5b9f\u9a13\u6210\u529f\u3057\u3066\u3001Mac\/iOS\u306f\u307e\u3060\u8a66\u305b\u3066\u3044\u306a\u3044\u3002<\/p>\n<p>UI\u30c6\u30b9\u30c8\u306f\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u304c\u3042\u308b\u3068\u601d\u3046\u3051\u3069\u3001\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5bfe\u5fdc\u3060\u3068<a href=\"http:\/\/appium.io\/\">Appium<\/a>\u304c\u3088\u3055\u305d\u3046\u3002Appium\u306f\u3001Web\u306eUI\u30c6\u30b9\u30c8\u81ea\u52d5\u5316<a href=\"https:\/\/docs.seleniumhq.org\/\">Selenium<\/a>\u3068\u540c\u69d8\u306e\u65b9\u6cd5\u3067\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u306e\u30c6\u30b9\u30c8\u3092\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002\u30b5\u30fc\u30d0\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u3001\u30b5\u30fc\u30d0\u306bJSON\u5f62\u5f0f\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6295\u3052\u3066\u3001\u30b5\u30fc\u30d0\u304b\u3089\u30a2\u30d7\u30ea\u306eUI\u306b\u5411\u304b\u3063\u3066\u30ad\u30fc\u30dc\u30fc\u30c9\u3084\u30de\u30a6\u30b9\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u6295\u3052\u3066\u304f\u308c\u308b\u3002Appium\u306e\u30b5\u30fc\u30d0\u3060\u3068Android\u3068iOS\u304c\u30c6\u30b9\u30c8\u3067\u304d\u308b\u304c\u3001<a href=\"https:\/\/github.com\/Microsoft\/WinAppDriver\">Windows Application Driver<\/a>\u3092\u4f7f\u3048\u3070Windows\u306eWPF\u3084UWP\u3082\u30c6\u30b9\u30c8\u304c\u3067\u304d\u308b\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3064\u3044\u3066\u306f\u3001Python\u306a\u3069\u3067\u3084\u308b\u306e\u304c\u666e\u901a\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3001<a href=\"https:\/\/www.nuget.org\/packages\/Appium.WebDriver\/\">Appium.WebDriver<\/a>\u3092\u4f7f\u3048\u3070\u3067C#\u3067\u958b\u767a\u304c\u53ef\u80fd\u3002<\/p>\n<p>\u307e\u3068\u3081\u308b\u3068\u3001C#\u3067UI\u3092\u30c6\u30b9\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3001Appium\u306e\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3059\u308c\u3070Android\/iOS\u306eUI\u30c6\u30b9\u30c8\u3001Windows Application Driver\u3092\u8d77\u52d5\u3059\u308c\u3070WPF\/UWP\u306e\u30c6\u30b9\u30c8\u304c\u53ef\u80fd\u3068\u3044\u3046\u3053\u3068\u3002\u3055\u3089\u306b\u4e00\u5de5\u592b\u3044\u308b\u304c\u3001Xamarin.Forms\u306e\u30a2\u30d7\u30ea\u3082\u30c6\u30b9\u30c8\u53ef\u80fd\u3067\u3042\u308b\u3002<\/p>\n<dl>\n<dt>Appium\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/dt>\n<dd>\n\u3053\u3053\u306f\u666e\u901a\u306bAppium\u3068Appium-doctor\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002Python\u3068\u304bnode\u3068\u304b\u305d\u306e\u3042\u305f\u308a\u3002Appium-doctor\u3092\u901a\u3059\u305f\u3081\u306b\u3044\u308d\u3044\u308d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3060\u3044\u305f\u3044\u306f\u306a\u3093\u3068\u304b\u306a\u308b\u306f\u305a\u3060\u304c\u3001Windows\u3067\u300cbundletool.jar cannot be found\u300d\u306b\u306a\u308b\u306e\u3067\u74b0\u5883\u5909\u6570\u300cPATHEXT\u300d\u306b\u300c.JAR\u300d\u3092\u8ffd\u52a0\u3059\u308b\u3002\u3053\u308c1\u65e5\u306f\u307e\u3063\u305f\u3051\u3069appium-doctor\u306e\u30bd\u30fc\u30b9\u307e\u3067\u898b\u3066\u3088\u3046\u3084\u304f\u5206\u304b\u3063\u305f\u3002<\/dd>\n<dt>Windows Application Driver\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/dt>\n<dd>\u666e\u901a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u7279\u306b\u56f0\u308b\u3053\u3068\u306f\u306a\u3044<\/dd>\n<dt>Appium.WebDriver\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/dt>\n<dd>\u3068\u308a\u3042\u3048\u305aVisual Studio\u3067UnitTest\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001NuGet\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002UnitTest\u306a\u306e\uff1f\u3000\u3063\u3066\u601d\u3046\u3051\u3069\u30fb\u30fb\u30fb\u5225\u306b\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u3067\u3082\u3044\u3044\u306e\u3060\u304c\u3001\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u7ba1\u7406\u3068\u304b\u3067UnitTest\u304c\u3044\u3044\u304b\u306a\u3001\u3063\u3066\u304f\u3089\u3044<\/dd>\n<dt>UI\u90e8\u54c1\u306bID\u3092\u632f\u308b<\/dt>\n<dd>\u30c6\u30b9\u30c8\u306e\u6642\u306bUI\u90e8\u54c1\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u3001\u305d\u308c\u305e\u308cID\u3092\u632f\u308b\u3002Appium\u3067\u306f\u3044\u304f\u3064\u304b<a href=\"http:\/\/appium.io\/docs\/en\/commands\/element\/find-elements\/\">\u7279\u5b9a\u306e\u4ed5\u65b9\u304c\u3042\u308b<\/a>\u304c\u3001\u3053\u308c\u5b9f\u8ceaAccessibility ID\u3057\u304b\u4f7f\u3048\u306a\u3044\u3088\u306d\u3002\u3066\u3053\u3068\u3067Xamarin\u306eXAML\u3067\u3001Button\u3068\u304b\u306bAutomationId=&#8221;hoge&#8221;\u3092\u5165\u308c\u308b\u3002\u3060\u3051\u3067\u3088\u3051\u308c\u3070\u8a71\u306f\u7c21\u5358\u306a\u3093\u3060\u3051\u3069\u3001Android\u3001UWP\u306f\u3046\u307e\u304f\u3044\u3063\u305f\u304cWPF\u306f\u30c0\u30e1\u3060\u3063\u305f\u3002Xamarin\u306e\u30bd\u30fc\u30b9\u3092\u898b\u308b\u9650\u308aWPF\u3067\u306fViewRenderer\u3067SetAutomationId\u3092\u3084\u3063\u3066\u3044\u306a\u3044\u307f\u305f\u3044\u3002\u306a\u306e\u3067\u3001Effect\u3092\u4f7f\u3063\u3066\u7279\u5b9a\u306e\u5c5e\u6027\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5411\u3051\u306bAccessibility ID\u306b\u5bfe\u5fdc\u3059\u308b\u5c5e\u6027\u3092\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3002\u3053\u308c\u3082Effect\u306a\u306e\uff1f\u3000\u3063\u3066\u611f\u3058\u3060\u3051\u3069\u3001\u3053\u308c\u4ee5\u5916\u306b\u3046\u307e\u3044\u65b9\u6cd5\u306f\u601d\u3044\u6d6e\u304b\u3070\u306a\u3044\u3002<\/p>\n<p>\u307e\u305a\u306fEffect\u306e\u5c5e\u6027\u3002\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5171\u901a\u3002<\/p>\n<pre class=\"brush:csharp\">    public static class TestEffect\n    {\n        public static readonly BindableProperty NameProperty =\n          BindableProperty.CreateAttached(\"Name\", typeof(string), typeof(TestEffect), \"\", propertyChanged: OnNameChanged);\n\n        public static string GetName(BindableObject view)\n        {\n            return (string)view.GetValue(NameProperty);\n        }\n\n        public static void SetName(BindableObject view, string value)\n        {\n            view.SetValue(NameProperty, value);\n        }\n\n        private static void OnNameChanged(BindableObject bindable, object oldValue, object newValue)\n        {\n            var view = bindable as View;\n            if (view == null)\n            {\n                return;\n            }\n\n            var name = (string)newValue;\n            view.Effects.Add(new UITestEffect());\n        }\n    }\n\n    class UITestEffect : RoutingEffect\n    {\n        public UITestEffect() : base(\"com.denasu.UITestEffect\")\n        {\n        }\n    }\n<\/pre>\n<p>\u6b21\u306b\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u7528\u306eEffect\u3002<\/p>\n<pre class=\"brush:csharp\">[assembly: ResolutionGroupName(\"company name\")]\n[assembly: ExportEffect(typeof(App1.WPF.UITestEffect), \"UITestEffect\")]\n\nnamespace App1.WPF\n{\n    public class UITestEffect : PlatformEffect\n    {\n        protected override void OnAttached()\n        {\n            var name = TestEffect.GetName(Element);\n            Control.SetValue(System.Windows.FrameworkElement.NameProperty, name);\n        }\n\n        protected override void OnDetached()\n        {\n            Control.SetValue(System.Windows.FrameworkElement.NameProperty, \"\");\n        }\n    }\n}\n<\/pre>\n<pre class=\"brush:csharp\">[assembly: ResolutionGroupName(\"company name\")]\n[assembly: ExportEffect(typeof(App1.UWP.UITestEffect), \"UITestEffect\")]\n\nnamespace App1.UWP\n{\n    public class UITestEffect : PlatformEffect\n    {\n        protected override void OnAttached()\n        {\n            var name = TestEffect.GetName(Element);\n            Control.SetValue(Windows.UI.Xaml.Automation.AutomationProperties.AutomationIdProperty, name);\n        }\n\n        protected override void OnDetached()\n        {\n            Control.SetValue(Windows.UI.Xaml.Automation.AutomationProperties.AutomationIdProperty, \"\");\n        }\n    }\n}\n<\/pre>\n<pre class=\"brush:csharp\">[assembly: ResolutionGroupName(\"company name\")]\n[assembly: ExportEffect(typeof(App1.Droid.UITestEffect), \"UITestEffect\")]\n\nnamespace App1.Droid\n{\n    public class UITestEffect : PlatformEffect\n    {\n        protected override void OnAttached()\n        {\n            var name = TestEffect.GetName(Element);\n            Control.ContentDescription = name;\n        }\n\n        protected override void OnDetached()\n        {\n            Control.ContentDescription = \"\";\n        }\n    }\n}\n<\/pre>\n<p>XAML\u3067\u306fEffect\u3092\u4ed8\u3051\u308b\u3002<\/p>\n<pre class=\"brush:xml\">        &lt;Entry local:TestEffect.Name=\"Text1\" Text=\"{Binding TextA}\" WidthRequest=\"100\" \/&gt;\n        &lt;Entry local:TestEffect.Name=\"Text2\" Text=\"{Binding TextB}\" WidthRequest=\"100\"\/&gt;\n        &lt;Label local:TestEffect.Name=\"Result\" Text=\"{Binding TextC}\" WidthRequest=\"100\"\/&gt;\n        &lt;Button local:TestEffect.Name=\"Execute\" Text=\"Button\" Clicked=\"Button_Click\" WidthRequest=\"100\"\/&gt;\n<\/pre>\n<\/dd>\n<\/dl>\n<dt>\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u4f5c\u6210<\/dt>\n<p>C#\u3067\u306f\u3053\u3093\u306a\u611f\u3058\u3002\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u3001\u5171\u901a\u306e\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3002<\/p>\n<pre class=\"brush:csharp\">[TestClass]\npublic class UnitTest\n{\n    [TestMethod]\n    public void TestMethod1()\n    {\n        var session = CreateSessionUWP();\n\n        session.FindElementByAccessibilityId(\"Text1\").Click();\n        session.Keyboard.PressKey(\"111\");\n        session.FindElementByAccessibilityId(\"Text2\").Click();\n        session.Keyboard.PressKey(\"222\");\n        session.FindElementByAccessibilityId(\"Execute\").Click();\n        Assert.AreEqual(session.FindElementByAccessibilityId(\"Result\").Text , \"111222\");\n    }\n\n    private WindowsDriver&lt;WindowsElement&gt; CreateSessionUWP()\n    {\n        DesiredCapabilities appCapabilities = new DesiredCapabilities();\n        appCapabilities.SetCapability(\"app\", \"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXXXXXXXXXXXXXXX!App\");\n        return new WindowsDriver&lt;WindowsElement&gt;(new Uri(\"http:\/\/127.0.0.1:4723\"), appCapabilities);\n    }\n\n    private WindowsDriver&lt;WindowsElement&gt; CreateSessionWPF()\n    {\n        DesiredCapabilities appCapabilities = new DesiredCapabilities();\n        appCapabilities.SetCapability(\"app\", @\"c:\\xxx\\App1.WPF.exe\");\n        return new WindowsDriver&lt;WindowsElement&gt;(new Uri(\"http:\/\/127.0.0.1:4723\"), appCapabilities);\n    }\n\n    private AndroidDriver&lt;AndroidElement&gt; CreateSessionAndroid()\n    {\n        DesiredCapabilities appCapabilities = new DesiredCapabilities();\n        appCapabilities.SetCapability(MobileCapabilityType.DeviceName, \"emulator-5554\");\n        appCapabilities.SetCapability(MobileCapabilityType.PlatformVersion, \"8.1\");\n        appCapabilities.SetCapability(AndroidMobileCapabilityType.AppPackage, \"com.companyname.App1\");\n        appCapabilities.SetCapability(MobileCapabilityType.PlatformName, \"Android\");\n        appCapabilities.SetCapability(AndroidMobileCapabilityType.AppActivity, \"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.MainActivity\");\n        return new AndroidDriver&lt;AndroidElement&gt;(new Uri(\"http:\/\/127.0.0.1:4723\/wd\/hub\"), appCapabilities);\n    }\n<\/pre>\n<p>\u5b9f\u884c\u306f\u3053\u3093\u306a\u611f\u3058\u3002\u9759\u6b62\u753b\u3058\u3083\u5206\u304b\u3089\u306a\u3044\u3051\u3069\u3001\u52dd\u624b\u306b\u6587\u5b57\u304c\u5165\u529b\u3055\u308c\u3066\u30dc\u30bf\u30f3\u304c\u62bc\u3055\u308c\u308b\u3002<\/p>\n<p><a href=\"http:\/\/denasu.com\/blog\/wp-content\/uploads\/2019\/02\/diary2019022302.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/denasu.com\/blog\/wp-content\/uploads\/2019\/02\/diary2019022302.png\" alt=\"\" width=\"375\" height=\"291\" class=\"alignnone size-full wp-image-4151\"><\/a><\/p>\n<p>\u3066\u3053\u3068\u3067\u3001\u5358\u7d14\u306aUI\u306e\u30c6\u30b9\u30c8\u306f\u3053\u308c\u3067\u81ea\u52d5\u5316\u3067\u304d\u308b\u304b\u306a\u3002\u307e\u3042\u3001UI\u304c\u5d29\u308c\u308b\u3068\u304b\u3001\u306a\u3093\u304b\u5909\u3001\u3063\u3066\u3044\u3046\u30d0\u30b0\u306e\u65b9\u304c\u591a\u3044\u3093\u3060\u3051\u3069\u3001\u753b\u9762\u9077\u79fb\u3068\u304b\u306f\u3053\u308c\u3067\u81ea\u52d5\u5316\u3057\u3066\u3001\u4eba\u304c\u898b\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u3088\u3046\u306a\u30c6\u30b9\u30c8\u306b\u30ea\u30bd\u30fc\u30b9\u3092\u96c6\u4e2d\u3067\u304d\u308c\u3070\u6210\u529f\u304b\u306a\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u307e\u3060\u8a66\u3057\u3066\u306a\u3044\u3051\u3069\u554f\u984c\u6587\u7ae0\u3082\u81ea\u52d5\u3067\u6253\u3066\u308b\u306e\u3060\u308d\u3046\u304b\u3002\u305d\u3046\u3059\u308b\u3068\u4e0d\u6b63\u30c4\u30fc\u30eb\u3092\u4f5c\u308c\u3066\u3057\u307e\u3046\u304b\u3082\u3002\u3068\u308a\u3042\u3048\u305a\u6253\u3061\u8fbc\u307f\u901f\u5ea6\u304c\u9045\u3044\u304b\u3089\u3088\u3055\u305d\u3046\u3060\u3051\u3069\u3001\u8a2d\u5b9a\u304c\u3067\u304d\u305f\u308a\u3059\u308b\u3068\u5384\u4ecb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3061\u3087\u3063\u3068\u524d\u304b\u3089Weather Typing\u306eWindows\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u7248\u4ee5\u5916\u306e\u66f4\u65b0\u3092\u3084\u3063\u3066\u3044\u308b\u306e\u3060\u304c\u3001\u30c6\u30b9\u30c8\u304c2300\u4ef6\u304f\u3089\u3044\u3042\u3063\u3066\u3001\u3055\u3059\u304c\u306b\u30c6\u30b9\u30c8\u304c\u5927\u5909\u3002\u3066\u3053\u3068\u3067UI\u30c6\u30b9\u30c8\u306e\u81ea\u52d5\u5316\u3092\u672c\u683c\u7684\u306b\u8abf\u67fb\u30021\u9031\u9593\u304f\u3089\u3044\u304b\u304b\u3063\u3066\u3088\u3046\u3084\u304f\u898b\u3048\u3066\u304d\u305f\u306e\u3067\u30e1\u30e2\u3002\u3061\u306a\u307f\u306bAndroid\/UWP\/WPF\u306f\u5b9f\u9a13\u6210\u529f\u3057\u3066\u3001Mac\/iOS\u306f\u307e\u3060\u8a66\u305b\u3066\u3044\u306a\u3044\u3002 UI\u30c6\u30b9\u30c8\u306f\u3044\u308d\u3044\u308d\u306a\u65b9\u6cd5\u304c\u3042\u308b\u3068\u601d\u3046\u3051\u3069\u3001\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5bfe\u5fdc\u3060\u3068Appium\u304c\u3088\u3055\u305d\u3046\u3002Appium\u306f\u3001Web\u306eUI\u30c6\u30b9\u30c8\u81ea\u52d5\u5316Selenium\u3068\u540c\u69d8\u306e\u65b9\u6cd5\u3067\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u306e\u30c6\u30b9\u30c8\u3092\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3002\u30b5\u30fc\u30d0\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u3001\u30b5\u30fc\u30d0\u306bJSON\u5f62\u5f0f\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6295\u3052\u3066\u3001\u30b5\u30fc\u30d0\u304b\u3089\u30a2\u30d7\u30ea\u306eUI\u306b\u5411\u304b\u3063\u3066\u30ad\u30fc\u30dc\u30fc\u30c9\u3084\u30de\u30a6\u30b9\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u6295\u3052\u3066\u304f\u308c\u308b\u3002Appium\u306e\u30b5\u30fc\u30d0\u3060\u3068Android\u3068iOS\u304c\u30c6\u30b9\u30c8\u3067\u304d\u308b\u304c\u3001Windows Application Driver\u3092\u4f7f\u3048\u3070Windows\u306eWPF\u3084UWP\u3082\u30c6\u30b9\u30c8\u304c\u3067\u304d\u308b\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u3064\u3044\u3066\u306f\u3001Python\u306a\u3069\u3067\u3084\u308b\u306e\u304c\u666e\u901a\u304b\u3082\u3057\u308c\u306a\u3044\u3051\u3069\u3001Appium.WebDriver\u3092\u4f7f\u3048\u3070\u3067C#\u3067\u958b\u767a\u304c\u53ef\u80fd\u3002 \u307e\u3068\u3081\u308b\u3068\u3001C#\u3067UI\u3092\u30c6\u30b9\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3001Appium\u306e\u30b5\u30fc\u30d0\u3092\u8d77\u52d5\u3059\u308c\u3070Android\/iOS\u306eUI\u30c6\u30b9\u30c8\u3001Windows Application Driver\u3092\u8d77\u52d5\u3059\u308c\u3070WPF\/UWP\u306e\u30c6\u30b9\u30c8\u304c\u53ef\u80fd\u3068\u3044\u3046\u3053\u3068\u3002\u3055\u3089\u306b\u4e00\u5de5\u592b\u3044\u308b\u304c\u3001Xamarin.Forms\u306e\u30a2\u30d7\u30ea\u3082\u30c6\u30b9\u30c8\u53ef\u80fd\u3067\u3042\u308b\u3002 Appium\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u3053\u3053\u306f\u666e\u901a\u306bAppium\u3068Appium-doctor\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002Python\u3068\u304bnode\u3068\u304b\u305d\u306e\u3042\u305f\u308a\u3002Appium-doctor\u3092\u901a\u3059\u305f\u3081\u306b\u3044\u308d\u3044\u308d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u3060\u3044\u305f\u3044\u306f\u306a\u3093\u3068\u304b\u306a\u308b\u306f\u305a\u3060\u304c\u3001Windows\u3067\u300cbundletool.jar cannot be found\u300d\u306b\u306a\u308b\u306e\u3067\u74b0\u5883\u5909\u6570\u300cPATHEXT\u300d\u306b\u300c.JAR\u300d\u3092\u8ffd\u52a0\u3059\u308b\u3002\u3053\u308c1\u65e5\u306f\u307e\u3063\u305f\u3051\u3069appium-doctor\u306e\u30bd\u30fc\u30b9\u307e\u3067\u898b\u3066\u3088\u3046\u3084\u304f\u5206\u304b\u3063\u305f\u3002 Windows Application Driver\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u666e\u901a\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u7279\u306b\u56f0\u308b\u3053\u3068\u306f\u306a\u3044 Appium.WebDriver\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u3068\u308a\u3042\u3048\u305aVisual Studio\u3067UnitTest\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308a\u3001NuGet\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002UnitTest\u306a\u306e\uff1f\u3000\u3063\u3066\u601d\u3046\u3051\u3069\u30fb\u30fb\u30fb\u5225\u306b\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u3067\u3082\u3044\u3044\u306e\u3060\u304c\u3001\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u7ba1\u7406\u3068\u304b\u3067UnitTest\u304c\u3044\u3044\u304b\u306a\u3001\u3063\u3066\u304f\u3089\u3044 UI\u90e8\u54c1\u306bID\u3092\u632f\u308b \u30c6\u30b9\u30c8\u306e\u6642\u306bUI\u90e8\u54c1\u3092\u7279\u5b9a\u3059\u308b\u305f\u3081\u3001\u305d\u308c\u305e\u308cID\u3092\u632f\u308b\u3002Appium\u3067\u306f\u3044\u304f\u3064\u304b\u7279\u5b9a\u306e\u4ed5\u65b9\u304c\u3042\u308b\u304c\u3001\u3053\u308c\u5b9f\u8ceaAccessibility ID\u3057\u304b\u4f7f\u3048\u306a\u3044\u3088\u306d\u3002\u3066\u3053\u3068\u3067Xamarin\u306eXAML\u3067\u3001Button\u3068\u304b\u306bAutomationId=&#8221;hoge&#8221;\u3092\u5165\u308c\u308b\u3002\u3060\u3051\u3067\u3088\u3051\u308c\u3070\u8a71\u306f\u7c21\u5358\u306a\u3093\u3060\u3051\u3069\u3001Android\u3001UWP\u306f\u3046\u307e\u304f\u3044\u3063\u305f\u304cWPF\u306f\u30c0\u30e1\u3060\u3063\u305f\u3002Xamarin\u306e\u30bd\u30fc\u30b9\u3092\u898b\u308b\u9650\u308aWPF\u3067\u306fViewRenderer\u3067SetAutomationId\u3092\u3084\u3063\u3066\u3044\u306a\u3044\u307f\u305f\u3044\u3002\u306a\u306e\u3067\u3001Effect\u3092\u4f7f\u3063\u3066\u7279\u5b9a\u306e\u5c5e\u6027\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u3001\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5411\u3051\u306bAccessibility ID\u306b\u5bfe\u5fdc\u3059\u308b\u5c5e\u6027\u3092\u8a2d\u5b9a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3002\u3053\u308c\u3082Effect\u306a\u306e\uff1f\u3000\u3063\u3066\u611f\u3058\u3060\u3051\u3069\u3001\u3053\u308c\u4ee5\u5916\u306b\u3046\u307e\u3044\u65b9\u6cd5\u306f\u601d\u3044\u6d6e\u304b\u3070\u306a\u3044\u3002 \u307e\u305a\u306fEffect\u306e\u5c5e\u6027\u3002\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u5171\u901a\u3002 public static class TestEffect { public static readonly BindableProperty NameProperty = BindableProperty.CreateAttached(&#8220;Name&#8221;, typeof(string), typeof(TestEffect), &#8220;&#8221;, propertyChanged: OnNameChanged); public static string GetName(BindableObject view) { return (string)view.GetValue(NameProperty); } public static void SetName(BindableObject [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,3],"tags":[52,8,48],"class_list":["post-4149","post","type-post","status-publish","format-standard","hentry","category-programming","category-computer","tag-appium","tag-weathertyping","tag-xamarin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ZThs-14V","_links":{"self":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/4149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/comments?post=4149"}],"version-history":[{"count":16,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/4149\/revisions"}],"predecessor-version":[{"id":4234,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/4149\/revisions\/4234"}],"wp:attachment":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/media?parent=4149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/categories?post=4149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/tags?post=4149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}