python in test automation
DESCRIPTION
Slides depicting Python in Test AutomationTRANSCRIPT
![Page 1: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/1.jpg)
Krishnan
Python in Test
Automation
![Page 2: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/4.jpg)
Let’s Start
Python All the way
![Page 5: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/7.jpg)
• 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](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/9.jpg)
More Modules
![Page 10: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/10.jpg)
More Modules
Pexpect can be used for automating interactive console applications such as ssh, ftp, passwd, telnet, etc.
![Page 11: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/11.jpg)
![Page 12: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/12.jpg)
Unit Testing
![Page 13: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/13.jpg)
Regex
Regex python useful methods:• match()• compile()• search()• findall()
![Page 14: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/14.jpg)
Debugging and Source Code checker
![Page 15: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/15.jpg)
Demo
![Page 16: Python in Test automation](https://reader034.vdocuments.site/reader034/viewer/2022042516/5594571c1a28ab6a2f8b468b/html5/thumbnails/16.jpg)
Krishnan
THANK YOU