{"action":"created","issue":{"url":"https://api.github.com/repos/arnonax/TestEssentials/issues/2","repository_url":"https://api.github.com/repos/arnonax/TestEssentials","labels_url":"https://api.github.com/repos/arnonax/TestEssentials/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/arnonax/TestEssentials/issues/2/comments","events_url":"https://api.github.com/repos/arnonax/TestEssentials/issues/2/events","html_url":"https://github.com/arnonax/TestEssentials/issues/2","id":149279446,"number":2,"title":"How can I even get started with say calc.exe using CodedUI","user":{"login":"ianceicys","id":3976990,"avatar_url":"https://avatars.githubusercontent.com/u/3976990?v=3","gravatar_id":"","url":"https://api.github.com/users/ianceicys","html_url":"https://github.com/ianceicys","followers_url":"https://api.github.com/users/ianceicys/followers","following_url":"https://api.github.com/users/ianceicys/following{/other_user}","gists_url":"https://api.github.com/users/ianceicys/gists{/gist_id}","starred_url":"https://api.github.com/users/ianceicys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianceicys/subscriptions","organizations_url":"https://api.github.com/users/ianceicys/orgs","repos_url":"https://api.github.com/users/ianceicys/repos","events_url":"https://api.github.com/users/ianceicys/events{/privacy}","received_events_url":"https://api.github.com/users/ianceicys/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-18T21:37:01Z","updated_at":"2016-04-21T14:46:34Z","closed_at":null,"body":"I've downloaded the projects and I already have a basic codedui project using a UIMap that launches the windows calculator. I can't seem to figure out how to begin to use your framework and extensions. Could you post a sample for CodedUI?"},"comment":{"url":"https://api.github.com/repos/arnonax/TestEssentials/issues/comments/212954442","html_url":"https://github.com/arnonax/TestEssentials/issues/2#issuecomment-212954442","issue_url":"https://api.github.com/repos/arnonax/TestEssentials/issues/2","id":212954442,"user":{"login":"arnonax","id":9963202,"avatar_url":"https://avatars.githubusercontent.com/u/9963202?v=3","gravatar_id":"","url":"https://api.github.com/users/arnonax","html_url":"https://github.com/arnonax","followers_url":"https://api.github.com/users/arnonax/followers","following_url":"https://api.github.com/users/arnonax/following{/other_user}","gists_url":"https://api.github.com/users/arnonax/gists{/gist_id}","starred_url":"https://api.github.com/users/arnonax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnonax/subscriptions","organizations_url":"https://api.github.com/users/arnonax/orgs","repos_url":"https://api.github.com/users/arnonax/repos","events_url":"https://api.github.com/users/arnonax/events{/privacy}","received_events_url":"https://api.github.com/users/arnonax/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T14:46:34Z","updated_at":"2016-04-21T14:46:34Z","body":"Thanks a lot for helping me improve the project by adding samples! I appreciate it a lot!\r\n\r\nUnfortunately I have a problem opening Coded UI projects on my laptop right now :-(\r\nAnyway I took a glimpse at your code and I have few comments:\r\n1. In the test method, instead of:\r\n`Mouse.Click(calcApp.Find<WinButton>(By.Name(\"1\")));`\r\nYou can write:\r\n`calcApp.Find<WinButton>(By.Name(\"1\")).Click();`\r\n2. When using Assert.AreEqual, the first argument is the expected result and the second is the actual. This comes into affect when the assertion fails and the message that is written tells what was expected and what was the actual. If you switch them the error message can be very confusing!\r\n3. I don't think that you should depend on an environment variable to know where Calc.exe is. First, it's normally in the PATH so if you just use \"calc.exe\" it should be found. If you want to be more precise you can use Path.Combine(Environment.SystemDirectory, \"calc.exe\")\r\n\r\nThanks again,\r\nArnon."}}