Top 38 Web Service Testing Interview Questions You Must Prepare 27.Jul.2024

Q1. What Is A Proxy Server?

A proxy server is a server, which acts as an intermediary between the client and the server. Therefore, applications on the primary server is first sent to the proxy server on the client system, which is then sent to the server. The response from the principal server sends the client through the proxy server. The application and / or response can be modified by the proxy server based on filter rules from the server.

Q2. In N Tier Architecture What Factors Should Be Considered For Testing?

  • Basically 3-tier architecture is for windows based application. Whereas n-tier architecture is for web-based applications. So, We should do the testing related to web-testing.
  • In 3 tier architecture there are 3 layers in the architecture. They are 1) Application(Presentation) layer 2)Business Logic Layer and 3)Data layer.
  • In n tier architecture, Data layer is divided into 2 layers i.e Data access and Database.
  • In n tier architecture, Data access layer and Database layer may or may not reside on the same location. Keeping that into consideration we have to prepare Test strategy and Test Approach.

Q3. What Is Your Approach Or How Do You Start Testing An Web Application?

The first thing you need is to go through the specification and without using the specification you are just playing with the application. So specification is the main interface to the for any software to be tested.
First Do The GUI testing after finishing that we can go for Functionality Testing.

Q4. What Is The Difference Of Approach For Testing Client/server And Web Applications?

  • In case of web based testing we have test web browser and pages but in case of client server testing we test icon of application that is main difference.
  • Web based Application follows the client Server Architecture. Since in web based, we have a client i.e. Browser itself and the server is at some remote location.There is no such difference between client server and web based but it can be said that applications that are based on the client server architecture are different.Eg. Window based application - in them we need to install the application at each of the client user interface server being common for all the clients. but in web based application for user interface there is no need for any installation. The browser is the client itself.

Q5. What Are The Common Problems Encountered In Web Testing?

The most common problem encountered during testing network is the server problem. The server may be down or may be subject to maintenance. The next problem, which is often found in testing site is a database problem, where the connection with the broken base. In some cases there may be hardware compatibility issues when you are testing a Web application.

Q6. What Is The Difference In Testing A Clent-server Application And A Web Application ?

client/server application is a 2-tier application where as web application is an n-tier application.

Q7. What Type Of Testing Is Carried Out To Find Memory- Leakages? Give Me A Sample Example?

Through Volume testing it is possible. i.e., An application tries to retrieve large amount of data that require large temporary buffer area. If the data exceed the buffer area the situation of memory leakage will occur and query will fail without returning any result as sorting didn’t got finished as buffer exceeds the limit.
We need to know the memory size before the test execution and after test execution by using memory related API functions or MFC functions.

Q8. What Are The Important Test Scenarios For Testing A Web Site?

  • As a Tester you should test GUI of the website, test whether the page layout and design elements are consistent throughout the site, Whether all the links provided in the website are working properly, What are the expected loads on the server performance of the website (check for webserver response time and database query time)under heavy loads.
  • As a Test Engineer you should also test the functionality of each and every object existing in the web page while testing a web application.

Q9. What Bugs Are Mainly Come In Webtesting What Severity And Priority We Are Giving?

  • The bug that mainly comes in web testing are cosmetic bugs on web pages , field validation related bugs and also the bugs related to scalability ,throughput and response time for web pages.
  • During the website application testing, bug related to the link broken also comes.

Q10. How To Check Whether Your Website Is Secure Or Not?

Microsoft Internet Explorer displays the lock icon in the lower-right of the browser window Many SSL Certificate vendors (Verisign, GeoTrust, etc.) also provide a "site seal" to the owners of these web sites.

Q11. What Are Possible Configurations That Could Affect The Testing Strategy Of Any Web Site?

Hardware platform (PC, Mac), Browser software and version, Browser Plug-Ins, Browser settings options, Video resolution and Color Depth, text size.

Q12. What Are The Different Static Websites To Dynamic Websites?

Static web pages only give information to the user and the user does not have any interaction with the website. On the other hand, dynamic Web sites are those where the user communicates with the system and they are required information. In providing the required information, you may be able to retrieve the information you are looking for.

