Questions tagged [integration-testing]

A form of software testing where individual software modules (or components) are combined and tested as a group. Integration testing happens after unit testing, and before system testing.

Integration testing is a form of software testing where individual software modules (or components) are combined and tested as a group. Integration testing happens after unit testing, and before system testing.

In an integration test, all input modules are modules that have already been unit tested. These modules are grouped in larger aggregates and integration tests are applied to those aggregates. After a successful integration test, the integrated system is ready for system testing.

6128 questions
3
votes
1 answer

Moving from HibernateTemplate to SessionFactory without @Transactional in tests

I'm working on moving to Hibernate 4 with Spring 3, which means I can no longer use Spring's HibernateTemplate. Refactoring the code was easy enough (replacing callbacks with sessionFactory.getCurrentSession() where a session is used) but I'm…
AHungerArtist
  • 8,854
  • 15
  • 66
  • 103
3
votes
1 answer

Which WebElements are filled by PageFactory.initElements?

I am trying to use the PageObject design pattern with my Selenium testing, and I have the following set of Page classes: A PageObject base class, which keeps track of the WebDriver and site's base URL. It also has private WebElement resources…
3
votes
2 answers

rails Devise authenticated routes in integration test

I want to test every route in an application, and learned I should do that in an integration test: Where to test routes in ruby on rails However I'm getting the following error: NoMethodError: undefined method `authenticate?' for…
AJcodez
  • 26,232
  • 17
  • 72
  • 110
3
votes
3 answers

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…
rtenhove
  • 175
  • 1
  • 6
3
votes
2 answers

Overriding service method in grails integration test

I'm trying to test controller's action in integration test. It's a simple scenario where action that I'm trying to test is calling service's method. I'm trying to override that method using metaclass but it looks like it's not working, i.e. real…
Tomato
  • 732
  • 7
  • 17
3
votes
3 answers

Why is my password_digest returning an "invalid hash" error?

I'm a bit confused about an error I'm getting from running an integration test for users to sign in. Here are the first few lines of the trace: invalid hash @ /home/benjamin/.rvm/gems/ruby-1.9.3-p194/gems/bcrypt-ruby-3.0.1/lib/bcrypt.rb:171:in…
bentrevor
  • 248
  • 6
  • 14
3
votes
1 answer

Java Integration Testing of proxy related code

I am developping a Swing application that needs to communicate with a distant HTTP server. That application can be potentially used behind proxies. I must then : - detect automatically network proxy (potentially several on the same network) - let…
M'λ'
  • 631
  • 7
  • 18
3
votes
1 answer

Why isn't Capybara filling in these form elements?

I have been trying to set up Capybara to test a form but I keep getting the error cannot fill in, no text field, text area or password field with id, name, or label 'Name' found Here is what I have in my view: <%= form_for(@user) do |f| %> <%=…
bentrevor
  • 248
  • 6
  • 14
3
votes
3 answers

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…
Bayard Randel
  • 9,407
  • 2
  • 39
  • 46
3
votes
1 answer

rails integration test pass with Itest but "rake test:integration" provides no output. no error though

When I run my integration tests individually using "ruby -Itest test/integration/mytest.rb", it works just fine. When I try to run rake test:integration to run all my integration tests in one command, I have to wait a few seconds but I never get any…
3
votes
1 answer

Exception when generating sequence using Eclipselink and h2 in test environment

I'm using h2 to setup an integration test for an application using Eclipselink, Arquillian and Weblogic 12.1.1 This is my entity: @Entity @Table(name = "AFIS_REQUEST") public class Request implements Serializable { @Id …
Mehdi
  • 4,418
  • 4
  • 27
  • 29
3
votes
2 answers

Why does Specs2 run these `sequential` tests in random order?

There's an old database test suite that I'm trying to migrate from Specs to Specs2. However, Specs2 runs the tests in a weird order (from my point of view), which breaks the tests since they change the database state, and run certain code…
KajMagnus
  • 10,177
  • 14
  • 69
  • 115
3
votes
1 answer

Path to XML dataset in DBUnit

I am using DBUnit for my integration tests and I was able to create a XML dataset. I added the dataset.xml file in the resources folder (standard Maven project). However when I try to just say new File("dataset.xml"); it doesn't find the file and it…
LuckyLuke
  • 42,935
  • 77
  • 254
  • 416
3
votes
1 answer

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…
LeChat
  • 151
  • 1
  • 1
  • 8
3
votes
2 answers

Maven test fails within install phase but is ok within test phase

I have an empty java test with Spring and Ebean protected static ApplicationContext ctx; @BeforeClass public static void initSpringContext() { ctx = new ClassPathXmlApplicationContext("spring-context.xml"); } public class…
1 2 3
99
100