Skip to main content

QTP – search sub-folders for existence of QTP scripts

 

Suppose we want to report on all subfolders in a specific root folder that contain script files.

Consider the example folder structure here – ODBC_MYSQL, ODBC_SQLEXPRESS and Test1 are the folders that have QTP scripts:

ScriptsInFolder_Base

Here’s a VBScript program that takes the root (start) folder as input, and iterates all subfolders recursively to report on the ones that are actual QTP script folders:

QTPScript_SubFolders

Note: This program can be run directly as a VBScript program, or from within a QTP script by toggling the comment between lines 17 and 18. (p.s.: if Print statement does not work on specific version of QTP, use the Msgbox statement. For real world test automation projects, do not use either – to avoid human intervention!)

On running the program, Folders across various levels (Level 2, 3) get reported!

ScriptsInFolder

Comments

  1. I stand by your thoughts. It is important to make sure that the software application working precisely for the reason it originally designed for. Thus, load testing is mandatory for every application or system before deployment.
    Qtp training |Qtp training institutes in chennai|Loadrunner Training

    ReplyDelete
  2. Informative post indeed, I’ve being in and out reading posts regularly and I see alot of engaging people sharing things and majority of the shared information is very valuable and so, here’s my fine read.
    click here game
    click here gif download
    click here gif png
    click here graphic
    click here goteem discord

    ReplyDelete

Post a Comment

Popular posts from this blog

Experimenting with Visio and VBScript

This diagram is created:               using this code:                                                                         Copy the code: Option Explicit Dim strVSDPath, filesys Dim vsoApplication, vsoDocument, vsoPages, vsoPage Dim vsoMaster1, vsoMaster2, vsoStencil Dim vsoShape1, vsoShape2, vsoConnector1 Dim itr Const visAutoConnectDirDown = 2     'Connect down. Const visAutoConnectDirLeft = 3     'Connect to the left. Const visAutoConnectDirNone = 0     'Connect without relocating the shapes. Const visAutoConnectDirRight = 4     'Connect to the right. Const visAutoConnectDirUp = 1         'Connect up....

Routespunkt Hiking Grid Diary - an iOS app for Hikers 'n Bikers

    About Routespunkt Hiking Grid Diary :  * Write Hiking and Biking Stories in your own handwriting  * Show places visited in your Trip, using maps  * Illustrate what you found exciting, with sketches and drawings  * Create a Collage with photos and map snaps of places visited  * Share the Adventure Story Articles with your friends/ family/ dear one, on Social Media platforms This is a Subscriptions based app.