testing

Need a sufficiently long & complex Markdown document for performance testing

I'm looking for a long and complex Markdown document that I can use to test performance of different markdown implementations -- as an alternative to iterative benchmarking of a simple document. I thought I might be able to browse around Stack Overflow and find something, but by and large everything I find is pretty simply written; and ...

how-to manage production deployment for sql server 2005 database upgrade with <10 tables and <20 stored procedures

I have a Sql Server 2005 Standard production database with some <120 tables and <150 stored procedures. The newer version update requires beside the application layer upgrade also the upgrade to the db. According to the resources provided I intent to perform the upgrade as follows: create for each new table create script with insert...

EJB3Unit save-function doesn't really save my entity

Hello, I am doing tests on an ejb3-project using ejb3unit session bean test. The following test will fail with the last assertNotSame() check. public void testSave() { Entity myEntity = new Entity(); myEntity.setName("name1"); myEntity = getBeanToTest().save(myEntity); assertNotSame("id should be set", 0l, myEntity.getId());...

Testing Apple Push Notifications Feedback - no items received

How to test feedback.sandbox.push.apple.com? Everything goes right, but I receive empty list. How to make it consider the device token as inactive? I installed the application to iPhone using Xcode, received some push notifications, then removed it from iPhone and send some more notifications. But even on the next day feedback.sandbox....

How do I test ASP pages locally on Mac/OSX?

Is it possible to test ASP websites locally on a Mac? ...

Need help on writing php testing files to test my PHP controller class

Hello all,followed by my previous website development,we have built several controller classs corresponding to entities that will appear in our website development.and our website is very simple:just a shopping website for customers to book bus for travel. Now I am assigned a challenging task that need to be done,that is ,for a single c...

Using fixtures without a corresponding model in Rails

I currently have some large strings that I would like use as test data when testing a log scraper. It would work well to have these strings in a YAML file. I would love to refer to them while testing in a short and concise manner such as: log_lines(:incorrect_string) Is there anyway to do this using fixtures, or are they exclusively...

How to make WebAii test wait for jQuery animation to complete?

How can I write a Visual Studio WebAii Test that waits for a jQuery animate operation to complete before continuing? Currently I'm just pausing for 5 seconds using a loop, but this is prone to breaking easily if the animation time changes. I've tried some wait methods in the WebAii API but none of them seem to wait for that kind of thi...

Who does your testing?

This question is marked as a community wiki, and is subjective, but please don't close it, I think its a good question, and I would like to know what the development community have to say about testing. I've been a developer for over 10 years, and I've yet to work in a company that has a dedicated testing department. Over the years I'v...

TestNG Dataprovider size

Is it possible to get the number of elements in a TestNG DataProvider array at runtime? ...

Any tools to generate test data in database

I need to generate data in a database to test lucene. If anyone knows where I can get a sample database all a way to generate real life data please let me know. I need to test millions of rows that contains real life articles. ...

Hudson CI: cannot test grails-app

Hi, I've tried in each and every way to test a grails-app using hudson. I've tried testing with maven, I've tried testing with the grails plugin and I've tried testing with a shell builder it seems that building via shell is the only thing that works.. Every time I get the same error: org.hibernate.HibernateException: contains i...

How to test a connection to a remote SQL 2005 without SSMS?

We are having some connectivity issues from a client application connecting to a remote SQL Server 2005 (named instance). What are some ways to test connectivity from the client machine (Windows XP) that doesn't have SSMS or Query analyzer installed? I would like to see if the issue is related to the specific application or is it a mor...

Performance Testing Swing application

We have a Java Swing application which is basically a two tier application - An UI layer which connects to a database and which does some heavy-lifting across both the layers. We have been observing some performance issues with the application and are looking for strategies to load test the application. Basically our goal is to launch...

Why am I getting undefined method errors for "strip" and "downcase" when I run RSpec on my models?

I am running an RSpec test on a model and getting errors for string methods such as: "index, "downcase," and "strip." Any ideas why that is and how I can fix it? ...

Zend Framework: How should I unit test my Mapper in Zend_Db?

Hello, How would I test my mappers in Zend_Db? Each of my model will have 3 classes: The Model The Mapper The DbTable Here is my Unit Test: <?php // Call Model_BugTest::main() if this source file is executed directly. if (!defined("PHPUnit_MAIN_METHOD")) { define("PHPUnit_MAIN_METHOD", "Model_ArtistTest::main"); } require_once...

How do I test a web service receiving multiple requests from its clients?

I have an axis web service deployed on JBOSS. My web service is synchronous. So, how does a web service handle multiple requests? And how do I simulate/test that my code can handle multiple requests well? ...

How to run arbitrary object method from string in ruby?

So I'm fairly new to ruby in general, and I'm writing some rspec test cases for an object I am creating. Lots of the test cases are fairly basic and I just want to ensure that values are being populated and returned properly. I'm wondering if there is a way for me to do this with a looping construct. Instead of having to have an asser...

What test methods do you use for developing websites?

There are a lot of testing methods out there (blackbox, graybox, unit, functional, regression...etc.). Obviously, a project cannot take on all testing methods. So I asked this question to gain an idea of what tests to use and why should I use them. You can answer in the following format Test Method - what you use it on i.e Unit Tes...

Clean way to refactor test code

Background: I currently write test cases for the client side of a network protocol. As part of the tests I have to simulate several different expected and unexpected responses from the server (wrong header, connection lost, unexpected messages, timeouts). Each of these test-cases can be accessed by its unique address. My problem: The cur...