Demo Installation Guide for Windows

Introduction

Many IT organizations control their application development with the aid of tools. These tools vary depending on the size of the development team or the complexity of the applications being developed. Most of these tools enable some form of version control, maybe even some form of defect tracking and probably some form of change management to assure control over the development process of the code. But what happens when code leaves the development team(s)? To what extent is your (re)build process for QA and Production automated? How sophisticated are your deployment capabilities?

IKAN ALM extends the control beyond the development teams. IKAN’s (r)evolutionary approach combines existing development tools with automated build and deploy management and lifecycle support for any size of organization. You do not want to miss the (r)evolution!

This document describes how to install the IKAN ALM 5.8 Demo application. This demo version offers most of the functionality of the full version, although it is limited in the following ways:

  • Time-limited: the license expires 30 days after installation

  • Usage-limited: 2 defined machines, 2 floating users, 2 reserved users.

  • Database-limited: a light-weight HSQLDB database is used, the full version supports MySQL, Oracle, DB2, MS SQL Server and (on demand) any other JDBC compliant database

  • Server and Agent processes will run in the same JVM of the OSGi container. In the full version they may be installed as daemons running independently on local or remote systems.

This document will guide you through the installation of the IKAN ALM 5.8 Demo application. However, if you need additional assistance, don’t hesitate to contact our support services via e-mail at support@ikanalm.com.

Prerequisites

Before starting the installation, verify and, if necessary, update the configuration of the target install system.

It is recommended to uninstall previous IKAN ALM Demo installations before doing a re-install (Uninstalling the IKAN ALM Demo Application).

Windows-based Operating System

The IKAN ALM 5.8 Windows Demo installation has been tested on:

  • Microsoft Windows Vista/2008

  • Microsoft Windows 7/2008 R2

  • Microsoft Windows 8/2012

  • Microsoft Windows 8.1/2012 R2

  • Microsoft Windows 10/2016 Server

Java SE Development Kit

Java SE Development Kit (JDK) V1.7.x or 1.8.x is required.

All IKAN ALM components need at least a Java Development Kit (JDK) or a Server Java Runtime (Server JRE ). IKAN ALM has been tested to run with both Oracle Java and OpenJDK. The Java SE Server Runtime Environment (Server JRE) or Software Development Kit (SDK) can be freely obtained from Oracle’s website. Both 32-bit and 64-bit versions are supported.

The latest version of Java SE can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Microsoft Windows SDK for Windows 7 and .NET Framework 4

The Microsoft Windows SDK for Windows 7 and the .NET Framework 4 must be installed if you want to see the Monocalendar .NET demo project in action. If not installed, it will not be possible to build or run the Monocalendar project.

You can install the Windows SDK and .NET Framework afterwards. It can be downloaded from Microsoft’s website: http://www.microsoft.com/en-us/download/details.aspx?id=8279.

Windows SDK 7 has issues when installing on Windows 10, see following link on how to solve these:

Pre-Windows 7 versions need the Microsoft .NET Framework 3.5 and also, at least, .NET Framework 2.0 SDK. It can be downloaded from Microsoft’s website: .NET Framework 3.5 and .NET Framework 2.0 Software Development Kit (SDK) (x86).

Installation Steps

The screenshots used in this document assume the English language has been selected. For the other languages the screens will be similar.

Step 1: Starting the Installation

The IKAN ALM Windows Demo is distributed as a 32-bit and a 64-bit self-extractable archive. The first step of the installation is to choose one of the archives and unpack it locally on the machine where you want to install the IKAN ALM Demo.

To do so, double-click or execute the archive (ikanalm_trial_x86.exe or ikanalm_trial_x64.exe).

A window similar to this one will pop up:

startingup

Choose a destination folder. The files will be extracted in a subfolder named "ikanalm_trial_x86" or "ikanalm_trial_x64".

After extraction, the folder should contain :

  • alm_license.lic: a Demo license (valid for 30 days) for IKAN ALM

  • 32-bit version: almdemo_install_5-8_x86.exe

    The 32-bit installer image for IKAN ALM Demo

  • 64-bit version: almdemo_install_5-8_x64.exe

    The 64-bit installer image for IKAN ALM Demo

  • IKAN ALM 5.8 Windows Demo Installation Guide.pdf : installation guide for installing IKAN ALM Demo

Execute either the 32-bit or the 64-bit installer :

  • almdemo_install_5-8_x86.exe: To run this installer image, you will need to have a 32-bit Public Java Runtime Environment (Public JRE) installed.

  • almdemo_install_5-8_x64.exe: To run this installer image, you will need to have a 64-bit Public Java Runtime Environment (Public JRE) installed.

The graphical IKAN ALM installer will start. Refer to the section Troubleshooting if the IKAN ALM installer does not start.

Depending on the flavor of Windows OS used, there can be differences in the installer’s behavior.

If UAC is enabled (Windows Vista and later), Windows will ask for a confirmation for the program to make changes to the computer (if your User account is an Administrator). If you are trying to install the application from an account other than Administrator, you might get the message "requested operation requires elevation."

Double-click the almdemo_install_5.8_xXX.exe file. The following window will pop up:

fig3 1

Select your preferred installation language and click OK.

The following welcome screen will be displayed:

fig3 2

Click Next to continue.

fig3 3

Carefully read the readme information. Click the Next button to continue.

Step 2: License Agreement

fig3 4

Read the license agreement carefully. Select the option I accept the terms of this license agreement. and click the Next button.

Step 3: Installation Location

fig3 5

Select the home directory for installing the Demo Application on your file system. The default home directory is C:\ALMDemo. You can change this location using the Browse button.

Further on in this document, this location will be referred to as ALM_HOME.

Click Next to continue.

If the directory already exists, a warning message will appear.

directoryexists

All installation packs must be installed.

fig3 6

Click Next to proceed to the selection of a Java Development Kit (JDK).

Step 4: Selecting a Java Development Kit

fig3 7

As mentioned in the section Java SE Development Kit, a Java Development Kit (JDK) version 1.7 or 1.8 is required.

A Java Runtime Environment (JRE) will not be sufficient!

If the selected directory does not contain a proper JDK, the following error message will be displayed:

errordirectory

Step 5: Configuration Settings

fig3 9

Configure the network ports used by IKAN ALM. Normally, the defaults presented should be OK, but it is important that these port numbers are not in use by other processes.

Get to a DOS prompt and type netstat -an to check which ports are currently in use.

In the remainder of this guide, the Application Server Port will be referred to as ALM_APPSERVER_PORT.

Click Next to obtain an installation summary.

fig3 10

Click Next to start the installation with the given settings:

fig3 11

Once the installation is finished, click Next to proceed with setting up the Start Menu.

Step 6: Start Menu Shortcuts

fig3 12

Select the Program Group and Shortcut Name for the Start Menu. The default group and name is IKAN ALM Demo 5.8. You may change these names.

Click Next to complete the IKAN ALM Demo installation.

fig3 13

Setup After Installation

Installing the IKAN ALM License

Together with this Installation Guide and the installer, you should have received a license file named alm_license.lic.

This demo license will expire after 30 days (Step 2: License Agreement). Contact IKAN ALM support if you did not receive the license file or if you want to extend the license period.

Start the IKAN ALM Demo Server:

  • Via the Start Menu:

    Applications > IKAN ALM Demo 5.8 > Start IKAN ALM Demo server

  • Or via the batch file:

    Double click the ALM_HOME/startDemo.cmd file.

Open the IKAN ALM web application:

  • Via the start menu:

    Start > Programs > IKAN ALM Demo 5.8 > Open IKAN ALM in browser

  • Or via a web browser:

    Provide the following URL: http://MACHINE_NAME:ALM_APPSERVER_PORT/alm (e.g., http://ikan009:9080/alm)

The Install license screen will appear.

novalidlicense

Enter or browse to the file location of the alm_license.lic file you received and click Submit. Do not alter the file or filename. The following screen will appear when the license is installed:

install license

Using the IKAN ALM 5.8 Demo Application

Starting and Stopping the IKAN ALM Server

The IKAN ALM Demo Server must be running in order to work with IKAN ALM.

Start the IKAN ALM Demo Server:

  • Via the shortcut menu:

    Start > Programs > IKAN ALM Demo 5.8 > Start IKAN ALM Demo server

  • Or via the batch file:

    Double click the ALM_HOME/startDemo.cmd file.

This will launch a Tomcat webserver and the IKAN ALM Demo server (which runs both the IKAN ALM Server and Agent). When the IKAN ALM Demo server prompt window displays a message like: "Successfully connected with IKAN ALM server", the ALM Demo is fully started.

fig5 1

If a message such as "INFO : Server startup in nnn ms" is displayed, the Tomcat Server is completely up and running and you can use the Web application.

fig5 2

Stop the IKAN ALM Demo Server:

  • Via the shortcut menu:

    Start > Programs > IKAN ALM Demo 5.8 > Stop IKAN ALM Demo server

  • Or via the batch file:

    Double click the ALM_HOME/stopDemo.cmd file.

Opening the IKAN ALM Web Application

If you work on the system where you installed the IKAN ALM demo you can do the following:

Start > Programs > IKAN ALM Demo 5.8 > Open IKAN ALM in browser

If you did not install the Start Menu shortcuts, or if you work on a remote system on the same network as the machine where you installed the IKAN ALM demo, do the following:

  1. Start an internet browser

  2. Provide the following URL: http://MACHINE_NAME: ALM_APPSERVER_PORT/alm

