The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Micro Focus/Compuware QARun

Pages: 1
wgf
Member


Reged: 02/14/02
Posts: 143
Loc: Vancouver, CA
Using Clipboard APIs in your errorhandler
      #151169 - 03/20/03 07:11 AM

I was looking into modifying our errorHandler so that when an error occured the following sequence of events would occur:

1. The screen would be captured to clipboard
2. The contents of clipboard would be copied to file as a .bmp
3. The name of the file would be logged in the script before exiting.

Has anyone looked into this sort of feature yet? I think it would be very handy. I wanted everything to go in the background.

The main issue I can see so far is that QARun may not support the data type of the clipboard...I may have to port the whole process to a DLL :\

Any ideas or tips please forward, I think a lot of us would benefit from this error handling feature.

------------------
wgf


Post Extras: Print Post   Remind Me!   Notify Moderator  
QAGUY
Member


Reged: 05/24/01
Posts: 489
Re: Using Clipboard APIs in your errorhandler
      #151170 - 03/20/03 07:21 AM

We use QAToolBoy's Grabrunner to capture the screen and save as a bitmap. It works great. I've written a function that is called through the error handlers to capture the screen ever time there is any type of error popup.

Here is the link where he posted it. http://www.qaforums.com/Forum12/HTML/000181.html

------------------
"If your not part of the solution, there's good money to be made in prolonging the problem."


Post Extras: Print Post   Remind Me!   Notify Moderator  
Nanook
Member


Reged: 01/09/03
Posts: 198
Loc: West Bloomfield, MI
Re: Using Clipboard APIs in your errorhandler
      #151171 - 03/20/03 07:24 AM

We us a tool called SnagIt. Works just like you are describing. In our error handler, I just have a "PrintScreen" command, then SnagIt comes up, captures a JPG file and I have QARun store it in an \\Errors directory with the name, date, time....

------------------


Post Extras: Print Post   Remind Me!   Notify Moderator  
ramses0
Member


Reged: 08/27/02
Posts: 51
Loc: Dallas, TX
Re: Using Clipboard APIs in your errorhandler
      #151172 - 03/20/03 07:50 AM

You can also use MSPaint to reduce dependencies on outside programs.

{PrintScreen}
{Ctrl{Esc}}R
MSPAINT.EXE
{Ctrl{V}}
Y
{Alt{F}}A
filename.bmp
{Alt{S}}
{Alt{F4}}

...there are some possible popups that can occur, but it's a pretty easy function to write.

--Robert

------------------


Post Extras: Print Post   Remind Me!   Notify Moderator  
wgf
Member


Reged: 02/14/02
Posts: 143
Loc: Vancouver, CA
Re: Using Clipboard APIs in your errorhandler
      #151173 - 03/20/03 07:53 AM

I dont' have the attachment showing up in my browser...was it removed?

Can someone attach grabRunner to a reply?

Thanks

------------------
wgf


Post Extras: Print Post   Remind Me!   Notify Moderator  
QAGUY
Member


Reged: 05/24/01
Posts: 489
Re: Using Clipboard APIs in your errorhandler
      #151174 - 03/20/03 08:51 AM

Here it is.


I wrote functions that used mspaint...but that was kinda sloppy. Grabrunner is cool cause you can call it from the command line. And it always works.

------------------
"If your not part of the solution, there's good money to be made in prolonging the problem."


Post Extras: Print Post   Remind Me!   Notify Moderator  
wgf
Member


Reged: 02/14/02
Posts: 143
Loc: Vancouver, CA
Re: Using Clipboard APIs in your errorhandler
      #151175 - 03/20/03 09:02 AM

Cool thanks!

Is there source available somewhere?

Not a big deal, I am just nosy

------------------
wgf


Post Extras: Print Post   Remind Me!   Notify Moderator  
QAGUY
Member


Reged: 05/24/01
Posts: 489
Re: Using Clipboard APIs in your errorhandler
      #151176 - 03/20/03 09:54 AM

Source for grab runner? Not that I've seen. You'll have to ask QAToolboy.

------------------
"If your not part of the solution, there's good money to be made in prolonging the problem."


Post Extras: Print Post   Remind Me!   Notify Moderator  
sunnie
Member


Reged: 08/10/02
Posts: 126
Re: Using Clipboard APIs in your errorhandler
      #151177 - 03/23/03 09:42 PM

yet another way of implementing them using DLL....

Very simple one.. call CaptureBmpToFile function.....

It will do a nice for you..

Thanks.

------------------
Sunnie


Post Extras: Print Post   Remind Me!   Notify Moderator  
Tim H
Junior Member


Reged: 07/30/03
Posts: 4
Loc: Brentwood, TN
Re: Using Clipboard APIs in your errorhandler
      #151178 - 09/02/04 09:19 AM

I would like to get a copy of QAToolBoy's Grabrunner. Can anyone help me?

Post Extras: Print Post   Remind Me!   Notify Moderator  
klojo
Newbie


Reged: 05/06/09
Posts: 2
Re: Using Clipboard APIs in your errorhandler [Re: Tim H]
      #570706 - 05/22/09 12:43 PM Attachment (303 downloads)

See the ZIP file.

Regards.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Aquinas
Member


Reged: 08/25/01
Posts: 100
Loc: Twin Cites, MN, USA
Re: Using Clipboard APIs in your errorhandler [Re: klojo]
      #629937 - 06/09/10 08:50 AM

When I run GrabRunner at the command line, a dialog appears with following text:
Component 'comdlg32.ocx' or one of its dependencies not correctly registered: a file is missing or invalid

Researching this reveals that "comdlg32.ocx" is a VB file, which then begs the question, how do I get a legal copy since I don't have VB installed (nor have it available)? There are numerous places on the web that "solve" the issue by providing a file to download and instructions to register, but nobody mentions the lawfulness of this. Makes me more sympathetic to the Free Software Foundation's mission.

--------------------
QUALITY . . . is like buying oats. If you want nice, clean, fresh oats, you must pay a fair price.
However, if you can be satisfied with oats that have already been through the horse . . . that comes a little cheaper.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 7 anonymous users are browsing this forum.

Moderator:  Jim Brennan, AJ, DSquared 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 7377

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5