Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate new stucture and helper classes for the SWTBot tests #377

Open
9 of 17 tasks
Andrearium opened this issue Aug 12, 2024 · 0 comments
Open
9 of 17 tasks

Generate new stucture and helper classes for the SWTBot tests #377

Andrearium opened this issue Aug 12, 2024 · 0 comments
Assignees
Labels
google-summer-of-code Issues specifically targeted at students enrolled in the program Google Summer of Code

Comments

@Andrearium
Copy link

Andrearium commented Aug 12, 2024

As the number of SWTBot tests is increasing, a new structure with helper classes and intermediate parent classes is required.

A dedicated package will be created for the helper classes and supporting Bots, which will be subdivided into responsibilities. Methods from class Abstract4diacUITests will be outsourced accordingly.

The following are currently planned:

  • org.eclipse.fordiac.ide.test.ui.helpers:
    • UITestNamesHelper
    • UITestPinHelper
    • SWTBotConnection
    • SWTBotFB
    • SWTBotFBType
    • SWTBotSubapp
    • SWTBotSystemExplorer
    • SWTBotPropertySheet
    • SWTBotNatTables

In addition, it is planned to create sub-packages under org.eclipse.fordiac.ide.test.ui for a better structure and a better overview of the Tests:

  • org.eclipse.fordiac.ide.test.ui:
    • Abstract4diacUITests
    • New4diacProjectTests
  • org.eclipse.fordiac.ide.test.ui.networkediting.basicfb:
    • Basic1FBNetworkEditingTests
    • Basic2FBNetworkEditingTests
    • BasicMultipleNetworkEditingTests
  • org.eclipse.fordiac.ide.test.ui.networkediting.contextmenu:
    • SWTContextMenuUITests
  • org.eclipse.fordiac.ide.test.ui.networkediting.errormarker:
    • ErrorMarkerTests
  • org.eclipse.fordiac.ide.test.ui.networkediting.subapp_compsite:
    • CompositeInstanceTests
    • SubapplicationTests
    • SubappSystemExplorerTests
  • org.eclipse.fordiac.ide.test.ui.fbtype:
    • AttributesTabTests
    • BasicFBTOperationTests
    • ConstantsTabTests
    • CreateFBTTests
    • DataTypeEditingTests
    • ECCEditorTests
    • EventInOutputTabTests
    • FunctionBlockTabTests
    • VarInAndOutputTabTests
    • VarIntervallsTabTests
  • org.eclipse.fordiac.ide.test.ui.fbtype.nattables:
    • NatTableHelper
    • NATTableWithEditorBehavoirTests
    • NatTableWithoutEditorBehavoirTests
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Aug 12, 2024
- Creation of package org.eclipse.fordiac.ide.test.ui.helpers
- Creation of final class StringNameHelpers
- Creation of final class PinNameHelpers
- Relocate static final Strings from Abstract4diacUITest class into new
classes
- Refactoring the tests to use the new classes

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Aug 12, 2024
- Creation of package org.eclipse.fordiac.ide.test.ui.helpers
- Creation of final class StringNameHelpers
- Creation of final class PinNameHelpers
- Relocate static final Strings from Abstract4diacUITest class into new
classes
- Refactoring the tests to use the new classes

Addresses eclipse-4diac#377
bwiesmayr pushed a commit that referenced this issue Aug 13, 2024
- Creation of package org.eclipse.fordiac.ide.test.ui.helpers
- Creation of final class StringNameHelpers
- Creation of final class PinNameHelpers
- Relocate static final Strings from Abstract4diacUITest class into new
classes
- Refactoring the tests to use the new classes

Addresses #377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Aug 13, 2024
Renamed the not well chosen class name from StringNameHelper to
UITestNamesHelper

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Aug 13, 2024
Renamed the not well chosen class name from StringNameHelper to
UITestNamesHelper

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Aug 16, 2024
Due to the architecture restructuring, the new class
SWTBotSystemExplorer was created. Affected classes were changed to use
this change.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Aug 16, 2024
Renamed the not well chosen class name from StringNameHelper to
UITestNamesHelper

Addresses eclipse-4diac#377
azoitl pushed a commit that referenced this issue Aug 16, 2024
Renamed the not well chosen class name from StringNameHelper to
UITestNamesHelper

Addresses #377
@Andrearium Andrearium added the google-summer-of-code Issues specifically targeted at students enrolled in the program Google Summer of Code label Aug 21, 2024
@Andrearium Andrearium self-assigned this Aug 27, 2024
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
Due to the architecture restructuring, the new class
SWTBotSystemExplorer was created. Affected classes were changed to use
this change.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotConnection
- Relocated all methods related to connections from Abstract4diacUITests
to SWTBotConnections
- Refactored the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotSubapp
- Relocated all methods related to subapplications from
Abstract4diacUITests to SWTBotSubapp
- Refactored the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotFB
- Relocated all methods related to FBs from Abstract4diacUITests
to SWTBotFB
- Adapted the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
Renamed some variables from objects of supporting Bots with clearer
names to prevent misunderstanding and misinterpretation.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
…4diac#377

Created several sub-packages in org.eclipse.fordiac.ide.test.ui for a
clearer structure of the UI tests.
- created sub-package networking.basicfb
- created sub-package networking.contextmenu
- created sub-package networking.errormarker
- created sub-package networking.subapp_composite

Furthermore, the thematically matching tests have been moved to the
newly created packages.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotFBType
- Relocated all methods related to FB Types from
Abstract4diacUITests to SWTBotFBType
- Refactored the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
Due to the architecture restructuring, the new class
SWTBotSystemExplorer was created. Affected classes were changed to use
this change.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotConnection
- Relocated all methods related to connections from Abstract4diacUITests
to SWTBotConnections
- Refactored the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotSubapp
- Relocated all methods related to subapplications from
Abstract4diacUITests to SWTBotSubapp
- Refactored the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotFB
- Relocated all methods related to FBs from Abstract4diacUITests
to SWTBotFB
- Adapted the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
Renamed some variables from objects of supporting Bots with clearer
names to prevent misunderstanding and misinterpretation.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
…4diac#377

Created several sub-packages in org.eclipse.fordiac.ide.test.ui for a
clearer structure of the UI tests.
- created sub-package networking.basicfb
- created sub-package networking.contextmenu
- created sub-package networking.errormarker
- created sub-package networking.subapp_composite

Furthermore, the thematically matching tests have been moved to the
newly created packages.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 2, 2024
- Created helper class SWTBotFBType
- Relocated all methods related to FB Types from
Abstract4diacUITests to SWTBotFBType
- Refactored the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 3, 2024
…lipse-4diac#377

The incorrect static access to methods and static fields has been
removed and the corresponding suppression annotations

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 3, 2024
Fixed a typo of a wrong pin name so that the test runs correctly and
corresponds to the Javadoc.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 3, 2024
Renamed some variables from objects of supporting Bots with clearer
names to prevent misunderstanding and misinterpretation.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 3, 2024
…4diac#377

Created several sub-packages in org.eclipse.fordiac.ide.test.ui for a
clearer structure of the UI tests.
- created sub-package networking.basicfb
- created sub-package networking.contextmenu
- created sub-package networking.errormarker
- created sub-package networking.subapp_composite

Furthermore, the thematically matching tests have been moved to the
newly created packages.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 3, 2024
- Created helper class SWTBotFBType
- Relocated all methods related to FB Types from
Abstract4diacUITests to SWTBotFBType
- Refactored the tests using these methods

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 3, 2024
…lipse-4diac#377

The incorrect static access to methods and static fields has been
removed and the corresponding suppression annotations

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 3, 2024
Fixed a typo of a wrong pin name so that the test runs correctly and
corresponds to the Javadoc.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 5, 2024
Rename helper class PinNamesHelper to UITestPinHelper to be consistent
with the helper class UITestNamesHelper

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 5, 2024
Rename class PropertySheetHelper to SWTBotPropertySheet to be consistent
with the other supporting Bot classes

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 8, 2024
…#377

