Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I will be working on automating a small Web app and i choose python and webdrive

ID: 656897 • Letter: I

Question

I will be working on automating a small Web app and i choose python and webdriver(selenium) for doing it depending on my comfort on coding with python. I had read few articles about Page object design. But i am currently confused on which test framework to use. I have some familiarity with unittest. When i pose this question to my acquantainces i only get suggestions of doing it in Java/TestNG/Junit.

Is there any equivalent or close which i can use with python. If you could point out some differnces on the majorly used test framework in python, it will be great for me

Explanation / Answer

PyUnit - the standard unit testing framework for Python

This unit testing framework, dubbed 'PyUnit' by convention, is a Python language version of JUnit. JUnit was written by smart cookies Kent Beck and Erich Gamma, and is, in turn, a Java version of Kent's Smalltalk testing framework. Each is the de facto standard unit testing framework for its respective language, and therefore both are a strong basis for an effective and elegant Python framework.