KEMBAR78
Python in Test automation | PPTX
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 
Testing 
Automation 
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
Why Python 
• 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
System-specific parameters and functions 
Python Modules 
os module 
We got plenty of os methods which is important for os based checks 
sys module 
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

Python in Test automation

  • 1.
    Krishnan Python inTest Automation
  • 2.
    About me •Senior Developer in Test Automation using Python • Python Enthusiast • Open Source python aspirant • Editor of pyhelper.wordpress.com
  • 3.
    What to Expect Testing Automation Why Python in Testing Different Python modules and features Embedded Device Automation Selenium, pywinauto, GUI
  • 4.
  • 5.
    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
  • 6.
    Enter Python Easyto code and Lot of shortcuts Easy to read and maintain Cross Platform Free and open source Exception Handling
  • 7.
    Why Python •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
  • 8.
    System-specific parameters andfunctions Python Modules os module We got plenty of os methods which is important for os based checks sys module System-specific parameters and functions • Sys.exit() • Sys.argv • Sys.path
  • 9.
  • 10.
    More Modules Pexpectcan be used for automating interactive console applications such as ssh, ftp, passwd, telnet, etc.
  • 12.
  • 13.
    Regex Regex pythonuseful methods: • match() • compile() • search() • findall()
  • 14.
  • 15.
  • 16.

Editor's Notes

  • #2 This presentation demonstrates the new capabilities of PowerPoint and it is best viewed in Slide Show. These slides are designed to give you great ideas for the presentations you’ll create in PowerPoint 2010! For more sample templates, click the File tab, and then on the New tab, click Sample Templates.
  • #17 This presentation demonstrates the new capabilities of PowerPoint and it is best viewed in Slide Show. These slides are designed to give you great ideas for the presentations you’ll create in PowerPoint 2010! For more sample templates, click the File tab, and then on the New tab, click Sample Templates.