Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
An Automated Test System for Functional Testing of a Web Application Using BDD: Implementation Using SpecFlow, Selenium WebDriver, and NUnit in a Real-World Web Application Context
Karlstad University, Faculty of Health, Science and Technology (starting 2013), Department of Mathematics and Computer Science (from 2013).
2025 (English)Independent thesis Advanced level (professional degree), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

This thesis addresses the challenge of ensuring software quality in complex enterprise systems where manual testing is inefficient and error-prone. Specifically, it focuses on replacing manual testing practices in the web-based business platform ServeIT Online, used by the optical industry in Sweden and Norway. The system’s complexity—spanning multiple environments, languages, and user roles, creates difficulties for traditional test approaches, highlighting the need for a scalable, maintainable, and inclusive test automation solution. 

Conducted in collaboration with the IT company Ninetech AB, the thesis introduces an automated testing system that integrates Selenium WebDriver, SpecFlow, and NUnit within the .NET environment, and applies Behavior-driven development (BDD) principles. Through human-readable Gherkin syntax, the system enables collaboration between developers and non-technical stakeholders, improving both test clarity and shared ownership. 

The resulting solution is modular, language-agnostic, and supports execution across multiple environments and browsers. Evaluation confirms that it meets all defined objectives: environment abstraction, bilingual support, cross-browser compatibility, stakeholder accessibility, and long-term maintainability. Performance, security, and accessibility testing remain out of scope and are proposed for future research.

Abstract [sv]

Detta examensarbete presenterar utvecklingen av ett automatiserat testsystem för det webbaserade affärssystemet ServeIT Online, använt inom optikbranschen i Sverige och Norge. Systemets komplexitet, med flera miljöer, språkversioner och varierande användarroller, ställer höga krav på tillförlitlig testning. Projektet genomfördes i samarbete med IT-företaget Ninetech AB och syftar till att ersätta ineffektiv manuell testning med en lösning som är skalbar, underhållbar och inkluderande.

Testlösningen bygger på integrationen av Selenium WebDriver, SpecFlow och NUnit inom en .NET-miljö, och följer principerna för beteendedriven utveckling. Genom att använda Gherkin-syntax möjliggörs testscenarier som är läsbara även för icke-tekniska intressenter, vilket stärker samarbetet mellan utvecklare och domänexperter.

Det resulterande testsystemet är modulärt och oberoende av språk, med stöd för exekvering i olika miljöer och webbläsare. Utvärderingen bekräftar att lösningen uppfyller samtliga uppställda mål: konfigurationsoberoende mellan miljöer, stöd för flera språk, kompatibilitet med olika webbläsare, god läsbarhet för olika användarroller samt potential för långsiktigt underhåll. Aspekter som rör prestanda, säkerhet och tillgänglighet har dock inte behandlats inom ramen för denna studie och föreslås för framtida forskning.

Place, publisher, year, edition, pages
2025. , p. 90
Keywords [en]
TDD, BDD, Test, Web application testing, Automation test, Smoke test, Gherkin Language, C#, Selenium, Specflow.
Keywords [sv]
TDD, BDD, Test, Testning av webbapplikationer, Automatiserad testning, Gherkin Language, C#, Selenium, Specflow
National Category
Computer Sciences Computer Engineering
Identifiers
URN: urn:nbn:se:kau:diva-106309OAI: oai:DiVA.org:kau-106309DiVA, id: diva2:1983759
Subject / course
Computer Science
Educational program
Engineering: Computer Engineering (300 ECTS credits)
Supervisors
Examiners
Available from: 2025-08-14 Created: 2025-07-12 Last updated: 2026-02-12Bibliographically approved

Open Access in DiVA

fulltext(2936 kB)378 downloads
File information
File name FULLTEXT01.pdfFile size 2936 kBChecksum SHA-512
6338b0448d399b0fec8e57feb5a548019c84dd9010d7a4890d0e388145e185b0919556d4dc5ed081e205e3b0a7824b9eadcba7cc4e14ec26514afa0e3bb7bf3e
Type fulltextMimetype application/pdf

By organisation
Department of Mathematics and Computer Science (from 2013)
Computer SciencesComputer Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 380 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 297 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf