This section includes 7 InterviewSolutions, each offering curated multiple-choice questions to sharpen your Current Affairs knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
When selecting an automation tool, what features will you look for? |
|
Answer» Here are some of the features to look for when selecting an AUTOMATION tool: |
|
| 2. |
What are some development practices to follow when writing automated tests? |
|
Answer» All the software development rules APPLY when writing automated tests. Here are some of the best practices that ONE can apply for tests.
|
|
| 3. |
How do you automate the testing of CAPTCHA? |
|
Answer» It’s not possible to automate the TESTING of CAPTCHA. That is the goal behind any good CAPTCHA strategy. By definition, a COMPUTER can’t automate it. If it could, then it’s not a good challenge that you can use in your application. However, if you need to test an application that uses CAPTCHA, you have to work with the development team to build a workaround or a BACK door that allows the automated test to bypass the CAPTCHA challenge. It’s IMPORTANT to restrict this workaround only in the test environment and not release it to production. |
|
| 4. |
What is CAPTCHA? |
|
Answer» CAPTCHA stands for COMPLETELY AUTOMATED Public Turing Test to tell Computers and Humans Apart. It is a type of security measure and is also KNOWN as challenge-response authentication. The primary goal of the CAPTCHA is to protect you from spam or denial-of-service attacks by bots/scripts by asking you to complete a simple test that is difficult for computers to follow. It proves you are human and not a COMPUTER. A CAPTCHA challenge consists of two parts:
|
|
| 5. |
What are the different phases in an automation testing life cycle? |
|
Answer» Similar to a software development and software TESTING life cycle, automation testing has its life cycle. Here are the major phases that an automation testing project goes through.
|
|
| 6. |
What are some risks associated with automated testing? |
|
Answer» Although test automation comes with benefits such as efficient and FAST, repeatable tests, there are a few risks a team should be aware of.
|
|
| 7. |
How will you automate the basic login in a web application? |
|
Answer» Assuming a tester has configured the TEST environment and a test tool like Selenium, here are the steps I would take to automate the login functionality.
|
|
| 8. |
What are the test library APIs provided by the Robot Framework? |
|
Answer» The Robot Framework has three test library APIS.
|
|
| 9. |
What is the Robot framework? Provide a brief overview of its architecture. |
|
Answer» Robot Framework is an increasingly popular, open-source automation testing framework primarily used for robotic process automation (RPA). Robotic process automation tries to emulate human actions and interactions with software. Similar to REAL humans, robotic automation can understand (to an extent) what is on screen, press keys and buttons, navigate to links and extract data. The Robot Framework is written in Python and OPERATING system agnostic. Most of the libraries in the ecosystem are also open-source. It has a modular architecture open for extension with other libraries. It defines the test data in files using a special syntax that’s specific to the framework. A test suite contains multiple such tests. When you start the execution of the tests, the Robot Framework parses the test data and uses the keywords PROVIDED by the libraries to INTERACT with the software. These libraries communicate with the software directly or indirectly using driver tools. The Robot Framework runs the test from the command line. However, you can get detailed reports and logs in both XML and HTML formats. The framework has good support for STANDARD libraries out-of-box, e.g. ArchiveLibrary, Browser Library, DataDriver Library, HttpRequestLibrary (for Java), etc. |
|
| 10. |
What are some of the alternatives to Selenium? |
|
Answer» For a long time, Selenium has been one of the most popular test automation tools preferred by many teams. HOWEVER, it is a very sophisticated tool with a steep learning curve, and it might not be suitable for all test projects. In recent years some popular alternatives have emerged, listed below.
|
|
| 11. |
What is a test automation platform? |
|
Answer» A TEST automation platform is a tool or a framework that makes it easy to automate software testing. It uses programs and scripts that are written by developers or TESTERS to automate the ENTIRE process. A test automation platform typically provides all the functionality that you would need to start with automated testing. It SAVES you from using a plethora of tools and makes them work with each other. Test automation platforms primarily find their use in complex or large software projects where it’s DIFFICULT or cumbersome to perform manual testing on all the functionality provided by the software. |
|
| 12. |
What is Protractor? |
|
Answer» Protractor is an open-source automated testing framework that ALLOWS you to perform end-to-end testing of your WEB applications. It’s built on top of WebDriverJS. Protractor is developed by GOOGLE and is especially used for testing Angular applications. Protractor runs the tests against the web application by running it in REAL web browsers. It also interacts with the application like an end-user would, e.g. clicking buttons, links, filling forms, etc., and verifying the result with the expected outcome. Since Protractor is based on the Selenium WebDriver, it’s easy to perform cross-browser testing. It provides a simple API compared to Selenium, so the learning curve is not too steep. Developers can quickly get familiar with it and start writing the end-to-end UI tests. You can also take snapshots and compare them USING Protractor. It also allows you to run parallel test cases on different machines. |
|
| 13. |
What is UI testing? |
|
Answer» The software’s user interface is the only thing that the users SEE, touch and FEEL. They are not concerned about the backend code, database, or the frameworks you used to BUILD the software. Building an application with broken, inconsistent, or annoying user interfaces can be enough to lose customers. The goal of the UI testing is to ensure that the software uses a consistent user experience and no visual or graphical elements on the screen are broken. An advanced form of UI testing also ENSURES that the user interface is intuitive, prevents common mistakes, and doesn’t get in the way of the users getting their job done. Typically, UI testing is performed manually by a human tester. With the advancements in the tools and frameworks in automation testing, UI testing is becoming a GOOD candidate for automation. |
|
| 14. |
What are the different components of Selenium? |
|
Answer» SELENIUM is not a single tool or a framework. It is a suite of TOOLS that work with each other or in isolation to provide different types of AUTOMATION testing. Here are the FOUR major components of Selenium.
|
|
| 15. |
What is Selenium? What are its pros and cons? |
|
Answer» For any web APPLICATION, browser automation and cross-browser testing are two critical testing activities to ensure that the software works on VARIOUS browsers/devices/platforms. Selenium[2] is a popular web automation tool that helps achieve that. It’s one of the most widely used and popular tools used in automation testing. Advantages of Selenium:
Disadvantages of Selenium:
|
|
| 16. |
Who should be responsible for test automation? Developers or the QA? |
|
Answer» As a team is supposed to be a single unit responsible for shipping a quality software system, it’s a team’s responsibility to write, execute, and manage test SCRIPTS. That MEANS the developers and the QA should collaborate and use each others’ skills to perform automation testing effectively. Each team has a different skill set. Some have more technical testers, some have quality-focused developers, and some have testers who came from development backgrounds and vice versa. Hence it’s not a good IDEA to pigeonhole AUTOMATED testing to a particular department. Instead, COLLABORATION and working together is the key to a successful automated testing strategy. |
|
| 17. |
Is automated testing making manual testing obsolete? |
|
Answer» No. AUTOMATED testing is not making manual testing obsolete. Though automated tests help avoid regression issues or find problems that you are already aware of, manual exploratory testing is essential to find the bugs you don’t know about, such as incorrect REQUIREMENTS or implementations. Some types of testing, such as exploratory testing, usability, and accessibility testing, NEED to be performed by a human TESTER. Good automation testing tests repeatable test cases which you can reproduce deterministically. It certainly reduces the amount of manual testing that a human tester would perform but does not ELIMINATE it. Once a human tester discovers a bug, they can add automation tests to ensure that it’s caught automatically in the future. |
|