By the end of this chapter, you will be able to:
These skills will help you ensure web applications work smoothly and meet users’ needs, making you a valuable developer in the real world.
Testing web applications is a critical phase in the software development lifecycle, ensuring that applications function correctly, securely, and efficiently before deployment. In Kenya's rapidly growing digital economy, where web applications serve banks, government agencies, and e-commerce platforms, thorough testing prevents costly failures and protects user data. This chapter explores the types of web application testing, the structure of a comprehensive test plan, and the key considerations for test environments, scope, and schedules tailored to professional software developers.
Web application testing encompasses various approaches to validate different aspects of the application, from functionality to security. Testing in Kenyan software firms such as Safaricom or county government digital portals requires a blend of automated and manual techniques to cater to diverse user scenarios and network environments. Understanding these types equips developers to design robust applications that meet user expectations and regulatory requirements.
Functional testing verifies that the web application performs according to its specified requirements. It focuses on user interactions, input validation, business logic, and output correctness. For example, a banking web portal at Equity Bank must correctly process transactions, display accurate account balances, and enforce user permissions. Functional testing ensures that every feature works as intended across different browsers and devices.
Performance testing assesses how the web application behaves under various load conditions. It is essential for applications in Kenyan e-commerce platforms like Jumia, where traffic spikes during sales can strain server resources. This testing identifies bottlenecks, measures response times, and evaluates scalability to ensure users experience fast and reliable service.
Security testing protects web applications from vulnerabilities that could lead to data breaches or unauthorized access. Kenyan government portals handling citizen data, such as Huduma Centres online services, must undergo rigorous security testing to comply with data protection laws like the Data Protection Act 2019. This testing uncovers risks like SQL injection, cross-site scripting (XSS), and authentication flaws.
Usability testing evaluates the user experience, ensuring the web application is intuitive and accessible. In Kenya's diverse linguistic and cultural landscape, applications like county government service portals must cater to users with varying digital literacy levels. Usability testing involves real users interacting with the system to identify navigation issues, confusing layouts, or accessibility barriers.
Explain five key aspects of functional testing and their importance in a web application used by a Kenyan bank. (10 marks)
Describe how performance testing can be applied to an e-commerce website operating in Kenya. (8 marks)
Identify five common security vulnerabilities tested for in Kenyan government web portals and explain their potential impact. (10 marks)
Create a free account to open more of this chapter.
Free: practical guides, quick cards, workplace scenarios and more.
Create a free accountThis chapter explored the various types of web application testing, emphasizing their roles in ensuring functional, performance, security, and usability standards are met. It detailed the components of a comprehensive web application test plan, including the definition of the test environment, the scope of testing activities, and the scheduling of test execution. The chapter also reviewed a range of testing tools suited to different purposes such as performance evaluation, functional verification, security assessment, cross-browser compatibility, mobile web testing, and usability analysis with tools like Google Analytics. Attention was given to how these tools support effective testing strategies tailored to diverse application needs. Lastly, the chapter covered the preparation of test reports, explaining their types and the importance of clear documentation for communicating test outcomes and guiding further development efforts. This structured approach to testing underpins the delivery of reliable and user-friendly web applications.
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Computer with internet access and browser | Sample web application source code (HTML, CSS, JavaScript files) |
| Text editor (e.g. Visual Studio Code, Sublime Text) | Printing paper |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Computer with internet access and browser | 1 Pc per Candidate |
| 2 | Text editor (e.g. Visual Studio Code, Sublime Text) | 1 Pc per Candidate |
| 3 | Sample web application source code (HTML, CSS, JavaScript files) | 1 Set per Candidate |
| 4 | Printing paper | 5 Sheets per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Identification and Classification of Testing Types | |||
| Candidate accesses and reviews the sample web application source code (Award 2 marks for accessing and reviewing the source files correctly) | 2 | ||
| Candidate identifies and lists five different types of web application testing (Award 1 mark for each correctly identified testing type: Functional, Usability, Performance, Security, Compatibility) | 5 | ||
| Candidate provides a practical example for each testing type (Award 1 mark for each relevant and clear practical example for the testing types) | 5 | ||
| Candidate explains the purpose and scope of each testing type clearly (Award 1 mark for each clear and accurate explanation) | 5 | ||
| Candidate organizes the report logically and formats it properly on A4 paper (Award 3 marks for a well-organized, complete, and legible report) | 3 | ||
| Sub-Total | 20 | ||
| PRODUCT CHECKLIST | |||
| Report contains all five testing types correctly named, with examples and explanations (Award 5 marks if report includes all required elements accurately) | 5 | ||
| Report is neatly formatted, printed on A4 paper, and free from spelling or grammatical errors (Award 5 marks for neat presentation and correct language usage) | 5 | ||
| Sub-Total | 10 | ||
| GRAND TOTAL | 30 | ||
Type: Individual
| Tools & Equipment | Materials |
|---|---|
| Computer with internet access and text editor | Web application specification document |
| Printing paper |
| S/N | Item | Quantity |
|---|---|---|
| 1 | Computer with internet access and text editor | 1 Pc per Candidate |
| 2 | Web application specification document | 1 Set per Candidate |
| 3 | Printing paper | 10 Sheets per Candidate |
| Items to be Evaluated | Marks Available | Marks Obtained | Comments |
|---|---|---|---|
| TASK 1: Prepare test plan document | |||
| Read and understood the web application specification document (Award 2 marks) | 2 | ||
| Defined clear test objectives and scope including inclusion and exclusion criteria (Award 4 marks) | 4 | ||
| Outlined detailed test schedule with timelines for all test phases (Award 4 marks) | 4 | ||
| Included resource requirements and dependencies in the plan (Award 2 marks) | 2 | ||
| Formatted and organized the test plan document professionally over at least 3 pages (Award 3 marks) | 3 | ||
| Sub-Total | 15 | ||
| PRODUCT CHECKLIST | |||
| Test plan document completeness and clarity including scope and schedule accuracy (Award 10 marks) | 10 | ||
| Sub-Total | 10 | ||
| GRAND TOTAL | 25 | ||
At the start of this chapter we promised you would be able to:
Tick each one you can genuinely do.
So, are you there yet?
You're competent when you can confidently do 50% or more of what this chapter promised.
Sign in to record how you're doing.