Automation double click events in Flex components.

July 21, 2011 at 12:53 pm Leave a comment

There is no direct way  to achieve this.  You can make your component support a special double click event.

e.g Assume you want to support double click on button

create MyButton which extends Button

Listen to mouse double click event, dispatch a custom event e.g ButtonDoubleClickEvent

Create a delegate class for MyButton  (MyButtonAutomationImpl which extends ButtonAutomationImpl)

listen to ButtonDoubleClick event and send for recording (refer any of the delegate classes for sample code)

Add details of ButtonDoubleClick event in the tool XML.

 

Why it does not work:

Automation works based on the highlevel event and clear of the other events in the sequence.  e.g Mouse down is considered as the new event. So it cleared. So a double click will be treated as two clicks. So having the custom event, prevents us from listening to the double click event instead the custom event.

I think chart has special double click event.

Advertisements

Entry filed under: Uncategorized.

Record replay works , but other features of QTP such as object spy, hightlight in application does not work? Configuring automation environment using Maven

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

July 2011
M T W T F S S
« Apr   May »
 123
45678910
11121314151617
18192021222324
25262728293031

Most Recent Posts


%d bloggers like this: