SlideShare uma empresa Scribd logo
1 de 6
Baixar para ler offline
February 2014
Marlab’s
I N S I D E T H I S
I S S U E :
FlashFlex Auto-
mation Testing
2
Quality News &
Views
7
Cartoon Space 7
Volume VI
From the Editor …
Welcome to yet another edition of Test digest !!!
Thank you for the support and constructive feed-
back that we have been receiving. In this issue, the focus is on
Test Automation. We have an informative article on Automation
of Rich internet applications using Selenium. Rich and Interactive
content has been one of the growing trends in the Software world
and like any other new technology trend, it comes with it’s own
set of challenges apart from benefits. One of the challenges is Test
Automation and the ability of tools to achieve this in the tradition-
al way.
Apart from that we have included references and
links to articles on Test Automation. We hope that going through
them will enrich your knowledge of Test Automation and provide
new insights.
Happy Reading !!!
T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 2
Automating Flash/Flex components, which are used for animation, vid-
eo, and interactive content in web pages poses few challenges. We cannot directly
use Eclipse IDE with Selenium library for Flash/Flex automation. But Selenium sup-
ports Flash/Flex automation using ‘Adobe Flash Builder’ tool. This is a licensed tool &
trial version is available for 45 days.
Objective of this article is to implement automation for Flash/Flex ap-
plication. Here we will be automating the below YouTube player.
Any online available Flash/Flex application cannot be automated using
‘Adobe Flash Builder’ with ‘Selenium’. The reason being, we will not be able to identi-
fy the objects of Flash/Flex application available online. Hence access to ‘Source code
of Flash/Flex application‘ or ‘Application Action Script API Reference document‘ is
required for automation.
Here, for the ‘YouTube’ application, Google Developers has published the ‘YouTube
Action Script 3.0 Player API Reference’. Below is the URL for Action Script API Refer-
ence document :
https://developers.google.com/youtube/flash_api_reference
Vijaya Kumar Rangaiah
Flash Builder Premium can be downloaded from the below URL
https://creative.adobe.com/products/flash-builder
Download the ‘Flash Builder Premium’ in required language support
& platform for ‘Windows’ or ‘Mac’ OS version. Install the downloaded version, in-
stalled version looks similar to open source ‘Eclipse IDE’ tool.
Adobe Flash Builder (previously known as Adobe Flex Builder) is an
integrated development environment (IDE) built on the Eclipse platform that
speeds development of rich Internet applications (RIAs) and cross-platform desk-
top applications, particularly for the Adobe Flash platform. Adobe Flash Builder 4 is
available in three editions: Standard, Premium and Educational.
Flash-Selenium components for automation can be downloaded from below URL
http://code.google.com/p/flash-selenium/downloads/list
Download the required Flash component,
based on which Scripting language you will be
using for automation (Java, C #, PHP, Ruby
etc.). We will be using Java for automation
script, which can be downloaded from below
URL :
http://flash-selenium.googlecode.com/files/
flash-selenium.jar
P A G E 3T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D
IDEviewofAdobeFlashBuilder
continuation of ‘FlashFlex Automation ..’
P A G E 4T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D
Create a New Java Project in ‘Flash Builder’ &
configure the Java build path with ‘selenium-server-standalone-2.24.1.jar’ & ‘flash-
selenium.jar’
Copy & paste the below java code to New Java Project Created, which is
written using JUnit using Selenium RC & Selenium WebDriver for testing the YouTube
Flash Application.
/* Automation of Youtube - Player Application using Selenium
WebDriver */
package flash.test;
import org.junit.*;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.FlashSelenium;
import com.thoughtworks.selenium.Selenium;
public class Flash_youtube {
private final static String URL = "http://www.youtube.com/
watch?v=efRNKkmWdc0";
private Selenium selenium;
private FlashSelenium flashApp;
@Before
public void setUp() throws Exception {
private WebDriver wd;
Thread.sleep(10000L);
flashApp = new FlashSelenium(selenium, "movie_player");
wd = new FirefoxDriver();
flashApp = new FlashSelenium(wd, "movie_player");
wd.get(URL);
}
@After
public void tearDown() throws Exception {
wd.quit();
}
@Test
continuation of ‘FlashFlex Automation ..’
Innovation
distinguishes
between a
leader and a
follower
-- Steve Jobs
P A G E 5T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D
public void verifyFlexAppSumIsCorrect() throws Exception {
// wait till video load – buffering (3)
while (Integer.parseInt(flashApp.call("getPlayerState")) == 3){
Thread.sleep(1000);
}
// Play the video for 10 seconds
Thread.sleep(5000);
flashApp.call("pauseVideo"); //Pause the Video
System.out.println("After pauseVideo");
Thread.sleep(5000);
flashApp.call("playVideo"); //Play the Video
Thread.sleep(5000);
System.out.println("After playVideo");
flashApp.call("seekTo","140","true"); //Seek to 140 sec
Thread.sleep(5000);
System.out.println("After seekTo");
flashApp.call("mute"); //Mute the Video
Thread.sleep(5000);
flashApp.call("setVolume","80"); //Set the Volume to 80%
Thread.sleep(50000);
}
}
In the HTML source code, ‘Flash/Flex component’ will be added to the
web page.
Providing the Selenium & Flash/Flex instance to FlashSelenium object :
flashApp = new FlashSelenium(selenium, “movie_player”);
‘movie_Player’ is the tag id of Flash/Flex component of Embed or Object tag.
Note: Embed or Object tag is used in the HTML code to add the Flash/Flex component
in the web page. Embed or Object tag id & Selenium object instance must be passed to
‘FlashSelenium’ API.
Below is the <embed> tag, which is renders the movie (ads) :
We will not able to get any id, Xpath, CSS values for any of the events like
‘Play’, ‘Pause’, ‘Mute’, ‘seekTo bar’, etc. Hence the Parameters ‘pauseVideo’,
‘playVideo’, ‘seekTo’, ‘mute’, ‘setVolume’ are called in method flashApp.call(Parameters).
Provided in YouTube API reference document.
Run ‘Flash_youtube.java’ as Junit Test. YouTube Play, Pause, SeekTo, Mute, SetVolume
functions are executed.
Advantage of using ‘Adobe Flash Builder’ tool:
 It support Java projects
 Flexibility to port the Java frameworks for Flash/Flex automation.
continuation of ‘FlashFlex Automation ..’
P A G E 6
Testing Silverlight 4 Applications With TestComplete
How you can perform functional testing of Silverlight applications with TestComplete
http://support.smartbear.com/screencasts/testcomplete/testing-silverlight-4-apps/
Automation using FlexMonkey
This video walks through the basics of using the open source FlexMonkey automated testing tool for Flex apps
http://www.youtube.com/watch?v=2TOSYw1531E
Webinars >>
Flash/Flex Test Automation with the Ranorex Automation Framework
How to perform Flex Automation using Ranorex Automation Framework and its tools
http://www.ranorex.com/Documentation/Ranorex-Tutorial.pdf
Functional UI testing of Adobe Flex RIA : A brief
Some highlights of Funtional testing of Flex RIA using QTP, Selenium, Ranorex, FlexMonkey
http://faratasystems.com/wordpress/wp-content/themes/faratacms/presentations/Functional-UI-testing-of-Adobe-Flex-RIA.pdf
Selenium Tutorial for Beginners
Selenium Tutorial for Beginners
http://www.pushtotest.com/selenium-tutorial-for-beginners-blog.html
Comparative Analysis of Various Automated Test Tools for Flex Application
This a comparison study of automated testing frameworks for Rich Internet Applications (RIA) made using Flex framework
http://www.rimtengg.com/iscet/proceedings/pdfs/misc/102.pdf
Flash Automation Testing with FlexMonkey
This article talks about the automation testing using FlexMonkey
http://www.gorillalogic.com/node/350
eBooks , Whitepapers & Columns >>
T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D
Flash and Flex UI Testing with TestComplete
How you can perform functional testing of Adobe Flash and Flex applications with TestComplete
http://support.smartbear.com/screencasts/testcomplete/testing-flash-overview/
Making Selenium a scriptless test execution engine
Selenium & Scriptless test execution
http://www.techgig.com/expert-speak/Making-Selenium-a-scriptless-test-execution-engine-469
RajeshSundararajan.
MuraliDubutavalu.
VaraprasadaraoYarra.

Mais conteúdo relacionado

Mais de Marlabs

Cyber Threat Intelligence
Cyber Threat IntelligenceCyber Threat Intelligence
Cyber Threat IntelligenceMarlabs
 
Cognitive Computing - A Primer
Cognitive Computing - A PrimerCognitive Computing - A Primer
Cognitive Computing - A PrimerMarlabs
 
