Test Automation using pytest and Advanced Testing practices in Django
by Pankaj Malhotra (speaking)
Objective
Objective is to talk about:
1 Testing Practices, elaborating on Unit and Functional Testing.
2 Features offered by pytest that make it a better testing tool.
3 Using pytest to test and demonstrate some test examples.
4 Testing in Django using pytest compared to Django TestCase.
5 Useful pytest plugins and Continuous Integration.
Description
The objective of this talk as mentioned is to elaborate more on using pytest as tool for Test Automation in Python and using pytest for Django Application Testing. This talk also aims to cover best practices in testing and discussion on Unit and Functional Testing, and an insight into Continuous Integration using Travis as a CI server.
The duration of talk is estimated to be around 1 hour and this is how this one hour would be divided.
1 (5 min) Introduction to pip and virtualenv, Installing pytest and setting up a test environment.
2 (10 min) Discussion on Unit testing and Functional testing, elaborating difference between the two and where to use each one of them.
3 (5 min) Introduction to pytest and the Features that it offers making it better than the other testing tools.
4 (10 min) Writing tests with pytest and code examples covering most of its features like Fixtures and Markers.
5 (10 min) Using pytest to test Django Applications and data population for tests using advanced API called FactoryBoy and it comparison with Django Fixtures and compatibility with django TestCase.
6 (10 min) Discussion on pytest plugins and Continuous Integration with Travis CI.
7 (10 min) Doubts and QA session.
Requirements
1 A Laptop with Linux based operating System(Preferably Fedora/Ubuntu)
2 Python 2.7 Installed Link: https://www.python.org/download/
3 Pytest 2.5.2 Installed Link: https://pypi.python.org/pypi/pytest
4 Django 1.6 Installed https://www.djangoproject.com/download/
5 GitHub and Travis account for Continuous Integration.
Speaker bio
I am a Computer Science student at IIIT-Hyderabad with more than two years of experience with Python and Automation.
I have been working as a FOSS contributor from the past two years working with organizations like Mozilla closely with the Quality Assurance(QA) team and also received honours and awards for my contributions to code.
I am also a Google Summer of Code Intern with Mozilla working with Web QA team on a project which involves developing Functional Test Suite for a Web Application.
I am an organizer and a regular speaker at Hackathons organized by Open Source Developers group in my College.
Also I am an attendee and speaker at various Mozilla events and a formal Mozilla Representative.
I have also worked with Privly in field of Continuous Integration and configured Travis CI Instance for one of their projects.
Links
- Homepage: http://web.iiit.ac.in/~pankaj.malhotra/
- GitHub: https://github.com/bitgeeky
- Quality Assurance/Testing/Automation Awards: https://badges.mozilla.org/en-US/profiles/profile/bitgeeky
- Blog: http://codechepo.blogspot.in/
- Project: http://www.google-melange.com/gsoc/project/details/google/gsoc2014/bitgeeky/5741031244955648
1
▼
Hi,
Can you please provide links to your previous talks (slides and/or videos) ?