I usually try to minimize testing with Selenium and maximize the usage of plain old back-end testing (JUnit, mocking). With Tapestry I am finding it hard to test pages and components in the latter way due to the "magic" that occurs with the callback functions.
Have you been able to solve this? Or are you just using Selenium for the whol...
Is it possible to use IPython's log functionality to automate testing?
For example, if I log an IPython session to a file is there a way to automatically replay this session and compare the output to the output of the original session? I would like to make several refactoring passes of my python code and replay this log file back to be...
I'm building a Spring web app and up until now all of my testing is using a browser.
This involves starting the server, opening a browser window and checking to see if accessing any of the pages causes an error.
This is starting to get repetitive and doesn't seem to be the most efficient way to do this.
Since the Junit jar file is ...
I'm currently working on a new Date class with some extra clock skew features. I want to fully test it so I can guarantee it is a drop in replacement for the existing Date class.
So coming from the Ruby world - we have a rubyspec project which is a test suite for all of the standard features, so that different interpreters can easily be...
I have been tasked with coming up with a testing strategy for our already existing PHP application. The application is running on a standard LAMP stack and is slated to be completely rebuilt starting in the next 2 to 3 months, so this is the perfect time to pick something and run with it.
These are the types of testing we would like ...
It's about time I wrote a functionality test for Dist::Zilla::Plugin::Catalyst. But I realized that I haven't a clue on where to start. I know that I have to have a custom minting profile recognized by my test suite, and that I'm probably going to just test to make sure that all the right files are output with suitable perms. I'm not at ...
Hello all,
I'm very new to rails and I've been following a lot of great tutorials and examples out there in the community, so first off thank you!
I'm having a problem with my test code. The application works, and I can see from tailing the test logs that the database is being written, but for some reason, it's not returning the save ...
I want to test some class methods that contain logic dependent on the current time it is running. I'd like to set the thread/jvm/system time to a specific future date in the JUnit setup and run my tests. Also I would like this to be temporary. Has anyone done this before?
I was thinking of something similar to TimeZone.setDefault(timezo...
Hi,
What unit tests generally tend to be hard to write and why? I am particularly interested in methods which don't need mocking.
Thanks
...
Is there a way to sort of "pause" the DOM (in either firefox or chrome). Meaning, perhaps there's an animation happening and I'd like to be able to stop and see exactly what the markup looks like and such. Some animations happen too quickly for me to use "inspect element" or anything.
...
During localhost testing of modular Prism-based Silverlight applications, the XAP modules download too fast to get a feel for the final result. This makes it difficult to see where progress, splash-screens, or other visual states, needs to be shown.
What is the best (or most standard) method for intentionally slowing down the loading of...
If Chrome and Safari are both based on WebKit, does that mean I don't have to test both browsers?
... or are there certain situations where I should explicitly test both Chrome and Safari?
...
Hello.
I try to write test for controller. I use OS Windows, zend framewokr and my libraries are in C:/library which is added to the include_path of php.ini.
When I run test testLoginAction I get an error No default moudulde define for the application. But I don't use modules at all. Do you know how to solve this problem?
IndexController...
I try to simulate application load to measure application performance. Dozens of clients send requests to server and significant part of request processing is random data loaded from HDD (random file, random file offset).
I use 15 Gb in 400 files.
HDD does its best to cache reading operations so overall performance is very unstable f...
I am now doing some tests of my application again corrupted files. But I found it is hard to find test files.
So I'm wondering whether there are some existing tools, which can write random/garbage bytes into a file of some format.
Basically, I need this tool to:
It writes random garbage bytes into the file.
It does not need to know t...
Does someone know of a good ruby testing library for generating English (or maybe also those Latin "lorem ipsum") words? Another nice thing would be to specify some additional options (e.g. the word length, only use names). Does such a thing exist?
...
Hello all,
I'm really brand new to Groovy and I'm trying to get something done. I've written some Groovy code (which works just fine) which receives some text. This text should be an integer (between 0 and 10). It may just happen a user enters something different. In that case I want to do some specific error handling.
Now I'm wonderin...
I've been trying to stub open, the open-uri version, and I'm not succeeding.
I've tried doing the following but the request keeps going through:
Kernel.should_receive(:open).and_return("Whatever for now")
I've also tried to do
OpenURI::OpenRead.should_receive(:open).and_return("Whatever for now")
Since I tracked down that was wher...
Let's assume we are designing a Stack class test-first (TDD):
public class Stack<T> {
private T[] elements = new T[16];
private int size = 0;
...
}
This Stack makes use of a size 16 internal array to store its elements. It will work fine until you need to add a 17th element. As I might need a 17th element, I decided to add...
Assuming we are implementing using TDD a Stack class, we would need, for each bit of functionality of our Stack class, to add a new test that exercises it:
[TestMethod] public void Should_Be_Empty_After_Instantiation()
[TestMethod] public void Should_Not_Be_Empty_After_Pushing_One_Item()
...
Now, on the other hand, when doing Unit-Tes...