Web Testing Interview Questions and Answers
Define performance and stress testing.
Performance Testing: Performance Testing is performed to evaluate application performance under some load and stress condition. It is generally measured in terms of response time for the user activity. It is designed to test the whole performance of the system at high load and stress condition.
Stress testing: It involves imposing the database with heavy loads. Such as, large numbers of users access the data from the same table and that table contains large number of records.
What are the typical problems in web testing?
The following problem may arise in web testing:
- Functionality problems
- User Interface related problems
- Performance related problems
- Database related problems
- OS compatibility problems
- Browser compatibility problems
- Security related problems
- Load related problem
- Navigation problem
Write the test scenarios for testing a web site?
First we have to assume that Graphical User Interface (GUI) objects and elements of a website together is One Test Scenario. Then, we have to check all the links and buttons. Then we have to check all forms are working properly or not. Prepare Test Scenarios of the forms of a webpage. We can identify 4 different types of Test Scenarios of a form: - Check the form with valid data in all the fields.
- Check the form with invalid data which violate the validations of fields in the form.
- Check the form by leaving some mandatory fields in the form.
- Check the form with existing record details.
While testing a website, which are the different configurations which will have to be considered?
These configurations may demand for change in strategy of the webpage. The most important factors that need consideration are following:
Hardware platform: some user may use the Mac platform, some may use Linux, while others may use Microsoft platform.
Browsers: browser and their versions also change the layout of the web page. Along with the browser versions, the different Plug-Ins also has to be taken into consideration. The resolution of the monitor also with color depth and text size is some of the other configurations.
What is the difference between authentication and authorization in web testing?
The differences between authentication and authorization are: - Authentication is the process with which the system identifies the user whereas authorization is the process after the authentication process.
- The authentication is used to ensure that the user is indeed a user, who he claims to be whereas in authorization system will decide whether a particular task can be performed by the user.
- There are different types of authentications, which can be used like password based authentication, device based authentication whereas in authorization there are two types read only, and read write both.
Explain the different between HTTP and HTTPS?
The differences between HTTP and HTTPS are following: - Hypertext Transfer Protocol is a protocol for information to be passed back and forth between web servers and clients. Https is refers to the combination of a normal HTTP interaction over an encrypted Secure Sockets Layer (SSL) or Transport Layer Security (TLS) transport mechanism.
- HTTP use port number 80 whereas HTTPS use port number 443.
- HTTP can support the client asking for a particular file to be sent only if it has been updated after a certain date and time whereas Hypertext Transfer Protocol over Secure Socket Layer is built into its browser that encrypts and decrypts user page requests as well as the pages that are returned by the Web server.
What is the difference between the static and dynamic website?
The differences between Static and Dynamic website are following: - A static website contains Web pages with fixed content where as in Dynamic web site content of the web page change with respect to time.
- Static website are easy to create and don’t require any database design but in case of dynamic website it require good knowledge to develop the website with programming and database knowledge.
- In static website user cannot communicate with other and same information will be displayed to each user where as in dynamic website user may communicate with each other.
How do you perform testing on web based application using QTP?
We can do the performance testing using QTP by adding the web add-in in the QTP at the startup of the QTP. Now to make URL of the website available to the QTP we have to type the URL of the site. So that while running QTP will open the application and do the testing.
What is Cross Site Scripting?
Cross Site Scripting is a thread in the dynamic website. It is also known as XSS. Cross site scripting occurs when a web application gathers malicious data from a user. The data is collected in the hyperlink form which contains malicious content within it. It allows malicious code to be inserted into the web page. The web page can be a simple HTML code or a client side script. When the malicious code is inserted in page and clicked by some user, the malicious code becomes a part of the web request of the user. This request can also execute on the user’s computer and steal information.
What type of security testing you performed?
To perform the security testing tester try to attack the system. This is the best way to determine the lope hole in the security area of the application. Most of the systems use encryption technique to store passwords. In this we have to try to get access to the system by using different combinations of passwords. Another common example of security testing is to find if the system is vulnerable to SQL injection attacks. While performing the security testing, tester cannot do any changes in any of the following: - Configuration of the application or the server
- Services running on the server
- Existing user or customer data hosted by the application
What are steps you will perform for securing a new web server?
Some of the important steps to be carried out for securing the web server are following: - Minimize rights.
- Update permissions.
- Delete default data and scripts.
- Make use of software firewall.
- Enable and make use of IIS logging.
- Regular backup.
What is usability testing in web testing?
Usability testing perform with reference to the end user. In usability testing we find how easily end user can access the application. In terms of websites and software applications, usability is defined as the ease at which a person with no programming knowledge can use the software to complete the desired task.
Usability is comprised of following: - Learnability is how easy it is for a new user to accomplish tasks the first time they visit your website.
- Memorability is how easy it is for someone to come back to using your website after they haven’t used it for a period of time.
- Efficiency is how quickly users can complete tasks on your site after they are familiar with its use.
What is difference between web based testing and windows based testing?
Web based testing is concerned with the following: - Broken Links in the web pages.
- Performance of web like response time.
- Graphical User Interface
- Text on the page
Where as in Windows based testing we look for : - Functionality
- Integration
What are the common bugs in web testing?
In Web based testing following bugs are very common: - Issues in navigation of application
- Usability
- Cosmetic Issues and GUI Issues
- Functional Issues
- Performance issues – How time it takes to display the page to the user.
- Load – How much load an application can handle at any point in time.
- Stress – At how much load application will crash.
- Flow of data – Information which is entered by user is stored in correct format.
- If proper static information is not displayed along with text fields to enter data.
- Links are broken, default focus is not set in forms, tab key not working, all key board short cuts are not fully functional
What is the difference b/w desktop application testing and web testing?
Desktop Testing – Desktop application testing is standalone testing, it is independent of the other application which are executing on the different machines. In this application testing, tester need not worry about number of user.
Web testing – Web testing is related to client server. Web testing needs to have many testing’s like Usability, GUI, Load Testing, Performance Testing.
What is field validation in web testing?
Field validation is used to ensure that only correct data is entered into the field. We can select validation options to make sure that only correct format data can be entered into a field correctly. When validation options are selected, we can use the FileMaker Pro to displays a message when user enter data in incorrectly format. For example, you can set an option to require that users enter a value in a field. The field validations check the format of the data. To ensure this we perform the validation testing in the website. Like the email field must contain the data in email@domain.com format.
What is focus testing in website?
Focus testing is used to test that when we open a webpage the cursor automatically blink on the particular field. Like in the case of Gmail login page. When we open the Gmail login page the cursor automatically blinks on the username filed. This is the Focus testing in website.