How to schedule test sets to run periodically

  • KM1395031
  • 25-May-2012
  • 14-Jan-2021

Summary

The RunTestSet Scheduler available in KM191021 is releavant for QC 9.x. This version replaces that version for newer iterations of QC/ALM.

Question

How to schedule test sets to run periodically for QC/ALM?

Answer

There is no built-in method to accomplish this, so users can create their own logic using ALM Open Test Architecture (OTA) API to implement their own personalized functionality.

Below users can find a sample/demo implementation using the mentioned suggestion

Note: The RunTestScheduler offered in KM191021 is intended for older versions of Quality Center (9.x and previous)

This revised version of the RunTestSet is written using Visual Basic .Net 2010 and addresses an issue in the previous version where QTP or BPT test types pinned to a Baseline cause an error.

The same switches which applied in the previous version are identical in this version.

  • RunTestSetScheduler_ALM_v3.0.zip utility

    IMPORTANT: The RunTestSet utility is provided for example purposes only. It is not supported by Hewlett Packard.

    If there are problems with mentioned unsupported-provided-AS-IS tool, ensure that problem is not occuring without it, before involving HP Support Personnel.


    The example software is experimental and is provided as a courtesy, free of charge, “AS-IS” by Hewlett-Packard Development Company, L.P. (“HP”). HP shall have no obligation to maintain or support this software. HP MAKES NO EXPRESS OR IMPLIED WARRANTY OF ANY KIND REGARDING THIS SOFTWARE. HP SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT, TORT OR ANY OTHER LEGAL THEORY, IN CONNECTION WITH OR ARISING OUT OF THE FURNISHING, PERFORMANCE OR USE OF THIS SOFTWARE

Introduction

Problem. ALM enables users to create sets of tests (test sets) and plan their execution: start time, planed host or host group, dependency. But there is no option to schedule these test sets to run periodically. ALM today does not have built in test set scheduler.
Solution. The existing OTA API enables to run external tool that can execute any test set on any host. As example RunTestSetSet application (with VB.Net 2010 source code) is supplied as part of proposed solution.
Note: If there are problems with mentioned unsupported-provided-AS-IS tool, ensure that problem is not occuring without it, before involving HP Support Personnel.
Any scheduler application can be used to launch RunTestSet application, for example Microsoft Scheduler (part of Windows installation).
RunTestSet Application
RunTestSet is windows console program that can be executed from command line. This program can execute specified test set. All parameters needed to specify a test set RunTestSet reads from command line.
Syntax:
RunTestSet /s:Server /d:Project /u:User /p:Password /f:Test setFolder [/t:Test set] [/h:Host] | [/g:HostGroup]
Where:
/s:  ALM server name
/n:  ALM Domain
/d:  ALM Project
/u:  User name
/p:  User password
/f:  Test set Folder Path
/t:  [optional] Test set name
/h:  [optional] Host name
/g:  [optional] HostGroup name
/m:  [optional] User Name who will receive a notification mail if the Test set Failed

/l:  [optional] Run TestSet locally (True = Local, False = Remote)