Rename class NatTabletHelper to SWTBotNatTable to be consistent
with the other supporting Bot classes for UI tests.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 8, 2024
This is not a stand-alone commit, the related tests will be adapted to
the new structure in the next commit and therefore only be executable
again at that point in future.

- The class SWTNatTable no longer derives from Abstract4diacUITests
- The class now has a constructor with parameters
SWT4diacGefBot and SWTBot4diacNatTable and corresponding fields.
- The methods are no longer static and the Bot parameters was removed.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 8, 2024
This is not a stand-alone commit, the tests of class
NatTableWithEditorBehaviorTests and derived classes are now adapted to
the new structure. The remaining SWTBot tests will follow.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 8, 2024
…lipse-4diac#377

For better readability and maintainability, the test variables from the
method operationsInitialzation() with Annotation @beforeeach have been
moved to a constructor.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 9, 2024
The tests of class NatTableWithoutEditorBehaviorTests and tests of
derived classes are now adapted to the new test structure.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 9, 2024
For better readability and maintainability, the test variables from the
method operationsInitialzation() with Annotation @beforeeach have been
moved to a constructor.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 12, 2024
- Creation of supporting SWTBot class SWTBotECC and related methods are
moved here from Abstract4diacUITests
- ECCEditorTests are adapted to this changes and are running again

Addresses eclipse-4diac#377
bwiesmayr pushed a commit that referenced this issue Sep 12, 2024
* Created class SWTBotSystemExplorer #377

Due to the architecture restructuring, the new class
SWTBotSystemExplorer was created. Affected classes were changed to use
this change.

Addresses #377

* Added SWTBotConnection helper class #377

- Created helper class SWTBotConnection
- Relocated all methods related to connections from Abstract4diacUITests
to SWTBotConnections
- Refactored the tests using these methods

Addresses #377

* Added SWTBotSubapp helper class #377

- Created helper class SWTBotSubapp
- Relocated all methods related to subapplications from
Abstract4diacUITests to SWTBotSubapp
- Refactored the tests using these methods

Addresses #377

* Added SWTBotFB helper class #377

- Created helper class SWTBotFB
- Relocated all methods related to FBs from Abstract4diacUITests
to SWTBotFB
- Adapted the tests using these methods

Addresses #377

* Renamed variables from objects of supporting Bots #377

Renamed some variables from objects of supporting Bots with clearer
names to prevent misunderstanding and misinterpretation.

Addresses #377

* Created sub-packages for a clearer structure of the UI tests  #377

Created several sub-packages in org.eclipse.fordiac.ide.test.ui for a
clearer structure of the UI tests.
- created sub-package networking.basicfb
- created sub-package networking.contextmenu
- created sub-package networking.errormarker
- created sub-package networking.subapp_composite

Furthermore, the thematically matching tests have been moved to the
newly created packages.

Addresses #377

* Added SWTBotFBType helper class #377

- Created helper class SWTBotFBType
- Relocated all methods related to FB Types from
Abstract4diacUITests to SWTBotFBType
- Refactored the tests using these methods

Addresses #377

* Fixed static accesses of methods and fields of the supporting bots #377

The incorrect static access to methods and static fields has been
removed and the corresponding suppression annotations

Addresses #377

* Fixed typo in Test #377

Fixed a typo of a wrong pin name so that the test runs correctly and
corresponds to the Javadoc.

Addresses #377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 12, 2024
Rename helper class PinNamesHelper to UITestPinHelper to be consistent
with the helper class UITestNamesHelper

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 12, 2024
Rename class PropertySheetHelper to SWTBotPropertySheet to be consistent
with the other supporting Bot classes

Addresses eclipse-4diac#377
bwiesmayr pushed a commit that referenced this issue Sep 16, 2024
* Renamed helper class for SWTBot UI Tests #377

Rename helper class PinNamesHelper to UITestPinHelper to be consistent
with the helper class UITestNamesHelper

Addresses #377

