haripotter’s technorati

Just another WordPress.com weblog

Javascript FireEvent on a WebEdit

There are certain webpages that contain WebButtons that will get enabled only when you complete the text fields (WebEdit). Using QTP, you’ll probably use the set function, for ex WebEdit.Set “Hello” to set the value in a text field. But You’ll observe that the WebButton is still not enabled. Hmmm.. What could be wrong ? If the WebButton is programmed in such a way that it will get enabled only when there is a Javascript event “onkeyup” is fired, then using the set function will not help, because it will not fire this event after entering the text. Read more »

April 30, 2008 Posted by haripotter | HP Quality Center and QTP | , , , | 2 Comments

Download attachment from Quality center

 
HP Quality Center allows us to store any file as attachments. We could use this facility to store testdata, tools or anything that helps us to run a test successfully.

For example : We could store some command line tools in quality center as attachments in a folder. We could download these tools to the qtp system where we want to execute the tool. for such requirements, Try the below code to download an attachment from a testplan folder in qc.
Read more »

April 29, 2008 Posted by haripotter | HP Quality Center and QTP | , , , | 8 Comments

Maximize Browser using QTP 9.5

Below script should help maximizing a browser window. I have tested this with IE7. I’m not sure how it works with Firefox or any other browser. I had problems with the Window.Maximize function. So I had to write this. Hope it helps someone out there.
Read more »

April 29, 2008 Posted by haripotter | HP Quality Center and QTP | , , | 2 Comments