[MGNLTEST-30] Separate (sub)module for the test-framework(s) Created: 18/Sep/19  Updated: 20/Aug/20  Resolved: 20/Aug/20

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Obsolete Votes: 1
Labels: QA&Testing
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLTEST-1 Attempt to extract the integration te... Closed
relates to MGNLTEST-28 Run selftests on extracted test frame... Closed
relation
is related to MGNLTEST-34 Clean-up packages for int.- and ui-te... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: core-TF-features-bugs-improvements

 Description   

Current situation

Currently both the test-frameworks as well as the tests are in the same (sub)module(s).

ce

info.magnolia.bundle.test:magnolia-integration-tests
=> contains tests and frameworks in these packages:

info.magnolia.integrationtests.*
Contains the "old framework" as well as "old" tests based on the old framework.

info.magnolia.testframework.*
Contains the "new framework" with its page objects and the "self-tests" (tests for testing the page objects)

info.magnolia.functionaltests.*
This package will contain the new functional tests (which will utilize the new framework)

dx-core

info.magnolia.dx.test:magnolia-dx-core-integration-tests
=> contains tests for dx-core features and a few utility classes.


Tasks

Create distinct (sub)modules for the test-framework(s)

ce

Create new (sub?)module e.g. info.magnolia.qa:magnolia-integration-testframework.
The artifact should contain the testframework classes:

  • The complete info.magnolia.testframework.*
  • Parts of info.magnolia.integrationtests.*

dx-core

IF we will create page objects specifically for dx-core features, we may want to have them in a distinct submodule,
e.g. info.magnolia.dx.qa:magnolia-dx-core-integration-testframework

Move Abstract test classes of magnolia-integration-tests-framework

The main purpose of magnolia-integration-tests-framework seems to be to facilitate and configure the test environment including docker.
However, it also includes the class info.magnolia.testframework.htmlunit.AbstractMagnoliaHtmlUnitTest, which ias a base class for ui-tests based on the [HtmlUnit test framework|ttp://htmlunit.sourceforge.net/].
Such class should go to the submodule hosting the testframework (the new module described above).

Please also check info.magnolia.integrationtests.InstanceAwareTestCase , info.magnolia.testframework.util.TestUtil#TestUtil and probably move.

Maybe even consider to completely get rid of the submodule magnolia-integration-tests-framework



 Comments   
Comment by Christoph Meier [ 20/Aug/20 ]

This actually has been resolved via MGNLTEST-1, MGNLTEST-28, etc.

Generated at Mon Feb 12 07:44:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.