testing

Are there real differences between NUnit and Microsoft's Unit Testing Framework (VS 2008)?

With the framework that Visual Studio 2008 has, am I missing anything great by NOT using an external tool like NUnit? From what I can tell it seems like using NUnit would be more of a hassle with manually creating test classes and methods versus the right clicking native to the IDE. That being said, am I missing features that NUnit pro...

How should a professional testing process look like?

Hello, how would you describe well formed process of quality management of developing software? I mean it like separate sub-process from other processes like development and analysis. The main input for this sub-process should be documents from analysis. The process should have own budget which can be raising through a time when new fun...

What tools for server side application performance testing you suggest?

What tools for server side application performance testing you suggest? Have an application server and need to test it performance. Not sure issue is server side. Need to investigate. NB:Better to have convenient UI ...

Thinking Sphinx not working in test mode

I'm trying to get Thinking Sphinx to work in test mode in Rails. Basically this: ThinkingSphinx::Test.init ThinkingSphinx::Test.start freezes and never comes back. My test and devel configuration is the same for test and devel: dry_setting: &dry_setting adapter: mysql host: localhost encoding: utf8 username: rails password...

Testing a broken IP.

I'm trying to test an application and I need to make an valid IP not respond from a one of my test servers but not the others. I could do this for an fqdn using /etc/hosts but I'd like to do it for an IP. Any suggestions? Edit: To clarify I actually I want both servers to respond but I need one of the devices the servers manage to o...

Is there a way to test a program's hardware requirements without just using it on a bunch of different computers?

Is there a program out there or some other thing that will run some kind of virtualization for me or something, to test the hardware minimums for a program I write? Something I can do locally without install testing on, say, a 33 mhz 64kb ram IBM or something ...

How to unit test configs

We're working with some very large config files which contain lots of Unity and WCF configuration. When we open some of these configs in the SVC config editor or even try to open a web application using these configs, we recieve errors showing any typos or errors. E.g. a WCF binding is invalid or does not exist etc, or a configuration s...

how to test asynchronous methods using nunit

Hi, how to test asynchronous methods using nunit. please show a working sample. Thanks in advance ...

Test if a number is fibonacci

I know how to make the list of the Fibonacci numbers, but i don't know how can i test if a given number belongs to the fibonacci list - one way that comes in mind is generate the list of fib. numbers up to that number and see if it belongs to the array, but there's got to be another, simpler and faster method. Any ideas ? ...

Is there a command to test an SQL query without executing it? ( MySQL or ANSI SQL )

Is there anything like this: TEST DELETE FROM user WHERE somekey = 45; That can return any errors, for example that somekey doesn't exist, or some constraint violation or anything, and reporting how many rows would be affected, but not executing the query? I know you can easily turn any query in a select query that has no write or del...

rails test.log is always empty

All the log entries generated when running tests with 'rake' are written to my development.log instead of test.log file Do I have to explicitly enable logging for test in enviornments/test.config?? (I'm using 'turn' gem to format test output, Can that cause an issue?) I'm running rails 2.3.5, ruby 1.8.7 I've all these gems installed f...

Testing injected dependencies into your struts2 actions

Hi, I am wondering how others might have accomplished this. I found in the Spring documentation @required which I attempted to use in a 'test' but got this stmt INFO XmlConfigurationProvider:380 - Unable to verify action class [xxx] exists at initialization I have found another way in spring to do this is to write custom init methods a...

Detecting use after free() on windows. (dangling pointers)

I'm trying to detect "Use after free()" bugs, otherwise known as "Dangling pointers". I know Valgrind can be used to detect "Use after free" bugs on the *nix platform, but what about windows? What if I don't have the source? Is there a better program than Valgrind for detecting all dangling pointers in a program? A free and open...

Python library for creating stubs/fake objects

I am looking for python stubbing library. Something that could be used to create fake classes/methods in my unit tests.. Is there a simple way to achieve it in python.. Thanks PS: I am not looking for mocking library where you would record and replay expectation. Difference between mock and stubs ...

Testing a Django view cause "AttributeError: 'NoneType' object has no attribute 'handler500'" error

I just wanted to start testing a Django view using the code below: from django.test.client import Client c = Client() response = c.get('/search/keyword') print response.content It just throws out following error message: "/usr/local/lib/python2.6/dist-packages/django/test/client.py", line 286, in get response = self.request(**r) F...

Testing approach for multi-threaded software

I have a piece of mature geospatial software that has recently had areas rewritten to take better advantage of the multiple processors available in modern PCs. Specifically, display, GUI, spatial searching, and main processing have all been hived off to seperate threads. The software has a pretty sizeable GUI automation suite for funct...

Which testing method to go with? [Rails]

I am starting a new project for a client today. I have done some rails projects before but never bothered writing tests for them. I'd like to change that starting with this new project. I am aware there are several testing tools, but am a bit confused as to which I should be using. I heard of RSpec, Mocha, Webrat, and Cucumber. Please ...

Cucumber vs. built-in testing? [Rails]

I asked a question about different testing frameworks yesterday. This question can be found here. Now that I have a better understanding of the different frameworks, I have a very simple question: With a basic understanding, but very limited experience with writing tests with rails' built in testing framework (basic assertions), would i...

Firefox 3.6 update breaks selenium.

I'm unable to run any selenium tests since I updated Firefox to 3.6. Is it happening just to me or is it everybody? Error message I get is: Could not start Selenium session: Failed to start browser session This is in Windows Xp. ...

Test Automation Flash base Video Player

I would like to test automate a flash video player (similar to YouTube player). Can you recommended tools/ methodology for it. ...