Skip to main content

Python Testing Interview Questions and Answers


Q1).How Python can be used in software testing?
Ans:
1. To generate test data; parse test results; generate reports; testing API calls etc. 
2. Python to extract requirements from a Word document. 
3. For testing tasks automation, setting up environments for tests, extracting performance data, etc… 
4. Testers use Python extensively in many companies with Selenium for test automation. 
5. For writing desktop applications used by testers. 
6. Test data manipulation. 
7. To build test environment 
8. Testing with IronPython on .NET
Q2).What Python frameworks do you know?
Ans:
 Framework called Web2py, PAMIE (Python automation Module for I. E.), The py.test framework
Q3).What tools that helps Python development do you know?
Ans:
 There are good tools for helping Python development such as Notepad++ with the PyNPP plugin and Eclipse with PyDev and PyUnit.
Q4).The following is displayed by a print function call:yesterday 
today 
tomorrow 
Please write an example of a print function. 
Ans: print(‘yesterday\ntoday\ntomorrow’)
Q5).The following is displayed by a print function call:hello-how-are-you 
Please write an example of a print function. 
Ans:  print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘-‘ + ‘you’)

Comments

Post a Comment

Popular posts from this blog

Automation Testing Python Interview Questions

1.What is Python? What are the benefits of using Python? Answer: Python is a programming language with objects, modules, threads, exceptions and automatic memory management. The benefits of pythons are that it is simple and easy, portable, extensible, build-in data structure and it is an open source. 2.   How Python can be used in software testing?  Answer: 1. To generate test data; parse test results; generate reports; testing API calls etc. 2. Python to extract requirements from a Word document. 3. For testing tasks automation, setting up environments for tests, extracting performance data, etc… 4. Testers use Python extensively in many companies with Selenium for test automation. 5. For writing desktop applications used by testers. 6. Test data manipulation. 7. To build test environment 8. Testing with IronPython on .NET  3.What Python frameworks do you know?  Answer:  Framework called Web2py, PAMIE (Python automation Module for I. E.), The p...

Python Flask Interview Questions and Answers

Q1). What is Flask? Ans1 : Flask is a web micro framework for  Python  based on “Werkzeug, Jinja 2 and good intentions” BSD licensed. Werkzeug and jingja are two of its dependencies. Q2). What is the benefit of using Flask? Ans2:  Flask is part of the micro-framework. Which means it will have little to no dependencies on external libraries. It makes the framework light while there is little dependency to update and less security bugs. Q3). What is the difference between  Django,  Pyramid, and Flask? Ans3:  Flask is a “microframework” primarily build for a small application with simpler requirements. In flask, you have to use external libraries. Flask is ready to use.Pyramid are build for larger applications. It provides flexibility and lets the developer use the right tools for their project. The developer can choose the database, URL structure, templating style and more. Pyramid is heavy configurable. Q4). What is Flask-WTF and what are t...

Python real time Interview Questions and Answers

Q1).What is Python? Ans1:  Python is a high-level, interpreted, interactive and object-oriented scripting language.  Python  is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it h as fewer syntactical constructions than other languages. Q2).Name some of the features of Python. Ans2:  Following are some of the salient features of python − It supports functional and structured programming methods as well as OOP. It can be used as a scripting language or can be compiled to byte-code for building large applications. It provides very high-level dynamic data types and supports dynamic type checking. It supports automatic garbage collection. It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java. Q3).Do you have any personal projects? Really? Ans3: This shows that you are willing to do more than the bare minimum in terms of keeping your skillset up to date. If you work on per...