SlideShare a Scribd company logo
1 of 24
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Getting started with Arquillian Framework
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
 The progression of a J2EE application testing
 What is Arquillian ?
 Why Arquillian ?
 How to run Arquillian test ?
 Shrink and Wrap
 Demo
 Arquillian Extensions
Agenda
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
The progression of a J2EE application testing
What is happening ?
• Unit testing
• Functional testing
• Integration Testing
• Performance Testing
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
- Does these actions adapt Agile or extreme programming methodologies ?
- Still Integration testing is painful.
- Run time configuration
- Run time management
- Running the Tests
What is needed for the current ?
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Unit vs Integration testing :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
The progression of a J2EE application testing…
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
What is Arquillian ?
- is a container-oriented testing framework that enables
developers to create portable integration tests for enterprise
applications;
- is a JBoss Community project.
The Arquillian framework is broken up into three major sections:
 Test runners (JUnit or TestNG),
 Containers (Weld, OpenWebBeans, Tomcat, Glassfish, and so on),
 Test enrichers (integration of your test case into the container that
your code is running in).
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Arquillian Architecture
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
- is a fluent API for creating archives such as JARs, WARs and EARs in Java;
- is also a JBoss Community project.
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
What is Test Runners ?
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
1. A remote container resides in a separate JVM from the test runner; Arquillian
binds to the container to deploy and un deploy the test archive and invokes
tests via a remote protocol(typically HTTP).
2. An embedded container resides in the same JVM as the test runner; lifecycle
managed by Arquillian; tests are executed via a local protocol for containers
without a web component (e.g., Embedded EJB) and via a remote protocol for
containers that have a web component (e.g., Embedded Java EE).
3. A managed container is the same as a remote container, but in addition, its
lifecycle (startup/
shutdown) is managed by Arquillian and is run as a separate process
Container :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Example J2EE component :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Example Unit Test class :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Arquillian Test class :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Run it :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
What is happening ?
- The CDI Bean Manager is used to create a new bean instance.
- Arquillian injects the bean into the test class instance, before running any tests
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Who care about run time ?
Here comes Arquillian.
Just add dependency in Maven,
Rest of the things actually taken care by the framework,
- starting the container run time
- packaging the stuffs
- deploying into the container
- un deploying the package
- Stopping the containers run time.
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Test Enrichers:
@Resource: It defines references to any JNDI entry as per standard naming and
injection schemes.
@EJB: As long as you are including a deployed EJB in your archive, you can refer
to it as long as your target container includes EJB support. EJB JNDI entry
conventions remain intact. It is also worthwhile to note that Local and Remote
interfaces matter. When you deploy to a same JVM application server, or a
remote application server you must ensure that your injected test cases can see
the EJB reference appropriately.
@Inject: This is available as long as you have deployed a valid bean archive
(requires beans.xml in META-INF or WEB-INF).
And few more by extensions….
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Let’s Demonstrate it :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
So finally..
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
What else can be automated ?
-Write meaning full tests with endless options.
- Arquillian extensions.
- Drone
- Graphene
- Warp
- Persistence
- Performance
- Seam 2
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Pro’s and Con’s
-Con’s
- Maven hell
- one test class per @Deployment
- too much capabilities – bit large learning curve
-Pro’s
- Handy even for testers
- Portable
- flexible
- open source
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Miscellaneous :
This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of
Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.
Reach Me:
- Karthikeyan Annamalai
writetokarthikeyan@outlook.com

More Related Content

Similar to Introduction to Arquillian framework

Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법
Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법
Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법Mee Nam Lee
 
How to Manage inbound logistics.ppt
How to Manage inbound logistics.pptHow to Manage inbound logistics.ppt
How to Manage inbound logistics.pptssuser50762b
 
Automating the Elastic Stack
Automating the Elastic StackAutomating the Elastic Stack
Automating the Elastic StackElasticsearch
 
Oracle Fusion Payments
Oracle Fusion Payments Oracle Fusion Payments
Oracle Fusion Payments Berry Clemens
 
