tks test set scheduler user guide revision...

17
1 TurnKey Solutions Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013 TKS Test Set Scheduler User Guide Revision 2.0 TurnKey Solutions Corp. [email protected] Union Business Center 445 Union Blvd, Suite 307 Lakewood, CO 80228

Upload: others

Post on 23-May-2020

9 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

1 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

TKS Test Set Scheduler User Guide Revision 2.0

TurnKey Solutions Corp.

[email protected] Union Business Center

445 Union Blvd, Suite 307 Lakewood, CO 80228

Page 2: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

2 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

Table of Contents

Table of Contents

Introduction .....................................................................................................................................................3 Configuration of ALM .....................................................................................................................................3 Configuration of the TKS_TestSetScheduler ..................................................................................................6 Steps to Schedule Execution by Using Windows Task Manager .................................................................. 10

Page 3: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

3 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

This document is prepared to serve as a quick reference to work with TKS_TestSetScheduler.

Introduction

Quality Center enables users to create sets of tests (test sets) and plan their execution: start time, dependency. But

there is no option to schedule multiple test sets to run exactly one after another without any time delay and

periodically (daily, weekly, etc…). Quality Center today does not have a built in test set scheduler.

TurnKey Solutions has developed a utility that can allow scheduling execution of multiple test sets, where execution

of test set “b” will start right after execution of test set “a” has finished.

TKS Test Set Scheduler is a console application that will take input parameters as arguments and it will tell on

which specific test set will be currently executed. It is possible to put multiple lines in a DOS .bat file and to tell the

program the exact sequence and parameters for test sets to be executed.

Some of the advantages of the TKS_TestSetScheduler is that the user does not need to be logged into Quality Center

interface and does not have to have Quick Test Professional open to schedule runs later on before leaving the office.

The utility will automatically connect to the Quality Center Server, will automatically launch QTP and execute test

sets, and all of the results will be stored in the Quality Center Test Set Results. At the end of the run, the user can set

the parameter “\q” to close Quick Test Professional so that no licenses are used by QTP after the test sets finish

execution. All that needs to be done is make sure to correctly configure the test set run parameters in the batch file

and appropriately schedule it with windows or any other task manager.

There is also a TKS_Encryptor utility included that can be used to encrypt user password to connect to the right

project in Quality Center. That way, the user can securely store their encrypted password in the .bat file.

Configuration of ALM

1. Login to Quality Center.

2. Select the menu path Help->Add-ins Page

Page 4: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

4 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

3. Select the HP ALM Client Registration link.

Page 5: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

5 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

4. Scroll to the button of the window that opens and select the Register HP ALM Client Link

5. The client registration will run. It is complete when the following window is shown.

Page 6: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

6 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

Configuration of the TKS_TestSetScheduler

1. Login to Quality Center and make a note of the folder and test sets path to be scheduled to run.

Page 7: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

7 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

2. Run the TKS Encryptor to encrypt the password that is used to login to Quality Center

TKS_Encryptor.exe can be launched from the installation path of TestSetScheduler, for instance, C:\Program Files

(x86)\Turnkey Solutions Corp\TestSetScheduler.

a. Enter the password in the string field.

b. Click the Encrypt button. The encrypted password will be shown in the Result field.

Page 8: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

8 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

c. Copy the encrypted password by clicking the Copy button.

3. Check the options that can be used to configure the parameters below

a. This is the command line syntax for the TKS_TestSetScheduler tool:

TKS_TestSetScheduler.exe /s:Server /d:Domain /n:Project /u:UserName [/p:Password]

/f:Root\TestSetFolderPath /t:TestSetName

Where:

/s: is the Quality Center Server

/d: is the Quality Center Domain

/n: is the Quality Center Project Name

/u: is the User Name

/p: is the User Password [optional]

/f: is the TestSet Folder Path For example: /f:”Root\Turnkey Solutions”

/t: is the Test Set Name For example: /t:”Test Set 1”

/q: Close Quick Test Professional at the end of the test set run [optional]

/?: Help

TKS_TestSetScheduler.exe can be launched from the installation path of TestSetScheduler, for instance, C:\Program

Files (x86)\Turnkey Solutions Corp\TestSetScheduler.

Example:

"C:\Program Files (x86)\Turnkey Solutions Corp\TestSetScheduler\TKS_TestSetScheduler.exe"

/s:http://Servername/qcbin /d:Turnkey /n:Accelerator /u:UserName /p:Password /f:”Root\Turnkey

Solutions” /t:”Test Set 1” /q

Page 9: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

9 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

Note: The help can be accessed by opening a DOS command prompt and running

TKS_TestSetScheduler.exe /? in order to see the help details:

4. Here is a sample configuration of the TestSets.bat file:

5. Here is the execution log in the case that the batch file was launched from the command line:

Page 10: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

10 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

6. After all of the scheduled runs are completed, the results can be verified by logging into Quality Center and

examining the test set results:

Steps to Schedule Execution by Using Windows Task Manager

1. Go to Start->Settings->Control Panel

Page 11: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

11 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

2. Click on Scheduled Tasks

Page 12: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

12 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

3. Click on “Add Scheduled Tasks” and Click Next.

Page 13: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

13 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

4. Click on Browse and select the .bat file that was previously setup and click Next:

Page 14: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

14 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

5. Give a name for the task and select the radio button on how often it is planned to run.

Page 15: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

15 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

6. Configure the execution time/date and click Next:

7. Select Windows User Name under which the test set will be executed and click Next:

Page 16: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

16 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

8. Optionally Check “Open advanced properties for this task when I click Finish.” Checkbox and click Finish.

9. Verify that the task is scheduled as expected.

Page 17: TKS Test Set Scheduler User Guide Revision 2turnkeysolutions.com/wp-content/uploads/2016/03/TKS-Test...program the exact sequence and parameters for test sets to be executed. Some

TKS Test Set Scheduler User Guide

17 TurnKey Solutions – Proprietary & Confidential Copyright © Do Not Distribute TurnKey Solutions 2013

10. Note: The batch file can always be edited to include/remove some of the test sets by going to the folder

where it is located, right clicking it and editing it in any editor.