10

Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Embed Size (px)

Citation preview

Page 1: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody
Page 2: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Flash Testing with Selenium l 17/10/20122

Flash Testing with SeleniumBy Dilhan Jayakody

Page 3: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Content

Why Flash became very popular?

Why is it Challenging for Automation?

Prerequisites for Automating Flash Content

Flash Selenium API for Selenium RC

Test YouTube…

Summary

Flash Testing with Selenium l 17/10/20123

Page 4: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Why Flash became very popular?

It is browser independent

Allows you to make your site more interactive

Flash Testing with Selenium l 17/10/20124

Page 5: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Why is it Challenging for Automation?

There are two main issues that needs to be addressed while automating web applications:• Need to 'get' certain properties of the object and compare it

against your benchmarks.• Performing actions on an object or 'set' certain values.

But Selenium cannot read or record any actions on flash objects.

Flash Testing with Selenium l 17/10/20125

Page 6: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Prerequisites for Automating Flash Content

Have access to the Application Code

Install Adobe Flash Builder to see the developer code (download : www.adobe.com/cfusion/tdrc/index.cfm?product=flash_builder)

Include Flash Selenium API to your test code (download : http://code.google.com/p/flash-selenium/downloads/list)

Flash Testing with Selenium l 17/10/20126

Page 7: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Flash Selenium API for Selenium RC

It is an extension to the Selenium RC client driver that enables the Selenium RC client test drivers to call ActionScript methods of the Flash application.

Flash Testing with Selenium l 17/10/20127

Page 8: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Test YouTube…

Using Flash Selenium API with Selenium RC

Using WebDriver

Flash Testing with Selenium l 17/10/20128

Page 9: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

Summary

Automating Flash Content with Selenium is Possible.

Limitation is the need to have access to the developer code.

Flash Testing with Selenium l 17/10/20129

Page 10: Flash Testing with Selenium l 17/10/20122 Flash Testing with Selenium By Dilhan Jayakody

THANK YOU!