You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Igor Drobiazko <ig...@gmail.com> on 2010/01/11 21:29:12 UTC

Integration tests in Eclipse

After the recent refactoring of the integration tests I'm not able to run
them inside Eclipse. The new guide into integration testing doesn't cover
this topic. I'm I missing something?

I'm getting the following exception:

FAILED CONFIGURATION: @BeforeMethod indicateTestMethodName(public void
org.apache.tapestry5.integration.app1.FormTests.form_action_via_get())
java.lang.NullPointerException
    at
org.apache.tapestry5.test.SeleniumTestCase.indicateTestMethodName(SeleniumTestCase.java:92)
... Removed 24 stack frames
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
SKIPPED CONFIGURATION: @AfterClass cleanup
SKIPPED: form_action_via_get
SKIPPED: per_form_validation_messages_and_constraints
SKIPPED: link_submit_component
SKIPPED: image_submit_triggers_selected_event
SKIPPED: submit_with_context
SKIPPED: client_validation_for_numeric_fields_that_are_not_required
SKIPPED: nested_form_check
SKIPPED: validation_exception_thrown_from_validate_form_event_handler
SKIPPED: disabled_fields
SKIPPED: basic_datefield
SKIPPED: link_submit_without_validator
SKIPPED: form_field_outside_form
SKIPPED: wrapper_types_with_text_field
SKIPPED: override_datefield_message_catalog
SKIPPED: calendar_field_inside_bean_editor
SKIPPED: simple_form
SKIPPED: password_field
SKIPPED: client_field_format_validation
SKIPPED: hidden_field
SKIPPED: validation_constraints_from_messages
SKIPPED: radio_button_and_group
SKIPPED: page_context_in_form
SKIPPED: blank_password_does_not_update
SKIPPED: label_invokes_validation_decorator_at_correct_time
SKIPPED: server_side_validation_for_textfield_and_textarea
SKIPPED: event_based_translate
SKIPPED: form_encoding_type
SKIPPED: null_field_strategy
SKIPPED: regexp_validator
SKIPPED: client_side_numeric_validation
SKIPPED: client_side_validation
SKIPPED: radio_group_validator

===============================================
    org.apache.tapestry5.integration.app1.FormTests
    Tests run: 32, Failures: 0, Skips: 32
    Configuration Failures: 1, Skips: 64
===============================================

-- 
Best regards,

Igor Drobiazko
http://tapestry5.de/blog

Re: Integration tests in Eclipse

Posted by Igor Drobiazko <ig...@gmail.com>.
Thanks, I'll have a look.

On Mon, Jan 11, 2010 at 9:41 PM, Howard Lewis Ship <hl...@gmail.com> wrote:

> Because the test cases are dependent on the configuration inside
> testng.xml, you have to run the full test suite, not individual test
> cases.
>
> However, I've left the "enabled" attribute exposed in testng.xml; I
> frequently will disable all but one of the tests defined in
> testng.xml, to ensure that
> I can run relevant tests quickly (just be careful not to check that back
> in!).
>
> On Mon, Jan 11, 2010 at 12:29 PM, Igor Drobiazko
> <ig...@gmail.com> wrote:
> > After the recent refactoring of the integration tests I'm not able to run
> > them inside Eclipse. The new guide into integration testing doesn't cover
> > this topic. I'm I missing something?
> >
> > I'm getting the following exception:
> >
> > FAILED CONFIGURATION: @BeforeMethod indicateTestMethodName(public void
> > org.apache.tapestry5.integration.app1.FormTests.form_action_via_get())
> > java.lang.NullPointerException
> >    at
> >
> org.apache.tapestry5.test.SeleniumTestCase.indicateTestMethodName(SeleniumTestCase.java:92)
> > ... Removed 24 stack frames
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> > SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> > SKIPPED CONFIGURATION: @AfterClass cleanup
> > SKIPPED: form_action_via_get
> > SKIPPED: per_form_validation_messages_and_constraints
> > SKIPPED: link_submit_component
> > SKIPPED: image_submit_triggers_selected_event
> > SKIPPED: submit_with_context
> > SKIPPED: client_validation_for_numeric_fields_that_are_not_required
> > SKIPPED: nested_form_check
> > SKIPPED: validation_exception_thrown_from_validate_form_event_handler
> > SKIPPED: disabled_fields
> > SKIPPED: basic_datefield
> > SKIPPED: link_submit_without_validator
> > SKIPPED: form_field_outside_form
> > SKIPPED: wrapper_types_with_text_field
> > SKIPPED: override_datefield_message_catalog
> > SKIPPED: calendar_field_inside_bean_editor
> > SKIPPED: simple_form
> > SKIPPED: password_field
> > SKIPPED: client_field_format_validation
> > SKIPPED: hidden_field
> > SKIPPED: validation_constraints_from_messages
> > SKIPPED: radio_button_and_group
> > SKIPPED: page_context_in_form
> > SKIPPED: blank_password_does_not_update
> > SKIPPED: label_invokes_validation_decorator_at_correct_time
> > SKIPPED: server_side_validation_for_textfield_and_textarea
> > SKIPPED: event_based_translate
> > SKIPPED: form_encoding_type
> > SKIPPED: null_field_strategy
> > SKIPPED: regexp_validator
> > SKIPPED: client_side_numeric_validation
> > SKIPPED: client_side_validation
> > SKIPPED: radio_group_validator
> >
> > ===============================================
> >    org.apache.tapestry5.integration.app1.FormTests
> >    Tests run: 32, Failures: 0, Skips: 32
> >    Configuration Failures: 1, Skips: 64
> > ===============================================
> >
> > --
> > Best regards,
> >
> > Igor Drobiazko
> > http://tapestry5.de/blog
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de/blog

