testing

Creating and testing a default record in Rails

I'm creating a user authentication system for my site. I want to add a default user, so that if I create a new site, or reset the database I will still be able to log in (and change the default user details). I have the code below in the migration. All seems to be working fine for the development database, but when it come to testing th...

Unit and integration testing in C++

I'm going to write a quite large application for school project in C++. So far I'm quite used to TDD in Java and Ruby using JUnit and RSpec. But as far as my experience goes, I've never seen any C/C++ project with any test suite. What library do you recommend for testing in C++? Are there any good mocking/stubbing frameworks for C++? ...

Unit test with accessors

This is a two part question. Background: We moved our C# application from VS2005 to VS2008 and in the process moved the application from .net 2.0 to .net 3.5. The transition went smoothly except for Unit Tests. First: Is the unit test framework based off Visual Studios or .NET? Second: This question is derived from the issues we have ...

What is the best/cleanest way to implement A-B testing in asp.net mvc?

What is the best and cleanest way to implement A-B testing in asp.net mvc? That is, when we make new changes to an asp.net mvc web site, we want to test the new html/css/js with a certain subset of visitors (defined on cookie, login id, etc) and then analyze some metrics (page response time, number of pages visited, $$$ in sales, etc) a...

Persisting complex test data

We are using builder pattern to generate test data. These domain objects have relations between them. Our functional tests require these objects to be persisted. Think about this model: If I want a plain instance of C I do aNew().c().build() If I want it to be persisted I do aNew().c().saveIn(session) If I want an instance of C wit...

What is the ruby test tool called that 'breaks' your code to see how tight your tests are?

A wee while ago I ended up on a page which hosted several ruby tools, which had 'crazy' names like 'mangler' or 'executor' or something. The tool's job was to modify you production code (at runtime) in order to prove that your tests were precise. Unfortunately I would now like to find that tool again, but can't remember what it was call...

selecting page elements with webrat

There is a list of products (html table). Each row has got product name and ends with 'add to cart' button. How to add 2 'coffee' and 3 'tea' in the cart from webrat? Corresponding html: <tr class="odd"> <td><img src="/images/menu_items_images/7/PICT0020_thumb.jpg" /></td> <td>cofee</td> <td>americano</td> <td>1...

ASP.NET - Free Testing Tools

. Hi, We have built an ASP.NET application and we would like to do functional, regression, load , and stress etc. tests. Would you please let me know if there are any free tools to these tests? Thanks and Regards.. Shruthi Keerthi.. . ...

Is there a service that allows testing code against multiple database products?

We're writing an open source tool that is designed to work against multiple database products (really, it's designed to work with any database that has a JDBC driver available). However, because it does DDL (not DML), we need to test against different products. While MySQL, PostgreSQL and other open source db's are easy for us to test o...

AutoTest and Rspec testing with Rails

I just started using AutoTest. As far as i can tell i have everything configured, but everytime i run autotest then i get the following error coming from my test_helper.rb: richards-macbook-pro: $ autotest loading autotest/rails /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I.:lib:test -rubygems -e "%w[test/unit...

Need recommendatins on a Java open source project for an academic study

I'm looking for a Java open source project for an academic study on test cases. I need a project with 20-40 KLOC and at least a 100 JUnit tests. A project that was developed using TDD methodology is prefered. Something that I can drop in eclipse and run all the tests with minimal overhead for setups. Any recommendations? ...

Is there a site for testing?

Hello. Say one's writing a "browser" and wants to test it on many pages with broken encoding, invalid HTML, missing meta tags or headers etc. An obvious solution is to get a big pile of URLs and test the application on each of them, which takes a lot of time and doesn't guarantee that the first 1000 urls were ok, while the next 100 will ...

Is this mbunit test really doing anything significant?

[Test] public void TestUserProfileInsert() { using (new TestBindingsWrapper("TestBindings", "", new TestModule())) { // Setup the mock the dataprovider MyMocks.MockDataProvider.Setup(x => x.InsertUserProfile(It.IsAny<IUserProfile>())).Returns(1); IUserProfile up = new UserProfile(); IUserProfileManager manager =...

Self Testing Tips?

Basically I'm wondering if anyone has any tips for ensuring your code is well tested without getting any help from anyone else in a limited time frame? In the past I've always been able to find someone else to do testing on my code or had a dedicated quality assurance team go over everything and find all the errors. I'm usually pretty ...

architecture/design advise for a test program

I am trying to build a test program in c++ to automate testing for a specific application. The testing will involve sending requests which have a field 'CommandType' and some other fields to a server The commandType can be 'NEW', 'CHANGE' or 'DELETE' The tests can be Send a bunch of random requests with no pattern Send 100 'NEW' req...

How to test eCommerce software for credit cards?

I want to test MasterCard, Visa, AMEX, Discover... and I don't want to use any of my own credit cards. Are there any ways for testing ecommerce? Maybe buy one of those credit card gift cards? Any experience with this? nsoftware IBizPayPal V2 (working on way to get V3) ...

How to calculate the Network Bandwidth using Core Java

How to calculate the Network Bandwidth using Core Java Any pointers ...

Getting started with load testing web apps with VS2008 Team System

Good afternoon, Everyone. Do you have any recommendations for materials (videos, books, tutorials) that would help me get started with load testing web apps? I have VS2008 Team System and will need to use the tools available in there. No third party stuff or online load testing tools. Thanks, Scott ...

Image Recognition to drive test automation

Are there any tools out there which uses Image Recognition(searching, comparing, validating images) as base for automating and testing GUI software.I know ranorex supports it. Are there any better tools?Are there any gotchas in using Image Recognition to drive test automation? ...

Alternative to Litmus?

We are currently in a desperate need for some manual test management tool. Currently we are using Excel which is unexciting at the very least. Essentially, litmus is what we need, however it's a pain to install, tailored to Mozilla, buggy and also hasn't been actively developed for a couple of years now. Can you recommend an open-sourc...