integration-testing

Grails Controller Testing - Problems with dynamic methods

Hi, I'm running some old (but valid, i'm told) tests on a legacy application, and notice that many of them arent working. The error message usually is 'No method signature for some dymamic method' After using mockDomain I managed to solve that problem. However, I can't figure out how to test controllers that create objects inside. Fo...

How should I reset a JPA-controlled database before every test?

Is there a best-practice pattern for completely resetting a database to a freshly-paved schema with JPA before a unit test? I have been using a testing persistence unit with hbml2ddl.auto=create-or-drop and recreating EMFs before each test, but I wonder if there's a cleaner way to do it. ...

Grails bootstrap on integration tests

Hi, Im trying to insert some test data into my database, for which a class called BootStrapTest does the work. In my BootStrap.groovy file its called like this environments { test { println "Test environment" println "Executing BootStrapTest" new BootStrapTest().init() ...

Why is a CListCtrl responding to LVM_GETVIEW with LV_VIEW_ICON when that CListCtrl's view/display style is LVS_REPORT?

I'm working on UI-driven test automation, and the app under test (AUT) has a UI implemented with C++/MFC/Prof-UIS. My team employs Ranorex to author the tests. Experience has shown that Ranorex does not properly navigate the list controls (instances of CListCtrl) in the AUT. They all have multiple columns, and Ranorex will only retrieve ...

How to start Grails as a web app when runnning integration tests

I'm trying to test my grails app using integration test that makes http requests. Actually it's a selenium/tellurium test, but it doesn't matter. But as i see when i running grails tests it doesn't starts web container, the same time i see many examples in blog articles that people tests grails app using selenium and other test tools tha...

free automatic regression test tool for asp.net applications ?

we are working in a small team. We often had problems like developer1 did some changes in stored procedure or funtion and it affected work of developer2. Such issues are traced out by chance later. Please guide me how such issues can be stopped. Is there a free tool that we can run to test such issues. thanks ...

Why use FitNesse when the tests are highly technical?

It seems to me FitNesse has the following advantages: Let a non-technical person define sets of test data and expected results (how they define success). A non-technical person could be a user, a product manager, or possibly a software quality professional who does not have access to the source code and/or does not know how to program ...

What would you recommend for integration testing on PHP web application?

Hi there, I have been testing for a web-application written in PHP and JavaScript, and I am looking for integration testing tools that can be well communicated with a continuous integration server, potentially phpUnderControl. As an integration testing tool, I have used Selenium with Rspec which works just fine. This produces html file...

Driving multiple browsers that interact with eachother

Hi, We have a complex web application which uses a lot of JavaScript along with XMPP and a Rails application. It has come to the point where we need to test the entire system end-to-end. We need to be able to ensure various tasks can be completed without errors, one such task would be to negotiate a 1-on-1 chat session with another part...

Grails: Integration testing with multiple/prefixed params e.g. (params["book"])

I've asked the exact same question on nabble here I'm trying to send params or different domains in the controller integration test. But can't get them to bind to the domain class with the prefix of "book" //Controller action being tested def saveBook = { def book = new Book() bindData(book, params["book"], [include: ['publicPrivacy'...

GHUnit for Integration Testing iOS Network functions

I have an iOS application (but this is just as applicable to an OS X app) that has async network access functions. Using GHUnit and without manually doing inner run loops, or synchronization of async operations, is it possible have a test method run an async operation and verify the results AFTER the async operation is complete. I don'...

What is good practice for java agile integration testing DAO -> database?

What is current good practice for agile integration testing of DAOs against a real database schema in the Java landscape? (By 'agile' I mean what is the most streamlined, automated & simple solution to this problem). I hope to achieve automation of tests that prove the data access layer integrates seamlessly with real running instances...

Example of application covered with tests

Hi guys, is there sample/open_source application for download that is covered with tests(integration, unit, ...) and could be example how testing should be done? We want to learn our junior programmers how tests should be written(ok ok, and we(seniors) want to learn, too :)) Thanx ...

How to write integration and system tests in Asp.net MVC

My application I have an application design that looks like this: web application layer - asp.net MVC app with controllers and views that use POCOs and call services service layer - business processes that use POCOs and call repositories data layer - repositories that use POCOs and communicate with the model in the form of EF model wh...

Integration tests implementation

I have a tree layered app web app (asp.net mvc for simplicity here), business services data repositories And I know there are four types of integration tests: top down bottom up sandwich (combination of the top two) big bang I know I would write big-bang tests just like unit tests but without any mocking so I would employ a backe...

testing securityConfig mapping in grails + acegi

Hi, I'm kinda lost. I'm writing test cases for a project which still uses the Acegi plugin (not the newer Spring Core Security plugin) and as of now, I've managed to do what this site (http://www.zorched.net/2008/09/01/grails-testing-acegi-security/) has suggested regarding the detection of which user is currently logged in. However, i...

Unit-Test, Integration test or problem in design?

Hi, I'm written my first unit-test and I think it is too dependent on other modules and I'm not sure whether it's because: It's a complex test I've actually written an integration test or I have a problem in my design I'll first say that although I have around 4 years of experience in development I never learned, nor were taugh...

Testing JQuery UI autocomplete with Capybara + Env.js does not work (with Selenium it works)

I do an RSpec integration test of the JQuery UI autocomplete functionality by using Capybara. When using Selenium (+ Firefox) as the web driver for Capybara everything works as it should, but when switching to Env.js as driver my tests fail. Are those known shortcomings of Env.js, or do I miss something? ...

Measuring integration test coverage with Maven

The followings are ok now: I have a multi-module project in maven with EJB and WAR projects I want to use JMeter (and later selenium) for integration testing. I can run both from Maven. The JMeter plan is ready, I run it with Chronos maven plugin. My application is a JEE application, so I want to test the code with the planned producti...

Integration tests with MongoDB?

Hi, I need to do several integration tests on a Mongo database using Java, and I was looking for a DbUnit-like solution (DbUnit is for Hibernate) that can populate my database with custom data, and reset the state after each run. Any tips? Thanks ...