testing

What's the state of TDD and/or BDD in PHP?

How widespread, supported, developed is testing in the PHP world? On par with Java? Up there with Ruby/Rails? I Googled and found that testing frameworks exist but I'm wondering if they're widely used. Do the major PHP IDE's have built-in test runners the way Eclipse's Java tools do or NetBeans's Ruby/Rails tools do? Is testing built i...

Testing outlook plugins

What tools are good to do automated UI testing of Outlook plugins? We are developing plugin in VB 6.0. We are using Microsoft's UI Automation framework. Any best practices regarding the framework? Any other tools which should be explored? ...

How do I test a message queue client?

I am working on a java message queue client (beanstalk) and right now my tests look like this: //make sure our getJob can handle utf8 characters @Test public void testUTF8() { bean = new Beanstalk(); Job job = new Job(); bean.putJob("€"); job = bean.getJob(); assertEquals("€", job.msg); bean.close(); } ...

Is there a tool for creating historical report out of j/nunit results

Looking for a way to get a visual report about: overall test success percentage over time (information about if and how quickly tests are going greener) visualised single test results over time (to easily notice test gone red that has been green for long time or vice versa to pay attention to a test that has just gone green) any other ...

"Printf" testing in Rails

Hi, I'm new to Rails and I'm aware it has things such as unit-testing built in. But I'm interested in doing some more simple tests that are equivalent to your "printf" in C. So I'm testing a login page I've written and want to trace the code to see what each line like my find methods are returning. I try outputting with "puts" but I don'...

Automated test with Ruby: select an option from drop-down list

I write automated test with Ruby(Selenium framework) and I need to know how can I select an option from drop-down list. Thanks in advance! ...

Is there a tool to automate/stress POST calls to my site for testing?

I would like to stress (not sure this is the right word, but keep reading) the [POST] actions of my controllers. Does a tool exist that would generate many scenarios, like omitting fields, adding some, generating valid and invalid values, injecting attacks, and so on ? Thx Update: I don't want to benchmark/performance test my site. Just...

GUI mapping strategy in test automation

In my test automation practice I always use a gui mapping strategy that reduces a maintenance effort. So for example, if I need to identify the "Google Search" button (www.google.com), its XPAth will be //input[@name='q'] rather than/html/body/center/form/table/tbody/tr/td[2]/input[3]It's clear that in the second case a little change in...

Instantiate A Class For Testing

I need to test a method belonging to a service class. This service class has several dependencies in the constructor, some used by this method, some not. If we should not be using a DI container for our unit tests what is the best way to instantiate the service class? var service = new ServiceClass(new Repository1(), new Repository2()...

Can any IDE or framework help testing code like this...?

I mainly develop in native C++ on Windows using Visual Studio. A lot of times, I find myself creating a new function/class or whatever, and I just want to test that piece of logic I just wrote, quickly. A lot of times, I have to run the entire application, which sometimes could take a while since there are many connected parts. Is the...

Best way to test a Delphi application

I have a Delphi application that has many dependencies, and it would be difficult to refactor it to use DUnit (it's huge), so I was thinking about using something like AutomatedQA's TestComplete to do the testing from the front-end UI. My main problem is that a bugfix or new feature sometimes breaks old code that was previously tested (...

How do I set HTTP_REFERER when testing in Rails?

I'm trying to test a controller and I got this error. I understand the error, but don't know how to fix it. test: on CREATE to :user with completely invalid email should respond with redirect (UsersControllerTest):ActionController::RedirectBackError: No HTTP_REFERER was set in the request to this action, so redirect_to :back co...

Incremental .NET code coverage tool?

I'm looking for a tool (preferably free) that analyzes incremental code coverage of our C# solution. What I mean by this is that I don't want to know what the total code coverage is for all code or even for a namespace, but only new lines of code or perhaps lines of code that changed since the last checkin. (We use subversion for source...

Why does adding a test jar blow up this maven build?

Ok, so I'm getting a little annoyed with Maven 2 right now. The project setup we've got is simple: A "core" project, which is depended on by both a "batch" and "web" project, and an "ear" project which depends on "web". Pretty simple stuff. Well, since core is used quite a bit, and this is the first time the group is actually doing TD...

What's the difference between Assert.AreNotEqual and Assert.AreNotSame?

In C#, what's the difference between Assert.AreNotEqual and Assert.AreNotSame ...

How do you write and test your regular expressions?

Is their any wizards or tools to create and test regular expressions for PHP, because it is so difficult :( ? thanks :) ...

How do I test localization in a winforms application?

Is there a way to test different languages in a Windows application without changing the localization of the OS or adding code to the application to forcibly change the current culture? Perhaps some type of a launcher that will launch the application with a specified culture? ...

Helps participating in an System Verification Test team getting a better programmer?

Hi all, I am developing applications for 9 years now - meanly Java. Now am asked to participate in the SVT team for the next release. Overall this means installing complex system setups and running specific user scenarios on these setups as well as doing long runs and load runs. Overall I am positive about it as I will learn something...

Force JUnit to run one test case at a time

I have a problematic situation with some quite advanced unit tests (using PowerMock for mocking and JUnit 4.5). Without going into too much detail, the first test case of a test class will always succeed, but any following test cases in the same test class fails. However, if I select to only run test case 5 out of 10, for example, it wil...

Setting up a lab for developers performance testing

Our product earned bad reputation in terms of performance. Well, it's a big enterprise application, 13 years old, that needs a refreshment treat, and specifically a boost in its performance. We decided to address the performance problem strategically in this version. We are evaluating a few options on how to do that. We do have an exp...