testing

Java/J2EE standard practices and design choices

I have a couple of design/architectural questions that always come up in our shop. I said "our", as opposed to "me" personally. Some of the decisions were made and made when J2EE was first introduced so there are some bad design choices and some good. In a web environment, how do you work with filters. When should you use J2EE filte...

Testing Google Wave Gadget outside Google Wave?

I wonder if there is a tool/framework available that supports testing Google Wave Gadgets outside Google Wave. I know these two emulators (1 and 2), but I still always would have to upload my gadget for every debugging run. I am looking for a tool that displays the current state, allows to modify the state and to send the state back to...

Performance testing application for bottle necks using production data

I have been tasked with looking for a performance testing solution for one of our Java applications running on a Weblogic server. The requirement is to record production requests (both GET and POST including POST data) and then run these requests in a performance test environment with a copy of the production database. The reasons for u...

Are there database testing tools for python (like sqlunit)?

Are there database testing tools for python (like sqlunit)? I want to test the DAL that is built using sqlalchemy ...

Adopting software project management and testing protocol from scratch

I work in a small company (2-4 software developers) where software is "only" a part of the main product (specialized measurement instruments). So far the software has been built from start to end with no formal process at all, but as we're steadily growing in both in number of products and people involved, it's evident that we need to ad...

How to write Audit methods in Java?

Hi folks, As my java application increases in complexity i want to write audit methods to make sure that i am doing the right thing. How can i do it in java? thx ...

Accessing protected member functions from test code in C++

I've been racking my brain trying to think of the best way to access a protected member function from some test code in C++, here's my problem: //in Foo.h Class Foo { protected: void DoSomething(Data data); } //in Blah.h Class Blah { public: Foo foo; Data data; }; //in test code... Blah blah; blah.foo.DoSomething(blah.da...

Ibatis2 and test context

Hi everyone, I'm having a stupid configuration issue with Ibatis in my Spring project. Please don't jump on me about how all this was setup, I'm just following the "in house project structure policy". So here is the structure, we have the "src/main/resources/META-INF/" folder that contains all of our config files used by the applicati...

When not to Use Integration Tests

I am writing an application that uses 3rd party libraries to instantiate and make some operations on virtualmachines. At first I was writing integration tests to every functionality of the application. But them I found that these tests were not really helping since my environment had to be at a determined state, which turned the tests m...

Watin: Search in children of an element

I want to do a "two step" search using Watin. For example I would like to search for a ul-tag having class "abc". Then I would like to search for a certain li-tag inside that element. The code might look like this: ie.ElementWithTag("ul", Find.ByClass("abc")).ElementsWithTag("li", Find.ByXYZ()); But Element does not have an ElementWit...

rspec testing views with internationalization ?

Hello, I want to make sure I have the right meta desc/keyword and title text in my view so I want to create rspec views tests for that. Now the real challange here is how to make it work across multiple languages. The way I've done it is: it "should have the right page title" do title = "some nice title here" response.should have_...

How do I delete dynamically created button control from canvas using WPF

I have created nearly 40 to 60 button controls dynamically on canvas control using WPF. Now I want to remove the selected button control from the canvas. How do I do this. ...

Do good tests enable sloppy coding?

Let's say you're coding, and you come across an opportunity for simple code resuse (e.g. pulling a common piece of code out to an accessible place like a Utility class or base class). You might find yourself thinking, "I know it's good to do this, but I have to get this done now, and if I need to make a change to this code, and forget ...

Unit Tests for JPA/Persistence in General

How/would you test super-simple methods that are built on a persistence engine. I'm going to use JPA but any persistence mechanism I'm sure has its equivelents. For example... @Entity public class Category { @Id @GeneratedValue private long id; @NotNull @NotEmpty private String name; @NotNull @ManyToOne private ...

Unit Testing CodeIgniter with Simpletest - very few tests

Hello all! On our development team, we decided to give Unit Testing a try. We use Simpletest. However, it's been a tough road. After a week, I only have created 1 unit test that tests a certain helper file. That's it. The rest (controllers, models, views, libraries) don't have unit tests yet. And I plan to not test a majority of them. Vi...

How to make PowerBuilder UI testing application?

Hi. I'm not familiar with PowerBuilder but I have a task to create Automatic UI Test Application for PB. We've decided to do it in Python with pywinauto and iaccesible libraries. The problem is that some UI elements like newly added lists record can not be accesed from it (even inspect32 can't get it). Any ideas how to reach this elemen...

In Rails why can't I use reset_session or any of my methods in application_controller within my tests?

I tried to use reset_session in my test code but it complains no method found. I also tried to use some of the authentication methods ive written in my tests and they produced no method errors too (they are in my application_controller ) Can someone help to explain if a) this is a problem experienced by all and not just me b) a workar...

How to test something rendered correctly?

How does one test if an application rendered something correctly? For example (2D example): How does one know that the shadow is placed correctly or the correct color / outline was rendered? Or if 3D effect renders correctly when one would rotate in a direction? Other things could be if the word art was re-sized, how does one measure...

System Testing a desktop application

Hello, I've got a desktop application written in C# created using VS2008 Pro and unit tested with Nunit framework and Testdriven.net plugin for VS2008. I need to conduct system testing on the application. I've previously done web based system tests using Bad Boy and Selenium plugin for Firefox, but I'm new to Visual Studio and C#. I...

Test Data For Visa or Mastercard

need a virtual or test data for visa or master card to test my system like Authorization code, card number and expiry date ???? ...