testing

How do you organize your business requirements and tests?

as of right now i'm working at place where's there's a lot of legacy codes and pretty much no useful documentation. and most of the time we just treat business requirements as whatever that is already implemented previously. i'm looking for any tools or useful method to keep all the requirements for future use and for regression testin...

Visual Studio Unit Test: why test run inconclusive whereas testing same float values ?

I'm learning VS Unit test and tried this: [TestMethod()] public void calcTest() { double expected = 1.234F; // TODO: Initialize to an appropriate value double actual; actual = 1.234F; Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method.");...

Changing variables in realtime when debugging in eclipse?

Hey guys&dolls Ok.. I hope i can get this across without sounding like an idiot. Using Eclipse, when debugging is it possible to change the value of variables during runtime of a project for testing purposes. For example, say I have a method that returns the number 5 but for testing purposes i want to output 10 instead. This isnt the...

How to check that activity displays dialog during android unit testing

I want to write testcases for my android application using JUnit. And I faced some problems. Is it possible to check that activity displays some dialog at current moment? Here is a small piece of my test application: ... Instrumentation instr = getInstrumentation(); monitor = instr.addMonitor(MainActivity.class.getName(), n...

Which is the correct terminology to use concerning a bug?

a bug is: error; failure; defect; fault; ...

EJB3 unit testing expected exception

Hi guys! Are there any ways to test for expected exceptions on an EJB3 session bean method. When I invoke the method the container (glassfish) correctly outputs that an IllegalArgumentException has been thrown, but on the client I am not able to catch any exception arising from that method invocation. Could it be that exceptions at this...

Do Windows versions matter when doing browser testing?

I'm testing IE7, IE8, Safari, Chrome and Firefox. It would be pretty less boring if you guys told me that I don't need to test for XP, Vista and 7, since there's no difference. Thanks ...

Run a single Maven plugin execution?

I thought I was an experienced Maven user, but I am having a mental block on how to do this! I've been able to use the Maven sql plugin to drop, create, and install a schema in a database via plugin executions I've defined and bound to the pre-integration-test phase. However, now I'd like to use that same sql plugin to insert some samp...

Is there a name for the testing technique I use?

In case of things that are hard to test using traditional xUnit-style methods, such as various converters, XSLT, etc. I often employ technique based on output comparison. The test program produces some output when it's run for the first time. I make sure it's correct and save it for the later use. On the following runs the program compar...

What's a good Firefox extension for autopopulating forms while testing?

What's the best Firefox extension for auto-populating forms while testing? Preferably one which allows you to not collect data from certain sites ... I only want to use it while testing. ...

How To Ignore and error in Visual Studio WebTests

I'm using Visual Studio to record some web tests. I'd like the test to pass (obviously), but it is failing because of something out of our control - so I'd like to surpress that failure. One of our pages is using an API from a third party like say, let's pick on, facebook. (It's not facebook, but for sake of argument it is). Let's say ...

What is fault masking?

Can anybody explain what fault masking is, and and what its consequences are? ...

Performance testing?

As performance testing is regarded as black box type so why it required development skills? ...

In IntelliJ, how do i debug a maven test goal?

Using intellij and maven pom files, how do i debug tests run inside the maven test goal? When i run them directly in the code, it complains something about profiles missing, which i've ticked inside intellij's Maven Projects. ...

Can I run multiple versions of Google Chrome on the same machine? (Mac or Windows)

This fabulous answer suggests there’s no way to run multiple versions of Google Chrome on one machine. Every now and then you’ll get a website user stuck on an old version of Chrome (no idea how, but it happens — maybe they installed the standalone version?) with an issue, and you need to be able to verify it. Bit difficult to do that w...

Deciding test statistic and distribution for a random number test

Hi, How do u decide on a test statistic while developing a test for random number testing and its likely distribution. How do u calculate and decide on the formula for calculating a p value for the test statistics distribution. TIA ...

Effective testing in C++ with stubs and mocks? (possible?)

I'm looking for some style advice for testing this piece of (Objective-)C++ code, I bracketed the Objective part, as I don't think it should have any bearing on this test. class Probe { public: bool playing(); } bool Probe::playing() { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; iTunesApplication *iTunes = [S...

Know of any Firebird profilers and/or stress tester app's ?

The title pretty much says it all. Im looking for som testing programs for a firebird db server, to stress-test and find bottlenecks. Something like DB-Optimizer, only for firebird would be nice. Can also be separate programs, one for stress-testing and one for profiling. ...

Why doesn't this test in the Diaspora app fail?

From http://github.com/diaspora/diaspora/blob/master/spec/models/profile_spec.rb describe Profile do before do @person = Factory.build(:person) end describe 'requirements' do it "should include a first name" do @person.profile = Factory.build(:profile,:first_name => nil) @person.profile.valid?.should be false ...

How do you unit test non functional code?

It seems to me that some code is easier to unit test than others. I love writing unit tests for highly functional code (by this, I'm referring to functions that primarily operate on their arguments and return computed results). But, when the code is much more about it's side effects, testing it becomes much harder. For example, a socket...