_ MACHINE_NAME_ may be replaced by the machine name or IP address (e.g., 127.0.0.1, IKAN001, …​ ) of the system where you installed the IKAN ALM demo. ALM_APPSERVER_PORT as configured in section Step 5: Configuration Settings. For example, an IKAN ALM start URL could be http://ikan009:9080/alm.

An internet browser window will appear, displaying the IKAN ALM Log in screen.

Logging on to the IKAN ALM Web Application

You are ready to start working with the IKAN ALM web interface.

Logon

You may add this link to your internet browser’s Favorites.

Log on to IKAN ALM with one of the following predefined User IDs and passwords:

User ID Password Access Rights

user

user

User

project

project

Project Administration

global

global

Global Administration

We suggest that you start with the User ID global (password: global), since this User has complete access to all components in the IKAN ALM Demo.

Provide the User ID and Password, and select Log in. The IKAN ALM home page will be displayed and you can start working in IKAN ALM.

IKAN ALM Demo Projects

The IKAN ALM Demo Installation includes two completely configured demo projects with a versioning system (Subversion), scripting tools, scripts, sources, global administration and project administration fully set up and ready for build and deploy activities.

Customers Project

The Customers project is a small web application, written in Java, for managing a trivial customers database. Its lifecycle contains three stages: the CONTBUILD, TEST and PRODUCTION levels.

  • The CONTBUILD level will automatically build the sources when changed, ensuring Continuous Integration.

  • The TEST level will upload generated test data into a test database and deploy the application to the IKAN ALM web server (Apache Tomcat) under a test context.

  • The PRODUCTION level will deploy the application to the IKAN ALM web server (Apache Tomcat) under a production context.

Scripts are executed with Apache Ant.

For a detailed description of this project, refer to the chapter Sample Java Project (Customers).

Monocalendar Project

The Monocalendar project is a stand-alone calendar application written in C Sharp. Its lifecycle in the Head Project Stream also contains three levels:

  • CONTBUILD for Continuous Integration

  • TEST for the rebuild and creation of an NSIS installer

  • PRODUCTION for installing/uninstalling the application

The scripts are executed with NAnt. For a detailed description of this project, refer to the section Sample .NET Project (Monocalendar).

Documentation

The IKAN ALM User Guide is available in the following formats:

  • Start > Programs > IKAN ALM Demo 5.8 > IKAN ALM Documentation

  • in PDF format under ALM_HOME/doc/ALMUserGuide.pdf

  • in HTML format, within the IKAN ALM web application:

    Select Help on the main menu. A new internet browser window will pop up, displaying the “Table of Contents”.

  • as context-sensitive help on each IKAN ALM user interface screen.

    Click the help icon next to the selected menu indication to access it.

Sample Java Project (Customers)

The Customers project is a small web application, written in Java, for managing a trivial customers database. Its lifecycle contains three stages (Levels):

  1. CONTBUILD Level

    This Level will automatically build the sources when changed, ensuring Continuous Integration

  2. TEST Level

    This Level will upload generated test data into a test database and deploy the application to the IKAN ALM web server (Apache Tomcat) under a test context.

  3. PRODUCTION Level

    This Level will deploy the application to the IKAN ALM web server (Apache Tomcat) under a production context.

The scripts used by this Project are executed with Apache Ant.

The following sections describe the different steps:

Managing Your Desktop

The Desktop allows you to observe the actions (Builds, Deploys) in a project. If you log on for the first time, your Desktop will be empty.

In this section, we will create a desktop item for the Customers project.

On the Desktop screen, click the Add to Desktop button.

desktop

The Add to Desktop window pops up.

fig6.1 2

A Project may have different lifecycles. In IKAN ALM, those lifecycles are organized in Project Streams. In order to follow up all the activity in a Project Stream, you can create a Project Stream Desktop Type.

Select the "1-0" Project Stream of the Customers Project, then click the Add to Desktop button.

A confirmation message will appear if the item is successfully added to the Desktop. Press the Close button to close the Add to Desktop window.

You can also select individual Levels in the tree and add them to your Desktop.

On the Desktop Overview, expand the Project Stream Levels by clicking the ExpandProjectStream icon in front of the Customers 1-0 Project Stream Desktop item. The following Levels are now displayed:

fig6.1 3

As you can see, there is not much activity going on in the Customers project yet, since the project is locked. In the next step, we will unlock the project.

Unlocking a Project

In order to build the Customers Project, it must be unlocked together with the corresponding Levels in the Project Administration section. This action can only be performed by a User having Project Administration rights, like the “global” or “project” User ID (See Logging on to the IKAN ALM Web Application).

Select icon ProjectAdmin 13x13 Project Administration on the main menu to start the unlock procedure.

fig6.2 1

Click the Edit edit icon in front of the Customers Project.

There is also an Unlock unlock icon for each Project in the list here. This icon will only unlock the Project, leaving the Levels locked.

The resulting Project Info screen appears in the Customers Project Administration context. We are not going to change the Project Settings, but you could verify the existence of the Project in the Subversion repository by clicking the Check Project Name in the VCR button.

Select Audit Project on the submenu in order to check the consistency of the Project.

fig6.2 2

Before showing the Audit Project screen, several checks will be done to verify the setup of the Project. You can click the help button to get context-sensitive help on this function. For more information, refer to the chapter Auditing Projects in the IKAN ALM User Guide for more information.

If the project is consistent (branches, levels, environments, phases and parameters are valid), an Unlock link will appear in the Actions panel. Click this link to unlock the Project and its Levels.

fig6.2 3

As a result, the Locked icons for the Levels will disappear. The Project is not locked anymore. Select the Project Administration icon ProjectAdmin 13x13 icon on the main menu to verify that the Lock button for the Project also disappeared.

As soon as the Project and its Levels are unlocked, there will automatically be some action in the Project. Check the next section to understand what is happening.

Building/Delivering in the Lifecycle of a Project

Automatic Build on the Build Level

Once the Project is unlocked, it will be built automatically.

Since a Continuous Build schedule is linked to the Project’s Build Level (CONTBUILD), the IKAN ALM scheduler will check at startup (and from then on every minute) whether there are changes in the trunk of the Subversion repository connected to the Project.

If changes have been made, or if there has never been a Build before (like in this case), a Build Level Request will be created.

To verify the result of this Build Level Request select Level Requests > Overview Level Requests on the main menu.

The following overview will be displayed:

fig6.3 1

Select the OID (1) of the Level Request to display the Level Request Detail page on which you can verify what happened during the Build Level Request.

In IKAN ALM, the steps of the build process are called Phases. To see what happened during the Level Request, select the Phase Logs tab:

fig6.3 2

This page displays the logs of the Level Phases, the Build and Deploy actions and their Build and Deploy Phases executed during the handling of a Level Request. It also provides more detailed information regarding the used Parameters. Since the CONTBUILD Level has one Build Environment, there will be one Build Action with Build Phases, and no Deploy Actions. Try clicking on the names of the phases: this will expand the phase, displaying its details.

The log of the Execute Script Phase is the most interesting one. It should show a successful compilation process, the creation of a .war file, and some supporting tasks. To display it, expand the Build action (called Build 1 on Machine XXX). This shows the Build phases that were executed during the Build action. Next, expand the Execute Script phase. This will reveal the execution log, where you will find the output of the Ant build script that was executed.

fig6.3 3

Delivering the Build to the TEST Level

At this point there is a successful Build available on the first level of the Head Project Stream. We will now deliver it to the next Levels (TEST and PRODUCTION) in the lifecycle.

Select Desktop on the main menu.

fig6.3 4

Click the Deliver icon deliverBuild icon at the right of the Customers H_1-0 TEST Level.

fig6.3 5

On the Create Level Request screen, provide a description and select the Build (1) by clicking the appropriate Build row.

If you leave the Requested Date/Time field blank, the Deliver Level Request will be executed immediately.

Click the Create button. You will be forwarded to the Desktop. A Deliver Build Level Request is created for the Test Level of your project.

The status of the Level Request is set to Waiting Date/Time (waiting datetime ) until it will be handled by the IKAN ALM Server. Then the status changes to Run (run ).

On the Desktop Overview, click the Latest Level Request link for the TEST Level.

fig6.3 5b

The Level Request Detail screen will be displayed.

Click the Refresh link or activate the Auto Refresh function on the submenu. Finally, the Level Request should end with the status Success (succes ).

fig6.3 6
What is the result of this Deliver to Test?

The Test Level of the Customers project contains a Deploy action. During the Deploy step, the Customers web application was deployed to the Tomcat server that also runs the ALM Demo. The application was deployed under a test context (“/customers_test”). Before the application was deployed, a database (a HSQLDB, also running in Tomcat) was uploaded with test data.

To see the deployed application, open a web browser and enter the following URL: http://MACHINE_NAME:ALM_APPSERVER_PORT/customers_test (for example: http://ikan009:9080/customers_test).

fig6.3 7

The general color of the application is green. This is to indicate that this is the test version of the application. The general color of the production version will be red.

Also notice that the version of the sources (the VCR tag) that were used to build this version of the application, is shown in the welcome panel. In this example, the VCR tag is H_1-0_b1.

Click on the List all Customers link to display the list of all Customers defined in the test database.

fig6.3 8

Delivering the Build to the PRODUCTION Level

To see what happens next in the lifecycle, we will deliver to the Production level. We could do this in a similar way as for the Test level via the Desktop. An alternative way is to select Level Requests > Create Level Request on the menu.

fig6.3 9

