testing

Writing tests for DAOs

I'm currently assigned to write a test for a project, is it necessary to write tests for DAO classes? ...

Running single integration test quickly in Grails

Is it possible to quickly run single/all integration test in a class quickly in Grails. The test-app comes with heavy baggage of clearing of all compiled files and generating cobertura reports hence even if we run single integration test, the entire code base is compiled,instrumented and the cobertura report is getting generated. For our...

How to get started with testing(jMock)

Hello, I'm trying to learn how to write tests. I'm also learning Java, I was told I should learn/use/practice jMock, I've found some articles online that help to certain extend like : http://www.theserverside.com/news/1365050/Using-JMock-in-Test-Driven-Development http://jeantessier.com/SoftwareEngineering/Mocking.html#jMock And most ...

Problem with Unit testing of ASP.NET project (NullReferenceException when running the test)

Hi, I'm trying to create a bunch of MS visual studio unit tests for my n-tiered web app but for some reason I can't run those tests and I get the following error - "Object reference not set to an instance of an object" What I'm trying to do is testing of my data access layer where I use LINQ data context class to execute a cert...

Free Tool(s) / Tips to assist me in filling out forms on Win7?

I am doing some web development on some long forms. There are many fields for me to fill out to get through the form. Instead of typing out the same things every time (contact information, address, business information) I'm hoping there is some tool out there / combination of tools that will assist me in filling this out. Requirem...

How do you test your blackberry application on the device?

This may sound very noobish, but I can't seem to get my app to my blackberry. I was trying to follow the beginning blackberry development book's guide, but maybe I just missed the point somewhere. For remote download, Is it really as simple as drop the COD and JAD files in the same folder on your server then just navigate to the URL wi...

Need help with writing test

I'm trying to write a test for this class its called Receiver : public void get(People person) { if(null != person) { LOG.info("Person with ID " + person.getId() + " received"); processor.process(person); }else{ LOG.info("Person not received abort!"); ...

Testing Spring MVC Output

Hello, So I have an MVC project that exposes my services in JSON format. What would be the ideal method of (unit?) testing whether or not my methods return correct content (in terms of JSON syntax as well)? Thank you, Sammy ...

Error running helloworldtest from the tutorial

I'm getting the following error whenever I try to run a test. I have also tried to load some of the samples and test them, but I get the same error. This is generated following the tutorials found here Thanks for any help java.lang.RuntimeException: Unable to resolve activity for: Intent { act=android.intent.action.MAIN flg=0x1000000...

Cucumber : Size of features

Im new to testing with cucumber and have a question regarding the size of a 'Feature'. Assume you can add a collection of items to a list and do the usual CRUD , is it preferred to create one feature for this complete set of CRUD actions or a feature for each? What is the preferred/accepted method ? At what point does an action become...

Rails test across multiple environments

Is there some way to change Rails environments mid-way through a test? Or, alternately, what would be the right way to set up a test suite that can start up Rails in one environment, run the first half of my test in it, then restart Rails in another environment to finish the test? The two environments have separate databases. Some neces...

Ideal dev/test/QA environment for development

I am working to rebuild my company's dev/test/QA environment. We have 10-15 programmers that are involved in a number of projects. They currently all develop locally on their PCs and use the dev environment for testing. We currently do not have a QA environment, so deployments are frequently a pain because bugs are usually found after so...

Rails testing: assert render action

How can I write a test to assert that the action new is rendered? def method ... render :action => :new end I'm looking for something like the lines below, but to assert that the action was called, not the template: assert_equal layout, @response.layout assert_equal format, @request.format I know I can't do @response.action Th...

how do I test grail's controller's render method?

How do I test this: render view: "create", model: [user: user] I know how to test redirectArgs and stuff, but I can't find an example to test something like this. It seems like articles and stuff go out of their way to not test this.... ...

How do you test a command object in a grails controller integration test?

I'm new to grails. How do I test a form command object to make sure that it's working? Here's some setup code in a test. When I try to do it, I get the following exceptions: Error occurred creating command object. org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Error occurred creating command object. ...

How to build a WebAppDescriptor with a filter class and servlet class?

I'm working on setting up a Jersey test suite for a servlet and a servlet filter that I want to test behavior of the combination of the two for. What I'm confused is how the Jersey documentation states how to build WebAppDescriptor using the WebAppDescriptor.Builder class, specifically between the servletClass() and the filterClass() me...

How to invite Beta Testers to test an application

I have created a Text Messaging product which will be free. But I want Beta Testers for that product. This product can be deployed on Windows, Mac and Linux platforms How to invite Beta Testers to test my application. Also I want to know how to invite linux, Mac, StackOverFlow and other community guys to beta test my product. Thanks S...

NUnit not running Suite tests

I've created a test suite in NUnit that references several distinct unit test fixtures in various assemblies. I've pretty much used the example code from NUnit's docs: namespace NUnit.Tests { using System; using NUnit.Framework; using System.Collections; public class AllTests { [Suite] public static...

Junit with .Net Technologies

Is it possible for us to integrate the junit test cases for an application for which we are developing using the ASP.Net Platform? Since I am from Java j2ee Tech background, have a very less knowledge on .Net Technology ...

WPF, Project White and Infragistics

I am trying to use Project White to write automated tests for my WPF application. It is all going well until I try to interact with Infragistics controls. Has anyone had any experience of this set up and would you be able to post an example of how I can (for example) interact with the XamRibbon or XamOutlookBar? ...