testing

Is there a community of TSQLUnit users somewhere?

I am relatively new to using SQL Server (we're on 2005) but not to database design, creation, and programming. I have decided to use TSQLUnit for the testing we want to do, and have been learning it as I go. But, there are some things that have not become clear over time, and it gets pretty frustrating to want to do a particular type o...

Firefox shows apache 2 test page, while internet explorer works just fine

When I am trying to access Topspeed.com, my internet explorer shows the page just fine, but if I try firefox then I end up on the apache 2 test page... any idea why ? ...

ocunit testing on iPhone

Hi I am trying to get ocunit working in my project from XCode. Since I also need to debug in the unit tests I am using a script that automates the setup (see below). I just include it in the project under resources and change the name to the .ocunit file I want it to run. The problem I get is that it cant find the bundle file and there...

Is it possible to access a running instance of an app using JNA/JNI?

I'm writing a test engine for a Java application that has some of the code written in C. This application uses JNI to access it's native part. In the engine I'm writing, I use Fest to control de UI and perform the tests. However, I,m blind when dealing with the part that is written in C. I wonder if I can use JNA or JNI to access the n...

Recipe for creating a corrupt mysql table

We had a process that crashed while trying to manipulate an expected mysql record set, running the offending query from the mysql cli showed the following. mysql> SELECT ...; ERROR 1030: Got error 127 from table handler Is there a way to easily recreate this condition so we can validate our fix ? (production DB was already repaired). ...

Symfony test that runs before any other tests?

Is there a way to create test that is running before any other tests in the 'test' folder. I'd like to create a test that checks the php.ini settings before any other tests are run. Thanks Ralph ...

How to disable/enable network, switch to Wifi in Android emulator?

I'm working on a Push Notifications library for Android (http://deaconproject.org/) that needs to take action if network connectivity is interrupted or changed - namely, it needs to re-initiate a server connection or pause its operation until network connectivity is available. This seems to work fine using and Android BroadcastReceiver f...

Internationalization string testing

Some people using look-alike Unicode symbols to replace English characters to test the internationalization, e.g. "Test" is replaced as "Ťėşŧ". Is there a wellknown name for this language/culture? Are there utils, keyboard layouts, translation tools for this "language"? ...

Add a test method to existing test case by highlighting the method name in Eclipse

Hi there, Not sure if this is possible, but it'll save me a lot of time if it is. When I create a Junit4 test case in Eclise, I don't usually included all the methods that I'd like to test first, and later on, I'd like to add the untested methods or new methods to the test case. Currently, I'm doing this by typing new test methods in th...

Rails - strange error - individual functional test files pass but when called together fail

When I run my functional tests one by one they pass with no problems. However when I run them via rake test:functionals several individual tests fail with the same error. The error is as follows NoMethodError: You have a nil object when you didn't expect it! You might have expected an instance of ActiveRecord::Base. The error occurred...

Factory Girl sequence fails under autospec

I have this Factory: Factory.define :email_address do |e| e.sequence(:address) { |n| "factory_#{n}@example.com" } e.validated true end When I run my specs with rake spec, it works fine. When I run autospec, it fails right away, claiming that the email address is being used twice in two different objects (there is a validation whi...

After a junit test case ran, should I delete the test data related with this test case?

After a junit test case ran, should delete test data related with this test case? Will keeping the test data help the developers to debug the code? Thanks Joseph ...

Problem with cucumber

I want to make rails app which will require minimum gems. I freeze gems into app and try to run cucumber's test and I've got the an error. Below is sequence of my actions. What I do wrong? rails cucumber && cd cucumber rake rails:freeze:gems add at the end of config/environments/test.rb: config.gem 'gherkin' config.gem 'cucumber-rail...

I need aliveness test library for HTTP Servers

Hello, I'm writing a monitor service for our EC2 based cluster, it task will be [connect via HTTP/S to our events servers each X(ms), verify they are alive, rest]. I need a toolkit that will be able to perform the Connect test itself and report success or failure. I've tried to do this with Apache HTTPClient but I'm getting too many fa...

Is there a good guide to interpreting the Firebug net panel?

I’m using the Net panel in Firebug to evaluate the performance of web pages I’m writing. Specifically, I’m wondering what the precise meaning is of the stages for each resource that’s downloaded (i.e. DNS lookup, Connecting, Blocking, Sending, Waiting, receiving). But more generally, is there a Firebug guide where I can look this stuff...

How can I build a wrapper to wait for listening on a port?

Hi, I am looking for a way of programmatically testing a script written with the asyncore Python module. My test consists of launching the script in question -- if a TCP listen socket is opened, the test passes. Otherwise, if the script dies before getting to that point, the test fails. The purpose of this is knowing if a nightly build...

Iphone application tests do not show views and do not trigger cellForRowAtIndexPath etc..

Hi, I'm currently building some application-tests for my Iphone project where I would like to automate the displaying of all view controllers step by step. The problem I think is a bit tricky and could be solved by allowing the test suite to run a thread but this I guess does somehow not work here since the application gets shut down ...

Managing test data for Junit tests.

Hi, We are facing one problem in managing test data(xmls which is used to create mock objects). The data which we have currently has been evolved over a long period of time. Each time we add a new functionality or test case we add new data to test that functionality. Now, the problem is when the business requirement changes the ...

How do I set up a test duplicate of a Django and Postgresql based web application?

Not sure if this is an excessively broad and newbie-ish question for Stack Overflow but here goes: I paid someone else to build a web application for me and now I want to tweak certain aspects of it myself. I learn best by trial and error – changing stuff and seeing what happens. Obviously that's not a great way to treat a live site, so...

beta testing iphone & ipad applications

I want to roll a beta test session for my iphone and ipad application with general public. Want to get some feedback before officially launching the app. Does anyone know of a a good community that I can tap into? I found http://ibetatest.com via google but not sure how good/bad it is? ...