Python in Test automation

16
Krishnan Python in Test Automation

description

Slides depicting Python in Test Automation

Transcript of Python in Test automation

Page 1: Python in Test automation

Krishnan

Python in Test

Automation

Page 2: Python in Test automation

About me• Senior Developer in Test Automation

using Python• Python Enthusiast• Open Source python aspirant• Editor of pyhelper.wordpress.com

Page 3: Python in Test automation

What to Expect

TestingAutomation

Why Python in Testing

Different Python modules and

features

Embedded Device

Automation

Selenium, pywinauto,

GUI

Page 4: Python in Test automation

Let’s Start

Python All the way

Page 5: Python in Test automation

Important Topics

Testing

• Verifying and Validating an End product if it does what it have to and does not do what it is not suppose to.

Automation

• Reducing Manual effort by making a machine do what human does manually.

Test Automation

• Automation of Manual Testing

Page 6: Python in Test automation

Enter Python

Easy to code and Lot of shortcuts

Easy to read and maintain

Cross Platform

Free and open source

Exception Handling

Page 7: Python in Test automation

• A one choice language rather than moving from one tool-specific language to another

• Open source and huge community of python

• Heavy standard library and 3rd party open source modules

Why Python

Page 8: Python in Test automation

Python Modules

os module

We got plenty of os methods which is important for os based checks

sys module

System-specific parameters and functions

System-specific parameters and functions• Sys.exit()• Sys.argv• Sys.path

Page 9: Python in Test automation

More Modules

Page 10: Python in Test automation

More Modules

Pexpect can be used for automating interactive console applications such as ssh, ftp, passwd, telnet, etc.

Page 11: Python in Test automation
Page 12: Python in Test automation

Unit Testing

Page 13: Python in Test automation

Regex

Regex python useful methods:• match()• compile()• search()• findall()

Page 14: Python in Test automation

Debugging and Source Code checker

Page 15: Python in Test automation

Demo

Page 16: Python in Test automation

Krishnan

THANK YOU