156
Views
6
Comments
[BDDFramework] How to do BDD for testing a functionalities
bddframework
Web icon
Forge asset by OutSystems

I'm learning BDD test, and i'm wondering how to use BDD to test a functionalities "Change Password"



I'm creating a new application using BDD Framework
https://www.outsystems.com/forge/component-reviews/1201
and currently not sure what to do for these actions


I was following this tutorial from youtube https://www.youtube.com/watch?v=oqNpKZM-vKc but they hardcode the expected result, is that the best practice?

2023-02-09 12-36-42
Damian Fonville

Hi,

To answer the hardcoded question, what I did in a project was create a static entity with the inputs and the expected result. Use this entity as an input on a web block where the BDD test is done; then, add a list on your screen with the static entity's aggregate input in your main test screen. Inside the List, add the test webblock with the current entity value of the List. 

Also, thank you for sharing the YouTube URL; this will be very useful for new developers.

2023-12-12 04-02-06
Ignatius Brian Widjaja

can you explain a bit more on this, i dont really get what you mean, sorry for the inconvenience

2023-02-09 12-36-42
Damian Fonville

No problem, I will try to make a simple example today. 

2023-02-09 12-36-42
Damian Fonville

Hi,

Please take a look at the attached OML. If you have any questions, don't hesitate to ask.

TestExample.oml
2024-11-05 11-28-22
Sunil Rajput

Hiii

 Kindly check this

https://www.outsystems.com/forums/Search.aspx?page=1&q=%5bBDDFramework%5d+How+to+do+BDD+for+testing+a+functionalities&scat=forums

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.