Click the Deliver icon deliverBuild icon at the right of the Customers H_1-0 PRODUCTION Level.

As you did when creating the Level Request for the TEST level, provide a Description, and select the Build Number 1. Leaving the Requested Date/Time field blank means that the Deliver Level Request will be executed immediately.

Click the Create button.

You will be forwarded to the Level Requests Detail screen.

fig6.3 10

A new Level Request will be created, with status Awaiting Pre-Approval (waiting approval ). Since a Pre-Approval is linked to the PRODUCTION level, a notification mail will be sent to all members of the ALM User User Group.

The newly created Level Request will stay in the Awaiting Pre-Approval status until the approval is granted. Since the global user is a member of the ALM User User Group, select Approvals > Outstanding Approvals on the main menu, then click the Approve approve link.

fig6.3 11

Enter any approval text (optional) and click the Approve button.

The Level Request will now be handled by the IKAN ALM Server.

Return to the Desktop Overview by selecting Desktop on the main menu. The status of the Latest Level Request for the Production Level is now set to Run (run ). Click the Refresh link or activate Auto Refresh on the submenu. Finally, the Level Request should end with the status Success (succes ).

You may click also click the Latest Level Request link on the Desktop Overview to follow up the execution of the different phases.

fig6.3 11b
What is the result of this Deliver to Production?
fig6.3 12

To see the deployed application on Production, open a web browser and enter the following URL: http://MACHINE_NAME:ALM_APPSERVER_PORT/customers (for example: http://ikan009:9080/customers).

The general color of the application is red. This is to indicate that this is the production version of the application. Also notice that the version of the sources (the VCR tag) that were used to build this version of the application, is shown in the welcome panel. Here, the VCR tag is H_1-0_b1.

Click on the List all Customers link to display the list of all Customers defined in the production database.

fig6.3 13

Triggering a Scheduler Build via a Source Commit

It is possible to check out the source code of the demo projects and to commit changes.

Install a Subversion client, for example Tortoise SVN, and check out the source code.

The repository URL is file:///ALM_HOME/vcr/subversion/repository/customers/trunk for the Customers project.

Modify a source file and commit it. The Scheduler will pick up the changes and will start building the Project.

Additional Information on Custom Phases

Instead of using one large Ant script that performs all tasks, the deployment of the Customers application uses several small scripts that each perform a specific task. The tasks that were reusable have been encapsulated as IKAN ALM Custom Phases.

More specifically, the deploy to the Test level does three things:

  • Adapt the .war file (set the database connection parameters in certain config files)

  • Populate a database with test data

  • Deploy the application to Tomcat

The first task was not general enough to be reused, but for the other two tasks Custom Phases were made: the “Update DB” and the “Tomcat Deploy” phases.

To view the definitions of these phases, go to icon GlobalAdmin 13x13 Global Administration > Phases > Overview.

fig6.5 1

Click the Edit edit icon before the com.ikanalm.phases.ant.scripting.tomcatDeploy Phase.

fig6.5 2

This page displays general information about the Phase, the Phase Parameters that can be set to configure the execution of the Phase, and where the Phase is currently being used (the Connected Levels and Environments panel).

One of the parameters that can be set is “tomcat.server.url”. It sets the base URL of the Tomcat server where an application needs to be deployed. When a Phase is added to an Environment (a Level, Build or Deploy Environment), those parameters can be given a different value for each Environment. That means that the same Phase can be reused in a lot of different Environments, each time performing a different task, which offers a lot of flexibility.

As you can see on the Connected Levels and Environments panel, our Tomcat Deploy phase is currently being used in 2 different places:

  • In the testdeploy Deploy Environment of the Test Level, where it deploys the Customers application to the test context

  • In the proddeploy Deploy Environment of the Production Level, where it deploys the Customers application to the production context

For an example of a more advanced usage of Parameters, look at the “contextPath” Phase Parameter. Its default value is set to /${applicationName}, and it has this value set in both the testdeploy and proddeploy Environments (you can see them by clicking the Edit _edit icon in front of the _contextPath Parameter). Still, the Customers application is deployed to 2 different contexts, namely “customers_test” and “customers”.

How does this work?

The answer lies in a Deploy Parameter (named “applicationName”) which is defined on both Deploy Environments.

Go to icon ProjectAdmin 13x13 Project Administration, and edit the Customers Project. Next, in the menu, select Deploy Environments > Deploy Parameters:

fig6.5 3

As you can see, for the testdeploy environment, the value of the “applicationName” parameter is “customers_test”, while for the proddeploy environment, the specified value is “customers”. When the Tomcat Deploy Phase is being executed, the property ${applicationName} will be replaced with the value of the Deploy Parameter, which yields the desired behavior.

