Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 19

Extended BDD Automation for

Future Agile Applications


Lakshmi Sravanthi Satarajupalli, SMT
Janaiah Gera, SMT
ADP

1
Abstract

“Extended BDD Automation Framework” is designed to provide the end to


end solution for the Applications that are being developed using agile
development process. It is a simple and easy to use automation framework
that each and every person in the scrum team can provide their contribution
towards automation to reduce their time and efforts in testing the features
that are developed in previous sprints and to continue with the In-Sprint
Automation. Effective utilization of the Scrum team to get maximum results is
the one key point of this framework. Coming to technical perspective, it is
made up of commonly used and Zero Cost tools like TestNG, Cucumber, and
Selenium etc.. . The common check points for an automation framework like
Reporting, Parallel executions, and Multiple modes of execution (Command
line and Tagging) are well developed with this framework.

2
Agenda

 End2End Process
 BDD Process
 Extended BDD Features
 Best Practices in BDD
 BDD Reports
 Benefits
 Q&A

3
End2End Process
Development

Jenkins build Deployment


(Success/Fail) (Jenkins)

Results Invoke
Email trigger Automation

Execute
Store results
parallel in
in MongoDB
grid

4
BDD Process

Step 1

Step 2

5
Step 3

Step 4

6
Extended BDD Features
 Integration with TestNG
 Added new Annotations
 @Before Suite
 @Before feature
 @After feature
 @After Suite
 Parallel Executions at Feature level
 Implementation of XML driven Tagging
 Gherkin statements documentation
 Gherkin reports
 Integration with different build tools – Maven, Jenkins

7
Extended BDD Features
 Integration with TestNG

• Cucumber integrated with TestNG for XML driven executions


• To maintain same browser instance for all scenarios in feature file
• Parallel executions of feature file and test prioritization
• Tagging can be driven from XML file
• Multiple feature files can be executed from XML
• Folder level executions can be done from XML
Folder Level
Executions

Tagging from
XML

8
Extended BDD Features
 Cucumber new Annotations

Default New
(Cucumber) Annotations

@Before @BeforeSuite

@After @BeforeFeature

@AfterFeature

@AfterSuite

9
10
Execution Flow

11
Execution Results

12
Results Analysis

13
Results Analysis

14
Best Practices In BDD

Steps document

Dry Run Report

15
Benefits
 Effective & Efficient Test Results Management
 Results compare feature which reduces the analysis time
 Feature level parallel execution
 Tagging at scenario/Feature level
 Define executions at Folder level
 Define cross browser needs in XML
 Flexibility to execute on multiple environments
 Executable Documentation
 Achieved 70% in sprint automation, which has reduced testing efforts in
hardening sprints

16
References & Appendix

http://cukes.info/ - BDD Reference


http://testng.org/doc/index.html - TestNG
http://docs.seleniumhq.org/ - Selenium Help ( Web Driver and Grid )
http://www.mongodb.org/ - MongoDb
http://www.eclipse.org/downloads/packages/release/Kepler/SR2 -
Eclipse and its documentation
http://jenkins-ci.org/ - Jenkins

17
Author Biography

S Lakshmi Sravanthi is currently working as a Senior Member Technical in ADP India Pvt.
Ltd. She has an overall experience of 5.6 years in Software industry. She has obtained his
Bachelors in Engineering from Nalanda Institute of Engineering And Technology, JNTU.
Her area of interest is Automation Testing

Janaiah Gera is currently working as a Senior Member Technical in ADP India Pvt. Ltd. He
has an overall experience of 5 years in Software industry. He has obtained his Bachelors in
Engineering from CVR College of Engineering, JNTUH.

18
Thank You!!!

19

You might also like