Python in Test automation

Post on 02-Jul-2015

447 views 5 download

description

Slides depicting Python in Test Automation

Transcript of Python in Test automation

Krishnan

Python in Test

Automation

About me• Senior Developer in Test Automation

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

What to Expect

TestingAutomation

Why Python in Testing

Different Python modules and

features

Embedded Device

Automation

Selenium, pywinauto,

GUI

Let’s Start

Python All the way

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

Enter Python

Easy to code and Lot of shortcuts

Easy to read and maintain

Cross Platform

Free and open source

Exception Handling

• 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

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

More Modules

More Modules

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

Unit Testing

Regex

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

Debugging and Source Code checker

Demo

Krishnan

THANK YOU