For more information on Custom Phases and on how you can create them yourself, please refer to the IKAN ALM User Guide (chapter Global Administration, Phases and appendix Phases: General Information), and to the document Using and Developing Custom Phases.

Sample .NET Project (Monocalendar)

The Monocalendar Project is a stand-alone calendar application written in C Sharp. Its lifecycle in the Head Project Stream contains three stages (Levels):

  1. CONTBUILD Level

    This Level will automatically build the sources when changed, ensuring Continuous Integration.

  2. TEST Level

    This Level will rebuild and create an NSIS installer.

  3. PRODUCTION Level

    The Level for installing/uninstalling the application.

The scripts are executed with NAnt. Microsoft SDK for Windows 7 and Microsoft .NET Framework 4 are needed for compilation (see also Microsoft Windows SDK for Windows 7 and .NET Framework 4).

The following sections describe the different steps:

Managing Your Desktop

The Desktop allows you to observe the actions (Builds, Deploys) in a project. When you log on for the first time, your Desktop is empty.

In this section, we will create a desktop item for the Monocalendar project.

On the Desktop screen, click the Add to Desktop button.

desktop

The Add to Desktop window pops up.

monocal 02

A Project may have different lifecycles. In IKAN ALM, these are organized in Project Streams. In order to follow up all activity in a Project Stream, you can create a Project Stream Desktop Type.

Select the "1-0" Project Stream of the Monocalendar Project, then click the Add to Desktop button.

A confirmation message will appear if the item is successfully added to the Desktop. Press the Close button to close the Add to Desktop window.

You can also select individual Levels in the tree and add them to your Desktop.

Expand the Project Stream Levels by clicking the ExpandProjectStream icon in front of the Monocalendar 1-0 Project Stream Desktop item. The following Levels are now displayed:

monocal 03

As you can see, there is not much activity going on in the Monocalendar project yet, since the project is locked. In the next step, we will unlock the project.

Unlocking a Project

In order to build the Monocalendar Project, it must be unlocked together with the corresponding Levels in the Project Administration section. This action can only be performed by a User having Project Administration rights, like the “global” or “project” User (Logging on to the IKAN ALM Web Application).

Select icon ProjectAdmin 13x13 Project Administration on the main menu to start the unlock procedure.

monocal 04

Click the Edit edit icon in front of the Monocalendar Project.

There is also an Unlock unlock icon for each Project in the list here. This icon will only unlock the Project, leaving the Levels locked.

The resulting Project Info screen appears in the Monocalendar Project Administration context. We are not going to change the Project Settings, but you could verify the existence of the Project in the Subversion repository by clicking the Check Project Name in the VCR button.

Select Audit Project on the submenu in order to check the consistency of the Project.

monocal 05

Before showing the Audit Project screen, several checks will be done to verify the setup of the Project. You may click the help button to get context-sensitive help on this function. Refer to the chapter Auditing Projects in the IKAN ALM User Guide for more information.

If the project is consistent (branches, levels, environments, phases and parameters are valid), an Unlock link will appear in the Actions panel. Click this link to unlock the Project and its Levels.

monocal 06

As a result, the Locked icons for the Levels will disappear. The Project is not locked anymore. Select Projects Overview on the submenu to verify that the Lock button for the Project also disappeared.

As soon as the Project and its Levels are unlocked, there will automatically be some action in the Project. Check the next section to understand what is happening.

Building/Delivering in the Lifecycle of a Project

Automatic Build on the BUILD Level

Once the Project is unlocked, it will be automatically built.

Since there is a Continuous Build schedule linked to the Project’s Build Level (CONTBUILD), the IKAN ALM scheduler will check at startup (and from then on every minute) whether there are changes in the trunk of the Subversion repository connected to the Project.

If changes have been made, or if there has never been a Build before (like in this case), a Build Level Request will be created.

To verify the result of this Build Level Request select Level Requests > Overview Level Requests on the main menu

The following overview will be displayed:

monocal 07

Click the OID (1) of the Level Request to display the Level Request Detail window on which you can verify what happened during the Build Level Request.

In IKAN ALM, the steps of the build process are called Phases. To see what happened during the Level Request, select the Phase Logs tab:

monocal 08

This page displays the logs of the Level Phases, the Build and Deploy actions and the Build and Deploy Phases executed during the handling of the Level Request. It also provides more detailed information regarding the used Parameters. Try clicking on the names of the phases: this will expand the phase, displaying its details.

The log of the Execute Script phase is the most interesting one. It should show a successful compilation process with some supporting tasks. To get to it, expand the Build action (called Build 1 on Machine XXX). This shows the Build phases that were executed during the Build action. Next, expand the Execute Script phase. This will reveal the execution log, where you will see that some compile actions succeeded and resulted in the creation of a Monocalendar.exe file.

monocal 09

Delivering the Build to the TEST Level

