Project

General

Profile

Feature #3993

Import capability of AF3 Projects by CLI switches

Added by Alexander Diewald 6 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
04/08/2020
Due date:
% Done:

100%

Estimated time:
3.00 h

Description

Purpose

In order to enable the automatic execution of test cases, DSE, or other algorithms, an import switch shall be created that allows to import projects from a given location by a command line switch.

Implementation Details

  • The import switch shall allow importing a single, or multiple, AF3 projects (e.g., directory or file given).
  • If possible, the projects to import shall be defined using a regexp.
  • The import shall only be possible if no equivalently named project exists in the runtime workspace.
  • If some project cannot be imported due to a naming conflict, the import shall exit early (pre-condition) and provide a hint about the possibility to specify an alternate runtime workspace with the "-data <dir>" switch.

Related issues

Precedes Feature #3995: Implement a switch to load a given DSE in the DSE perspective programaticallyClosed04/16/2020

Precedes Feature #3838: Examine JUnit test cases for migration needs prior to launching themClosed04/09/202004/09/2020

Precedes Feature #4008: CLI: Integrate random DSE test case generation codeClosed04/09/202004/30/2020

History

#1 Updated by Alexander Diewald 6 months ago

  • Status changed from New to Resolved
  • Assignee changed from Alexander Diewald to Tiziano Munaro
  • % Done changed from 0 to 100

Tiziano, as discussed, could you please test and review this one when you have time?
No need to hurry, it can only be merged after the release anyways.

MRs:
AF3: https://git.fortiss.org/af3/af3/-/merge_requests/327
Kernel: https://git.fortiss.org/af3/kernel/-/merge_requests/111
RCP: https://git.fortiss.org/af3/af3-rcp/-/merge_requests/30

For testing:
  • Try the command line import by adding --import <path> to the launch cfg. If a directory is given, all containing AF3 projects will be imported. Direct paths to files are also supported and file names with wildcards.
  • Try loading example models from the menu.
  • Try creating projects with and without existing workspaces and / or existing AF3-Project-Directories.
  • Test example loading in the product as well (The projects are in jars, which can result in problems accessing the files). Therefore, set up a local build acc. to https://af3-developer.fortiss.org/projects/autofocus3/wiki/AF3_Build_Management#Local-Build and switch the submodules af3, af3-rcp, and kernel to branch 3993.

#2 Updated by Alexander Diewald 6 months ago

  • Precedes Feature #3995: Implement a switch to load a given DSE in the DSE perspective programatically added

#3 Updated by Alexander Diewald 6 months ago

  • Precedes Feature #3838: Examine JUnit test cases for migration needs prior to launching them added

#4 Updated by Alexander Diewald 5 months ago

  • Precedes Feature #4008: CLI: Integrate random DSE test case generation code added

#5 Updated by Tiziano Munaro 5 months ago

  • Assignee changed from Tiziano Munaro to Alexander Diewald

GREEN and tested!
Ready to be merged!

#6 Updated by Alexander Diewald 5 months ago

  • Assignee changed from Alexander Diewald to Johannes Eder

Merged, can be closed :)

Thanks a lot for the review!

#7 Updated by Johannes Eder 5 months ago

  • Status changed from Resolved to Closed
  • Assignee deleted (Johannes Eder)

Also available in: Atom PDF