* Renamed helper class for SWTBot UI Tests #377

Rename class PropertySheetHelper to SWTBotPropertySheet to be consistent
with the other supporting Bot classes

Addresses #377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 16, 2024
…#377

Rename class NatTabletHelper to SWTBotNatTable to be consistent
with the other supporting Bot classes for UI tests.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 16, 2024
This is not a stand-alone commit, the related tests will be adapted to
the new structure in the next commit and therefore only be executable
again at that point in future.

- The class SWTNatTable no longer derives from Abstract4diacUITests
- The class now has a constructor with parameters
SWT4diacGefBot and SWTBot4diacNatTable and corresponding fields.
- The methods are no longer static and the Bot parameters was removed.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 16, 2024
This is not a stand-alone commit, the tests of class
NatTableWithEditorBehaviorTests and derived classes are now adapted to
the new structure. The remaining SWTBot tests will follow.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 16, 2024
…lipse-4diac#377

For better readability and maintainability, the test variables from the
method operationsInitialzation() with Annotation @beforeeach have been
moved to a constructor.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 16, 2024
The tests of class NatTableWithoutEditorBehaviorTests and tests of
derived classes are now adapted to the new test structure.

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 16, 2024
For better readability and maintainability, the test variables from the
method operationsInitialzation() with Annotation @beforeeach have been
moved to a constructor.

Addresses eclipse-4diac#377
bwiesmayr pushed a commit that referenced this issue Sep 19, 2024
…ecture. (#499)

* Renamed helper class NatTableHelper for SWTBot UI Tests #377

Rename class NatTabletHelper to SWTBotNatTable to be consistent
with the other supporting Bot classes for UI tests.

Addresses #377

* Restructured supporting Bot class SWTNatTable #377

This is not a stand-alone commit, the related tests will be adapted to
the new structure in the next commit and therefore only be executable
again at that point in future.

- The class SWTNatTable no longer derives from Abstract4diacUITests
- The class now has a constructor with parameters
SWT4diacGefBot and SWTBot4diacNatTable and corresponding fields.
- The methods are no longer static and the Bot parameters was removed.

Addresses #377

* NatWithEditorBehavoirTests test are running again #377

This is not a stand-alone commit, the tests of class
NatTableWithEditorBehaviorTests and derived classes are now adapted to
the new structure. The remaining SWTBot tests will follow.

Addresses #377

* Simplified initialization of tests from NatWithEditorBehavoirTests #377

For better readability and maintainability, the test variables from the
method operationsInitialzation() with Annotation @beforeeach have been
moved to a constructor.

Addresses #377

* NatWithoutEditorBehavoirTests test are running again #377

The tests of class NatTableWithoutEditorBehaviorTests and tests of
derived classes are now adapted to the new test structure.

Addresses #377

* Simplified tests from NatWithoutEditorBehavoirTests #377

For better readability and maintainability, the test variables from the
method operationsInitialzation() with Annotation @beforeeach have been
moved to a constructor.

Addresses #377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 19, 2024
Added missing copyright header to supporting SWTBot class SWTBotECC

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 19, 2024
- Creation of supporting SWTBot class SWTBotECC and related methods are
moved here from Abstract4diacUITests
- ECCEditorTests are adapted to this changes and are running again

Addresses eclipse-4diac#377
Andrearium added a commit to Andrearium/4diac-ide that referenced this issue Sep 19, 2024
Added missing copyright header to supporting SWTBot class SWTBotECC

Addresses eclipse-4diac#377
bwiesmayr pushed a commit that referenced this issue Oct 7, 2024
- Creation of supporting SWTBot class SWTBotECC and related methods are
moved here from Abstract4diacUITests
- ECCEditorTests are adapted to this changes and are running again

Addresses #377
bwiesmayr pushed a commit that referenced this issue Oct 7, 2024
Added missing copyright header to supporting SWTBot class SWTBotECC

Addresses #377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-summer-of-code Issues specifically targeted at students enrolled in the program Google Summer of Code
Projects
None yet
Development

No branches or pull requests

3 participants