testing

How to fix a spec for stripping hml tags after adding javascript to a view in Rails?

Working on a request to add a pretty tooltip to a page (using jQuery tooltip plugin, as recommended by others on my team). Pretty tooltip is working fine, but two of the existing specs now fail, an example below: describe 'with a discussion post containing html' do before(:each) do @post.update_attributes(:body => "some <strong>...

Which BDD framework for JavaScript do you use?

I'm developing large application using ExtJS framework. Because it grows too fast, I realized that this might be the time to start doing tests. I want to go for BDD technique, I found several BDD frameworks for JavaScript around (Screw.Unit, JSpec, JSSpec), but I'm still not sure which one to choose. There are some articles about this t...

Strategies to block an external webservice to simulate "down" during for a testing scenario?

I am working to integrate data from an external web service in the client side of my appliction. Someone asked me to test the condition when the service is unavailable or down. Anyone have any tips on how to block this site temporarily while we run the test to see how the service degrades? For those curious we are testing against Virtu...

Does Team System Test support running tests under a specific identity?

Hi, Is it possible to configure unit tests in Team System Test to run under a specific identity (similar to runas)? Thanks much, Jon ...

Testing the functionality of already compiled binaries

Is there a library for testing the functionality of already compiled binaries? Something like unit tests but for already compiled executables, that should allow me to specify and verify rules regarding the behavior of the program for specific inputs and scenarios. I'm specifically interested in something targgetting the .NET platform, bu...

What are the minimal quantity of testers per programmers?

Hi, i want to know if exist a ideal quantity of testers per programmer. I heard that in many enterprises exist 1 tester for 20 programmers and i don't imagine how this is possible, whatever the question is exist a ideal quantity of testers per programmer? if exist, how is the relation ? ...

Testing WML documents without Nokia

Are there any testing platforms out there for testing WAP/WML pages besides that provided by Nokia? I have tried to get ahold of the Nokia Mobile Internet Toolkit but it's too tied down with authentication and certificates etc. Nokia software is like Adobe and......sucks. ...

Can some one please provide the practical examples of stubs and drivers?

Hi All, I need some practical examples of stubs and drivers with respect to top-down and bottom-up approaches to testing. I don't require code here. Just the scenario based examples. ...

How to install MSpec BDD Framework?

Does anyone know if there is an MSpec installer with R# and/or TestDriven.NET support? ...

How do I generate quasi-random statistical data sets?

I'm looking for a tool that will let me generate a data set with certain statistical properties. For example, suppose I want to generate 1 million integers with x number of outliers for use in testing. Are there any tools for generating test data sets like this? I don't necessarily need anything fancy, just some basic functionality. ...

Integrate Unit test into Visual Studio Express 2008

Is it possible to integrate any unit test framework into VS2008 express? ...

Unit Testing - How to go about it?

I want to unit test my program (in C) because I know of the benefits of doing so as well, as it shows where the problem is. I also like to blackbox test, since it tells me if the program works (at least, for the tests). At the moment, I am using Autotest (Which comes with Autoconf) in order to not add a dependency. At this point, I wo...

import twice when run test

i have this code in my tests.py: from models import * and in the models.py I have a signal handler and register it with post_save.connect( post_save_note, sender=Note ) and when i run test with ./manage.py test main I found the signal handler was registered twice and executed twice, and I found it's because the models was imported ...

How do I silence the following RightAWS messages when running tests

I'm using the RighAWS gem, and mocking at the http level so that the RightAWS code is being executed as part of my tests. When this happens I get the following output ....New RightAws::S3Interface using per_request-connection mode Opening new HTTP connection to s3.amazonaws.com:80 .New RightAws::S3Interface using per_request-connecti...

JSF 1.2 - Does PostConstruct execute before or after getters

I have this code for a backing bean: @PostConstruct public void refreshData() { rows = (int) dd.getRows(); pages = dd.getPages(); getRender(); } // action public void getCount(String sql, Object... values) throws Exception { dd.getCount(sql, values); rows = (int) dd.getRows(); pages = dd.getPages(); } // getter ...

How thorough should you get with RSpec testing?

I'm just starting to grasp BDD and RSpec and one thing I'm really having trouble with is figuring out how thorough I should be with my testing. I'm just not understanding how fine-grained my testing should be to still be useful but not double development time. Is it just a matter of preference? Or is there some general standard for wha...

Dynamically building a URL in QTP

Hi, I've been taking a quick look at QTP with one of our test team. We've figured out some basics like recording a test, capturing text using output values, putting in check points, etc. However, I can't figure out how to do the following... We have a web form which a user fills in and submits. This will create an item and assign it...

PHP SimpleTest - Handling Exceptions

Hi, I have a few simple classes used in a forum application. I'm trying to run some tests using SimpleTest, but I'm having problems with exceptions. I have a section of code which generates a custom exception. Is there a way to catch this exception in my test and assert that it is what I expect? This is the method within my class: p...

Java JUnit: The method X is ambiguous for type Y

I had some tests working fine. Then, I moved it to a different package, and am now getting errors. Here is the code: import static org.junit.Assert.*; import java.util.HashSet; import java.util.Map; import java.util.Set; import org.jgrapht.Graphs; import org.jgrapht.WeightedGraph; import org.jgrapht.graph.DefaultWeightedEdge; import or...

my iPhone software is so slow!

I ported one of my mac applications to the iphone. WOW!!! is it slow! At first I started thinking maybe I was doing a lot of disk access. But as I started looking I realized I simply do an offset read of a binary file. I only read in about 512 bytes of data. I also have an array that is huge. Maybe 2MB. But why would that be slow?...