Back to search

Open Universiteit

Q-learning For Action Selection

Abstract

dc:description.abstract

By testing, bugs can be detected before they are shipped to the end user. Most systems are tested manually or through scripted testing. Testing can also be automated so that tests occur without intervention of a tester. This study is about an automated testing tool called TESTAR. TESTAR tests systems through its GUI, to do this it needs to select actions. Here is where one problem resides with automated testing tools. Which actions does it need to select to reach a high test-effectiveness? In the basis TESTAR selects actions at random, but there has been prior research in using Q-learning for action selection. Q-learning is mostly a model-free approach to machine learning where rewards are given based on the selected action. Based on these rewards the algorithm can make thoughtful decisions. This study builds upon prior research for action selection in TESTAR by looking further into Q-learning algorithms. Previously TESTAR only had a basic Q-learning algorithm.<br/>The main research question of the study is "How can the test-effectiveness of TESTAR be increased using Q-learning in the action selection step?"<br/>which is answered using three sub-questions,<br/>• RQ1 - How can different Q-learning algorithms in TESTAR be implemented?<br/>• RQ2 - What reward functions can be used for the implemented Q-learning algorithms in TESTAR based on the available reward metrics?<br/>• RQ3 - How can the performance (test-effectiveness) of a combination of Q-learning algorithm and reward function in web-based applications be measured?<br/>In the first research question two new Q-learning algorithms are implemented, Double Q-learning and QV-learning. The algorithms were tested on the java application Rachota and showed promising result compared to Basic Q-learning. Which takes us to the second Q-learning where new rewards are introduced. In total there are three existing rewards and this study introduces three new ones. All of those rewards in combination with the three Q-learning algorithms are tested against the Rachota application. In this research question Rachota was also tested using pure random action selection and after comparing the re-sults, promising results were found. The new QV-learning algorithm in combination with a new reward showed a 10% improvement over pure random actions selection. In the third research question these results were confirmed against the web-based application Money-bird which showed that the Q-learning algorithms were not only applicable to java appli-cations but also on web-based applications. Here is also introduced how test-effectiveness can be tested on web-based applications using a coverage API.<br/>This study confirms the main research question and shows improvements in the action selection step using Q-learning. Possible improvement for future work are to give TESTAR better understanding of forms to prevent a blocking state and to test with other Q-learning algorithms and Q-learning configurations which were out of scope for this study.

Degree

thesis:*
Name dc:type.qualificationname
Master's Thesis
Level dc:type.qualificationlevel
Student thesis
Year dc:date.issued
2022

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ordelman, S.
Advisors dc:contributor.advisor
  • Vos, Tanja
  • Aho, Pekka
  • Rodríguez Valdés, Olivia

Rights

Language dc:language
eng

Identifiers

dc:identifier.*
Identifier
oai:research.ou.nl:studenttheses/fa3d145c-2b22-417a-9401-d2be0443e074

Chain of custody

source
Harvested from
Open Universiteit
Base URL
research.ou.nl/ws/oai
Last updated
2026-11-25
Source record
OAI-PMH GetRecord
related terms
citation

Ordelman, S.. Q-learning For Action Selection. Student thesis thesis, 2022. https://research.ou.nl/en/studentTheses/fa3d145c-2b22-417a-9401-d2be0443e074