testing

Is there a test runner for .NET tests that can run multi-threaded to take advantage of multi-core machines?

I'm setting up CI at present using Thoughtworks Studios' Cruise, Gallio to run xunit.net fact/tests, and ncover 2 to do code-coverage. I noticed that running the code-coverage pegs one of the four CPUs that our build-agent server has, and wondered whether there was a multi-threaded test-runner that I might use instead, to take advantage...

Unit Testing for Non-Developers (QA)

We have a QA Staff in its infancy, in terms of automated testing. Currently when they test our web applications (mainly .NET) they follow test scripts they have written over the course of of a few years, manually access the test environment via a browser and follow their test scripts. The staff is comprised of individuals that are not ...

Are you really using unit tests?

I have been involved in a lot of projects, both old and new, and one thing that they have in common is that almost none of them have been using unit testing. I prefer to use it, but often the customer isn´t ready to pay for that, and suppose that the code just works as it should. So, do you use unit testing in your projects, or do you r...

How to reinitialize static finals while unit testing

I am writing unit tests for a class, which has a static final variable. However, since the state of the static final var is modified in each test, I need some way to reinitialize it. How would this be possible? Would i need to use some sort of a custom classloader? The variable is initialized as - static final CountdownLatch latc...

Test automation with postgresql connected application

Hello there, I want to automate tests on my web application, and it uses postgresql. Does anyone know how define a restore point on a postgresql database and restore to an earlier state? I heard something about point in time recovery, but i dont if this is what i need. Thanks in advance ...

What's the best way to test a site which displays differently depending on the client location?

I am using an IP location lookup to display localised prices to customers depending on whether they are visiting from the UK, US or general EU and defaulting to the US price if the location can't be determined. I could easily force the system to believe I'm from a specific country for testing but still there is no way of knowing for su...

Is there a "result server" that store performance test result, with good analysis tool?

I need a "result server" that can store my raw test data (server cpu, memory usage, etc), create report template (e.g. user number vs response time), generate live-reports base on templates, and perform complicated analysis (such as 70/80/90 percentile charts, data distribution comparison between test, etc.) ...

How can one mock/stub python module like urllib

I need to test a function that needs to query a page on an external server using urllib.urlopen (it also uses urllib.urlencode). The server could be down, the page could change; I can't rely on it for a test. What is the best way to control what urllib.urlopen returns? ...

Should a developer write their own test plan for Q/A?

Who writes the test plans in your shop? Who should write them? I realize developers (like me) regularly do their own unit testing whilst developing and in some cases even their own Q/A depending on the size of the shop and the nature of the business, but in a big software shop with a full development team and Q/A team, who should be wri...

Stress testing a web service method with Powershell

I want to stress test a web service method by calling it several thousand times in quick succession. The method has a single string parameter that I will vary on each call. I'm planning on writing a Powershell script to loop and call this method a number of times. Is there a better way to do this? ...

Expectations on Partial Mock - NullReference Exception

I've a problem with partial mocking using Rhino Mocks: var authentication = (FormsAuthenticationService)_mocks.PartialMock( typeof(FormsAuthenticationService)); Expect.Call( delegate{ authentication.SetAuthCookie(null, null); }).IgnoreArguments(); ..and I get NullReferenceException on "Expect." line.. I will just add that FormsAuth...

Selenium: How to refresh a page over and over until it contains specific content?

[UPDATE 2: We rendered this question no longer relevant - using the -avoidProxy argument to the Selenium server meant Selenium-RC and our application worked together. So now we can use a programming language client driver to do the below. Thanks for the answers, though, they were helpful in pushing us to to this] We have a web applicati...

Is there a way to force IE or FF into a handheld mode for testing "@media handheld" stylesheets?

Is there a way to force IE or FF into a handheld mode for testing "@media handheld" stylesheets? Or, do I have to publish the pages and test with my Blackberry? I'd prefer to test this without pushing the application to the live server as the application is already in use. Any ideas for me? ...

Scrum, but with no testing or documentation

What do you do when you join a team that says they use Scrum, but only use it as a time-management tool and not the whole process? How can I reinstate back testing and documentation? I was thinking to start off with adding user stories specifically for testing and documenting. Perhaps someone else has more experience with this then I do...

JMeter Tests and Non-Static GET/POST Parameters

What's the best strategy to use when writing JMeters tests against a web application where the values of certain query-string and post variables are going to change for each run. Quick, common, example You go to a Web Page Enter some information into a form Click Save Behind the scenes, a new record is entered in the database You want...

Replacement for JWebUnit / HttpUnit

We've used both JWebUnit and HttpUnit in the past to do functional tests of web applications. Both of them seem to have issues in handling javascript. We are not particularly interested in testing the javascript at this point, but JWebUnit and HttpUnit tests have broken since we added some small Ajax components (Dojo Date / Time pickers ...

Pre-existing tool for validating file names and formats

We have to validate large amounts of resource files for naming conventions and format integrity, etc. Is there a framework/tool available to make this easier? Build tools like Ant/Phing spring to mind but I wonder if there's something more focused to this kind of testing. Ideally it would cache results based on modification-time and g...

Data access Integration Testing ... how do you do it ?

public class RollBack : OnMethodBoundaryAspect // or another AOP for meth interception { public override void OnEntry(MethodExecutionEventArgs eventArgs) { try { ServiceConfig cfg = new ServiceConfig(); cfg.Transaction = TransactionOption.RequiresNew; cfg.TrackingAppName = "Appl...

Differences between Safari for Windows and Safari for Mac

Hello, What are the differences from a developer point of view between Safari for Mac and Safari for Windows? I think it boils down to evaluate differences between (if I missed something, please correct): - Layout rendering - Javascript behavior The final decision to be made being: Can developers test only on Safari Windows (knowing ...

Most important requirements to put on a QA job posting?

We're in the process of hiring a new Q/A person for our team. The previous person wasn't as technical as we would have liked and lacked formal Q/A experience. This was probably due to the former posting going up and the requirements not matching what the job expectations were! As a result our teams development suffered for quite a while ...