testing

TDD - Refactoring into black-box?

I have a nontrivial service object developed with TDD. It started with a simple task: For an object from queue, construct an attempt for asynchronous processing. So I wrote a test around my constructAttempt() method: void constructAttempt() {...} There are numerous possible scenarios that need to be taken into consideration, so I have...

Problems making a fitnesse test...

Hello everyone!! I´m trying to do this test on fitnesse, but actually it inserts only the first one (|Execute|INSERT INTO restdb.labels (id, label_name) VALUES (1, "label_test1")|) Apparently the other are ignored... I´ve debugged it using eclipse and I´m checking everything on HEIDSQL. !2 Add Credit to account !3 Insert the entities ...

Framework user interface for running tests and reporting results

I often have to create software to run tests (on hardware or other software), but I don't know of a good user interface control in .NET for displaying test results. (Just to clarify, I am not looking for a testing solution for .NET code. I am looking for a way to provide a system similar to those used for testing code to a user so that ...

Mobile device testing for BlackBerry smart phones - acquiring test phones

Hello, I have been developing a BlackBerry application for about 7 months, and I have started to do a lot of testing. Does anyone have any advice on the best way to test my application on different BlackBerry devices (without having to purchase them)? I have the BlackBerry Tour and the BlackBerry Storm, but I can only have my Verizon n...

Simulate latency in Java

I am developing a simple test framework in Java that needs to simulate weblogic deployments by responding to JMS calls. One of the the test configuration options is a delay to simulate latency. I was wondering if anyone has any good ideas on how to do this. I was jsut going to create a TimerTask to handle it, is there a better way? Thank...

Load Testing tool for web applications

Hi, I am trying to load test a web application, but I am having a hard time finding good tools that are affordable. I cam across Web Performance Load Testing Tool which is pretty cool, but limits you to 10 users and after that it costs thousands. Does anyone know any good techniques for load testing a web application? Thanks ...

RSpec Test Case Doubt

Hi, Following is a test case in RailsTutorial. Generally I understand the syntax, But in this case, they define the @invalid_attr variable, but they dont seem to be using it. Infact in this line @user.should_receive(:update_attributes).and_return(false), I think @user would have all the values from the factory, rather than @inva...

Test catalogs - common bugs or test cases

I'm looking for catalogs of common bugs, weaknesses, and test cases or questions for software. In Lessons Learned in Software Testing I saw an example test catalog, but I typically can't find good, specific test catalogs out there for various common features or feature types. Can someone point me to a resource? Perhaps a community wik...

Test cases for numeric input

What are some common (or worthwhile) tests, test questions, weaknesses, or misunderstandings dealing with numeric inputs? This is a community wiki. Please add to it. For example, here are a couple sample ideas: I commonly see users enter text into number fields (eg, ">4" or "4 days", etc). Fields left blank (null) Very long numeric ...

Spring Test's @BeforeTransaction is still inside a transaction?

I'm using Spring Test and JUnit to run DAO integration tests. The test class is annotated as follows: @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration( { "/testPersist-applicationContext.xml" }) @Transactional I use the @BeforeTransaction annotation on a method to insert some test data -- that I would expect to be there ...

How to test a function that deals with setting file ownership without being root

I wrote a function that copies the /etc/skel directory on a linux machine during a "create new user" RPC call. Now, there is quite a few things about this I want to test, for example the files in /etc/skel and the targets of symlinks should not have changed permissions afterwards, whereas the copied files including the actual symlinks sh...

Algorithm to keep a process busy

I need to test some communication libraries and need to keep the server busy so that I can test timeouts, but I am unable to use sleep() as it causes problems during testing. Is there a common algorithm I can use to keep a process busy? I'm not concerned with running the CPU hot, simply keeping the process from returning for a number of...

Maven - use different java classes during 'test' and 'war' phase

I'm using maven war plugin to build war package. Before package is build test are executed. To preinitialize my database with sample data I use spring bean. I would like to have different data in my db for tests and different when application starts. I was thinking that maybe it is possible to use two different spring initializer class...

Unable to load fixture data in Django tests

I have an app called pta.apps.users which is loaded in the Loaded apps setting in my settings.py. The app works fine, I now want to test it and have placed json files in the fixtures directory inside my users app. I have a test which runs fine but the fixtures wont load. from django.test import TestCase from django.test.client import...

Testing distributed system

Are there any java-based frameworks for testing distributed systems with JUnit or TestNG? For instance I have a shared resource R and two clients (CA, CB) each connected to dedicated server (SA, SB). R can be used exclusively (one client at a time). I want to make a test that checks simple scenario: SA starts up. SB starts up. CA log...

XML Validation - what rules-based engine or framework should I use

Hi, I need to come up with some kind of rules engine, where I can specify validation rules for specific xml files. Then the rules are read in and asserted against the xml. Whats the best way? Is it XPath, or XQuery, or XSL, or XSD even? Or maybe even XMLUnit? I'll need to do stuff like detect when certain attibutes are different from...

Why does eclipse not find the beans.xml files in a spring based Maven project

I have a maven project under eclipse with m2eclipse. WHen running integration tests the tests fail with the mention that the spring configuration files cannot be found on the classpath, and I get a similar error from log4j. I was under the impression that m2eclipse would add the resources directories to the classpath but apparently no...

Unactivated test phone?

Hello - I have an iPhone 3G that I would like to use to test my app, however, it is not activated. Is it possible to use it as a test device? ...

MobiOne is expired , what should i do to test iphone web page on windows xp . whats the best software about it

i use MobiOne to test iphone web page on windows xp but now it is expired , i uninstall it, and then reinstall it , it is also not running , so what should i do , or whats the best software about it . thanks ...

How to wait for an other process to start listening on a local port?

I have a test driver program that launches a separate test server process. The test server process listens on a local port, and after it's ready, the test driver runs a test that accesses the test server. Currently the test driver repeatedly tries to connect to the local port (loop some, sleep some, try again). It's not an optimal solut...