testing

ASP.net MVC RTM Test naming conventions

I am working on an asp.net mvc application and writing my unit tests BDD style. Eg. GetResource_WhenResourceFileExists_ShouldReturnResources() But when I am writing tests for my controllers, I usually have two Methods with the same name. One without parameters for get requests and one with for posts. Does anybody have a good naming...

How to programatically test for audio sync

I have a multimedia application that among other things converts video using FFMpeg. Video conversion being the pain that it is, I have in my test suits some tests that check our ability to convert various video formats, with emphasis on sample videos known not to work. A common problem we've noticed from users is that some videos end u...

Testing Real Repositories

Hi, I've set up unit tests that test a fake repository and tests that make use of a fake repository. But what about testing the real repository that hits the database ? If this is left to integration tests then it would be seem that it isn't tested directly and problems could be missed. Am I missing something here? ...

iPhone Intermittent Network Testing

I've seen the "Testing iPhone app with limited network access" (link) question, and while it's a great tip, it's not very helpful in terms of testing the actual performance of a piece of code when used over EDGE. In my experience the network will randomly come in an out of connectedness. I'd like some way to simulate this. I'm thinking o...

How do I use VSTS Test Edition 2005 to automate webtests execution for different physical enviornments?

The following link in MSDN provides details about how to parameterize the web servers of a web test. http://msdn.microsoft.com/en-us/library/ms184806.aspx# If I have an in-house development environment and a production environment, I'd like to reuse the same webtests for both environments without having to re-run scripts. ...

Multithreaded stress tests fail

I am doing a stress test of a web service by running many threads of the same process, but the second thread always stops in the middle of running without throwing an exception. How do you figure out what’s wrong? ...

Unit testing private code

Hello all I am currently involved in developing with C# - Here is some background: We implement MVP with our client application and we have a cyclomatic rule which states that no method should have a cyclomatic complexity greater than 5. This leads to a lot of small private methods which are generally responsible for one thing. My ques...

phpunit constructor

class TestClass extends PHPUnit_Framework_TestCase { function testSomething() { $class = new Class(); $this->assertTrue($class->someFunc(1)); } function testSomethingAgain() { $class = new Class(); $this->assertFalse($class->someFunc(0)); } } Hi, do I really have to create $class for every test function I create? Or is ...

High quality alternatives to HP (Mercury) Quality Center?

I'm looking for a more developer friendly alternative to HP (Mercury) Quality Center. I'm interested to find out what other tools developers & testers are using out there to manage their functional and regression test cases. ...

How to have autotest and RSpec nicely formatted when comparing long texts (with \t and \n)?

I have a test in RSpec which compares to long text strings. When the test fails, I get a message like this: 'jobs partial should render the correct format for jobs' FAILED expected: "Job {\n\tName = \"name1-etc\"\n\tType = Backup\n\tMessages = Daemon\n\tPool = Default \n\tSchedule = \"schedule1\"\n\tStorage = storage1\n\tClient = \"name...

Good blogs about multi-threaded development?

About a year ago I read the book "Java concurrency in practice" and I learned a lot from it. I was wondering if there are any blogs about multi-threaded development in Java, since many topics discussed in blogs are not covered in books. If this blog also contains techniques about testing thread-safety it would be great, but any blog abo...

How much unit testing is a good thing?

(No "related questions" seem to nail this, so here goes.) I work on production code. Arguing for anything that isn't visible to the user is hard to do, sometimes. If sales can't see it, it's an external cost to them, and they'll argue against it unless there's a great reason not to. How much unit testing is a good thing? If you test...

Automatically smoke test all webpages in application, after deployment

After I deploy a build to staging. I would like to have a system that smoke tests all our webpages looking for error http status codes (400,500). What is the easiest, fastest way to get a system like this into place. If I use selenium or WebAII it seems like I'd have to do alot of work generating basic unit tests. Ideally Id like t...

Django 1.0 Testing: how do I get a session to persist between test code and view being tested?

I am trying to test how a view behaves when there is certain data stored in the session. To do so I have created the session in the test method and invoked an interactive shell at the very beginning of the view: Test Method: def test_user_with_unused_tests(self): "User is given a test and sent to test start" # todo: insure that...

Testing a C# sockets based multithreading server

We're developing a server application that uses sockets to handle client communication, obviously we want to test the server. Does anyone know of a good (open source) harness that can test the server using multiple threads on multiple client machines? ...

about cross browser testing

Excuse me. Currently, I am finding the remote access service that is fast and allow us to install program temporarily such as unity player, fiddler2, etc. to debug for web site. Previous I find crossbrowsertesting.com but I get it not quite responsive for the remotely accessed machine even when I am using local VNC there. May I ask...

AJAX Testing Tools

I am looking for Ajax testing tools . is there any free tools avilable for testing ajax Edit 2 : apart from firebug is there any other tools ;) ...

uninitialized constant Test::Unit::TestResult::TestResultFailureSupport

I get the error in subj when I'm trying to run specs or generators in a fresh rails project. This happens when I add shoulda to the mix. I added the following in the config/environment.rb: config.gem 'rspec', :version => '1.2.6', :lib => false config.gem 'rspec-rails', :version => '1.2.6', :lib => false config.gem "thoughtbot-shoulda"...

How to prove that multithreading is working?

How can I prove that multithreading is working in my C# programs? This is for a testing requirement. For example, I'm going to have to add some locking to a logger class (yes I know, I shouldn't have written my own logging class), and I need a test case to prove that the change will work. ...

How can I go about automating the testing of the migration of local web apps from IE6 to IE8?

I have been researching this a wee bit and it seems to boil down to: 'Eyeball Mark 1' The best tip seems to be the use of SuperPreview from Microsoft's Expression team. If anyone has automated a way to go about this I would love to hear about it. Also, I believe that SuperPreview requires a work around for a password protected app to...