Abstract

Background: Testing using Behavior-Driven Development (BDD) techniques is one of the practices of Agile software development. This technique composes a test-case based on a use case scenario, for web application acceptance tests.Objective: In this study, we developed a tool to generate test case codes from BDD scenario definitions to help and facilitate practitioners to conduct testing.Methods: The generated test case code is made according to the codeception framework format so that it can be directly executed by the tester. The procedure is performed as follows: map the correlation of the language used in BDD (gherkin language) and the code syntax of the test code in the codeception framework, designed the GUIs in such a way that users can easily transform the Use Case Scenario, built the tool so that it can generate test cases codes. Evaluation is done by gathering respondents; ask to run the application and gathering feedback from respondents.Results: This tool can generate a codeception test-case file based on the BDD scenario. Generated test cases can be directly used on codeception tools. The results of the evaluation show that the tools can help entry-level programmers in developing automated tests.Conclusion: The tool can help user especially entry-level programmers to generate BDD test-case and make easy for the users for testing the web applications.

Highlights

  • Behavior-Driven Development (BDD) is an agile software development best practice [1, 2]

  • In accordance with the precondition attribute of the BDD scenario, the input form must consist of 1 text box to fill the scenario title, 1 text box to fill the user's starting page position (Given I Am On), and 1 submits button to complete the preconditioning process

  • To fill in the scenario steps, the step input screen scenario must consist of 1 dropdown to select When I or I, 1 dropdown to select the choice of functions contained in the mapping table, 1 text box to fill in the identity of the required function, along with 1 button to submit to add to the scenario step

Read more

Summary

Introduction

Behavior-Driven Development (BDD) is an agile software development best practice [1, 2]. Testing using Behavior-Driven Development (BDD) techniques is one of the practices of Agile software development. This technique composes a test-case based on a use case scenario, for web application acceptance tests. Objective: In this study, we developed a tool to generate test case codes from BDD scenario definitions to help and facilitate practitioners to conduct testing. Results: This tool can generate a codeception test-case file based on the BDD scenario. The results of the evaluation show that the tools can help entry-level programmers in developing automated tests. Conclusion: The tool can help user especially entry-level programmers to generate BDD testcase and make easy for the users for testing the web applications

Objectives
Results
Discussion
Conclusion
Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call