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

Microsoft Test Manager – FUEL for test automation

(this is a follow-up post to this one:  http://sudiptopaul.blogspot.com/2011/12/using-aspnet-page-state-and-theme-to.html ) Traditionally Test Management and Test Automation tools have been remotely related to each other. Microsoft’s Test Manager changes this - Manual Testers contribute effectively by creating action recordings for each test Common portions of test steps can now be grouped into what is called as Shared Steps – again manual tester can create independent action recordings for these Test Manager enables these action recordings to serve as active inputs to test automation – separate class is created for each test case, and a reusable function for each shared step This is very elegant as it saves the test automation engineer an amount of time required to refactor common portions of longish test path recordings The Manual Tester gets to contribute in the Keyword definition phase – an important thing to do, because they are the subject matter experts! Here’...

Hello World in iPhone

meines erstes iphone Programm - Gemacht durch Code

Using ASP.net Page state and theme to create Color effects on buttons – a Disco UI

  About the app - how the UI color effects juggle:   The non-crossing activities for a specific button – Button_Red   Click here for the “VS2010 Web Developer Express” code for reference.   After building the app, one can choose to deploy the web app to IIS rather than the default VS Development server. Deployment is only a few steps: 1) Build the release version of the app 2) Build the deployment package: A deployment package is created as a zip file: 3) Open the IIS Manager and import this app package Follow the wizard to deploy the package as a web app.   Run the app and here’s how the website looks:   This post will have a follow-up post on the Microsoft Test Manager and CUIT for a testing perspective!