testing

Robotium test fails with: junit.framework.AssertionFailedError: View can not be clicked!

I just got started with Robotium and tried a first very simple test, but experience some problem which I can't explain / doesn't seem logic to me. I have a TabHost with an ActivityGroup and a toggle button on each activity that's displayed in the tabhost content section. When I press the toggle button, the tab content area changes to an...

Spring's MockHttpServlet(Request|Response) alternatives?

In 'spring-test' there's mock classes for unit testing Servlets, which is very useful. Unfortuately, I do not need any of the other Spring componenets, and do not wish to depend on spring-core in my project. It is possible to either: Use spring-test without depending on spring-core, ... (i.e sever the mocking-classes from spring)? Us...

Questions regarding manual testing

Q1. If tester have no requirement, how he will test? Q2. Please give the example of "Not a bug".? ...

Adding custom shoulda matchers to TestCase

After using shoulda it is very clear that shoulda no longer uses macros (They are all deprecated for the preferred matchers) For example: should_allow_custom_test is deprecated for the following: should allow_custom_test However all the documentation I can find is for the former macro setup by placing them in the shoulda_macros dir...

How to test thread safety of adding to a hashtable?

We're using a hashtable to store sessions in a web service. I want to test thread safety of adding to this session. I wrote a Console App which generates lots of threads and adds to this session. But I am neither getting an exception nor losing any data. Am I doing anything wrong or isn't this much of operation a threat to hashtable?! ...

Testing Javascript with Google Website Optimizer?

Can I test Javascript code in GWO? For example, how would I test: $('#first_name_field').watermark('First name'); Ideally the person who tests different content doesn't have to enter lots of javascript, only the text they want to change... like "First name" above. ...

How-to organize integration tests and unit tests

Is it ok to have integration tests and unit tests in one assembly (project) ? Or rather have them separate ? ...

Good literature on unit testing?

Where can I find good literature on unit testing? Book titles and links are welcome. ...

How to build and test a big web service system for its complete life cycle?

I'd like to know how to build and test a big web service system for its complete life cycle. ex: Google Maps etc. I'd like to know how to do it properly and correctly. I know this a very open question. A general outline would be fine or if you want to be specific that's fine too. I'm interested when all the groups as developers and t...

How can I check that two relational databases are identical regardless of primary keys?

I have a relational database with about 100 tables. Each table has unique, numerical, primary key with synthetic values and there are many foreign keys which link the tables. The tables are not big (tens or hundreds or records). This is a SQLite database. I need, for testing purposes, to compare two copies of the database by a linux scr...

How to create a test environment for a multi-threaded application

All, Recently I developed a code that supposedly is a thread-safe class. Now the reason I have said 'supposedly' is because even after using the sync'ed blocks, immutable data structures and concurrent classes, I was not able to test the code for some cases because of the thread scheduling environment of JVM. i.e. I only had test cases ...

Flex UI testing automation

Hello all, We have a flex based UI whose functionality (eg: login, logout) needs to be tested periodically in IE 7. Manual testing takes a lot of time and hence we want to automate it. EDIT: We dont have the source code of this app uder test so cannot use something like FlexUnit. Is there a way to automate this testing? I have heard o...

Where can I find the django.contrib.admin tests?

Hi, I've written a custom admin filter, now I'm looking for tests of the builtin filterspecs...where can I find those? A jmoritz@laptop:~/workspace/django/django$ grep -ir testcase . | grep -ir admin returned only the admindocs tests... ...

HowTo Unit Test Client Server Code

Hi, I'm currently writing a Java Client Server Application. So i want to implement two Libraries, one for the Client and one for the Server. The Client Server Communication has a very strict protocol, that I wan't to test with JUnit. As build tool im using Maven and a Husdon Server for continues Integration. Actually I do not have an...

What is the relationship between requirements and test cases?

I see that there are many systems out there for requirements to test cases traceability and I started to ask myself what the relationship is between these two artefacts. For example, why have the notion of test cases as opposed to just calling them detailed requirements? Are test cases in fact a refinement of the requirements set? If ...

SSL certificate testing

Hi, Is it possible to test a website under HTTPS during the development phase, i.e. without actually purchasing an SSL certificate? Thanks, Mike ...

How do you respond to the argument "No time to test/develop clean code, because of the deadline"?

Ok, I think this question is at the wrong place and I'll head over to http://programmers.stackexchange.com/ to read/ask about it. Thanks all for your answers up to this point. :) apologies ;) I'm sorry if this question is a little bit subjective, but I can not come up with a better title. I'll correct it if you know something better. ...

What's the most effective way of reporting defect rates back to the developer teams?

We are currently reporting defect totals back to the development teams on a daily basis. We also track the usual defect metrics, namely: time to detect a defect, and time to fix a defect. Unfortunately, the teams don't seem to really care if they have the highest defect rates. Or possibly even care about their defect rates at all. I...

How to test EL expressions correctness statically?

Hello, On our web-application, we did some refactoring on the Java beans, and due to this refactoring, some actions / getters are not available anymore. For example, in the following example: public class MyBean implements Serializable { // Old name // public String getFoo() { return "foo"; } // New name public String...

jQuery: How to test is the browser supports the native placeholder attribute?

Hi, I'm trying to write a simple placeholder jQuery plugin for a site of mine but of course I only want to fire the function if the native placeholder attribute isn't supported… How can I test for native support of the placeholder attribute? Thanks for stopping by. ...