2
голосов
4ответов
141 просмотров

How to initiate automated testing?

I started as a software engineer at the company I'm currently at. Over time, I was either the only one willing to or capable of taking responsibility for various systems, and so I was "promoted" to being IT Manager. Now, during my time as software engineer, I would create functional tests for the...

6
голосов
7ответов
250 просмотров

How to determine which code in a project/solution is the most often used?

If I have an existing solution containing multiple c# projects, are there any static analysis tools that can help me determine which areas of code are the most often used? I'd like to use this information in order to determine which areas should have their test coverage ramped up first. I've l...

5
голосов
4ответов
250 просмотров

How do I write useful unit tests for a mostly service-oriented app?

I've used unit tests successfully for a while, but I'm beginning to think they're only useful for classes/methods that actually perform a fair amount of logic - parsers, doing math, complex business logic - all good candidates for testing, no question. I'm really struggling to figure out how to u...

2
голосов
2ответов
184 просмотров

Is there any value in using abstract test classes ro run Unit and Integration testing?

I have this abstract test class [TestFixture] public abstract class BaseTests { private IRepository _repository; public BaseTests(IRepository repository) { _repository = repository; } [Test] public virtual void CanGetResultsFromSearch...

7
голосов
6ответов
2374 просмотров

LINQ to SQL Cannot create database [Schema Permissions]

For some integration tests I want to use LINQ to SQL to drop/re-create the test database. I've had this working fine before, however in this project the database is split up into several schemas. When I try to run the ctx.CreateDatabase() command I'm getting this exception: The specified sc...

4
голосов
4ответов
359 просмотров

How to automate by Firefox browser for functionality testing?

I have to automate the Firefox application to do Functional testing, kindly help me which testing tool I can use. thanks

4
голосов
4ответов
1133 просмотров

Testing Real Repositories

I've set up unit tests that test a fake repository and tests that make use of a fake repository. But what about testing the real repository that hits the database ? If this is left to integration tests then it would be seem that it isn't tested directly and problems could be missed. Am I missi...

1
голосов
1ответов
279 просмотров

TCP Socket Testing

I have a class that receives data from a socket. What i'm looking for is a pre-existing application for testing sockets. For example I pass configuration data to the app which then fires up and sends a data to my 'receive' socket. It should also output debug information. Ive looked into hercules...

0
голосов
2ответов
156 просмотров

Any point in writing integration tests for a repository w/ NHibernate?

I recently spent a great deal of time pulling out a stored procedure back-end and replaced it with a NHiberante base repository. One test per repository was nice in the stored procedure version because I could verify my stored procedures worked and the class that mapped the returned data to my o...

7
голосов
3ответов
4473 просмотров

How to automate functional/integration tests and database rollbacks

In contrast to my previous question, i'll try to give my requirements. I am trying to find some framework/methodology/"thing" that would fit the following: Ability to write an automated test, preferably written in Visual Studio, using C#. Test should drive a web browser and interact with SUT j...

1
голосов
3ответов
287 просмотров

How to create integration level test for two user interaction?

How would you test multi user interaction with Cucumber/webrat? Meaning that there must be more than one user logged in. Good example would be simple chat application, where I want to send message from one user to another and check if the other user received the message. I'd like to test at in...

1
голосов
1ответов
1421 просмотров

Integration testing using Selenium and NUnit - From UI to DB

I am having some problems while trying to create integration tests with Selenium and NUnit. I'm trying to use Selenium RC in NUnit test to drive my ASP.NET web app, and would like the tests to actually do all the stuff in DB that the real user would do. Naturally it would be nice if the database...

3
голосов
4ответов
928 просмотров

ASP.NET MVC Controllers properly initialized when testing

How do I get an ASP.NET MVC controller properly initialized for an integration test? My current problem is that when I try to access the User member of a controller I get: System.NotImplementedException: The method or operation is not implemented. What I want is what Ruby on Rails provides...

5
голосов
2ответов
846 просмотров

How to test chat application in Ruby on Rails?

What would be the best way to implement integration test for chat application? The problem is that I don't know how to implement two user behavior without stubbing and mocking everything. How would you implement these steps? Given I have two users "joe" and "bob" logged in When "joe" send "H...

4
голосов
5ответов
225 просмотров

How to test whether application handles slow/flaky filesystems properly?

I want to ensure that my application doesn't have any UI freezes when working on files on slow filesystem (e.g. networked, CD/DVD or spun-down HDD). I'm using Cocoa filesystem operations directly. I'm afraid it would be too much effort to mock or abstract all of it just for testing, and besides ...

1
голосов
2ответов
2314 просмотров

session[] doesn't persist across cucumber steps

Every time this step Given /blah.../ ... cart = session[:cart] ||= Cart.new ... end runs in a scenario, it creates a new cart as opposed to (starting from the second call) picking one up from the session. Anyone knows how to fix that? I am on rails 2.2.2, cucumber 0.3.98, webrat ...

3
голосов
3ответов
5555 просмотров

Using Maven to build separate JAR files for unit testing a custom class loader

As part of my current project I've created a custom class loader. Part of the unit tests for the custom loader involves using some JAR files to demonstrate the proper behavior of the loader. I'd like to build the test JAR files from Java sources ahead of running the actual unit tests. Further, t...

4
голосов
4ответов
3073 просмотров

Fitnesse vs any other subsystem testing tool

We are currently using Fitness for subsystem testing. we are having lot of issues using the tool, few to mention Development time for writing Fixture is more then writing the actual code Issues around check in of the dlls so that Qa can test them Issues in running Fitnesse for project which use...

6
голосов
3ответов
938 просмотров

In Integration Testing, does it make sense to replace Async process with a Synchronous one for the sake of testing?

In integration tests, asynchronous processes (methods, external services) make for a very tough test code. If instead, I factored out the async part and create a dependency and replace it with a synchronous one for the sake of testing, would that be a "good thing"? By replacing the async proces...

3
голосов
3ответов
9583 просмотров

Parsing URL for querystring values with Selenium IDE

I'm new to integration testing, but have had great success so far buiding up a suite of tests using Se:IDE. As I've been running my tests, it has occurred to me that I'm generating a substantial amount of data and I'd like to clean up after myself. Most of my tests involve creating a new 'page',...

52
голосов
11ответов
40576 просмотров

Is there a standard domain for testing "throwaway" email?

I've noticed that the domain contoso.com is often used in documentation when a sample is needed. I always figured this was a dummy domain, used like the telephone prefix "555" to route spam into some kind of telecommunicative void (although contoso.com appears to be a real site). Is there a ...

0
голосов
1ответов
114 просмотров

Does FluentNH's PersistenceSpecification allow XML mappings to be tested?

Is it possible to use Fluent NHibernate's PersistenceSpecification to test NHibernate mappings done via XML?

20
голосов
5ответов
11972 просмотров

Integration Testing best practices

Our team has hundreds of integration tests that hit a database and verify results. I've got two base classes for all the integration tests, one for retrieve-only tests and one for create/update/delete tests. The retrieve-only base class regenerates the database during the TestFixtureSetup so it o...

3
голосов
1ответов
1864 просмотров

Integration testing Spring web app

I need to do an integration tests on my web application on each build. Currently I have a set of JUnit tests, which tests various parts of an application before it constructed into war. What I need to do now is to test if application is in good shape after it is deployed into Web container. Th...

13
голосов
4ответов
2751 просмотров

Has anyone used Steve Sanderson’s MvcIntegrationTestFramework?

I was looking into additional ways to test ASP.NET MVC applications and ran into Steve Sanderson’s MvcIntegrationTestFramework. The approach looks rather promising but I was wondering if anyone had any actual experience to share.

6
голосов
1ответов
476 просмотров

How to run Integration Testing on DB through repositories with LINQ2SQL?

How do you go about integration testing your database through your domain layer/model (repositories) that uses LINQ 2 SQL in the implementation and leave the DB as you found it? In other words, the ideal world of unit testing the DB, the integration test would leave the DB as it found it. Are t...

1
голосов
3ответов
1555 просмотров

Are there any Java open source projects with both integration and unit test suites?

I am looking for an open source Java project containing two reasonably complete test suites: a suite of integration tests and a suite of unit tests, for the same code. Note that I am only interested in developer tests, written with JUnit or TestNG. I ask this because I often see people saying t...

68
голосов
4ответов
31148 просмотров

Best practices for integration tests with Maven?

I have a project which I am building with Maven which uses Hibernate (and Spring) to retrieve data from a database, etc. My "tests" for the DAOs in my project extend Spring's AbstractTransactionalDataSourceSpringContextTests so that a DataSource can be wired into my class under test to be able t...

65
голосов
10ответов
55694 просмотров

How to write unit tests for database calls

I'm near the beginning of a new project and (gasp!) for the first time ever I'm trying to include unit tests in a project of mine. I'm having trouble devising some of the unit tests themselves. I have a few methods which have been easy enough to test (pass in two values and check for an expecte...

0
голосов
2ответов
137 просмотров

Is there any way to programmatically "move" an oracle table definition from one database to another?

Suppose I have two Oracle databases. We'll call them database A and database B. Now suppose I have a table in database A that's defined like this: CREATE TABLE foo ( foo_id INT PRIMARY KEY, some_text VARCHAR2(10), other_table_id INT CONSTRAINT some_fk_constraint FOREIG...