Stories recently tagged with 'Testing'

Some Myths of Textbook TDD and Why They Are Wrong(geekswithblogs.net)

submitted by dpetersondpeterson(4397) 6 months, 25 days ago

Thomas Weller brings up some interesting points regarding testing in the real world vs. what you're told TDD should be in your textbooks. A good read for anyone doing TDD, from beginner to expert. read more...

1 comment |category: |Views: 426

tags: another

Mocking Frameworks in .NET(www.softwaretestingmagazine.com)

submitted by martinigmartinig(568) 6 months, 25 days ago

There are several open source tools to apply mocking principles in .NET. Tools like Rhino Mocks and Moq allow us to create mocks and stubs within our test method. These tools have a learning curve, but this video presents techniques that can ease you into these frameworks and help you automated your unit testing process. read more...

2 comments |category: |Views: 506

tags: another

Selenium Webdriver - Wait for an element to load(deanhume.com)

submitted by deanomachinodeanomachino(764) 6 months, 28 days ago

I am currently working on a project that uses a lot of AJAX and delayed loading of HTML elements. This means that when a page loads, the object that I am looking for might not necessarily have appeared yet. In many instances the element may only be added to the DOM after an amount of time by the use of some JavaScript. read more...

1 comment |category: |Views: 30

tags: another

Mocking Property Expectations with Moq(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 7 months, 7 days ago

Moq provides similar capabilities when mocking properties of classes or interfaces as when mocking methods. Although the same verification and expectation set up methods can be used in some circumstances, there are additional options for properties. read more...

11 comments |category: |Views: 26

tags: another

Using the InternetExplorerDriver for WebDriver(www.tomdupont.net)

submitted by tduponttdupont(1259) 7 months, 9 days ago

Are you getting this error when trying to use the InternetExplorerDriver for WebDriver (Selenium 2.0)? "System.InvalidOperationException: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. (NoSuchDriver)" Don't worry, it's easier to fix than it sounds... read more...

add a comment |category: |Views: 32

tags: another

Book review: The Art of Unit Testing(jclaes.blogspot.com)

submitted by JefClaesJefClaes(650) 7 months, 20 days ago

I think The Art of Unit Testing targets a broad audience. Beginners will find every part of the book useful, where intermediates might be more interested in the final two parts. Roy Osherove starts this book by laying a solid foundation of the unit testing concept. Why is testing important? What defines a good unit test, and how does a unit test differ from an integration test? In the second part of the book, he demonstrates the use of two core unit testing techniques: stubs and mocks. After showing y... read more...

add a comment |category: |Views: 1

tags: another

Unit Testing using Unity and the moq frameork(blog.osgaga.com)

submitted by OSgAgAOSgAgA(15) 8 months, 2 days ago

I strongly believe that unit testing is one of the key technologies for creating reliable and robust applications. In this post I want to introduce you to two frameworks that can help you creating unit tests: Unity and moq. read more...

add a comment |category: |Views: 5

tags: another

Chutzpah - Javascript testing from Visual Studio and the command line(matthewmanela.com)

submitted by dpetersondpeterson(4397) 8 months, 14 days ago

Chutzpah is a test runner for javascript, now with Visual Studio integration. It's available from nuget, the visual studio gallery, and codeplex. read more...

add a comment |category: |Views: 26

tags: another

AutoMoq Introduction(www.dotnet-tv.com)

submitted by martinigmartinig(568) 8 months, 19 days ago

AutoMoq is an “auto-mocking” container that automatically creates for Moq any fake objects that are necessary to instantiate the class under test. read more...

add a comment |category: |Views: 15

tags: another

Using delayed asserts in NUnit(catchblock.com)

submitted by tparvitparvi(75) 9 months, 13 days ago

If you are testing asynchronous methods you might be interested in using delayed asserts. read more...

add a comment |category: |Views: 3

tags: another

PostSharp and JustMock side by side(weblogs.asp.net)

submitted by KodefuGuruKodefuGuru(2818) 9 months, 15 days ago

In this post I will show mocking a member call inside a PostSharp aspect. There were previously compatibility issues between both of the tools running side by side which is now been officially fixed with the most recent release of that tool (>= 2.1.2.8-1594). For those who don’t know what PostSharp is all about, it is a tool that lets you write aspects easily than you can imagine. Personally , it took me just minutes to get started with a aspect that will authorize ... read more...

add a comment |category: |Views: 6

tags: another

Visual Studio QuickWatch(www.blackwasp.co.uk)

submitted by rcashrcash(4149) 9 months, 22 days ago

The QuickWatch dialog box is one of the many debugging features available in Visual Studio. QuickWatch provides an immediate evaluation of a variable or expression only. The QuickWatch window tends to be most useful when you wish to quickly examine a variable's properties. This article compares the features of Watch vs QuickWatch. read more...

1 comment |category: |Views: 11

tags: another

Test-Driven Development Is Not Slower(trycatchfail.com)

submitted by Matt_TCFMatt_TCF(946) 10 months, 10 days ago

Hello, my name is Matt Honeycutt, and I am addicted to Test Driven Development. I’ve been “using” for about 5 years now. It started out with a little innocent unit testing and Test Later Development, but I quickly found that the increased productivity caused by TDD to be too alluring, and I succumbed. Now I’m using all the time. I use at work. I use at home. I just can’t stop. People don’t really understand the risks. There’s this myth that TDD is slower, that it makes you less productive, but that’s so not true. Read on, and I’ll help you understand why. read more...

add a comment |category: |Views: 5

tags: another

How to fix problems with Coded User Interface Tests(blog.stronico.com)

submitted by StronicoStronico(90) 10 months, 15 days ago

Here's how I fixed a problem with Coded User Interface Tests read more...

add a comment |category: |Views: 0

tags: another

Chutzpah – A JavaScript Test Runner Released(matthewmanela.com)

submitted by jemtsjemts(591) 11 months, 6 days ago

I just released to CodePlex and the Visual Studio Gallery a new project called Chutzpah. Chutzpah is an open source JavaScript unit test runner which helps you integrate JavaScript unit testing into your website. It enables you to run JavaScript unit tests from the command line and from inside of Visual Studio. It also supports running in the TeamCity continuous integration server. read more...

add a comment |category: |Views: 4

tags: another

Queuing Moq Return Values(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 11 months, 20 days ago

Some testing scenarios require that a dependency's methods are called repeatedly. When the dependency is mocked using the Moq framework, these calls can be configured with expectations to return different results each time. read more...

add a comment |category: |Views: 5

tags: another