testing

*Real* world testing best practices

We are a small customer software development shop that works on variety of different projects for a variety of different customers. We are continuously adding feature requests and making minor bug fixes to these projects. The customers business changes ... their software needs to change. In our environment the burden of the testing is...

Test accounts and products in a production system

Is it worth designing a system to expect test accounts and products to be present and active in production, or should there be no contamination of production databases with test entities, even if your shipping crew knows not to ship any box addressed to "Test Customer"? I've implemented messaging protocols that have a test="True" attrib...

Behaviour-Driven or Test-Driven Development?

I recently heard of BDD and found it very similar to TDD. Which of these two do you use (if any)? and which are the pros and cons of each? ...

Automated Test Framework - Windows CE

Hello, Looking for a way to drive a Compact Framework app running on a CE device. All we basically need is to be able to write little scripts that press buttons and click on things. Anyone know of such a tool or it best to just hack one up ourselves? ...

Testing for Random Value - Thoughts on this Approach?

OK, I have been working on a random image selector and queue system (so you don't see the same images too often). All was going swimmingly (as far as my crappy code does) until I got to the random bit. I wanted to test it, but how do you test for it? There is no Debug.Assert(i.IsRandom) (sadly) :D So, I got my brain on it after waterin...

Can apache-jmeter check the return value of a URL for a correct response?

The set up for apache-jmeter allows for a URL to be sent to a web-server on multiple threads. I'm interested in first determining if the response codes are 200-500 and then whether the returned content is the expected content. Is this detailed configuration possible? ...

Free/Open Source Test Generator for Java?

Are there any libraries for Java that can generate unit tests or unit test skeletons for existing code? I'm looking for something similar to pythoscope. Ideally it would generate code that follows JUnit4 or TestNG conventions. It looks like Agitar does something like this, but I'm looking for something free. ...

Selenium Remote Control HTML Source Extraction in Internet Explorer

Selenium Remote Control has a method of "get_html_source", which returns the source of the current page as a string. AFAIK, this method works in all cases in Firefox and Safari. But when it's invoked in Internet Explorer, it returns an incorrect source. Does anyone know if this is a bug with Selenium or Internet Explorer, and if there'...

Ruby on Rails - Why use tests?

I'm confused about what the various testing appliances in Ruby on Rails are for. I have been using the framework for about 6 months but I've never understood the testing part of it. The only testing I've used is JUnit3 in Java and that only briefly. Everything I've read about it just shows testing validations. Shouldn't the validations ...

QTP_errObject

Hi All: May I request you to clarify the issue I have with QTP err object. I am trying to capture the screen shot of an object on which error occured. I use the code object.captureBitmap(filename) to achieve this. I would like to know if it is possible to get the screen shot of the entire page with the err object higlighted. Thank yo...

In which cases do you test against an In-Memory Database instead of a Development Database?

When do you test against an In-Memory Database vs. a Development Database? Also, as a related side question, when you do use a Development Database, do you use an Individual Development Database, an Integration Development Database, or both? Also++, for unit testing, when do you use an In-Memory Database over mocking out your Reposito...

When should I use Debug.Assert()?

I've been a professional software engineer for about a year now, having graduated with a CS degree. I've known about assertions for a while in C++ and C, but had no idea they existed in C# and .NET at all until recently. Our production code contains no asserts whatsoever and my question is this... Should I begin using Asserts in our pr...

What user-installed applications cause the most trouble when developing a PC-based application?

I work on windows-based PC applications and have run across issues with Pop-up blockers, Anti-virus and firewall issues breaking my application (some are web applications with ActiveX and others are .NET Winforms) Listening to our support staff, there are other applications that users install and use that have caused issues with our app...

Easy acceptance testing with specification

I look for a tool/framework to make automatic acceptance-testing. The interface to create new tests should be so easy, that a non-programmer (customer, boss) will be able to add specifications for which will be tested automatically. It should be some way to execute the tests from command-line, to include a run of the tests in automatic ...

How do I simulate a low bandwidth, high latency environment?

I need to simulate a low bandwidth, high latency connection to a server in order to emulate the conditions of a VPN at a remote site. The bandwidth and latency should be tweakable so I can discover the best combination in order to run our software package. ...

What would you like to see in a TDD demo?

I am going to be giving a presentation on TDD and I always struggle with what to put in the demo when giving this presentation. I usually only have about an hour to do the actual coding portion of the demo so it can't be too extravagant. However, using a "classic" example (stack,queue) is a bit simplistic for most developers. It leaves t...

Are there any emulator for the JTAPI API?

We want test the JTAPI feature of our application. Are there any emulator for JTAPI available? The testing with real hardware is a little diffcult. ...

Why isn't Selenium capturing my keystrokes?

I'm trying out the recorder of the latest Selenium IDE Firefox extension on win32/ff3. On one page, currently I have to hit Enter to go to the next page, but it's not on a submit button, it's captured manually. This is not picked up by the recorder. I know I can enter it manually myself after recording, but why isn't this part of it? ...

How do you decide if a QA issue is a defect?

I've worked for several companies as a developer and have recently moved into QA automation at a new company. Each company is different and I have yet to see a way of handling this that I really like. All too often QA will say something is an issue and the response is either "well ya but it would be too hard and take too long to fix" o...

Structured UAT approaches

As a developer I often release different versions of applications that I want tested by users to identify bugs and to confirm requirements are being met. I give the users a rough idea of what I have changed or new features that need testing, but this seems a bit slap-dash and not very well strucutured. I'd like to know what approaches ...