Hi!
I've a problem setting up a test for an Equals method on an object.
The object in question is defined by this interface:
public interface IHours {
ITimeOfDay OpenAt { get; set; }
ITimeOfDay CloseAt { get; set; }
DateTime ValidFrom { get; set; }
DateTime ValidTo { get; set; }
bool isCovered(DateTime time);
}
a...
Looking for a tool to UI testing of a Windows (.NET WinForms) application. The idea is that the analysts will record the tests via some UI and it will be able to be played back over and over again.
Commercial tools are fine but bonus points for free ones.
...
I have an application that requires an outgoing HTPPS connection to run, and allows for proxy settings to be automatically detected, manually set and used.
Is there an easy way to create a test environment that will emulate desktops in corporations that have forced web proxies (i.e. without them, connections will fail).
I find it hard ...
I have a web application that I want to run some system tests on, and in order to do that I'm going to need to move the system time around. The application used DateTime all the way through.
Has anyone got any recommendations for how to change the time that DateTime->now reports? The only thing that comes to mind is subclassing DateTi...
During a recent interview I was asked why one would want to create mock objects. My answer went something like, "Take a database--if you're writing test code, you may not want that test hooked up live to the production database where actual operations will be performed."
Judging by response, my answer clearly was not what the interview...
What is the best way to test value visibility between threads?
class X {
private volatile Object ref;
public Object getRef() {
return ref;
}
public void setRef(Object newRef) {
this.ref = newRef;
}
}
The class X exposes a reference to the ref object. If concurrent threads read and and write the object reference every Thread...
Dear Stackoverflow Readers,
I wanted to know what are the important considerations to keep in mind while doing Backend Testing.
My project does not have GUI basically it is all Backend related work. Complete Server Side is in Java and we are using Oracle Db.
I would really appreciate if you all can share some expert advice on what...
I'm looking for some tutorials showing how I could test C programs by writing Perl programs to automate testing.
Basically I want to learn automation testing with Perl programs. Can anyone kindly share such tutorials or any experiences of yours which can help me kick-start this process?
...
We are currently using Fitnesse for sub system testing. [All our applications are in c#.net]
We are having lot of issues around Fitnesse.
We are planning to use another software for subsystem testing.
I recently heard about Story Teller subsystem testing and SOAP UI test tool.
Does anyone have any experience (good/bad) with these tools?
...
I am using MATLAB R2008a, what testing framework is available and what is recommended.
the need for comprehensive from having to refactor a 5 kloc matlab application to Matlab oop.
...
How can we automate iPhone app testing
...
is there any tools that can help you testing you web apps for security problems ?
(i am using php & mysql for develepement)
...
Clearly I need to (a) convert both strings to canonical XML or (b) compare their parse-trees. The following doesn't work because the document object returned doesn't have a sensible == defined.
Nokogiri.XML(doc_a) == Nokogiri.XML(doc_b)
Nor does the following, because Nokogiri's to_xml leaves some internal whitespace:
Nokogiri.XML(d...
Hi,
I have one query. Maybe it is a silly question but still I need the answer to clear my doubts.
Testing is evaluating the product or application. We do testing to check whether there are any show stoppers or not, any issues that should not present.
We automate (script I am talking about) testcases from the present test cases. Once...
For testing purposes, I need to find two 64-bit integer values that exactly multiply to a 128-bit intermediate value with a specific bit pattern. Obviously, I can generate the desired intermediate value and divide by random values until I find a combination that works, but is there a more efficient way?
...
I have a "commands" class:
public static class MyCommands
{
private static ICommand exitCommand = new RoutedCommand();
public static ICommand ExitCommand { get { return exitCommand; } }
}
Code-behind in MainWindow.xaml.cs:
private void BindCommands()
{
this.CommandBindings.Add(new CommandBinding(MyCommands.ExitCommand, t...
Hi
I don't know how you guys test your code every time you code a little and for different levels of testing: unit testing, Integration testing, ...
For example, for unit testing a function you just wrote, do you write another whole set of main function and Makefile to test it? Or do you modify the main function of your project to test...
Hi there,
All I'm trying to do is spec how a one line helper method for a view should behave, but I'm not sure what kind of mock object, (if any) I should be creating if I'm working in Rails.
Here's the code for events_helper.rb:
module EventsHelper
def filter_check_button_path
params[:filter].blank? ? '/images/buttons/bt_searc...
I want to simulate MyApp that imports a module (ResourceX) which requires a resource that is not available at the time and will not work.
A solution for this is to make and import a mock module of ResourceX (named ResourceXSimulated) and divert it to MyApp as ResourceX. I want to do this in order to avoid breaking a lot of code and get...
A very simple situation. I'm working on an application in Delphi 2007 which is often compiled as 'Release' but still runs under a debugger. And occasionally it will run under SilkTest too, for regression testing. While this is quite fun I want to do something special...
I want to detect if my application is running within a debugger/reg...