testing

DB (SQL) automated stress/load tools?

I want to measure the performance and scalability of my DB application. I am looking for a tool that would allow me to run many SQL statements against my DB, taking the DB and script (SQL) file as arguments (+necessary details, e.g. host name, port, login...). Ideally it should let me control parameters such as number of simulated clien...

software testing job

I am about to go for an interview for a software testing summer job. What questions should I ask the professor about this + I have never done software testing before, any good reference material you can recommend will be appreciated. thanks ...

Accurate timing of functions in python

I'm programming in python on windows and would like to accurately measure the time it takes for a function to run. I have written a function "time_it" that takes another function, runs it, and returns the time it took to run. def time_it(f, *args): start = time.clock() f(*args) return (time.clock() - start)*1000...

How to set up a development environment in MS Access

I have created an MS Access 2003 application, set up as a split front-end/back-end configuration, with a user group of about five people. The front end .mdb sits on a network file server, and it contains all the queries, forms, reports, and VBA code, plus links to all the tables in the back end .mdb and some links to ODBC data sources li...

Sould setter for delegate be in the interface ?

Hello, We have lot of object with this kind of design : Interface and several implementations, and use of several object by composition. Exemple : Foo implements IFoo and have a Bar object who implements IBar Foo also have a setBar(IBar bar) method for injection of dependancie. My question is : the setter sould't be in the interfac...

Organising methods for performing tests - C#

I have a class at the moment and within this class it has 15 or so private methods that perform certain tasks on a loop run by a timer. Some of these methods call of to the database and some don't. The question is...how can I arrange these so that I can setup the class so I can fake a repos or executing process?? This is a simplified ...

Using different Apple ID for app testing and for App Store/iTunes purchase on same iPhone?

I signed up for the iPhone Developer Program (now awaiting approval) using a new Apple ID, this ID is different from the one I used on my iPhone for iTunes/AppStore purchase. I only have one iPhone and want to use the same device for app testing and day-to-day phone use. I can not try out yet but I guess iTunes/XCode will use the new A...

Testing for Flash capability on the server-side

I'm developing an ASP.NET website that will need to support non-flash users. In case the user's browser doesn't support Flash, or they have Flash disabled, I'd like to download a large splash image to the browser. However I don't want to waste bandwidth downloading it if the Flash does render properly. So is it possible to test, from ...

Is too much focus on testing benefits a bad thing overall?

What I mean by this, is that sometimes architects look to simplify and improve testability, at the expense of other important forces. For example, I'm reviewing a very complicated application, made so by extensive use of design patterns that overly favor testing, e.g. IoC, DI, AOP, etc... Now, typically I like these things, but this ...

SimpleTest Mocking Problem

I'm writing some test cases, and I've got a test case that is using Mock objects. I need to check to see if two class methods are called from another class method. Here's what I've done: First I generated the Mock: Mock::generate('Parser'); Then, inside my test I called: $P = new MockParser(); $P->expectOnce('loadUrl', array('http:...

Testing Complex Data Scenarios

I'm developing a Java Web Application that runs a series of financial calculations for a user. When a financial calculation is run, roughly 30 different inputs are used to calculate 15 different values over a maximum of 18 years (max 15*18 expected values). As you can tell, there is a considerable amount of information to compute and val...

Branch Coverage

When writing test cases which are supposed to have 100% branch coverage, is it ok to have one of your cases that covers two branches and another case that only covers one. note: we are assuming there are only three branches in the code. edit: 3 branches means three basic if statments that are all seperate to each other within a body of...

How to Unit Test POCO's? Or shouldn't they be tested?

Hey there, I want that my unit tests to cover my POCO's. How should I test them? What If I add a new property? How to make my test fail? Testing the properties and methods I know, but the problem is, how to make sure my tests fail is anything is added to my poco's. Cordially, ...

User Stories To Code

Suppose I have a bunch of User Stories ( as a result of the planing Session I went through with my team ). I don't have any code in the application yet and going to start with my 'A' or highest Priority Stories/Epics Say for example "As A User I should be able to Search for more users so that I can add more friends on the website" ...

How to Unit test with different settings in Django?

Is there any simple mechanism for overriding Django settings for a unit test? I have a manager on one of my models that returns a specific number of the latest objects. The number of objects it returns is defined by a NUM_LATEST setting. This has the potential to make my tests fail if someone were to change the setting. How can I ove...

Testing Webservice with SoapUI windows authentication

Is it possible to include the windows domain credentials to test my webservice with soap ui? I found a properties page but the IIS just responses with "wrong credentials". ...

How do I easily parse a URL with parameters in a Rails test?

I have a some code that embeds a return_to URL into a redirect (like OpenID) that I want to test: def test_uses_referrer_for_return_to expected_return_to = 'http://test.com/foo' @request.env['HTTP_REFERER'] = expected_return_to get :fazbot # @response.redirected_to looks like http://service.com?...&return_to=[URI-encoded ver...

Reuse cucumber steps

I want to reuse some cucumber steps but can't seem to find the right way. I want to write a step like: Given /^I login with (.*) credentials$/ |type| # do stuff with type being one of "invalid" or "valid" end But then have another step like: Given /^I login successfully$ # call "Given I login with valid credentials" end So in ...

How am I going to reproduce Javascript bugs if I don't have a Mac & Safari?

Simple question... How am I going to reproduce Javascript bugs if I don't have a Mac & Safari? Is it possible to run a legit copy of Mac OS on VMWare, or even better...run Safari in Windows? ...

Has anyone successfully used summary result file with generic tests?

I honestly cannot follow the mechanism given in the MSDN article Using a Summary Results File with a Generic Test. It is clear how to use xsd, and again it is clear how to wrap my existing application in a generic test. But right in between, the article says; Next, edit the program you will wrap as your generic test. Using the clas...