Q13. What Are The Typical Problems In Web Testing?

In the web testing the main problems with SERVER security the security testing plays important role.

Q14. What Are The Problems In Web Testing?

  1. server problems(ie server down or under maintenance).
  2. HardWare problem.
  3. DataBase problem.

Q15. What Is Web Service Locally Testing?

This is the process for testing a Web service that runs on your local computer but not in IIS:

  1. Create the Web service on the local file system.
  2. Generate unit tests against the Web service in the standard way for generating unit tests.
  3. Add the AspNetDevelopmentServerAttribute attribute to the unit test. The arguments for this attribute class point to the site of the Web service and name the server.
  4. Within the unit test, add a call to the TryUrlRedirection method to point the Web service object to the correct server. Verify that it returns true, and use and Assert statement to fail the test if the redirection fails.
  5. Call the Web service or exercise it in any other way that you feel is necessary to test it thoroughly.

Q16. Explain The Difference Between Authentication And Authorization For Web Testing?

Authentication is the process by which the system identifies the user. The aim is to ensure that the user is actually a user who claims to be. There are different types of authentication, which can be used as password-based authentication, authentication based devices, etc. On the other hand, the authorization is the process after the authentication process. In this process the system to decide whether a particular task can be performed by the user, does the necessary permissions, etc.

Q17. What Is The Difference Between Testing In Client-server Applications And Web Based Applications?

Client Server Testing:
In client server testing test engineer are conduct the following testing’s:-

  1. Behaviour testing(GUI TESTING)
  2. Input domain testing
  3. Error Handling testing
  4. Backend testing.

Web Testing:
In Web testing test engineer are conduct the following testings:-

  1. Behaviour Testing
  2. Static web testing
  3. Input domain testing
  4. Backend testing.

Q18. What Is Glyphs?

Glyph is the picture of the character.

Q19. In N Tier Architecture What Are The Factors Should Be Considered For Testing?

In N tier architecture, load testing, browser testing, compatible testing and functional testing are mandatory factor.

Q20. How To Test Browser Compatibility Testing?

Testing the application with multiple browsers (ie IE,Netscape navigator, Mozilla Firefox etc)is called browser compatibility testing.

Q21. Example Of Web Service Test Method?

This is a simple test method that tests the HelloWorld() Web method of a Web service:

  using Microsoft.VisualStudio.TestTools.UnitTesting;  using Microsoft.VisualStudio.TestTools.UnitTesting.Web;  using TestProject1.localhost;    [TestMethod]  [AspNetDevelopmentServer("HelloWorldServer",   @"C:Documents and SettingsuserMy DocumentsVisual Studio 2005  WebSitesWebSite1")]  public void HelloWorldTest()  {       HelloWorldService target = new HelloWorldService();         Assert.IsTrue( WebServiceHelper.TryUrlRedirection                           (                            target,                            testContextInstance,                            "HelloWorldServer"                           ),                     "Web service redirection failed."                     );         string expected = "Hello World";       string actual;         actual = target.HelloWorld();         Assert.AreEqual(                       expected,                       actual,                       "TestProject1.localhost.HelloWorldService.HelloWorld                          did not return the expected value."                       );  }

Q22. Which Server Stats Are Essentially Monitored During A Performance Test Of A Web Application?

Web server monitors, database server monitors, network monitors are used to test the performance of the web application.

Q23. What Are The Different Test Formats For Cases, Which Are Part Of The Test Site?

The test case format may vary depending on whether the site is a static website or dynamic website. The static website will have the front of the test cases, navigation. On the other hand, if the site is a dynamic web site, then test cases are divided into front end test cases, again the final test cases, the field validation test cases, case base test data, test cases, security, etc.

Q24. What Are The Most Common Browsers, Which Must Be A Web Application To Test?

The commonly used browsers are Mozilla Firefox, Google Chrome, Internet Explorer and Opera. Therefore, a Web application must be tested in these browsers as well.

Q25. What Command Is Used To Launch A Application In Winrunner?

  • invoke_application command used to launch application in WR.
  • Invoke command we will use to invoke a application in winrunner. invoke_aplication(path)

Q26. What Are The Http Response Object?