13-Essential-Data-Validation-Checks.pdf
13-Essential-Data-Validation-Checks.pdf13-Essential-Data-Validation-Checks.pdf
13-Essential-Data-Validation-Checks.pdfarifulislam946965
 
52892006 manual-testing-real-time
52892006 manual-testing-real-time52892006 manual-testing-real-time
52892006 manual-testing-real-timeSunil Pandey
 
12.2 l2 implement-and_use_order management_ame integration
12.2 l2 implement-and_use_order management_ame integration12.2 l2 implement-and_use_order management_ame integration
12.2 l2 implement-and_use_order management_ame integrationVishal Sharma
 
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docxCMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docxfathwaitewalter
 
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docxCMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docxdrennanmicah
 
Pritpal singh 3 years of ETL and Automation Testing
Pritpal singh 3 years of ETL and Automation TestingPritpal singh 3 years of ETL and Automation Testing
Pritpal singh 3 years of ETL and Automation Testingpritpal singh
 
CV_SyedShoeb_2015
CV_SyedShoeb_2015CV_SyedShoeb_2015
CV_SyedShoeb_2015Syed Shoeb
 
CMIT 321 Executive Proposal ProjectThe purpose of this project i.docx
CMIT 321 Executive Proposal ProjectThe purpose of this project i.docxCMIT 321 Executive Proposal ProjectThe purpose of this project i.docx
CMIT 321 Executive Proposal ProjectThe purpose of this project i.docxmonicafrancis71118
 
OOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best PracticesOOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best Practicesvasuballa
 

Similar to Introduction to Arquillian framework (20)

Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법
Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법
Oracle Cloud에서 애플리케이션을 개발하고 테스트하는 손쉬운 방법
 
Enterprice java
Enterprice javaEnterprice java
Enterprice java
 
Etl testing
Etl testingEtl testing
Etl testing
 
Bijayalaxmi Behera_CV
Bijayalaxmi Behera_CVBijayalaxmi Behera_CV
Bijayalaxmi Behera_CV
 
How to Manage inbound logistics.ppt
How to Manage inbound logistics.pptHow to Manage inbound logistics.ppt
How to Manage inbound logistics.ppt
 
Automating the Elastic Stack
Automating the Elastic StackAutomating the Elastic Stack
Automating the Elastic Stack
 
SrivatsanRangaswamy_resume
SrivatsanRangaswamy_resumeSrivatsanRangaswamy_resume
SrivatsanRangaswamy_resume
 
120cioig
120cioig120cioig
120cioig
 
OPM API reference guide
OPM API reference guideOPM API reference guide
OPM API reference guide
 
R12 opm api
R12 opm apiR12 opm api
R12 opm api
 
Oracle Fusion Payments
Oracle Fusion Payments Oracle Fusion Payments
Oracle Fusion Payments
 
13-Essential-Data-Validation-Checks.pdf
13-Essential-Data-Validation-Checks.pdf13-Essential-Data-Validation-Checks.pdf
13-Essential-Data-Validation-Checks.pdf
 
52892006 manual-testing-real-time
52892006 manual-testing-real-time52892006 manual-testing-real-time
52892006 manual-testing-real-time
 
12.2 l2 implement-and_use_order management_ame integration
12.2 l2 implement-and_use_order management_ame integration12.2 l2 implement-and_use_order management_ame integration
12.2 l2 implement-and_use_order management_ame integration
 
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docxCMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
 
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docxCMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
CMIT 321 Executive Proposal ProjectThe purpose of this project is .docx
 
Pritpal singh 3 years of ETL and Automation Testing
Pritpal singh 3 years of ETL and Automation TestingPritpal singh 3 years of ETL and Automation Testing
Pritpal singh 3 years of ETL and Automation Testing
 
CV_SyedShoeb_2015
CV_SyedShoeb_2015CV_SyedShoeb_2015
CV_SyedShoeb_2015
 
CMIT 321 Executive Proposal ProjectThe purpose of this project i.docx
CMIT 321 Executive Proposal ProjectThe purpose of this project i.docxCMIT 321 Executive Proposal ProjectThe purpose of this project i.docx
CMIT 321 Executive Proposal ProjectThe purpose of this project i.docx
 
OOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best PracticesOOW15 - Testing Oracle E-Business Suite Best Practices
OOW15 - Testing Oracle E-Business Suite Best Practices
 

Recently uploaded

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 

Recently uploaded (20)

08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 

Introduction to Arquillian framework

  • 1. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Getting started with Arquillian Framework
  • 2. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document.  The progression of a J2EE application testing  What is Arquillian ?  Why Arquillian ?  How to run Arquillian test ?  Shrink and Wrap  Demo  Arquillian Extensions Agenda
  • 3. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. The progression of a J2EE application testing What is happening ? • Unit testing • Functional testing • Integration Testing • Performance Testing
  • 4. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. - Does these actions adapt Agile or extreme programming methodologies ? - Still Integration testing is painful. - Run time configuration - Run time management - Running the Tests What is needed for the current ?
  • 5. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Unit vs Integration testing :
  • 6. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. The progression of a J2EE application testing…
  • 7. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. What is Arquillian ? - is a container-oriented testing framework that enables developers to create portable integration tests for enterprise applications; - is a JBoss Community project. The Arquillian framework is broken up into three major sections:  Test runners (JUnit or TestNG),  Containers (Weld, OpenWebBeans, Tomcat, Glassfish, and so on),  Test enrichers (integration of your test case into the container that your code is running in).
  • 8. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Arquillian Architecture
  • 9. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. - is a fluent API for creating archives such as JARs, WARs and EARs in Java; - is also a JBoss Community project.
  • 10. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. What is Test Runners ?
  • 11. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. 1. A remote container resides in a separate JVM from the test runner; Arquillian binds to the container to deploy and un deploy the test archive and invokes tests via a remote protocol(typically HTTP). 2. An embedded container resides in the same JVM as the test runner; lifecycle managed by Arquillian; tests are executed via a local protocol for containers without a web component (e.g., Embedded EJB) and via a remote protocol for containers that have a web component (e.g., Embedded Java EE). 3. A managed container is the same as a remote container, but in addition, its lifecycle (startup/ shutdown) is managed by Arquillian and is run as a separate process Container :
  • 12. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Example J2EE component :
  • 13. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Example Unit Test class :
  • 14. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Arquillian Test class :
  • 15. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Run it :
  • 16. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. What is happening ? - The CDI Bean Manager is used to create a new bean instance. - Arquillian injects the bean into the test class instance, before running any tests
  • 17. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Who care about run time ? Here comes Arquillian. Just add dependency in Maven, Rest of the things actually taken care by the framework, - starting the container run time - packaging the stuffs - deploying into the container - un deploying the package - Stopping the containers run time.
  • 18. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Test Enrichers: @Resource: It defines references to any JNDI entry as per standard naming and injection schemes. @EJB: As long as you are including a deployed EJB in your archive, you can refer to it as long as your target container includes EJB support. EJB JNDI entry conventions remain intact. It is also worthwhile to note that Local and Remote interfaces matter. When you deploy to a same JVM application server, or a remote application server you must ensure that your injected test cases can see the EJB reference appropriately. @Inject: This is available as long as you have deployed a valid bean archive (requires beans.xml in META-INF or WEB-INF). And few more by extensions….
  • 19. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Let’s Demonstrate it :
  • 20. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. So finally..
  • 21. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. What else can be automated ? -Write meaning full tests with endless options. - Arquillian extensions. - Drone - Graphene - Warp - Persistence - Performance - Seam 2
  • 22. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Pro’s and Con’s -Con’s - Maven hell - one test class per @Deployment - too much capabilities – bit large learning curve -Pro’s - Handy even for testers - Portable - flexible - open source
  • 23. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Miscellaneous :
  • 24. This Document, constitutes and contains proprietary information of ExcelaCom Technologies and shall not be disclosed in whole or in part by Client to any third party or to any employees of Client other than those who have a need to know such information, and shall not be duplicated or used by Client for any other purpose than to evaluate this Document. Reach Me: - Karthikeyan Annamalai writetokarthikeyan@outlook.com