I'm trying to create a test class which organizes its test methods using inner classes. I would like for this class to be abstract with the ability to set a static property so this property can be injected. Here's an example of what I'm talking about:
[TestClass]
public abstract class BaseUnitTest
{
public static string InjectedPro...
What methods are there to test how well a C# desktop application handles various network/internet failures, and which, if any, failures it doesn't handle?
Thanks in advance.
...
I'm still fairly new in using Watir for automation testing and I've hit another possibly insanely easy problem that I need to reach out to the community for a little bump in the right direction.
I'm trying to use logger in Watir, which I can get to work fine if I keep everything within methods. If I don't have a method defined, for ins...
At the moment I'm using Selenium-Flex to write functional tests for a video playback app.
At the moment, I need to test that the app behaves appropriately when switched to fullscreen mode - make sure that the control bar is in a reasonable spot, the video resizes appropriately, etc., and of course to do that I need an automated way to m...
I managed to get FIT up and running using fixtures implemented in C#. I really like the concept, but the infrastructure does not fit in my environment. FIT and source code management do not work together easily and having a Java server up and running to execute the tests is also not very nice.
Does anybody know similar tools which are b...
I want to unit test a Java application that fetches mails from an email inbox, much like this guy. Currently, I run the unit tests against a real mailbox on our company's real mailserver which was easy to set up, but has the following disadvantages:
You have to send actual emails before you run the test
Adding more test cases might be ...
Well I'm trying to run some tests in VS using MbUnit and Gallio. I'm trying to run them through Icarus. I'm simply going through the basic tutorial on the site, and were it says to add "SimpleLibrary.Test.dll", it shows an entire tree. However, mine WONT show a tree. It just shows the one file.
Any suggestions?
...
Hi,
My goal is:
Our customers could generate new web-tests.
Our continuous integration server makes a test-environment deployment; it should execute the tests against it
The test could also be run against some other environment.
(Final acceptance tests should be made by the customer, to test fonts etc, but this would be a great pre-...
I'm looking for the best reusable libraries and inbuilt features in ASP.Net to prevent the OWASP top 10 security vulnerabilities like injection, XSS, CSRF etc., and also easy to use tools for detecting these vulnerabilities for use by the testing team.
When do you think is the best time to start incorporating the security coding into ...
I have to write test for deployment script which uploads files through SSH, but I'd like to have it not depending on external servers configuration. This is how i see it:
Create 2 SSH daemons without authenication on different ports of loopback interface.
Run the deployment script on these two ports
The only question is how to run th...
Hi,
I am writing a small utility for calculating a complicated mathematical formula (using commons-math library for integration and root finding). I was trying to write it in the same way as a normal business application, however I found that I am getting a quickly increasing number of classes. To get the first step of the calculations ...
I'm interested in a list of publicly available programming exams which can be taken online. E.g. Brainbench offers a broad range of tests and certifications (including .NET technologies). ExpertRating is an option as well. Any similar services?
I'm also interested knowing if there are any Microsoft exams available online.
Thanks guys f...
After 3 years of procrastination today is the day that I start testing my Rails apps. My first step is to fix the failing tests in my Rails 3 beta4 app.
My last 3 failing tests have to do with the devise gem and its authenticate_user! method in a before_filter at the top of my controller.
You'd earn great karma by helping me out with t...
Hello there
How can I write a unit test for CRUD using in memory database with fluent nhibernate
...
I have a large number of test set-up through a StaticTestFactory, but when I put any form of paralleization on it then it doesn't seem to effect it.
Any ideas?
...
I am implementing a small demo application which encrypts using AES CTR with OpenSSL is it possible to test the algorithm using different modes of operation test vectors for example testing the ECB vector in my application and check the result or is it restricted to ctr test vectors??? If it is restricted to test it with ctr can anybody ...
WCF project in a Test harness.
Why would HttpContext.Current.Server.MapPath("~/"); or
HttpContext.Current.Server.MapPath(".");
fail in my test?
I am attempting to put together a PDF building module for existing app. I have to identify where to write the final output.
TIA
...
I have been trying to determine a good way to test rails apps, covering all relevant aspects... since I have no experience writing tests at all I have been looking at railscasts.com which seems like a pretty good resource to learn basic stuff for rails. but for tests I have found several episodes, some using rails unit test classes, othe...
I am learning JSSpec. Here's my problem.
In this code :
describe("Buttons' events", {
'when I click on a button with an id of #b1...': function() {
click_me(document.getElementById("b1"));
},
'...then URL should have a parameter b with the value someURL1 and a parameter ui with the value 527bd5b5d689e2c32ae974c6229ff785), because...
Is it somehow possible to pass values to NUnit tests via command line? My tests use a certain URL. I have different instances of my code at different URLs and would like to specify the URL via command line. App.config is not an option, because I want to run the tests for different URLs via a batch file.
...