testing

HTTP compliance testing

What would you use to perform a compliance testing of an HTTP proxy? I've seen two projects so far: Web Polygraph (the feedback I got from a coworker is mostly negative) Funkload ...

How do I set up a test project for a Eclipse plugin project

I'm working on a eclipse plug-in and I've tried to create another test project seperate from the plug-in. The reason I do this is to not let the plug-in depend on jUnit when it is exported. However, I can't access the Eclipse Plug-in API when I do the testing. Whenever I try to add Plug-in dependencies the import list to that is empty. ...

Using the main method of classes for debugging?

It is good practice to use the main method to test a java/.net class? I've seen it reccommended in some text books, but to me it seems like using a unit testing framework would make more sense... The main method gives you one point of entry to the class and you can test one aspect of the classes functionality. You could I guess test ma...

Team City problem with unstopped instance of IE during watin test

We are using Team City and I noticed problem during running Watin test. Sometimes some instance of IE randomly just don't stop in task manager on build server, even if test closes all opened instances. This causes failure of all tests that follows. We tried with script that kills all instances of ie before this test starts runing, but th...

Functional test software/framework that covers Asp.Net Web Apps?

I recently began to use the NexusLight, a functional test automation framework. Are there more frameworks that does a similar job? Related question: http://stackoverflow.com/questions/91703/end-to-end-application-testing-from-a-users-standpoint ...

How do you test private methods with NUnit?

I am wondering how to use NUnit correctly. First i created a separate Test-Project that uses my main project as reference. But in that case i am not able to test private methods. My guess was that i need to include my testcode into my main code?! - That doesn't seem to be the correct way to do it. (I dislike the idea of shipping code wit...

How to check if a file exists in a makefile

I have a makefile template to compile a single DLL (for a plugin system). The makefile of the user looks like this: EXTRA_SRCS=file1 file2 include makefile.in In the makefile.in I have: plugin.dll: plugin.os $(patsubst %,%.os,$(EXTRA_SRCS)) Where plugin.os is the main C++ file to be compiled. Btw, the files ending is .os are the ob...

Refactoring static method / static field for Testing

I have the following legacy code: public class MyLegacyClass { private static final String jndiName = "java:comp/env/jdbc/LegacyDataSource" public static SomeLegacyClass doSomeLegacyStuff(SomeOtherLegacyClass legacyObj) { // do stuff using jndiName } } This class is working in a J2EE-Container. Now I would lik...

Are regression tests the entire test suite or a sample of tests?

I was taught that a regression test was a small (only enough to prove you didn't break anything with the introduction of a change or new modules) sample of the overall tests. However, this article by Ron Morrison and Grady Booch makes me think differently: The desired strategy would be to bring each unit in one at a time, perform an ...

PHP Load Testing framework

Anyone know of an opensource PHP Load Testing Framework similar to the Grinder " "http://grinder.sourceforge.net/". ...

Testing Functions for ASP.net (The Object Test Bench)

Edit I noticed that the Object Test Bench is a good example of what I'm looking for, but it doesn't seem to work with ASP.net. I always get an error that an instance could not be created. Is there a way to test your functions in ASP.net without needing to create a web page and click on a button. For example, if I create a controller...

What's a good way to document web page links in a web application?

Can anyone suggest easy ways to document how web pages in a relatively complicated web application link to each other? Should I document them in Visio possibly? That seems the easiest. I need to check each of the different buttons and functions on each page, and some of these depend on how the user accesses each page, so I need to doc...

Deploying Test Resources in the iPhone Simulator

I am working on an iPhone Application that stores images in the Applications 'Document' folder. I am currently doing the majority of my testing using the iPhone Simulator. In order to aid development I want to have some test images pre-loaded into the Document folder of the application that my application can access and display. I have...

Automating unit tests (junit) for Eclipse Plugin development

I am developing Eclipse plugins, and I need to be able to automate the building and execution of the test suite for each plugin. (Using Junit) Test are working within Eclipse, and I can break the plugins into the actual plugin and a fragment plugin for unit testing as described here, here and in a couple places here. However, each of ...

XSS Torture Test - does it exist?

Hi, I'm looking to write a html sanitiser, and obviously to test/prove that it works properly, I need a set of XSS examples to pitch against it to see how it performs. Here's a nice example from Coding Horror <img src=""http://www.a.com/a.jpg&lt;script type=text/javascript src="http://1.2.3.4:81/xss.js"&gt;" /><<img src=""http://www....

Can I flush my NHibernate session and get a new session without committing the transaction?

I'm using Castle ActiveRecord for persistence, and I'm trying to write a base class for my persistence tests which will do the following: Open a transaction for each test case and roll it back at the end of the test case, so that I get a clean DB for each test case without me having to rebuild the schema for each test case. Provide the...

Best way to do TDD in express versions of visual studio(eg VB Express)

I have been looking in to doing some test driven development for one of the applications that I'm currently writing(OLE wrapper for an OLE object). The only problem is that I am using the express versions of Visual Studio(for now), at the moment I am using VB express but sometimes I use C# express. Is it possible to do TDD in the exp...

How would I do TDD with a COM OLE object

I have an OLE COM object that trying to write a wrapper for, I have decided to start to use TDD to write the code for it as I believe that it will give me a better sense of direction with what I'm try to write. The COM object has a interface like this: Interface Mapinfo Sub [Do](ByVal cmd As String) Function Eval(ByVal cmd As S...

What do you use to test the handheld css on your website?

I've been adding css support for handheld to my website but haven't been able to find a good tool for testing. I tried using the webdeveloper plugin for Firefox but it doesn't work for me. Maybe that is because all my css is in the html and not a seperate css file. Are there any other testing tools available aside from going out and b...

Should Software Testing really become a first-class concept at the academic level?

Is Software Testing really given its importance at the academic level? I believe there is a need in universities offering Software Engineering (and probably even Computer Science) to treat Software Testing as a separate course and topic in itself, rather than as part of a general topic of Software Engineering. Irrespective of the testin...