The Internet of Things : Developing a Vision
The Internet of Things : Developing a VisionThe Internet of Things : Developing a Vision
The Internet of Things : Developing a VisionMarlabs
 
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...Marlabs
 
Marlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and UtilitiesMarlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and UtilitiesMarlabs
 
Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom Marlabs
 
Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance Marlabs
 
Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing Marlabs
 
Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance Marlabs
 
Marlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: AirlinesMarlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: AirlinesMarlabs
 
Marlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life SciencesMarlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life SciencesMarlabs
 
Marlabs Capabilities: Retail
Marlabs Capabilities: Retail Marlabs Capabilities: Retail
Marlabs Capabilities: Retail Marlabs
 
Marlabs Services Capabilities Overview
Marlabs Services Capabilities OverviewMarlabs Services Capabilities Overview
Marlabs Services Capabilities OverviewMarlabs
 
Marlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering ServicesMarlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering ServicesMarlabs
 
Marlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA ServicesMarlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA ServicesMarlabs
 
Marlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional ServicesMarlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional ServicesMarlabs
 
Marlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure ServicesMarlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure ServicesMarlabs
 
Marlabs Capabilities Overview: SMAC Services
Marlabs Capabilities Overview: SMAC ServicesMarlabs Capabilities Overview: SMAC Services
Marlabs Capabilities Overview: SMAC ServicesMarlabs
 
Marlabs Capabilities Overview: ODC Services
Marlabs Capabilities Overview: ODC Services Marlabs Capabilities Overview: ODC Services
Marlabs Capabilities Overview: ODC Services Marlabs
 
Marlabs Capabilities Overview: Microsoft Office 365
Marlabs Capabilities Overview: Microsoft Office 365Marlabs Capabilities Overview: Microsoft Office 365
Marlabs Capabilities Overview: Microsoft Office 365Marlabs
 

Mais de Marlabs (20)

Cyber Threat Intelligence
Cyber Threat IntelligenceCyber Threat Intelligence
Cyber Threat Intelligence
 
Cognitive Computing - A Primer
Cognitive Computing - A PrimerCognitive Computing - A Primer
Cognitive Computing - A Primer
 
The Internet of Things : Developing a Vision
The Internet of Things : Developing a VisionThe Internet of Things : Developing a Vision
The Internet of Things : Developing a Vision
 
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
Mahesh Eswar, Chief Revenue Officer at Marlabs, speaks at NJTC event, 'Breakf...
 
Marlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and UtilitiesMarlabs Capabilities Overview: Energy and Utilities
Marlabs Capabilities Overview: Energy and Utilities
 
Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom Marlabs Capabilities Overview: Telecom
Marlabs Capabilities Overview: Telecom
 
Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance Marlabs Capability Overview: Insurance
Marlabs Capability Overview: Insurance
 
Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing Marlabs Capabilities Overview: Education and Media - Publishing
Marlabs Capabilities Overview: Education and Media - Publishing
 
Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance Marlabs Capabilities Overview: Banking and Finance
Marlabs Capabilities Overview: Banking and Finance
 
Marlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: AirlinesMarlabs Capabilities Overview: Airlines
Marlabs Capabilities Overview: Airlines
 
Marlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life SciencesMarlabs Capabilities: Healthcare and Life Sciences
Marlabs Capabilities: Healthcare and Life Sciences
 
Marlabs Capabilities: Retail
Marlabs Capabilities: Retail Marlabs Capabilities: Retail
Marlabs Capabilities: Retail
 
Marlabs Services Capabilities Overview
Marlabs Services Capabilities OverviewMarlabs Services Capabilities Overview
Marlabs Services Capabilities Overview
 
Marlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering ServicesMarlabs Capability Overview: Web Development, Usability Engineering Services
Marlabs Capability Overview: Web Development, Usability Engineering Services
 
Marlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA ServicesMarlabs Capabilities Overview: QA Services
Marlabs Capabilities Overview: QA Services
 
Marlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional ServicesMarlabs Capabilities Overview: India Professional Services
Marlabs Capabilities Overview: India Professional Services
 
Marlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure ServicesMarlabs Capabilities Overview: Infrastructure Services
Marlabs Capabilities Overview: Infrastructure Services
 
Marlabs Capabilities Overview: SMAC Services
Marlabs Capabilities Overview: SMAC ServicesMarlabs Capabilities Overview: SMAC Services
Marlabs Capabilities Overview: SMAC Services
 