At this point there is a successful Build available on the first level of the Head Project Stream. We will now deliver it to the next Levels (TEST and PRODUCTION) in the lifecycle.

Select Desktop on the main menu.

monocal 10

Click the Deliver icon deliverBuild icon at the right of the Monocalendar 1-0 TEST Level.

monocal 11

On the Create Level Request screen, provide a description and select the Build (1) by clicking the appropriate Build row.

If you leave the Requested Date/Time field blank, the Deliver Level Request will be executed immediately.

Click the Create button. You will be forwarded to the Desktop. A Deliver Build Level Request is created for the Test Level of your project.

The status of the Level Request is set to Waiting Date/Time (waiting datetime ) until it will be handled by the IKAN ALM Server. Then the status changes to Run (run ).

On the Desktop, select the Latest Level Request of the TEST Level.

monocal 12

The Level Request Detail screen will be displayed.

Click the Refresh link or activate the Auto Refresh function on the submenu. Finally, the Level Request should end with the status Success (succes ).

monocal 12b
What is the result of this Deliver to Test?

In the Monocalendar project the Test Level includes a Build action that recompiles the sources and creates an installable .exe file. The Test Level also has a Deploy action that copies this .exe to a folder where the user can test the installation of the Monocalendar application by executing the installer .exe.

This folder is ALM_HOME/environments\Monocalendar\testdeploy\target (e.g., C:\ALMDemo\environments\Monocalendar\testdeploy\target).

The result of the Build can be viewed by selecting the Results tab on the Level Request Detail page:

monocal 13

Delivering the Build to the PRODUCTION Level

To see what happens next in the lifecycle, we will deliver to the Production level. We could do this in a similar way as for the Test level via the Desktop. An alternative way is to select Level Requests > Create Level Request on the menu.

monocal 14

Click the Deliver icon deliverBuild icon at the right of the Monocalendar H_1-0 PRODUCTION Level.

As you did when creating the Level Request for the TEST level, provide a Description, and select the Build Number 1. Leaving the Requested Date/Time field blank means that the Deliver Level Request will be executed immediately.

Click the Create button.

You will be forwarded to the Level Requests Detail screen.

monocal 15

A new Level Request will be created, with status Awaiting Pre-Approval (waiting approval ). Since a Pre-Approval is linked to the PRODUCTION level, a notification mail will be sent to all members of the ALM User User Group.

The newly created Level Request will stay in the Awaiting Pre-Approval status until the approval is granted. Since the global user is a member of the ALM User User Group, select Approvals > Outstanding Approvals on the main menu, then click the Approve (approve ) button.

monocal 16

Enter any approval text (optional) and click the Approve button.

The Level Request will now be handled by the IKAN ALM Server.

Return to the Desktop Overview by selecting Desktop on the main menu.

The status of the Level Request is set to Waiting Date/Time (waiting datetime ) until it will be handled by the IKAN ALM Server. Next, the status changes to Run (run ).

monocal 16b

You may click on the Level Request’s OID to follow up the execution of the different phases. Click the Refresh link or activate Auto Refresh on the submenu. Finally, the Level Request should end with the status Success (succes ).

If you are running the IKAN ALM Demo version locally, a User Account Control warning will pop up asking you to allow the program monocalendar.win32.installer.exe to make changes to the computer. Click Yes to continue.

What is the result of this Deliver to Production?

In the Monocalendar project, the Production Level included a Deploy action. The Monocalendar application will be installed and launched with the following result:

aboutmonocalendar

Triggering a Scheduler Build via a Source Commit

It is possible to check out the source code of the demo projects and to commit changes.

Install a Subversion client, for example Tortoise SVN, and check out the source code.

The repository URL is file:///ALM_HOME/vcr/subversion/repository/monocalendar/trunk for the Monocalendar Demo project.

Modify a source file and commit it. The Scheduler will pick up the changes and will start building the project.

Uninstalling the IKAN ALM Demo Application

To uninstall the Demo Application, follow these steps:

  1. Stop the IKAN ALM Demo Server:

    • Via the shortcut menu:

      Start > Programs > IKAN ALM Demo 5.8 > Stop IKAN ALM Demo server

    • Or via the batch file:

      Double click the ALM_HOME/stopDemo.cmd file.

  2. Run the Uninstaller:

    Open Programs and Features, select the entry ALMDemo 5.8 and click Uninstall/Change

  3. Select the checkbox Force the deletion of …​ to remove all files related to the demo installation. If not, the files changed since the installation will be kept.

    uninstalldemo
  4. During the uninstallation, the following pop-up window is shown asking whether to uninstall the license key:

    uninstalldemo license

    Wait until the uninstallation has finished, then press Quit to end the uninstaller:

    uninstalldemo quit

Appendix A: Appendix: JAAS Configuration

For authentication and authorization of users, IKAN ALM uses the Java Authentication and Authorization Service (JAAS) (see http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136007.html).

