Geeks With Blogs

News Please visit me at my new blog!!

profile for Aligned at Stack Overflow, Q&A for professional and enthusiast programmers
"free in Christ Jesus from the law of sin and death." Romans 8:2 (ESV) Check out the Falling Plates video on YouTube.
more about the Gospel
And then listen to Francis Chan speaking at LifeLight in SD.



Programming and Learning from SD UI Automated Testing Testing your UI using automation technologies, such as CodedUI Tests and Selenium.
Using Visual Studio Online's new build system to achieve a Continuous Delivery pipeline Presentation
Please visit me and read this article at AlignedDev.I had the honor and pleasure of giving my first presentation at an event at South Dakota Code Camp last weekend on November 7th. Thanks to the organizers and sponsors, I’m looking forward to next year already. I talked about the importance of Continuous Delivery in today’s development practices and how it helps us get quality code to our users quicker and more reliably using automated processes. Microsoft’s build system has improved immensely in ......

Posted On Tuesday, November 10, 2015 4:10 PM

Cleanup your TestResults folder with a Scheduled Task
I run automated UI test with Selenium (unit testing will do this as well, though not as many files) from the Visual Studio Test Explorer a lot. This creates a new folder inside of my solution location named TestResults for every test run. Depending on what I need to deploy for the test (Selenium chrome driver, images, dlls, etc) the size of that it takes up on my hard drive gets very large after a few weeks. I’ve deleted gigs before. In the spirit of “if you do something more than once, automate ......

Posted On Tuesday, January 13, 2015 5:04 PM

Selenium and timing issues
Our project uses KnockoutJS to data-bind data to our html elements (the same would be true for AngularJS binding). We’ve recently moved from testing against localhost to running our Selenium tests against an Azure hosted version of the same site. We’ve been noticing tests fail because of timing issues and the increased latency that weren’t there with the localhost tests. Discovered Approaches Use the driver.GetAndWaitForElement(By selector) method. This will help you make sure the DOM element is ......

Posted On Thursday, October 16, 2014 2:42 PM

Firefox 23+ hangs with Selenium 2.37.0
Recently my automated tests started hanging in Firefox. The browser becomes unresponsive. I found an existing issue that states the same problem. My solution for now is to revert to Firefox 22 (download here) (at the time of this writing v25 is out, so I’ll be out of date). I just have to remember not to click the help –> about. UPDATE: 12/5/2013 I found that it was hanging on new Actions(Browser.driver).Cli... I changed it to new Actions(Browser.driver).Mov... ......

Posted On Wednesday, November 27, 2013 11:43 AM

Selenium – Use Data Driven tests to run in multiple browsers and sizes
Selenium uses WebDriver (or is it the same? I’m still learning how it is connected) to run Automated UI tests in many different browsers. For example, you can run the same test in Chrome and Firefox and in a smaller sized Chrome browser. The permutations can grow quickly. One way to get them to run in MStest is to create a test method for each test (ie ChromeDeleteItem_Small, ChromeDeleteItem_Large, FFDeleteItem_Small, FFDeleteItem_Large) that each call the same base method, passing in the browser ......

Posted On Monday, November 4, 2013 12:02 PM

Skip CodedUI Tests, use Selenium for Web Automation
I recently joined a team that was using Agile Methodologies to create a new product. They have a working beta product after 10 or so 2 week sprints and already had UI’s that had changed several times as they went through iterations of their UI. As a result, the QA team was falling behind with automated tests and I was tasked to help them catch up and expand their tests. The project is a website. I heard many complaints about how hard it is to work with CodedUI (writing our own code, not relying on ......

Posted On Thursday, October 31, 2013 1:56 PM

Checking the Status of a Cloud Service with Azure Management API
We are automatically deploying a package to Azure, then running tests against that instance. See Brady Gaster’s article for more details. I needed a way to make sure the deployment was complete, and if not wait for it. After digging through the objects with Intellisense, we found this solution:public bool IsCloudServiceRunning() { var details = _computeManagementClient.Ho... var deployment = details.Deployments.First(d => d.Name == _parameters.CloudServiceName ......

Posted On Thursday, September 18, 2014 12:37 PM

Use Selenium to Find Elements By Knockout’s Data-bind
I created a quick C# extension method for Selenium to find an element by its data-bind attribute. I wanted to find an element by the binding instead of having to add a class or id to the element. If you have a Knockout Model function MyViewModel() { “use strict”; this.name = ko.observable(); } In the html the element may look like this <input id="nameInput" data-bind="text: name" /> <div id="infoContainer"> <span data-bind=”text: name” /> </div> With the extension method I ......

Posted On Wednesday, July 9, 2014 11:14 AM

Thinking about Productive Work as a Software Developer
Since I started my career as a Software Developer about 7 years ago, I’ve realized that perception of what a valuable use of my time while at work has changed. Scott Hanselman blogged his productivity tips which got me thinking about this more. Meetings I have many times grumbled when a new meeting pops up in Outlook. I have been a part of a lot of time wasting meetings, but there are several that are very useful. Daily stand ups or Scrums are essential to keep everyone on the same page. Retrospectives ......

Posted On Thursday, April 3, 2014 11:57 AM

Working with IFrame elements and Selenium 2+ in C#
I added a lengthy answer to the StackOverflow question on switching focus to an iFrame when using Selenium to automate a UI for testing and thought it deserved a blog post. First you need to select the iFrame and switch the driver context to it. The iFrame I’m working against doesn’t have an id, and there will only be one on this particular page. This is an example of using it straight out of the box. I have access to the driver through a static property. I set this when I first told Selenium what ......

Posted On Wednesday, April 2, 2014 11:03 AM

Copyright © Aligned | Powered by: GeeksWithBlogs.net