testing

How to make apache slow and unreliable?

I'm writing some code on a mobile device that uses a REST service to retrieve data from a host. That REST services is being proxied by Apache. In test mode I would like to be able to simulate network outages (as if the device has lost it's cell connection) to test the applications handling of intermittent failures. I also need to valid...

How do you ensure the same bug does not creep into the product the second time?

I understand the short answer to it is by doing testing but still how do you do this testing? Do you modify your test cases to include the bugs as additional test cases to run or do you just verify all the bugs in your bug tracking system starting from the oldest to the newest releases. Thanks for the answers. Looks like my question was...

Tools to manage manual testing results - possibly integrated with trac?

At work we currently use Trac to manage our test cases. However, we have quite a few TCs that are listed on test plan wiki pages instead of tickets. My manager has recently become interested in better documenting the results of manual testing. While this is a noble goal, and several of the people on the QA team are quite gung-ho about t...

JMockit Hibernate Emulation

I was wondering if anyone tried using JMockit Hibernate Emulation? Jmockit documentation says that when Hibernate Emulation tests are run, they won't use the O/R mapping information. So, this means it doesn't test O/R mappings, HQL query strings, Native queries, etc. Then what really are the benefits of Hibernate Emulation? One can jus...

Tips for beta testing a game?

Hello! We are finishing a game that we would like to beta test. We don’t have the time nor the budget to do a large scale testing, we will simply show the game to some of our friends. (I hope that we can still gather something useful of it.) In the Age of Empires post mortem (Postmortems from Game Developer) I found the following: A...

Cookie Testing for payment gateways.

While testing the payment gateway for some eCommerce site, is there any way to check if the cookies are saving the user's credit card details? If so, can we verify if they are in encrypted form? ...

Create test data in SQL Server

Does anyone have or know of a SQL script that will generate test data for a given table? Ideally it will look at the schema of the table and create row(s) with test data based on the datatype for each column. If this doesn't exist, would anyone else find it useful? If so I'll pull my finger out and write one. ...

Flex: Testing UI components at the click level?

I've been working on a Flex component and I'd like to write some automated tests for it. The trouble is, the UI testing tools I've looked at (FlexMonkey and Selenium Flex API) don't simulate "enough": Most of the bugs which have come up so far relate to the way Flex deals with dragging and dropping, which these libraries can't simulate ...

What are the best-practices for automated testing of a WCF that returns a datatable

I am trying to automated the testing of a reporting website. I need to verify that the content of a datagridview is as expected for the reports. The datagridview will display column names and datarow results returned from an SQL database. I am thinking that the meat of the application which is stable is behind a WCF facade, so I should ...

Are there any good online tutorials to TDD for an experienced programmer who is new to testing?

I'm working with a Python development team who is experienced with programming in Python, but is just now trying to pick up TDD. Since I have some experience working with TDD myself, I've been asked to give a presentation on it. Mainly, I'm just wanting to see articles on this so that I can see how other people are teaching TDD and get...

Windows: How to test UI under high-dpi?

i want to test how my application reacts to high-dpi settings. i don't just mean 120dpi. i want to test higher dpi settings, such as: 150dpi 300dpi 600dpi 1000dpi 1200dpi My development machine's video card cannot do the resolutions required to have 300dpi, (or even 150dpi for that matter). Assuming the interface is designed to 'fi...

Replicate Eclipse's "display tab" in my Java/Swing application?

So, I've got a Swing GUI that, for testing purposes (the other applications that my task will interact with aren't all developed yet), I'd like to be able to give a "debug console" to. The idea being that I could use this console to explicitly set values in my model, and verify that the appropriate GUI elements get updated. The Eclip...

Do I test a class that does nothing?

In my application, I have two classes: a logger that actually logs to the database and a dummy logger that does nothing (used when logging is disabled). Here is the entire DummyLog class: class DummyLog(object): def insert_master_log(self, spec_name, file_name, data_source, environment_name): pass...

Which one of the following is true when creating interfaces that alter data on the server?

I just finished a BrainBench test and for the life of my can't figure out the answer to this question...I don't think there is a correct answer. Choice 1 PUT requests need to be used; they are not repeatable. Choice 2 HEAD requests need to be used; they reduce data traffic. Choice 3 GET requests need to be used; they are easier to sen...

Isolating Dependencies Without Inversion Of Control

I'm working on an enterprise application that relies heavily on message queues, com+, databases, httpcontext, static utility classes etc. Since there's 600 projects in our system it seems impractical to rewrite to use inversion of control. Typemock claims they are the only isolation framework that doesn't require you to rewrite your co...

How to interpret 'test every scenario you can think of'

I was recently tasked to, "Test every scenario you can think of and try to break the component" What might be sensible in 'everything' when the application is a website? NOTE: This particular site is ASP.NET with MS-SQL, however, I would like to know what would be covered in general as well. Thank you all for the great responses! ...

How can I mock a web server in Perl?

Our web application works together with several web-services which we can't influence. After each workflow (tested with Selenium) a hook call to a web-service occurs. I would like to mock that server. Ideally, I want a HTTP server object which I can start and kill at will, and an URL dispatcher which would call certain subroutines in my ...

How do you import main classes in test classes in Maven?

I have generated a new Scala project with Maven and it created a folder structure with a src/main/scala and a src/test/scala folder. I have some code in src/main/scala and wanted to write some tests, the problem is that I can't import the classes from src/main/scala. How do I do that? ...

AJAX Performance Testing

I need to do some performance/load testing on this website - Information Queensland Atlas In the past I have used Jmeter and WAPT 5 with reasonable success however in those cases the websites being testing did not make use of AJAX. For the website above I need to simulate a number of users and determine the capacity of the current serv...

Testing WML on mobile browsers

I am developing a mobile web application which is implemented in WML (to minimize roundtrips to the server). I've tested the application on the following browsers: IE for Windows Mobile 5 IE for Windows Mobile 6 Opera Mobile Nokia Series 40 web browser Nokia Series 60 web browser NetFront (for Symbian) NetFront (for Sony Ericsson) Net...