testing

Integrating Automated Web Testing Into Build Process

I'm looking for suggestions to improve the process of automating functional testing of a website. Here's what I've tried in the past. I used to have a test project using WATIN. You effectively write what look like "unit tests" and use WATIN to automate a browser to click around your site etc. Of course, you need a site to be running. S...

What is the best method for Software/Web Application Testing?

Does any one know how to manage Software/Web Applications Testing process ? ...

Writing a single unit test composed of multiple test cases violates unit testing principles?

Should I do Test1(){ Assert(TestCase1); Assert(TestCase1); Assert(TestCase3); ... } or Test1(){ Assert(TestCase1); } Test2(){ Assert(TestCase2); } Test3(){ Assert(TestCase3); } ... Note: All test cases are intimately related. There is only boolean differences between them. ...

Nunit Test Generator

Can somebody recommend a good (free) generator for NUnit Tests? ...

Real-world testing of CakePHP controllers?

I'm writing a new application with CakePHP (just-released 1.2.4), using SimpleTest 1.0.1. I have read the relevant sections of the Cookbook, searched on the Bakery, and read Mark Story's postings on controller testing (the hard way and with mocks). Unfortunately, none of this talks about real-world testing of non-trivial controllers. Lo...

MOQ problem - mocked class returns incorrect data

So, I'm using moq for testing, but I ran into a problem that prevents me from mocking correctly, at least I think so. This is my repository class: public interface IAccountsRepository { IQueryable<Account> Accounts { get; } IQueryable<Account> AccountsPaged(int pageSize, int selectedPage); } This is one of the implem...

In xUnit.net, is it possible to run tests in order?

I know you generally should not depend on order for your unit tests, but in xunit is it possible to make your tests run in a certain order? ...

How to test code locally when using a build server?

I've never worked on tremendously huge projects and the workflow we use at work is check-out/code/compile locally to test/commit. I was wondering how a build server would change this process. How do developer test their code when the application is too huge to compile locally? They just code, commit and pray? ...

Selenium Data Driven Testing with C#

HI All, i am Dinesh Kanojia and i am new in the Automate testing and i want to perform data driven testing in selenium using ASP.NET(C#),ajax and almost all the features of jquery so any one can give me the step how to perform data driven testing using c# or some demo through which i can perform my testing thanks in advance, warm rega...

.NET 2.0 code - Unit testing with MoQ

Hi, I am building a .NET 2.0 codebase, and i want to use any test framework library for unit testing the .NET 2.0 codebase. There are some build using .NET 3.5, is it still OK i use it as my unit testing tool to test .NET 2.0 code? ...

string quoting issues in doctests

When I run doctests on different Python versions (2.5 vs 2.6) and different plattforms (FreeBSD vs Mac OS) strings get quoted differently: Failed example: decode('{"created_by":"test","guid":123,"num":5.00}') Expected: {'guid': 123, 'num': Decimal("5.00"), 'created_by': 'test'} Got: {'guid': 123, 'num': Decimal('5.00'), 'cre...

Test Rake Tasks

I am developing a ROR app that relies on many custom Rake tasks. What is the best way to test them? ...

How to get your clients to test

Hey, I build web apps for a living. An important but often painful process is client/user acceptance testing. How do you manage this process? i.e. How do you get them to test? Do you give them test scripts? Do you give them a system to log bugs and change requests/feedback. How do you get the client to understand the difference betwe...

How to check if a custom exception is raised in a Ruby app?

I have a test class: require File.dirname(__FILE__) + '/../car.rb' class CarTest < Test::Unit::TestCase def test_set_color assert_raise InvalidColorEntry "Exception not raised for invalid color" do Car.set_color("not a color") end end end InvalidColorEntry is an exception class that I placed in the car.rb f...

how to phrase the result of an action in BDD/TDD

The title is probably not very clear. I have the following example in mind: an Authenticator object authenticates a user using credentials. It returns a AuthResult object. This AuthResult object says the authentication succeeded, or that it failed (and if so, why it failed, eg username not found). How can I phrase this in a test? 'test...

Justifications for a test/development server

At my current workplace, the production SQL server and web servers are also used as development and test servers. I've asked for dedicated servers, but been refused as I can't justify it to satisfaction (the reasons against being cost of software, software licenses and hardware resources). So, what justifications are there for a dedicat...

Unit Testing Front End Logic

We have tried to introduce unit testing front end logic on a recent project and the value of the tests are being questioned. We were not code reviewing the tests so the quality of them is poor, developers copied poor tests creating more poor tests and so we have a lot of crap tests. I still believe there is value in testing the prese...

Unit testing a communications protocol

I am developing a library for serial communications with an FPGA via RS-422 port. This library is part of a bigger project. I know I can test some parts of it, as the message generation. You set the inputs, and you can test if the array of bytes match the expected one. But, what if I wanted to make a more general test, how could I gener...

Is multiple standalone IE's a violation of Microsoft's license?

I just found IE Collection, a multiple standalone IE installer (IE 1.5 through 8.0!) and it has been a great help for finding little rendering issues in my CSS. My concern is that our MCSE/IT guy says that it is a violation of Microsoft's redistribution rules. Am I breaking the rules by using it? Do others use IE Collection or other sta...

Autogeneration of tests and stubs with CUnit.

Does anybody know of a free/commercial tool that would automatically generate tests and stubs for C code to work with CUnit framework? ...