Skip to main content

How to do an app evaluation in Qlik Application Automation

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Emile_Koslowski
Employee
Employee

How to do an app evaluation in Qlik Application Automation

Last Update:

Dec 5, 2022 5:48:10 AM

Updated By:

Qlik-Lorena

Created date:

Dec 5, 2022 5:54:54 AM

This article describes how Qlik Application Automation can be used to perform and review app evaluations and take action accordingly.

Environment

  • Qlik Application Automation
  • Qlik Cloud Services

Example

In this example, we'll create an automation that evaluates an app before publishing it to a managed space.

Before you continue, create a new automation.

  1. Search for the Qlik Cloud Services connector in the Block Library and add the Do Evaluation block to the automation. Configure an app ID by using the do lookup function. The Do Evaluation block will analyze the app and return metrics regarding the app's performance.

    Emile_Koslowski_1-1669984027540.png

  2. Add a Variable block to create a new variable of type list with the name vCacheOverrun. We will use this variable to store all objects from the evaluated app that take too long to cache.

    Emile_Koslowski_4-1669984856055.png

  3. The Do Evaluation block will analyze the app and return metrics regarding the app's performance. One metric we want to look at is the "ObjSlowCached" metric which contains slow objects.

  4. We want to filter all objects in the ObjSlowCached list and add each item that takes too long to load to the list variable vCacheOverrun. To do this, add a Filter List block to the automation and use another variable block inside the loop from the Filter List block to add these items to the list variable. Configure the Filter List block to return all objects with a responseTimeSeconds greater than 0.3.

    Emile_Koslowski_5-1669984913354.png
  5. In the Variable block, add the object's id and responseTimeSeconds as a formatted string to the list.

    Emile_Koslowski_6-1669984939259.png
  6. Add a Condition block that verifies whether the vCacheOverrun variable is empty. If it's empty, it means there are no (too) slow cached objects and the app can be published. Add a Publish App To Managed Space block to the Yes outcome of the Condition block and add a Send Mail block from the Outlook connector to notify your team about the published app.

    Emile_Koslowski_1-1670234146996.png
  7. If the vCacheOverrun variable is not empty, the app should not be published. Add another Variable block vStringCache of type string to the No outcome of the Condition block. Set the value of this variable to the output from the vCacheOverrun variable and add the implode formula to transform the list variable into a string.

    Emile_Koslowski_1-1670234405733.png
  8. Add a Send Mail block from the Outlook connector to notify your team that the app wasn't published. Make sure to include the vStringCache variable in the body of the email.

Emile_Koslowski_0-1670234241111.png

Bonus

  • Feel free to replace the Send Mail blocks in this automation with blocks from other messaging connectors like Microsoft Teams or Slack.

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

Labels (2)
Version history
Last update:
‎2022-12-05 05:48 AM
Updated by: