With the unprecedented rise of e-Commerce and other startups like online travel and insurance companies, the demand for web testing engineers is growing by leaps and bound. And this is what led us to write this software testing article that covers the most frequently asked web testing interview questions.
Also, by writing this post we thought to help a large no. of Web application testers. Since the scope of web testing is far-flung, so we tried to include questions from all the key areas. Like, we’ve added a variety of question types, e.g. testing HTTP/HTTPS sites, checking broken links, validating browser/platform compatibility, and cross-site scripting.
Next, these web testing interview questions foil the primary skill for a QA job profile. But there are other skills you need like manual testing expertise for test planning/execution, knowledge of automated testing and tools.
Hence, we recommend you check out the below posts or at least save them as bookmarks. So that, you can refer them later as per your convenience. And take our words that you won’t regret reading them.
1. Top 20 Interview Questions and Answers for QA Engineers.
2. Automation Testing Interview Questions for Software Testers.
3. REST API Testing Interview Questions and Answers.
4. Top Manual Testing Interview Questions and Answers for QA.
Now, you can continue reading the most valuable set of Web testing interview questions for both the beginners and experienced QA engineers.
Web Testing Interview Questions for QA Engineers.
Before you begin with the questionnaire, just read this message to ensure success in a job interview.
The secret of acing a job interview is to stop believing in luck and start believing in yourself. Best wishes.
Web Testing Interview Questions and Answers
Q-1. What is the scope of Web Testing?
Ans. Web testing is the name given to Software Testing that focuses on testing the web-based applications.
Before going to the production environment, test team performs exhaustive testing of the web applications. This help to uncover different issues in the application like the functional discrepancy, web application security, web service testing, problems during integration, environmental issues, and its ability to handle the user load. These issues if remain uncovered may get exposed to the public. Thus efforts are made in this stage of testing to find out the possible bugs.
Q-2. What are the most common issues seen in web testing?
Ans. The following issue may crop up when you do web testing.
1. Functional Issues.
2. Problems that occur while navigating an application.
3. Usability issues like broken links, form fields missing default focus, tab key not working and all keyboard shortcuts not fully functional.
4. Cosmetic and GUI issues.
5. Performance issues – How much time it takes to display the page to the user.
6. Load – How much load an application can handle at any point in time.
7. Stress – Load that causes an application to crash.
8. The flow of data – Storing of information entered by the user in the correct format.
9. Proper static information is not displayed along with text fields to enter data.
Q-3. Explain the difference between HTTP and HTTPS?
Ans. Following are the key differences between HTTP and HTTPS.
1. HTTP stands for Hypertext Transfer Protocol which is a set of rules for passing the information back and forth between clients and web servers. HTTPS refers to a combination of a normal HTTP interaction over an encrypted Secure Sockets Layer (SSL) or Transport Layer Security (TLS) transport mechanism.
2. HTTP uses port number 80 whereas, HTTPS uses port number 443.
3. HTTP supports mechanism of sending a file to the client asking for it only if any update is there. Whereas, HTTPS encrypts user page requests and decrypts the page response that web server returns.
Q-4. List down the key web application testing techniques?
Ans. Following is the list of standard testing techniques that we apply to test any web application.
1. Functional Testing – includes link testing, form validation, search operations, and navigation testing.
2. Security Testing – includes authorization check for secure pages, verify access control and user making direct entry to the internal page is redirect to the login page, check if the session expires after it remains idle for a pre-defined time and testing virus attacks.
3. Database Testing – includes verifying data integrity on creating, updating or deleting data in the database, obtain a correct result on executing heavy queries, retrieve data from the database and represent on the web pages correctly.
4. Performance Testing – Check response times of application under different speeds of connections, verify if site handles many simultaneous user requests at the same time, check how the site handles large input data from users and check how the site pulls through if a crash occurs due to peak load.
Next, there are some which ensure a good user-experience.
5. Usability Testing – includes navigation testing to verify that the Menus, Links or buttons on web pages move to correct pages, content testing to identify all the spelling and grammatical errors present on the page.
6. Compatibility Testing – includes verification of OS compatibility, browser compatibility, and mobile browsing.
7. Interface Testing – verifies that communication towards all the three servers – Web, Application, and Database Server is working fine. Check if any request interrupts in-between then how the application is responding. Handle any error from web or database server to the application server and display the correct error message to the user.
Q-5. List the main differences between client-server, the web and desktop applications.
Ans. Following are the key differences between them.
Desktop application.
1. The application runs in single memory with Front-end and Back-end in one place.
2. It has a single user only.
Client/Server application.
1. The application runs on two or more machines.
2. It is menu-driven.
3. Works in connected mode ( that means connection exists until logout).
4. It has a limited number of users.
5. it has less number of network issues as compared to the web app.
Web application.
1. The application runs on two or more machines.
2. It is URL-driven.
3. It uses a web browser as the client interface.
4. Works in disconnected mode (stateless).
5. It has an unlimited number of users.
6. It has many issues like hardware compatibility, browser compatibility, version compatibility, security issues, and performance issues.
Q-6. Can you tell few scenarios for testing a web application?
Ans. While testing a web application, you need to consider the following areas.
1- Functionality verification.
A- Testing Links which includes.
i. Internal Links.
ii. External Links.
iii. Mail Links.
iv. Broken Links.
B- Form validation includes.
i. Field validation.
ii. Display error message for wrong input.
iii. Verification of optional and mandatory fields.
C- Database.
i. Testing the database integrity.
D- Cookies.
i. Testing will be done on the client system side, on the temporary Internet files.
2- Performance verification.
Performance testing can be applied to understand the web site’s scalability, or to benchmark the performance in the environment of third party products such as servers and middleware for potential purchase.
A- Connection Speed.
Testing done on various networks like Dial-up, ISDN.
B- Load.
i. A Huge number of users accessing the application at the same time.
ii. Check for peak loads and how the system behaves.
iii. A Large amount of data accessed by a user.
C- Stress.
i. Apply continuous load on the system.
ii. Verify the performance of memory, CPU, and file handling.
3- Usability.
The characteristics of a system are measured.
i. Ease of use.
ii. Navigation.
iii. Content completeness and correctness.
iv. General appearance.
4- Server Side Interface.
To verify that communication is proper on this interface. Test the compatibility of the server with software, hardware, network, and the database.
5- Client Side Compatibility.
Testing is done on different platforms using various browsers.
6- Security.
Security testing involves the following.
i. Network Scanning.
ii. Vulnerability Scanning.
iii. Password Cracking.
iv. Log Review.
v. Integrity Checkers.
vi. Virus Detection.
Q-7. What are the different configurations which tester should consider while testing a web application?
Ans. Following key factors need consideration while testing an application.
1. Hardware platform: different users may use different platforms like Mac, Linux, and Microsoft.
2. Browser: The layout of the web page changes on the different browser. Also, browser version and plug-ins are other important factors. The resolution of the monitor along with color depth and text size is some of the other configurations.
Q-8. What is the difference between authentication and authorization in web testing?
Ans. The key difference between both the processes is.
1. Authentication is the process which empowers the system to identify the user. Whereas, authorization happens after authenticating the user.
2. The authentication ensures that the user is indeed a valid user, who he claims to be. Whereas, in authorization system will decide whether a user is entitled to perform a particular task.
3. There are different ways of doing authentication like password-based and device-based. However, authorization is of two types read-only and read-write both.
Q-9. What is the difference between the static and dynamic website?
Ans. The main differences between Static and Dynamic website are following.
1. A Static website contains web pages with fixed content whereas, in Dynamic website content of the web page change with respect to time.
2. It’s not difficult to build a static website as you don’t require any database design. But developing a dynamic website requires good programming resources and database knowledge.
3. A static website doesn’t support user communication as it displays same information to each one of them. Whereas, in the case of dynamic websites, users may communicate with each other.
Q-10. Explain Cross Site Scripting?
Ans. Cross Site Scripting is a thread in the dynamic website. It is also known as XSS. It occurs when a web application gathers malicious data from a user.
Data collection happens in a hyperlinked form which contains malicious content within it. It allows insertion of malicious code into the web page. The web page can be a simple HTML code or a client side script.
Suppose a user, accidently clicks on a web page containing the malicious code then that code becomes part of the web-request of the user. This request can also execute on the user’s computer and steal confidential information.
Q-11. List down the actions necessary for securing a new web server?
Ans. Following are some of the important steps that a tester should check for securing a web server.
1. Limit the user rights as per their roles.
2. Update user permissions for resources required.
3. Clean default data and scripts stashed on the server.
4. Use a Software firewall on the server.
5. Enabling and making use of IIS logging.
6. Taking Regular backups.
Q-12. What is field validation in web testing?
Ans. Field validation is done to ensure that user enters only correct data into the fields present on any web page. We can select a variety of validation option that depends on the type of data user may enter into the field. We can also ask to display an error message if the user enters an incorrect value. For example, you can set an option to make it mandatory for the user to enter a value in the field else, an error message is displayed. It performs data validation like email field must contain the data in email@domain.com format.
Q-13. What are different tools that you use for web testing?
Ans. Below is the list of most popular web testing tools available nowadays. And we are using them frequently to run web tests.
1. JMeter (mainly load and performance testing tool) – It is a Java desktop application which is useful to create the load test environment. It measures the performance of the application during the load test. And it is capable of testing the performance of both the static and dynamic website.
2. Selenium (Web app testing tool ) – It is a framework for automated testing of web applications. It’s not just a single tool but a suite of software each catering to different testing needs. Its components include Selenium IDE, Selenium Remote Control, Selenium Webdriver and Selenium Grid to examine and evaluate the web application. Nowadays, Selenium RC and Webdriver have merged into Selenium 2.
Q-14. Do you know about the tools used for analyzing HTTP traffic?
Ans. Yes, we often need to track the HTTP requests that flows from the browser to the downstream web server. Also, by probing the network traffic, we can get to the details of each request/response and cross verify.
Next, many tools are available in the market for monitoring the Web traffic. I can name some of them which are open source and frequently used.
1. Wireshark – It’s to check all data that passes through the network.
2. Fiddler – It is more useful for analyzing the HTTP/s only traffic.
3. Live HTTP Headers – It’s a Firefox add-on which is helpful for previewing the HTTP headers.
4. FireBug – It’s the most popular Firefox plugin which can monitor AJAX transactions. Though, it’s essential feature is to fetch the Web element locators.
5. BrowserMob Proxy – It adds additional functionality into Selenium Webdriver for running automated tests.
Q-15. What are the tests that you’ll run for testing a Login form which uses a Web Service for authentication?
Ans. For testing such a user case, we need to verify both the Web service and the Login test form. So we can design the test cases in the following manner.
Web Service Testing.
1. First of all, we’ll cover the testing of Web service API for input/output validation.
2. We’ll execute cases including valid/invalid username/password combinations as well as verify the correct error messages.
Login UI Testing.
1. Consequently, there will be tests for login web page to check the location of the display of error messages, their color, and font.
2. Also, if the login page uses any Javascript or Cookies, then we’ll add cases to test the applicable functionality.
Summary – Web Testing Interview Questions and Answers.
It was one more post where we took up a key topic for Software testers. Also, web testing is becoming more and more important for the business reasons. That’s why we came up with this blog post on the top web testing interview questions for QA engineers.
It would be great if you let us know your feedback on this post.
Also, you can ask us to write on a topic of your choice. We’ll add it to our writing roadmap.
Lastly, if you’d enjoyed the post, then please care to share it with friends and on social media.
Keep Learning,
TechBeamers.
The post Web Testing Interview Questions for QA Engineers appeared first on Python, Java, TestNG, Selenium Webdriver Tutorials.