22
K. Manohar Reddy - Principal Quality Engineer Co-Author: Rakesh Aradhya - Senior Software Engineer Transforming Automation through Artificial Intelligence

Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

  • Upload
    ngothu

  • View
    226

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

K. Manohar Reddy - Principal Quality Engineer

Co-Author: Rakesh Aradhya - Senior Software Engineer

Transforming Automation through Artificial Intelligence

Page 2: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

2

Abstract

Automation of the legacy test case along with new test cases is very much necessary in the digital era for the continuous integration and delivery. But with growing number of features, maintaining the existing test cases and developing new scripts by using the traditional way of scripting is no longer an optimal method in the disruptive technology.

To be more cost effective, the new way of approach is simultaneously design the test case and Test script development. This will help us to automate in an efficient manner using AI - Natural Language Processing with minimal technical Knowledge.

This white paper will cover more insights on how to build the test script along with test case design by using the ‘Automation Artificial Intelligence Framework’

Page 3: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

3

Analyze

CHALLENGE

8000

10000

12000

15000

2017 2018 2019 2020

REGRESSION TRENDManual TCs

2014 2015 2016 2017

2000

4000

6000

8000

REGRESSION SCOPEManual TCs

Page 4: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

4

Analyze

CHALLENGE

8000

10000

12000

15000

2000 2500 3000 3500

2017 2018 2019 2020

AUTOMATION TRENDManual TCs Automated TCs

2014 2015 2016 2017

2000

4000

6000

8000

5001000

15002000

AUTOMATION COVERAGEManual TCs Automated TCs

Page 5: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

5

Analyze

Automation Efficiency Analysis

Analysis (3-4 hrs)

Test Script Development

(10 hrs)

Test Data Preparation

(1 hr)

Script Execution(1/2 hrs)

Debug(1/2 hr)

Page 6: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

6

Continuous Integration

AnalyzeTest Case Design

Automate

Check-in

CI with Jenkins

Results

Page 7: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

7

AAIF

AI understands

test case

Generates code

Requested Review

Customize it

Approve Script Check-in

CI Process

Automation Framework Using Artificial Intelligence

Page 8: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

8

Automation Framework

Core

Suite Runner

Business Common

Plug-In1

Pug-In3Reports

Framework Automation

Plug-In2

Project Test1 Project1

Project Test2 Project2

Project Test3 Project3

Page 9: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

9

Automation Script Generator

Page 10: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

10

Sample Test Scripts

Page 11: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

11

Page 12: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

12

Attribute Definitions

Page 13: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

13

AI - Natural Language Processing

Analyze

Definition: Natural Language Processing (NLP) refers to AI method of communicating with an intelligent systems using a natural language such as English.

The input and output of an NLP system can be:

• Speech• Written Text

Page 14: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

14

Key Benefits

Generates the automation scripts.

Reduces time and cost of developing the automation scripts.

Maintenance of automation scripts is easier as the automation scripts regenerates release on release.

Test coverage achieved due to automatic selection of the impacted areas.

Quickly develops the regression automation suite.

No reworks, since standard methods used to generatethe scripts.

Page 15: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

15

Case Study / Implementation

• Manual regression test cases addition per sprint - 80• Manual regression test cases addition per year - 2000

Automation Scripts Generation

Traditional Method

(Test scripts)

AAIF Method(Test scripts)

Automation scripts addition per sprint

20 40

Automation scripts addition per year

500 1000

Page 16: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

16

Analyze

ACHIEVEMENT

8000

10000

12000

15000

40005000

60007000

2017 2018 2019 2020

AUTOMATION TRENDManual TCs Automated TCs

2014 2015 2016 2017

2000

4000

6000

8000

1000

2000

3000

4000

AUTOMATION COVERAGEManual TCs Automated TCs

Page 17: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

17

• Breaking Traditional method of automation Approach

• Artificial Intelligence Concepts

• Implementing Artificial Intelligence to Automation

• Implementation of Attributes in Automation

Framework

• Generation of Automation scripts using AAIF

Key Takeaways

Page 18: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

18

References & Appendix

https://en.wikipedia.org/wiki/Artificial_intelligence

http://www.evoketechnologies.com/blog/test-automation-framework-design/

https://techbeacon.com/how-build-agile-friendly-test-automation-framework

Page 19: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

19

Author Biography

K Manohar Reddy Principal Quality Engineer, [email protected]

• Developer by profession | Automation tester by heart

• | .NET programmer | Innovator

• Specialist in automation framework development

• 10+ years of experience in development, automation (Web, Windows)

Page 20: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

20

Author Biography

N Rakesh Aradhya Senior Quality Engineer, [email protected]

• 10+ years of experience in IT. • Working as Automation tester (Web, Windows) for

last 6 years and provided solutions and strategies for various testing Requirements like functional test automation, Compatibility Testing.

Page 21: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

21

Page 22: Transforming Automation through Artificial Intelligenceqaistc.com/2017/wp-content/uploads/2017/12/stc-2017_transforming... · Transforming Automation through Artificial ... with test

22

Thank You!!!