Some of the HTTP response objects are writing, cleaning, counting, etc. HTTP response subclasses are HttpResponseRedirect, HttpResponsePermanentRedirect, HttpResponseBadRequest, HttpResponseNotFound, etc.

Q27. Name A Few Website Mistakes That Could Cause Configuration And Compatibility Bugs?

Non standard colors, frames, tables etc.

Q28. While Testing A Web Site, Which Are Different Configurations That Have To Be Aware Of? These Settings Can Demand Change In The Strategy Of The Website.

The most important factor to consider is the hardware platform, while some may use the Mac platform, some may use Linux, while others can use the Microsoft. The next is the browsers and their versions in the box. Along with the browser versions, different plug-ins must also be considered. The resolution also monitor color depth and size of the text are some of the other configurations.

Q29. Is It Possible, While Usability Testing A Website?

Usability testing is in fact an important part of the test site. In usability testing, it checks if the website is easy to use. Is it possible that the user can move easily within the website. Is there any ambiguity in the website, which can make the user experience.

Q30. Which Different Test Scenarios Will You Consider, When You Are Testing A Website?

The first scenario to be tested is the GUI. The page layout and the design elements used on the website have to be uniform throughout the website. The next part to be tested are the different links provided inside the website. Along with the links, it will also have to be tested, whether internal navigation is smooth and also check if it is complex. The next important aspect to be checked, is the response time of the website. This will also have to checked, when there is heavy load on the system.

Q31. What Types Of Web Testing Security Problem?

  • Denial of Service (DoS) attack, buffer overflow.
  • Pasting internal url directly into browser address bar without login.
  • Check reactions for invalid inputs for login id and password.
  • User should not view the other stats.

Q32. Difference Between Web Application And Web Service?

Web application:

  • A web application is a database disc.
  • Any application which resides on a server, but meant for use by humans, which uses web pages as the presentation layer. All user interactivity (the GUI) is done through web pages, but all data is stored and (mostly) manipulated on the server.

Web service:

  • A web service is a online service, as in Verizon online service.
  • server-based application (as above) which may be accessed over the web via HTTP, but is meant primarily for interaction with other programs. Thus, it will have a clearly-defined API which consists of providing responses to HTTP GET and POST requests made by a remote application.

Q33. Is There Any Validation? Are We Using In Web Testing?

No, there is no changes on web pages. no chance of validation.

Q34. What Is Web Services Testing?

You can test Web services by calling Web methods from unit tests. The following list describes two ways to test Web services with unit tests:

  • The Web service runs on an active Web server. There are no special requirements for testing a Web service that runs on a local or a remote Web server, such as IIS. To do this, add a Web reference and then call the Web methods of the Web service from your unit tests just as they would call the methods of a program that is not a Web service.
  • The Web service is not hosted in an active Web server. you can test a Web service that runs on your local computer and not in a Web server, such as IIS. To do this, you use an attribute provided by the Team System testing tools to start ASP.NET Development Server. This creates a temporary server at localhost that hosts the Web service that you are testing.

Q35. Where Can You Find The Log Files After Qtp Script Execution?

Start ->Run ->type Regedit then goto ->HKLocalMachine->Software->Mercury Interactive-> QTP->Logger->Media->Log.

Q36. Without Using Guimap Editor ?we Can Recognize The Application In Winrunner ?

  • Without Using GUI map Editor, We can Recognize the Application in WinRunner by Rapid Test Script Wizard, but it is also recognize only Client server application, not Web based application.
  • This can be achieved by using Descriptive programming but not with rapid script wizard.

Q37. From The Testability Point Of View What Is The Difference Between Client/server Testing And Web Testing?

Client Server testing is three tier architecture and when testing has to be done on this we need to consider all types of testing like the stress testing, data - volume testing, load testing and performance testing.
When you are doing a normal web testing then you will be testing navigation testing, frame testing, broken links or missing URL's and static text testing.

Q38. What Bugs Are Mainly Come In Web Testing What Severity And Priority We Are Giving?

The bug that mainly comes in web testing are cosmetic bugs on web pages , field validation related bugs and also the bugs related to scalability ,throughput and response time for web pages. During the website application testing, bug related to the link broken also comes.