testing

selenium rc unable to click on a link

Hi, I'm facing a kinda weird problem today. Selenium appears to click on a link in one test case, but, ignores the same link in the subsequent case. This happens with any permutation-combination of test cases. Whichever case run 2nd, fail due to the above problem. can anyone suggest a solution for this?? I've tried selenium.click and se...

Cannot get to NSErrors from unit tests

Hello, I am setting up unit tests to run methods that should generate an NSError. For some reason, I can't get to the NSError from the unit tests. I created a sample method to test this, and it still doesn't work. What am I doing wrong? Implementation file: - (BOOL)createAnError:(NSError **)error { NSMutableDictionary *errorDet...

when would white box testing be better than black box testing

could you give me some examples, of when would white box testing find errors where black box testing will not? ...

autotools: don't include library when doing “make check”

So I'm writing tests for my code, and I want to stub out the calls to library functions (make sure that it's calling the right library calls at the right time, and that it handles errors appropriately). I think I'm SOL with the C standard library functions, but those aren't the only libraries I'm using. When building my final executabl...

Javascript, string: test string for presence of sub-string that includes an asterisk (*)

I'm doing a pretty basic string matching test as follows: if(msList.indexOf(textChoice) != -1) This works well except that occasionally the sub-string I'm looking for (textChoice) ends with an asterisk. Then I end up getting false matches because the asterisk in the string is interpreted as an operator, not a character in the string. ...

What things to test when re-compiling software for another operating system?

Our software vendor is currently working on a project to migrate our enterprise scale laboratory system from Tru64 unix to Red Hat. This obviously means recompiling with a new compiler and perform lots of testing. While the vendor will do their own testing, we also need to do acceptance testing. We don't exactly trust the vendor will be...

Test driven development of an MSBuild Task

What approach would you take while developing a custom MSBuild Task in a test driven way? Are there any available test harnesses suitable for test drive development of a Microsoft.Build.Utilities.ToolTask extension? I was considering attempting to use NUnit or MSUnit and check files generated and where they are placed, though this I ...

How should I test private methods in java?

Possible Duplicate: Whats the best way of unit testing private methods? I am a beginner programmer, and I don't know how to write an application that will be well structured for unit testing. I want to write applications with the ability to afterwards add effective unit tests. The problem is with private methods - they can't ...

R: Creating lapply() type test cases

I've been working on code to create a parallel lapply() type function that uses Amazon's Elastic Map Reduce engine as the 'grid' for processing (yes, it's a mapper with no reducer). After I get the code stable I'll abstract it as a foreach backend. But first I need to build tests to test the code I have. What would be some good test ca...

Automated test of client/server application

As the headline says, how would you test a client/server application, that is written in C/C++, that talks through a protocol over a network? Im a bit confused on how to do this. I have thought about making some mocking, but I have never tried mocking, so I dont know if this is the best way. How should I do this? I have written many unit...

Test for directory existence in C

I have a function that should create a directory. I want to test to make sure that the directory is created, and has the correct permissions I can't use lstat since I get EPERM when I do so (I assume I'm not supposed to know that much about a directory). So what else should I use? I can try to open it it with opendir, but that doe...

Proper Approach to Unit testing a "complex" application service

I have an application service (ie. large method) responsible for coordinating the interaction between several business objects. Essentially it takes a DTO from one system which contains customer information and an invoice, and translates it and imports it into a different system based on various business rules. public void ProcessQueue...

Asynchronous WCF Web Service Load Testing

I see several other questions about load testing web services. But as far as I can tell those are all synchronous load testing tools. (Meaning they send a ton of requests but the go one at a time.) I am looking for a tool where I can say, "I want 100 requests to be launched at the exact same time". Now, I am new to the whole load tes...

Optimizing Android testing effort

4 major OS versions: 1.5, 1.6, 2.1 and 2.2 (I guess we can safely ignore 1.0 and 2.0 now) 3 screen densities: ldpi, mdpi, hdpi 3 screen sizes: small, normal, large Lots of system testing scenarios. Is there are way to optimize the testing effort for an app that has to target all Android devices? What's the minimum number of emulators...

What has your experience been like as a Tester?

I am finishing my final year of my CS undergrad. I have done coop positions in three development positions. Although I know that I have just scratched the development surface I have some idea of what developing software is about. I am trying to figure what I am interested in doing after graduation so... I am curious to hear about the...

Can I create a Stub of an Activity in Testing Project?

I want to create a stub of one of my Activities, but I want to keep it in the test project so not to have it in the actual apk. I don't seem to be able to find a way to do it though. I get this: java.lang.RuntimeException: Unable to resolve activity for: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.example.test.StubA...

How can a test 'dirty' a spring application context?

The spring framework documentation states: In the unlikely case that a test may 'dirty' the application context, requiring reloading - for example, by changing a bean definition or the state of an application object - Spring's testing support provides mechanisms to cause the test fixture to reload the configurations and...

Blogs about software QA and/or testing?

There are lots of well known programming and development blogs, but could someone recommend some refference blogs about software quality assurance and/or testing? ...

Is there a way to run a java program against some data, then find out which branches were not taken? (code coverage)

I have some fairly complex java programs with lots of if/else statements where various components interact with each other. I have some test data which exercises the code as much as possible. Is there a way for me to run my code against this data and get information about which code paths were and were not executed? (by test files, I ...

Java Instantiate Abstract Class or Partially Implemented Interface

I have an interface that has about 20 methods (huge). I want to create a single instance for testing purposes, but I only need to override one method. What's a good way to get an instance of this class with the overridden method without having to define the whole class with a tone of "//TODO: implement this" methods. Mocking frameworks...