Marlabs Capabilities Overview: ODC Services
Marlabs Capabilities Overview: ODC Services Marlabs Capabilities Overview: ODC Services
Marlabs Capabilities Overview: ODC Services
 
Marlabs Capabilities Overview: Microsoft Office 365
Marlabs Capabilities Overview: Microsoft Office 365Marlabs Capabilities Overview: Microsoft Office 365
Marlabs Capabilities Overview: Microsoft Office 365
 

Último

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 

Último (20)

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 

Marlabs Test Digest Feb 2014

  • 1. February 2014 Marlab’s I N S I D E T H I S I S S U E : FlashFlex Auto- mation Testing 2 Quality News & Views 7 Cartoon Space 7 Volume VI From the Editor … Welcome to yet another edition of Test digest !!! Thank you for the support and constructive feed- back that we have been receiving. In this issue, the focus is on Test Automation. We have an informative article on Automation of Rich internet applications using Selenium. Rich and Interactive content has been one of the growing trends in the Software world and like any other new technology trend, it comes with it’s own set of challenges apart from benefits. One of the challenges is Test Automation and the ability of tools to achieve this in the tradition- al way. Apart from that we have included references and links to articles on Test Automation. We hope that going through them will enrich your knowledge of Test Automation and provide new insights. Happy Reading !!!
  • 2. T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D P A G E 2 Automating Flash/Flex components, which are used for animation, vid- eo, and interactive content in web pages poses few challenges. We cannot directly use Eclipse IDE with Selenium library for Flash/Flex automation. But Selenium sup- ports Flash/Flex automation using ‘Adobe Flash Builder’ tool. This is a licensed tool & trial version is available for 45 days. Objective of this article is to implement automation for Flash/Flex ap- plication. Here we will be automating the below YouTube player. Any online available Flash/Flex application cannot be automated using ‘Adobe Flash Builder’ with ‘Selenium’. The reason being, we will not be able to identi- fy the objects of Flash/Flex application available online. Hence access to ‘Source code of Flash/Flex application‘ or ‘Application Action Script API Reference document‘ is required for automation. Here, for the ‘YouTube’ application, Google Developers has published the ‘YouTube Action Script 3.0 Player API Reference’. Below is the URL for Action Script API Refer- ence document : https://developers.google.com/youtube/flash_api_reference Vijaya Kumar Rangaiah
  • 3. Flash Builder Premium can be downloaded from the below URL https://creative.adobe.com/products/flash-builder Download the ‘Flash Builder Premium’ in required language support & platform for ‘Windows’ or ‘Mac’ OS version. Install the downloaded version, in- stalled version looks similar to open source ‘Eclipse IDE’ tool. Adobe Flash Builder (previously known as Adobe Flex Builder) is an integrated development environment (IDE) built on the Eclipse platform that speeds development of rich Internet applications (RIAs) and cross-platform desk- top applications, particularly for the Adobe Flash platform. Adobe Flash Builder 4 is available in three editions: Standard, Premium and Educational. Flash-Selenium components for automation can be downloaded from below URL http://code.google.com/p/flash-selenium/downloads/list Download the required Flash component, based on which Scripting language you will be using for automation (Java, C #, PHP, Ruby etc.). We will be using Java for automation script, which can be downloaded from below URL : http://flash-selenium.googlecode.com/files/ flash-selenium.jar P A G E 3T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D IDEviewofAdobeFlashBuilder continuation of ‘FlashFlex Automation ..’
  • 4. P A G E 4T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D Create a New Java Project in ‘Flash Builder’ & configure the Java build path with ‘selenium-server-standalone-2.24.1.jar’ & ‘flash- selenium.jar’ Copy & paste the below java code to New Java Project Created, which is written using JUnit using Selenium RC & Selenium WebDriver for testing the YouTube Flash Application. /* Automation of Youtube - Player Application using Selenium WebDriver */ package flash.test; import org.junit.*; import com.thoughtworks.selenium.DefaultSelenium; import com.thoughtworks.selenium.FlashSelenium; import com.thoughtworks.selenium.Selenium; public class Flash_youtube { private final static String URL = "http://www.youtube.com/ watch?v=efRNKkmWdc0"; private Selenium selenium; private FlashSelenium flashApp; @Before public void setUp() throws Exception { private WebDriver wd; Thread.sleep(10000L); flashApp = new FlashSelenium(selenium, "movie_player"); wd = new FirefoxDriver(); flashApp = new FlashSelenium(wd, "movie_player"); wd.get(URL); } @After public void tearDown() throws Exception { wd.quit(); } @Test continuation of ‘FlashFlex Automation ..’ Innovation distinguishes between a leader and a follower -- Steve Jobs
  • 5. P A G E 5T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D public void verifyFlexAppSumIsCorrect() throws Exception { // wait till video load – buffering (3) while (Integer.parseInt(flashApp.call("getPlayerState")) == 3){ Thread.sleep(1000); } // Play the video for 10 seconds Thread.sleep(5000); flashApp.call("pauseVideo"); //Pause the Video System.out.println("After pauseVideo"); Thread.sleep(5000); flashApp.call("playVideo"); //Play the Video Thread.sleep(5000); System.out.println("After playVideo"); flashApp.call("seekTo","140","true"); //Seek to 140 sec Thread.sleep(5000); System.out.println("After seekTo"); flashApp.call("mute"); //Mute the Video Thread.sleep(5000); flashApp.call("setVolume","80"); //Set the Volume to 80% Thread.sleep(50000); } } In the HTML source code, ‘Flash/Flex component’ will be added to the web page. Providing the Selenium & Flash/Flex instance to FlashSelenium object : flashApp = new FlashSelenium(selenium, “movie_player”); ‘movie_Player’ is the tag id of Flash/Flex component of Embed or Object tag. Note: Embed or Object tag is used in the HTML code to add the Flash/Flex component in the web page. Embed or Object tag id & Selenium object instance must be passed to ‘FlashSelenium’ API. Below is the <embed> tag, which is renders the movie (ads) : We will not able to get any id, Xpath, CSS values for any of the events like ‘Play’, ‘Pause’, ‘Mute’, ‘seekTo bar’, etc. Hence the Parameters ‘pauseVideo’, ‘playVideo’, ‘seekTo’, ‘mute’, ‘setVolume’ are called in method flashApp.call(Parameters). Provided in YouTube API reference document. Run ‘Flash_youtube.java’ as Junit Test. YouTube Play, Pause, SeekTo, Mute, SetVolume functions are executed. Advantage of using ‘Adobe Flash Builder’ tool:  It support Java projects  Flexibility to port the Java frameworks for Flash/Flex automation. continuation of ‘FlashFlex Automation ..’
  • 6. P A G E 6 Testing Silverlight 4 Applications With TestComplete How you can perform functional testing of Silverlight applications with TestComplete http://support.smartbear.com/screencasts/testcomplete/testing-silverlight-4-apps/ Automation using FlexMonkey This video walks through the basics of using the open source FlexMonkey automated testing tool for Flex apps http://www.youtube.com/watch?v=2TOSYw1531E Webinars >> Flash/Flex Test Automation with the Ranorex Automation Framework How to perform Flex Automation using Ranorex Automation Framework and its tools http://www.ranorex.com/Documentation/Ranorex-Tutorial.pdf Functional UI testing of Adobe Flex RIA : A brief Some highlights of Funtional testing of Flex RIA using QTP, Selenium, Ranorex, FlexMonkey http://faratasystems.com/wordpress/wp-content/themes/faratacms/presentations/Functional-UI-testing-of-Adobe-Flex-RIA.pdf Selenium Tutorial for Beginners Selenium Tutorial for Beginners http://www.pushtotest.com/selenium-tutorial-for-beginners-blog.html Comparative Analysis of Various Automated Test Tools for Flex Application This a comparison study of automated testing frameworks for Rich Internet Applications (RIA) made using Flex framework http://www.rimtengg.com/iscet/proceedings/pdfs/misc/102.pdf Flash Automation Testing with FlexMonkey This article talks about the automation testing using FlexMonkey http://www.gorillalogic.com/node/350 eBooks , Whitepapers & Columns >> T E S T D I G E S T © 2 0 1 4 M A R L A B S S O F T W A R E P V T L T D Flash and Flex UI Testing with TestComplete How you can perform functional testing of Adobe Flash and Flex applications with TestComplete http://support.smartbear.com/screencasts/testcomplete/testing-flash-overview/ Making Selenium a scriptless test execution engine Selenium & Scriptless test execution http://www.techgig.com/expert-speak/Making-Selenium-a-scriptless-test-execution-engine-469 RajeshSundararajan. MuraliDubutavalu. VaraprasadaraoYarra.