Interview Preparation Exam  >  Interview Preparation Notes  >  Placement Papers - Technical & HR Questions  >  Automated Testing, Software Testing Interview Questions

Automated Testing, Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation PDF Download

1. Does automation replace manual testing?

Automation is the integration of testing tools into the test environment in such a manner that the test execution, logging, and comparison of results are done with little human intervention. A testing tool is a software application which helps automate the testing process. But the testing tool is not the complete answer for automation. One of the huge mistakes done in testing automation is automating the wrong things during development. Many testers learn the hard way that everything cannot be automated. The best components to automate are repetitive tasks. So some companies first start with manual testing and then see which tests are the most repetitive ones and only those are then automated.

As a rule of thumb do not try to automate:

  • Unstable software: If the software is still under development and undergoing many changes automation testing will not be that effective.
  • Once in a blue moon test scripts: Do not automate test scripts which will be run once in a while.
  • Code and document review: Do not try to automate code and document reviews; they will just cause trouble.


The following figure shows what should not be automated.

Automated Testing, Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation
 

All repetitive tasks which are frequently used should be automated. For instance, regression tests are prime candidates for automation because they're typically executed many times. Smoke, load, and performance tests are other examples of repetitive tasks that are suitable for automation. White box testing can also be automated using various unit testing tools. Code coverage can also be a good candidate for automation.


2. How does load testing work for websites?

Websites have software called a web server installed on the server. The user sends a request to the web server and receives a response. So, for instance, when you type www.google.com the web server senses it and sends you the home page as a response. This happens each time you click on a link, do a submit, etc. So if we want to do load testing you need to just multiply these requests and responses "N" times. This is what an automation tool does. It first captures the request and response and then just multiplies it by "N" times and sends it to the web server, which results in load simulation.

Automated Testing, Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation

So once the tool captures the request and response, we just need to multiply the request and response with the virtual user. Virtual users are logical users which actually simulate the actual physical user by sending in the same request and response. If you want to do load testing with 10,000 users on an application it's practically impossible. But by using the load testing tool you only need to create 1000 virtual users.

Automated Testing, Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation


3. Can you explain data-driven testing?

Normally an application has to be tested with multiple sets of data. For instance, a simple login screen, depending on the user type, will give different rights. For example, if the user is an admin he will have full rights, while a user will have limited rights and support if he only has read-only support rights. In this scenario the testing steps are the same but with different user ids and passwords. In data-driven testing, inputs to the system are read from data files such as Excel, CSV (comma separated values), ODBC, etc. So the values are read from these sources and then test steps are executed by automated testing.

Automated Testing, Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation

The document Automated Testing, Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation is a part of the Interview Preparation Course Placement Papers - Technical & HR Questions.
All you need of Interview Preparation at this link: Interview Preparation
85 docs|57 tests

Top Courses for Interview Preparation

FAQs on Automated Testing, Software Testing Interview Questions - Placement Papers - Technical & HR Questions - Interview Preparation

1. What is automated testing?
Automated testing is the process of using software tools and scripts to execute test cases and compare the actual results with the expected results. It helps in improving the efficiency and accuracy of software testing by automating repetitive tasks.
2. What are the benefits of automated testing?
Automated testing offers several advantages, such as: - Faster execution: Automated tests can run much faster compared to manual testing, allowing for quicker feedback on the software's quality. - Improved accuracy: Automation eliminates the chances of human errors, ensuring consistent and reliable test results. - Increased test coverage: Automated testing can cover a large number of test cases that would be impractical to execute manually. - Cost-effective: Although initial setup and maintenance may require investment, automated testing ultimately reduces costs by saving time and effort in the long run. - Regression testing: It allows for easy and efficient regression testing, ensuring that new changes or updates to the software do not introduce any bugs or issues.
3. What are the common challenges in automated testing?
Some common challenges in automated testing include: - Test case selection: Identifying which test cases are suitable for automation and which ones are better executed manually. - Test maintenance: Regular updates and changes in the software may require adjustments or reconfiguration of automated tests. - Test data management: Managing and maintaining test data can be complex, especially when dealing with large datasets or complex test scenarios. - Test environment setup: Ensuring the availability of the required test environment, including software, hardware, and network configurations, can be challenging. - Test script creation: Developing robust and maintainable test scripts that can handle different scenarios and variations can be time-consuming.
4. What are the different types of automated testing?
There are various types of automated testing, including: - Unit testing: Testing individual units or components of the software to ensure they function correctly. - Integration testing: Verifying the interaction between different modules or components of the software. - Functional testing: Testing the functional requirements of the software to ensure it meets the desired specifications. - Regression testing: Re-running previously executed tests to ensure that new changes or updates do not introduce any new issues. - Performance testing: Evaluating the software's performance under different workloads and stress conditions. - GUI testing: Testing the graphical user interface to ensure it is user-friendly and functions as expected.
5. What are the best practices for successful automated testing?
To ensure successful automated testing, consider the following best practices: - Test case selection: Choose test cases that are well-suited for automation and offer high value in terms of coverage and risk. - Test data management: Use relevant and realistic test data to simulate different scenarios and edge cases. - Test environment setup: Create a stable and consistent test environment that closely resembles the production environment. - Test script design: Design modular and reusable test scripts to minimize maintenance efforts and improve scalability. - Test execution and analysis: Regularly execute automated tests, analyze the results, and promptly address any failures or issues. - Collaboration: Foster collaboration between developers and testers to ensure effective communication and alignment on testing requirements. - Continuous integration: Integrate automated tests into the development process, allowing for frequent and automated testing of new changes.
Explore Courses for Interview Preparation exam

Top Courses for Interview Preparation

Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

MCQs

,

study material

,

Previous Year Questions with Solutions

,

Objective type Questions

,

Automated Testing

,

Viva Questions

,

Free

,

mock tests for examination

,

Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation

,

shortcuts and tricks

,

Sample Paper

,

Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation

,

pdf

,

Software Testing Interview Questions | Placement Papers - Technical & HR Questions - Interview Preparation

,

video lectures

,

Important questions

,

Extra Questions

,

Automated Testing

,

ppt

,

Semester Notes

,

past year papers

,

Automated Testing

,

Exam

,

Summary

,

practice quizzes

;