Skip to main content

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 py.test framework
4.Question:What tools that helps Python development do you know?
 Answer:There are good tools for helping Python development such as Notepad++ with the PyNPP plugin and Eclipse with PyDev and PyUnit.
5. The following is displayed by a print function call: 
yesterday today tomorrow Please write an example of a print function.
Answer: print(‘yesterday\ntoday\ntomorrow’)
6.The following is displayed by a print function call:
Answer:hello-how-are-you
7. Please write an example of a print function. 
Answer: print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘-‘ + ‘you’)
8. What does the expression len(”) evaluate to?
Answer:
 0
9.Considering the following code: 
s = ‘catandapple’ 
Write an expression that evaluate to ‘apple’.
 
Answer:
 s[-5:]
10.Write an expression that evaluate to TrueAnswer: len(‘aaddgg’) == 6

Comments

  1. Excellent blog, I learned a lot from your blog admin. Keep up the good and share more like this.
    Python Training Institutes in Chennai | Python Training in Velachery

    ReplyDelete
  2. java training in marathahalli | java training in btm layout

    java training in jayanagar | java training in electronic city





    I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
    I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
    java training in chennai | java training in USA

    selenium training in chennai

    ReplyDelete
  3. Thank you for allowing me to read it, welcome to the next in a recent article. And thanks for sharing the nice article, keep posting or updating news article.
    python training in pune
    python online training
    python training in OMR

    ReplyDelete
  4. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    Devops training in velachery
    Devops training in annanagar
    Devops training in sholinganallur

    ReplyDelete
  5. All the points you described so beautiful. Every time i read your i blog and i am so surprised that how you can write so well.
    Blueprism training in Pune

    Blueprism training in Chennai

    ReplyDelete
  6. Useful information.I am actual blessed to read this article.thanks for giving us this advantageous information.I acknowledge this post.and I would like bookmark this post.Thanks
    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    angularjs Training in bangalore

    angularjs Training in bangalore

    angularjs Training in btm

    ReplyDelete
  7. This information is impressive,I am inspired with your post writing style.It is really a great work and the way in which your sharing the knowledge is excellent. thanks
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  8. Thanks for sharing these interview questions. Visit our QA Job Board for the latest selenium/python Automation Testing Jobs

    ReplyDelete

Post a Comment