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...

Android Interview Questions and Answers

What is  Android ? It is an open-sourced operating system that is used primarily on mobile devices, such as cell phones and tablets. It is a Linux kernel-based system that’s been equipped with rich components that allows developers to create and run apps that can perform both basic and advanced functions. What Is the Google Android SDK? The Google Android SDK is a toolset that developers need in order to write apps on Android enabled devices. It contains a graphical interface that emulates an Android driven handheld environment, allowing them to test and debug their codes. >>Read more>>

Tableau Interview Questions and Answers

What is Data Visualization? A much advanced, direct, precise and ordered way of viewing large volumes of data is called data visualization. It is the visual representation of data in the form of graphs and charts, especially when you can’t define it textually. You can show trends, patters and correlations through various data visualization software and tools; Tableau is one such data visualization software used by businesses and corporates. What are the differences between Tableau desktop and Tableau Server? While Tableau desktop performs data visualization and workbook creation, Tableau server is used to distribute these interactive workbooks and/or reports to the right audience. Users can edit and update the workbooks and dashboards online or Server but cannot create new ones. However, there are limited editing options when compared to desktop. Tableau Public is again a free tool consisting of Desktop and Server components accessible to anyone. >>Read more>...