Re: Integration tests in Eclipse

Posted by Howard Lewis Ship <hl...@gmail.com>.
Because the test cases are dependent on the configuration inside
testng.xml, you have to run the full test suite, not individual test
cases.

However, I've left the "enabled" attribute exposed in testng.xml; I
frequently will disable all but one of the tests defined in
testng.xml, to ensure that
I can run relevant tests quickly (just be careful not to check that back in!).

On Mon, Jan 11, 2010 at 12:29 PM, Igor Drobiazko
<ig...@gmail.com> wrote:
> After the recent refactoring of the integration tests I'm not able to run
> them inside Eclipse. The new guide into integration testing doesn't cover
> this topic. I'm I missing something?
>
> I'm getting the following exception:
>
> FAILED CONFIGURATION: @BeforeMethod indicateTestMethodName(public void
> org.apache.tapestry5.integration.app1.FormTests.form_action_via_get())
> java.lang.NullPointerException
>    at
> org.apache.tapestry5.test.SeleniumTestCase.indicateTestMethodName(SeleniumTestCase.java:92)
> ... Removed 24 stack frames
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @BeforeMethod indicateTestMethodName
> SKIPPED CONFIGURATION: @AfterMethod cleanupTestMethod
> SKIPPED CONFIGURATION: @AfterClass cleanup
> SKIPPED: form_action_via_get
> SKIPPED: per_form_validation_messages_and_constraints
> SKIPPED: link_submit_component
> SKIPPED: image_submit_triggers_selected_event
> SKIPPED: submit_with_context
> SKIPPED: client_validation_for_numeric_fields_that_are_not_required
> SKIPPED: nested_form_check
> SKIPPED: validation_exception_thrown_from_validate_form_event_handler
> SKIPPED: disabled_fields
> SKIPPED: basic_datefield
> SKIPPED: link_submit_without_validator
> SKIPPED: form_field_outside_form
> SKIPPED: wrapper_types_with_text_field
> SKIPPED: override_datefield_message_catalog
> SKIPPED: calendar_field_inside_bean_editor
> SKIPPED: simple_form
> SKIPPED: password_field
> SKIPPED: client_field_format_validation
> SKIPPED: hidden_field
> SKIPPED: validation_constraints_from_messages
> SKIPPED: radio_button_and_group
> SKIPPED: page_context_in_form
> SKIPPED: blank_password_does_not_update
> SKIPPED: label_invokes_validation_decorator_at_correct_time
> SKIPPED: server_side_validation_for_textfield_and_textarea
> SKIPPED: event_based_translate
> SKIPPED: form_encoding_type
> SKIPPED: null_field_strategy
> SKIPPED: regexp_validator
> SKIPPED: client_side_numeric_validation
> SKIPPED: client_side_validation
> SKIPPED: radio_group_validator
>
> ===============================================
>    org.apache.tapestry5.integration.app1.FormTests
>    Tests run: 32, Failures: 0, Skips: 32
>    Configuration Failures: 1, Skips: 64
> ===============================================
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de/blog
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org