{"id":{"repo_id":"carleton","oai_identifier":"oai:carleton.scholaris.ca:20.500.14718/45261"},"canonical_url":"https://search.ndltd.org/etd/carleton/oai:carleton.scholaris.ca:20.500.14718/45261","repository":{"repo_id":"carleton","name":"Carleton University","base_url":"https://carleton.scholaris.ca/server/oai/request"},"display":{"title":"Bidirectional Generation of Behavior-Driven Development Artifacts Using Fine-Tuning and Retrieval-Augmented Generation","abstract":"This thesis investigates bidirectional generation between semi-structured records and structured Behavior-Driven Development (BDD) scenarios using Large Language Models (LLMs). It compares fine-tuning (CodeT5+ and Qwen2.5-Coder) with Retrieval-Augmented Generation (RAG) (Meta-Llama-3.1-8B, DeepSeek-Coder) across a curated dataset of 2,100 aligned pairs. Results demonstrate that generation quality is heavily influenced by task direction and context management. Fine-tuned models significantly outperformed RAG-based methods, achieving F1 scores up to 0.9549 and Exact Match scores of 0.8119. RAG struggled to maintain the strict structural fidelity required for Gherkin-based BDD artifacts, failing to achieve exact matches. These findings suggest that fine-tuning remains the most reliable strategy for generating technically accurate BDD artifacts, as it better handles the rigid structural constraints of automated testing specifications compared to in-context prompting alone.","abstract_html":"This thesis investigates bidirectional generation between semi-structured records and structured Behavior-Driven Development (BDD) scenarios using Large Language Models (LLMs). It compares fine-tuning (CodeT5+ and Qwen2.5-Coder) with Retrieval-Augmented Generation (RAG) (Meta-Llama-3.1-8B, DeepSeek-Coder) across a curated dataset of 2,100 aligned pairs. Results demonstrate that generation quality is heavily influenced by task direction and context management. Fine-tuned models significantly outperformed RAG-based methods, achieving F1 scores up to 0.9549 and Exact Match scores of 0.8119. RAG struggled to maintain the strict structural fidelity required for Gherkin-based BDD artifacts, failing to achieve exact matches. These findings suggest that fine-tuning remains the most reliable strategy for generating technically accurate BDD artifacts, as it better handles the rigid structural constraints of automated testing specifications compared to in-context prompting alone.","abstract_has_math":false,"creators":["Biniek, Artin"],"institution":"Carleton University","degree_name":"Master of Applied Science (M.App.Sc.)","degree_level":"Master's","degree_discipline":"Engineering, Electrical and Computer","degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T06:59:45Z","subjects":["Electrical engineering","System theory","Electric networks","System analysis"],"languages":["en"],"rights":["Copyright © 2026 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship. Theses may only be shared by linking to the Carleton University Institutional Repository and no part may be copied without proper attribution to the author; no part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner."],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.doi","label":"DOI","values":["10.22215/etd/2026-17104"],"render_values":[{"text":"10.22215/etd/2026-17104","href":"https://doi.org/10.22215/etd/2026-17104","code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/20.500.14718/45261","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/20.500.14718/45261","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://carleton.scholaris.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Acarleton.scholaris.ca%3A20.500.14718%2F45261","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Biniek, Artin"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2026-07-22T18:52:13Z"]},{"key":"dc:date.issued","label":"Date","values":["2026"]},{"key":"dc:publisher","label":"Institution","values":["Carleton University"]},{"key":"dc:type","label":"Dc Type","values":["thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Engineering, Electrical and Computer"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Applied Science (M.App.Sc.)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject.lcsh","label":"Dc Subject Lcsh","values":["Electrical engineering","System theory","Electric networks","System analysis"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["Copyright © 2026 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship. Theses may only be shared by linking to the Carleton University Institutional Repository and no part may be copied without proper attribution to the author; no part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["10.22215/etd/2026-17104"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/20.500.14718/45261"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["This thesis investigates bidirectional generation between semi-structured records and structured Behavior-Driven Development (BDD) scenarios using Large Language Models (LLMs). It compares fine-tuning (CodeT5+ and Qwen2.5-Coder) with Retrieval-Augmented Generation (RAG) (Meta-Llama-3.1-8B, DeepSeek-Coder) across a curated dataset of 2,100 aligned pairs. Results demonstrate that generation quality is heavily influenced by task direction and context management. Fine-tuned models significantly outperformed RAG-based methods, achieving F1 scores up to 0.9549 and Exact Match scores of 0.8119. RAG struggled to maintain the strict structural fidelity required for Gherkin-based BDD artifacts, failing to achieve exact matches. These findings suggest that fine-tuning remains the most reliable strategy for generating technically accurate BDD artifacts, as it better handles the rigid structural constraints of automated testing specifications compared to in-context prompting alone."]},{"key":"dc:title","label":"Title","values":["Bidirectional Generation of Behavior-Driven Development Artifacts Using Fine-Tuning and Retrieval-Augmented Generation"]},{"key":"local:lac.licence","label":"Local Lac Licence","values":["true"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:creator":["Biniek, Artin"],"dc:date.accessioned":["2026-07-22T18:52:13Z"],"dc:date.issued":["2026"],"dc:description.abstract":["This thesis investigates bidirectional generation between semi-structured records and structured Behavior-Driven Development (BDD) scenarios using Large Language Models (LLMs). It compares fine-tuning (CodeT5+ and Qwen2.5-Coder) with Retrieval-Augmented Generation (RAG) (Meta-Llama-3.1-8B, DeepSeek-Coder) across a curated dataset of 2,100 aligned pairs. Results demonstrate that generation quality is heavily influenced by task direction and context management. Fine-tuned models significantly outperformed RAG-based methods, achieving F1 scores up to 0.9549 and Exact Match scores of 0.8119. RAG struggled to maintain the strict structural fidelity required for Gherkin-based BDD artifacts, failing to achieve exact matches. These findings suggest that fine-tuning remains the most reliable strategy for generating technically accurate BDD artifacts, as it better handles the rigid structural constraints of automated testing specifications compared to in-context prompting alone."],"dc:identifier.doi":["10.22215/etd/2026-17104"],"dc:identifier.uri":["https://hdl.handle.net/20.500.14718/45261"],"dc:language.iso":["en"],"dc:publisher":["Carleton University"],"dc:rights":["Copyright © 2026 the author(s). Theses may be used for non-commercial research, educational, or related academic purposes only. Such uses include personal study, distribution to students, research and scholarship. Theses may only be shared by linking to the Carleton University Institutional Repository and no part may be copied without proper attribution to the author; no part may be used for commercial purposes directly or indirectly via a for-profit platform; no adaptation or derivative works are permitted without consent from the copyright owner."],"dc:subject.lcsh":["Electrical engineering","System theory","Electric networks","System analysis"],"dc:title":["Bidirectional Generation of Behavior-Driven Development Artifacts Using Fine-Tuning and Retrieval-Augmented Generation"],"dc:type":["thesis"],"local:lac.licence":["true"],"others:access_status":["open.access"],"thesis:degree_discipline":["Engineering, Electrical and Computer"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Applied Science (M.App.Sc.)"]},"updated_at":"2026-11-19T06:59:45Z"}