The IKAN ALM demo installation automatically pre-configures JAAS, so this appendix is only for troubleshooting, or if you want to adapt the authentication, e.g., for using Windows domain authentication.

JAAS authentication is performed in a pluggable way. This permits applications to remain independent from underlying authentication technologies. New or updated authentication technologies can be plugged into IKAN ALM without requiring modifications to the application itself.

IKAN ALM Demo JAAS Configuration

The IKAN ALM Demo installation has its own jaas.config file located in ALM_HOME /system/security.

By default, the passwd.config file is used as a flat security file.

IKAN ALM must be restarted if you add/change a record in the security file in order to make those changes visible.

JAAS Implementation: Flat File Security

The IKAN ALM Demo application uses this simple JAAS implementation whereby User Groups and Users are configured in a flat file. In the JAAS configuration file this is specified as follows (where ALM_HOME=`"C:/ALMDemo`"):

/** * IKAN ALM flat file security configuration * Attention : the passwords in the passwd.config file must
be stored in MD5 encryption format **/**/ALM{ com.tagish.auth.FileLogin requiredpwdFile="C:/ALMDemo/system/security/passwd.config";};

JAAS Implementation: Windows Domain Authentication

If you want to use windows domain authentication, replace the IKAN ALM flat file configuration with the following lines (with YOURDOMAIN being the Windows domain, e.g., IKAN):

/** Example NTLogin (http://free.tagish.net)* Attention : the module NTSystem.dll must be copied to the
%WIN_HOME%/system32 directory.**/ALM{ com.tagish.auth.win32.NTSystemLogin required returnNames=true
returnSIDs=false defaultDomain=YOURDOMAIN;;

Flat File Security: Contents

The contents of the passwd.config file, when using flat file security, is fairly easy and self-explanatory:

userid:encrypted password:groupname:groupname:groupnameuser:ee11cbb19052e40b07aac0ca060c23ee:ALM Userproject:46f86faa6bbf9ac94a7e459509a20ed0:ALM User:ALM Projectglobal:9c70933aff6b2a6d08c687a6cbb6b765:ALM User:ALM Administrator

The encrypted password in MD5 encryption format can be generated with a utility like HashCalc (http://www.slavasoft.com/hashcalc/overview.htm).

For example: Adding a User with User ID “testuser” and password “testuser” who belongs to the ALM User and ALM Project User Groups:

hashcalc
  1. Add the following entry to the passwd.config file:

    testuser:5d9c68c6c50ed3d02a2fcf54f63993b6:ALM
    User:ALM Project
  2. Stop and restart the IKAN ALM Demo Server. Starting and Stopping the IKAN ALM Server

  3. Log on to IKAN ALM using User ID “testuser” and Password “testuser”.

Appendix B: Troubleshooting

MSVCR71.dll was not found

msvcr71notfound

The IKAN ALM Demo installer is unable to locate the following file: MSVCR71.dll. You can read more about this issue on http://www.duckware.com/tech/java6msvcr71.html. There exists, however, no good solution. Sun proposes to fix the problem by copying the msvcr71.dll located in the Java installation bin folder next to the java.exe located in the windows\system32 directory.

Internet Browser cannot display the webpage

ie cannotdisplay
pagenotdisplayed
failedtoconnect

Cause: the IKAN ALM Demo server is not running.

Solution:

  1. Start the IKAN ALM Demo server: Start > Programs > IKAN ALM Demo 5.8 > Start IKAN ALM Demo server

  2. Refresh the login page in your internet browser.

License has expired

The last day of the 30 day trial period has ended. If you want to extend your trial period, you must request a new license by sending a mail to support@ikanalm.com.

The installer doesn’t start and displays the error:"Java Runtime not found"

When launching the 32-bit or 64-bit IKAN ALM Demo installer on Windows, you may receive the following error, after which the IKAN ALM Demo installer quits.

JRE NotFound

The most likely cause is that there is no suitable Java Runtime Environment (JRE) installed. The 32-bit installer needs a 32-bit JRE installed, while the 64-bit installer needs a 64-bit JRE installed. Furthermore, the JRE should be version 1.6 or higher. The solution is to install a suitable JRE.

If for some reason you don’t want to install a JRE, there is a workaround to launch the IKAN ALM installer with only a Java Development Kit (JDK) or a Server JRE installed: set the JAVA_HOME environment variable to point to the JDK or Server JRE folder, either globally on the system, or from a commandline prompt, and then launch the IKAN ALM installer. When you set JAVA_HOME from a commandline prompt, there are two possible pitfalls:

  • don’t wrap the JAVA_HOME path in quotes, even when it contains spaces

  • when UAC is enabled (Windows Vista and later), the commandline prompt must have Administrative privileges (the title of the prompt must start with "Administrator:")