Resource Handling In QTP

The Save Test with Resources Dialog Box


How to hande the resurcs in QTP.



Description

Enables you to save a full copy of a test and its resource files to a local drive or other storage device, eliminating the need for network or Quality Center connections.

How to Access
  • Select the File > Save Test with Resources menu command.
  • Click the Save Test with Resources toolbar button .

Important Information

Before you create a copy of the test:
  • Resolve any missing resources.
  • Save the original test.
  • Make sure that all files associated with the source test are writable.
  • Make sure you have write permissions for the folder in which you want to create a copy of the test.

After you make a copy of the test:
  • A report is displayed in HTML format, listing:
    • the name of the test, the name of the user that saved this copy of the test, and the date on which the test was copied.
    • a record for each resource that was copied with the test, specifying:
      -- the name of the resource
      -- the type of resource (for example, function library)
      -- the path from which the resource was copied
      -- the status of the copied resource
         (for example, the resource was saved successfully)
      -- the current location of the copied resource

You can also open this file from the copied test's root folder.
  • The copied test becomes the active test in the QuickTest window.
  • All links to the source files are severed. Therefore, any modifications you make to the copied test are applied only to the copied test.

Learn More

Conceptual overview: Creating Portable Copies of Your Tests

Additional related topic: Guidelines for Working with Tests Created Using an Earlier Version of QuickTest

Save Test with Resources Dialog Box Options





Option

Description

Save Location

Specifies the root folder in which to save the test. By default, the root folder is <QuickTest installation folder>\Tests, however, you can specify any folder on a local, network, or portable drive.

Important: The folder you specify must not already contain a sub-folder with the same name as the test.

Resources tree

Lists the external resources that are currently associated with or attached to your test.

Save Active Screen files

(Relevant only for recorded tests.) Instructs QuickTest to save any existing Active Screen files with your test.

Clearing the Save Active Screen files check box can be especially useful for conserving disk space if you have finished designing the test and are using the test only for test runs.

Note: If you clear this box, your Active Screen files will not be copied over with the test and its resources, and you will not be able to edit your test using the options that are normally available from the Active Screen.

Tip: If you clear the Save Active Screen files check box and then later want to edit your test using Active Screen options, you can regenerate the Active Screen information by performing an Update Run operation. For more information, see Updating a Test Using the Update Run Mode Option.

Archive test and resource files in a .zip file

Creates a .zip file of the test and its resources, and stores the .zip file in the folder you specified in the Save Location box.

For more information, see Zipping a Test.

0 comments:

Post a Comment