Exporting and Importing Projects Using ALM Robot

You can export multiple ALM projects in parallel to your archive folder and import multiple ALM projects in parallel from your archive folder to an ALM database.

Note:  

  • This feature is officially supported since ALM 15.5.1.
  • ALM Robot does not support exporting and importing Lab_Project.

Enable checksum for archived projects

If you want to ensure no modifications are made to archived projects during their transmission or storage, you can enable checksum for archived projects. If it is enabled, ALM Robot implements the check when you export and import projects as follows.

  • When you export a project, the project will be packaged in a .qcs file.

  • When you import an archived project, you can only import a .qcs file and ALM Robot will verify if there's any modifications to the file. If the verification passes, you can import the project. If the verification fails, you cannot import the project because ALM Robot assumes the archived project has been modified.

To enable checksum for archived projects:

  1. Turn on the ENABLE_ARCHIVE_CHECKSUM parameter. See ALM Site Parameters.
  2. Upload a certificate to ALM Robot. The certificate is used for checksum. See Uploading Certificate.

Back to top

Export projects

To export projects using ALM Robot:

  1. In Site Administration, select Tools > ALM Robot. ALM Robot opens.

  2. Click Add Activity to create a new activity for ALM Robot. The Activity Settings page displays.

  3. Define activity settings.

    On the Activity Settings page of the wizard:

    1. In the ActivityName box, enter a name for your activity.
    2. In the Type box, select Export.
    3. The Archive Folder field is read-only, indicating the target projects will be exported to the [ARCHIVE_BASE_FOLDER]/archive folder.

      [ARCHIVE_BASE_FOLDER] depends on the value of the ARCHIVE_BASE_FOLDER site parameter. Make sure you set a value to the parameter and the ALM server has the read and write permissions of this folder. If the parameter is not set, the base repository path will be used.

    4. Click Next to open the Projects Selection page and display the available projects.

  4. Select projects.

    On the Projects Selection page of the wizard:

    1. From the list of projects and domains, select the projects to include in your activity.

      You can select all projects, all projects in a specific domain, or specific projects.

      After your selection, click to move the selected projects to the Selected Projects & Rank pane.

      To remove projects from the selected list, select the projects and click to remove them from the Selected Projects & Rank pane.

      The dependency between linked projects and template projects is not reserved after the export. You have to manually link them.

    2. To set the order in the Selected Projects & Rank pane in which the projects will be processed during the upgrade, highlight a project and click the arrows at the top to move the project up or down in the list.

      Note:  

      • Template projects are always ranked first when selected. All other projects are added to the Selected Projects & Rank pane in the same order as they appear in the Projects Tree, but can be moved according to your priorities.

      • By default, ALM Robot can process up to 10 projects simultaneously on each ALM node. To change the default value, edit the ROBOT_MAX_TASKS_PER_NODE site parameter and set it according to your environment performance, as a large value can cause performance degradation.

    3. Note any possible warning messages that may appear at the bottom of the Selected Projects & Rank pane.

    4. Click Next to open the Project Settings page.

  5. Define project settings.

    Customize export file name: If you want to customize the export file name, check the option, and enter the custom file name in the field below the option. Otherwise, the export file is named in the format: <project type>_<username>_<export date and time>. <project type> is either ST (for standard projects) or T (for template projects).

    Override export file name if same exists: When you use custom export file name, this option controls whether or not the existing export file will be replaced with the new export file that has the same name. If you do not check this option, ALM Robot keeps both the new and existing export files.

  6. Review the activity summary.

    The Activity Summary shows the configuration of your activity. The Activity Tasks section shows the projects selected for your activity and the changes made per project on the Project Settings page.

  7. Click Submit. ALM Robot starts the validation process.

    The export file is either a .qcp or a .qcs file, depending on whether you enable checksum. See Enable checksum for archived projects.

    If the validation process is completed successfully, the activity begins processing. The dashboard window opens. See ALM Robot Dashboard Actions for details.

    If ALM Robot detects an error while validating the selected projects, fix the error and click Submit.

Back to top

Import projects

To import projects using ALM Robot:

  1. In Site Administration, select Tools > ALM Robot. ALM Robot opens.

  2. Click Add Activity to create a new activity for ALM Robot. The Activity Settings page displays.

  3. Define activity settings.

    On the Activity Settings page of the wizard:

    1. In the ActivityName field, enter a name for your activity.
    2. In the Type field, select Import.
    3. The Archive Folder field is read-only, indicating the target projects to be imported are now archived in the [ARCHIVE_BASE_FOLDER]/archive folder.

      [ARCHIVE_BASE_FOLDER] depends on the value of the ARCHIVE_BASE_FOLDER site parameter. Make sure you set a value to the parameter and the ALM server has the read and write permissions of this folder. If the parameter is not set, the base repository path will be used.

    4. In the Database field, select a database the target projects will be imported to.

      If you select an Oracle database, you should also specify the default tablespaces and temp tablespaces.

    5. Click Next to open the Projects Selection page and display the available projects.

  4. Select projects.

    On the Projects Selection page of the wizard:

    1. From the list of projects and domains, select the projects to include in your activity.

      The project names are in the format: <project name>_<username that exported the project>_<date and time when the project was exported>.

      If a project has been exported for multiple time, all its export files are listed. You should select only one export file to import the project.

      If you already disabled checksum of archived projects, both .qcp and .qcs project files are available for selection. If you enabled checksm, you can only select .qcs project files.

      After your selection, click to move the selected projects to the Selected Projects & Rank pane.

      To remove projects from the selected list, select the projects and click to remove them from the Selected Projects & Rank pane.

    2. To set the order in the Selected Projects & Rank pane in which the projects will be processed during the upgrade, highlight a project and click the arrows at the top to move the project up or down in the list.

      Note:  

      • Template projects are always ranked first when selected. All other projects are added to the Selected Projects & Rank pane in the same order as they appear in the Projects Tree, but can be moved according to your priorities.

      • By default, ALM Robot can process up to 10 projects simultaneously on each ALM node. To change the default value, edit the ROBOT_MAX_TASKS_PER_NODE site parameter and set it according to your environment performance, as a large value can cause performance degradation.

    3. Note any possible warning messages that may appear at the bottom of the Selected Projects & Rank pane.

    4. Click Next to open the Summary page.

  5. Review the activity summary.

    The Activity Summary shows the configuration of your activity. The Activity Tasks section shows the projects selected for your activity and the changes made per project on the Project Settings page.

  6. Click Submit. ALM Robot starts the validation process.

    If you enable checksum, you can only import .qcs project files with intact signatures. For details, see Enable checksum for archived projects.

    If the validation process is completed successfully, the activity begins processing. The dashboard window opens. See ALM Robot Dashboard Actions for details.

    If ALM Robot detects an error while validating the selected projects, fix the error and click Submit.