• Testing & ALM

    30 Days of TDD – Day 28 – Reader Question #4

    December 09, 2013 Share
    Robert Pack asks I noticed from the first installment of the series that you say you write classes and methods so that they only just pass tests and no more, cutting down on dead code and zombie bugs. Where does this fit into some peoples’ rules for methods having a maximum number of lines etc? Do you think that’s a completely unrealistic limit to place on methods and that they will be as long as they have to be or do you subscribe to keeping methods below a certain size? I’m interested to hear your thoughts on this.

  • .NET Testing & ALM

    Dynamic Frames? No Problem.

    December 09, 2013 Share
    Many sites and web applications are using iframe elements tocreate tabs or sections on the page which the user can enable/disable/move at will. These often are being created in such a way that putting an ID on each frame is difficult or not feasible. As each frame is created or destroyed, of course, the index of a given frame within the frames collection changes. These factors combine, making it very difficult for an automation framework to reliably locate elements within the frames. Beginning with the R2 release, Test Studio 2013 introduces Custom Tags for Frames, a way to ...
  • Testing & ALM

    30 Days of TDD – Day 27 – Reader Question #3

    December 06, 2013 Share
    Adam Hall asks Just a quick question regarding TDD, encapsulation and DateTime.Now() I’ve often seen suggestions that you should control the behavior of DateTime.Now so that you can reliably test the way classes react to date times. Controlling DateTime is a solution, but it smells of violating encapsulation, you are affecting objects from outside of their boundaries (and indeed system wide) In your experience what is the best way to deal with Dates in TDD?

  • Testing & ALM

    30 Days of TDD – Day 26 – Reader Question #2

    December 04, 2013 Share
    In this post Emad Mokhtar asks: I want to know how to test my business logic which is basically related to database, I know dealing with database is integration test not unit test but this is what I want to take care of, weather my Employee entity inserted or not, did my validation work or not, what if I insert Employee and failed when in inserting his/her addresses, and can I connected to database.

  • Testing & ALM

    30 Days of TDD – Day 25 – Reader Question #1

    December 03, 2013 Share
    We asked our users to send in their TDD questions with the promise to answer the best five as blog posts. In this post the first user question for the 30 Days of TDD series is answered.