This week's giveaway is in the Spring forum.
We're giving away four copies of Microservices Testing (Live Project) and have Chris Love & Andres Sacco on-line!
See this thread for details.
Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

How to set up the conditions to test web pages for HTTP status codes 403, 404, 500, 503

 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I developed a web application with Java (Struts 2) and Web Experience Toolkit (WET - https://github.com/wet-boew/wet-boew), which is running on the WebLogic 12c server.
When any one of the HTTP status codes 403, 404, 500, 503 occurs, my web application will display a corresponding web page.
e.g. When the HTTP status code 503 occurs, my web application will display the web page 503.html.
How to set up or simulate the conditions to test my web application web pages for HTTP status codes 403, 404, 500, 503?
i.e. simulate the HTTP status codes 503, etc so as to test my web application UI to ensure that 503 is handled properly, assuming that the webserver works properly.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic