Test automation within a scrum process

39
Test Automation within a Scrum Process KUSHAN SHALINDRA AMARASIRI

Transcript of Test automation within a scrum process

Page 1: Test automation within a scrum process

Test Automation within a Scrum Process

KUSHAN SHALINDRA AMARASIRI

Page 2: Test automation within a scrum process

About Me

QA Experience : Nearly 10 years Automation Experience : Nearly 7 Years Organizations : IFS, OPRO, MIT, Mubasher, Pearson, Virtusa,

Eyepax Tools : ITE (MIT), QTP, Selenium 1 and 2 (C# and Java), Robot

Framework, TechWiz, SOAP UI, Appium, MonkeyTalk

Page 3: Test automation within a scrum process

What is test automation?

• Test automation is not limited to QA. • It is automating repeatable test cases using a tool • Automation is not just Selenium• Not all test cases can be automated.

Page 4: Test automation within a scrum process

How to start with automation?

Do not just do with Selenium IDE. Selenium IDE is not an industry requirement. You should know C++, C#, Java or Python Know Object Oriented Concepts. Read about the tool you are studying Use a good tutorial site (Example guru99) Start automating some real scenarios

Page 5: Test automation within a scrum process

Scrum Process & Test Automation

Test Automation

Scripting

Plan Test Automation

ScriptingPlan Test

Automation Execution Deliver Scripts

Page 6: Test automation within a scrum process

Plan Test Automation : Can all the projects be automated ?

• “No”• Short term projects• Projects which has only less production life cycles• Exploitary testing • Different technology platforms.• Skill issue

Page 7: Test automation within a scrum process

Plan Test Automation : Criteria go for test automation

Time Number of release cycles Skill Technology Manual test case count

Page 8: Test automation within a scrum process

Planning Test Automation : Procedure

Look at the technical skills of the team. Look at the QA budget. Select a right test automation tool. Select the scripting language. Select a good automation framework.

Page 9: Test automation within a scrum process

Data Driven Framework

Data driven testing is an action through which a set of test input and/or output values are read from data files

QTP facilitates Data Driven testing Selenium does not given out of the box solution. Data driven testing using Selenium

http://www.ontestautomation.com/data-driven-testing-in-selenium-webdriver-using-excel/

http://software-testing-tutorials-automation.blogspot.com/2014/07/create-data-driven-framework-for.html

Page 10: Test automation within a scrum process

Keyword Driven Testing

In keyword driven test framework, all the operations and instructions are written in some external file like excel worksheet.

Page 11: Test automation within a scrum process

Keyword Driven Testing

Page 12: Test automation within a scrum process

Modularity Frameworks

The test script modularity framework requires the creation of small, independent scripts that represent modules, sections, and functions of the application-under-test.

Page 13: Test automation within a scrum process

Hybrid Frameworks

Keyword Driven + Data Driven Modularity + Data Driven

Page 14: Test automation within a scrum process

Automation Test Tools

Page 15: Test automation within a scrum process

Automation Framework Automation is beneficial if it is done in a framework. It is structure which promotes

Configurable Reportability Scalability Extendibility Re-usability

Page 16: Test automation within a scrum process

Automation Test Framework Types

Data Driven Test Frameworks Keyword Driven Modularity Hybrid Frameworks

Page 17: Test automation within a scrum process

Java Automation Framework

Page 18: Test automation within a scrum process

Priority of automating test cases

Smoke Test Build Verification Test Regression test

Positive (Happy path) scenarios Negative scenarios

Page 19: Test automation within a scrum process

Is functional testing only test automation?

No Unit testing Web services testing Security testing Mobile testing Performance testing ->No

Page 20: Test automation within a scrum process

Scrum Process & Test Automation

Test Automation

Scripting

Plan Test Automation

ScriptingPlan Test

Automation Execution Deliver Scripts

Page 21: Test automation within a scrum process

Plan Test Automation Scripting : Procedure

In the sprint planning session plan for automation activity. For each QA activity if we can do automation include it in the

User Story. Have acceptance criteria established for each user story. Better to have a separate user story for automation.

Page 22: Test automation within a scrum process

Scrum Process & Test Automation

Test Automation

Scripting

Plan Test Automation

ScriptingPlan Test

Automation Execution Deliver Scripts

Page 23: Test automation within a scrum process

Automation Scripting : Procedure

Start with creating a page objects and methods. Create the test scripts utilizing the page objects. Execute and see whether the script is working towards the test

case intended. Discuss the automation activity and its progress in daily scrum. Make sure it satisfies the acceptance criteria of the user story. Review the completed script.

Page 24: Test automation within a scrum process

Scrum Process & Test Automation

Test Automation

Scripting

Plan Test Automation

ScriptingPlan Test

Automation Execution Deliver Scripts

Page 25: Test automation within a scrum process

Automation Script Execution: Procedure

Demo the script to the scrum team. Start execution of the script against the functionality. If we have a regression suite include it in the suite. Execute the regression suite. Share the results with the scrum team. Make the report available for the entire scrum team.

Page 26: Test automation within a scrum process

Scrum Process & Test Automation

Test Automation

Scripting

Plan Test Automation

ScriptingPlan Test

Automation Execution Deliver Scripts

Page 27: Test automation within a scrum process

Deliver Scripts: Procedure

If we have a regression suite include it in the suite. Deliver the script to the client – if there is an agreement Have the scripts included in the continues integration server. Make the report available for the entire scrum team.

Page 28: Test automation within a scrum process

Continues Integration

Page 29: Test automation within a scrum process

Hybrid automation frameworks

Page 30: Test automation within a scrum process

Breaking the Selenium boundaries

Page 31: Test automation within a scrum process

Selenium and ZED Attack Proxy

Page 32: Test automation within a scrum process

Selenium and WhiteStack

C# Framework Automates with Windows functionality Can be used as a mix with Selenium and WhiteStack

Page 33: Test automation within a scrum process

Executing Selenium Scripts with QC

Quality Center -> HP Proprietary test management tool Executes manual as well as QTP scripts OTA API provides lot of functionality Can integrate Selenium test execution in QC it self.

Page 34: Test automation within a scrum process

Selenium ~ QC Integration

Page 35: Test automation within a scrum process

Extending Automation Framework

Page 36: Test automation within a scrum process

Can we create a global one framework???

Yes With all the integration in API level

Page 37: Test automation within a scrum process

New Trends

Extent Report – Advance Reporting Capability for Selenium Testhttp://extentreports.relevantcodes.com/https://www.youtube.com/watch?v=zSjwgjVl4P4 Early Grey – IOS Automation Tool done by Googlehttp://venturebeat.com/2016/02/16/google-just-open-sourced-a-tool-for-testing-ios-apps/ Internet of Things (IOT) Sauce Labs - 2016 Test Automation Trends

Trenhttps://saucelabs.com/resources/webinars/test-automation-trends-for-2016-and-beyond

Page 38: Test automation within a scrum process

Contact Me

LinkedIn - https://lk.linkedin.com/in/kushana Email – [email protected] Mobile - +94768026773

Page 39: Test automation within a scrum process

Thank you and Questions