Blog

  • QuickTest Pro: Working with the Windows Clipboard (Clear, Copy and Paste Text)

    Posted on July 10, 2012 by Admin

    QuickTest Pro can interface directly with the Windows OS clipboard during replay using the VBScript “Mercury.Clipboard” object built in to QTP. This object can be used to validate clipboard data if the AUT programmatically manipulates the clipboard (and your test case requires validation of this functionality).
    Some of the more common methods supported in the “Mercury.Clipboard” object include:

    Clear – clear the clipboard contents
    SetText – write text to the clipboard
    GetText – retrieve text from the Read Entire Entry