testing

Xcode Testing - Followed Code from Docs but Getting Errors

Hi all, I am new to XCode and testing, and have followed the steps outlined in the iPhone Development Guide under "Unit Testing Applications". I added a unit-test bundle to my project, named it "LogicTests", set it as the active target, then added a sample "LogicTests" unit-test class under a new group called "Tests". I wrote the simp...

Is it necessary to test my application on all Windows OS's AND all editions of each?

I will be testing an application that claims to run on Windows XP, Windows Vista, and Windows 7. I know that I have to test the application for each of those on 32-bit and 64-bit (if it exists), but I'm not sure if it's necessary to test each edition of each operating system. For example, do I really need to test for Windows 7 Starter ...

JBoss Cluster setup with Hudson?

I want to have a Hudson setup that has two cluster nodes with JBoss. There is already a test machine with Hudson and it is running the nightly build and tests. At the moment the application is deployed on the Hudson box. There are couple options in my mind. One could be to use SCPplugin for Hudson to copy the ear file over from master t...

How I can use FIT/Fitnesse with C/C++?

Hi all, im trying to use FIT (CppFIT) to test some C programs. But I'm not able to configure it right. Could someone help me to understand, how FIT for C works? How can I connect my program with a fixture? How can I start FIT Runner? I made some examples with java and they run. Thanks all! :) ...

How can you implement test driven development with legacy code?

The situation: millions of lines of code, more than one hundred developers and frequent defects. We want to avoid repeating defects and we want to improve code design (who doesn't?). Test Driven Development (first unit test, then code) sounds ideal: write a test case for each function. But, with so much code written, how can TDD be imp...

Testing http connections on device

Hallo, developing a bb app I need to make http connections to get files, images etc. In simulator all works, but not in device. I bought a BlackBerry but I want to test my app without a sim then without a bes. How do I need to set my device? and how do I have to compose my url? I just have a bb device with wifi available Thanks all :)...

Cucumber table.diff saying tables are not identical - Rails

Hi. I am very new to Rails and Cucumber so this may or may not be a quick fix. I have a cucumber scenario that loads a collection of models and then checks to see if they are all rendered to a table. Cucumber returns a result saying "Tables were not identical". What am I missing here? I have tried to add headers in the second step defin...

issues trying to run GUI C# tests with Gallio.echo test runner remotely

I have a set of C# tests that start up and test a GUI. I user the Gallio.echo CLI to run these tests. Running on Windows server 2003 Hudson master is running on Ubuntu the 2003 box is a hudson slave I can run my tests with gallio.echo locally on my 2003 machine. However, I have a Hudson job that tries to run these tests and it fails, pr...

Best practices for iPhone apps on multiple OS versions

I'm developing an app that uses iOS4 features (like MFMessageComposeViewController), but I want to support iOS 3.1.x as well. I know how to do that in code and build settings, but it's getting hard to find devices to test on--I've upgraded my phone and so have most of my friends. And the simulator with XCode 3.2 doesn't support simulatin...

Unit tests for std::map

Does anyone know where I can find unit tests that will test std::map? The reason I ask is because I have written a class that acts as a replacment for std::map and has virtually all the same functionality, so unit tests for std::map will be suitable for my class, too. Of course, I can write my own, but if someone has already written ex...

H2 database and functions in separate schemas

Hi I'm trying to create a test database (with H2 database). I'm using Oracle in production, and it seems nice to have oracle compatibility mode in h2. However I've got a problem with translating oracle construction: create or replace PACKAGE permission_tools IS FUNCTION get_role_access_level( p_role_id IN NUMBER, ...

PHPUnit: Testdependencies with test from parentclass

So, I've got a little problem with my Unittests. I wrote some basisclasses for different Testcases and I want to uses some prepared test-methods. i.e. class ModelTestCase extends PHPUnit_Framework_TestCase { public function testCreateInstance() { ... } } class UserModelTest extends ModelTestCase { /** * (at)depends testCreateIn...

How do I properly simulate high latency on a C# socket server test?

I have a class that uses 'System.Net.Sockets.Socket' directly for network comunication, and currently I use the following two interfaces to break dependency on the Socket class : public interface ISocketListener { void Listen(int backlog); ISocket Accept(); void Bind(EndPoint endpoint); }...

Parser problem with Seam Test

I have a maven project in Eclipse, a web-project using Seam. Now I wanted to use Seam Test for unit test. I dit not use SeamGen to create the project. I followed this guide, but when I run my test I get this error. I get a feeling the wrong sax parser is being used. Does anyone recognize it? [Parser] Running: :\Documents and Setti...

Best Way to get User Feedback for Web app

Hi, I am launching a iphone web app that is related to mobile searching. Currently, I am looking for users to test on this app. What is the best way to get feedback for this app? And get users to my web app? Thanks. ...

how to send key events to a headless emulator in an instrumentation test?

We are currently working on an instrumentation test suite which runs on our build server, but while the tests pass on a dev machine using a normal Android emulator, the builds fail on the build server since there we only run a headless emulator with the -no-window flag. The failure occurs when trying to invoke the InstrumentationTestCas...

Determine whether a file is in use in Perl on Windows

Hi there, I'm writing some Perl which takes TV shows recorded on Windows Media Center and moves/renames/deletes them depending on certain criteria. Since the Perl runs fairly frequently, I'd like to cleanly determine whether or not the file is in use (in other words, the show is in the process of being recorded) so I can avoid doing an...

Testing Criteria for iPad App

Every one, Currently we are planning to test the new Ipad App and looking for the ideas. What will be the Test strategy for Ipad? Types of testing’s we do on Ipad? Industry Bench mark - • % Memory Usage on target device . % memory leaks • CPU usage on target device • Performance on 3G network . Any tool for measuring these metric...

HTTP Record/Playback alternatives to Eclipse+Solex

Hey All, I have been playing with Solex, http://solex.sourceforge.net/ ... quite a cool Eclipse plugin that allows you to record and playback HTTP traffic, make assertions, request-time header mods based on variables pulled from prior requests (via regexp, XPath). All in all, quite impressed; However, I can not see any method for runti...

How to test custom rails form builders?

What's the best method to test a custom form builder? Is there a test ActiveRecord class/object in Rails' test suite that i could use, or do i have to create my own mock-class? Which AR behavior do i have to 'emulate'? ...