You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

Introduction

Here's the typical testing pyramid - it clearly shows that UI tests will not replace any other tests (manual tests or Acceptance/Integration tests) but will complete our test setup.

UI Tests

We use Selenium for testing our ui. The UITest will be part of magnolia-integration-test/tests and use its test-webapp & test-public-webapp. UITests are only triggered if you specify the corresponding profile (uitest). As specifying a profile no longer invokes the default profile (jetty6-standalone) you have to pass this one as well.

In short, use the following command to locally run the uitests

launch uitests
..../magnolia-integration-tests/tests mvn clean install -P ui-tests,jetty6-standalone

 

Goals

Have few typical cases automatically covered to prevent regressions there.

  1. Basic Content App test (use Contacts App as it's a simple example)
    • navigate to Contact App, open a contact in a tab
    • edit (modify), save, close
    • verify tree is updated

  2. Bookmarking (use Contacts App again)
    • open new default subapp
    • navigate to opened default sub app
    • open new non-default subapp - verify default subapp is also opened
    • navigate to opened non-default sub app

  3. Activation
    • verify basic activation works - no workflow
    • LATER (when workflow is ready): verify activation with workflow

  4. Test Pages App
    • Test basic Page editing

Tracking

Creating those tests is tracked under  Unable to locate Jira server for this macro. It may be due to Application Link configuration.

Next steps

  • integrate with ordinary integration tests to re-use it's setup in pom
  • merge to master
  • re-activate hudson job
  • complete once demo-project can be added to test web apps

Outlook

  • Execute tests with with different browsers (Firefox, Chrome, Safari, Ie, ...) an different OS's (OSX, Unix, Windows, iOs, ...) using hudson slaves

 

  • No labels