Thursday, June 3, 2010

QTP-UtilityObjects-1- ClipBoard

HP-Mercury provides a suite of utility objects which can be used as per the need.
One example is the use of ClipBoard object.
If the Test scenarios is to test the clipboard feature in an application, this comes in real handy.

Below is a sample illustration :

**********************************************************************

Set cb=CreateObject("Mercury.Clipboard")
' Get the text on the system clipboard.
vText=cb.GetText
msgbox vText

'Clipboard object
Set cb=CreateObject("Mercury.Clipboard")
' Get the text on the system clipboard.
vText=cb.GetText
cb.Clear
Set cb = Nothing

**********************************************************************

** Happy Automating **

4 comments:

Anonymous said...

Thanks very nice blog!

My blog post - Slim XS Diet

Anonymous said...

I usually do not drop many comments, but i did
some searching and wound up here "QTP-UtilityObjects-1- ClipBoard".
And I actually do have some questions for you if you usually do not mind.
Could it be only me or does it give the impression like a few of
these responses come across like left by brain dead people?
:-P And, if you are writing on additional places, I'd like to keep up with anything fresh you have to post. Would you list of all of all your shared pages like your linkedin profile, Facebook page or twitter feed?

my website: Ripped XL Supplements

Anonymous said...

This is very interesting, You are a very skilled blogger.
I've joined your feed and look forward to seeking more of your excellent post. Also, I've shared your site in my social networks!


My web-site; no2 maximus muscle

Anonymous said...

Very energetic blog, I enjoyed that bit. Will there
be a part 2?

Review my homepage Slim Berry Review