BDD Automation Testing for Multiple List of Records

Based on the table Information in DB , I want to do BDD automation testing in OutSystem

I have table called UserDetail which has 500 users information. 


Using BDD framework i want to iterate below steps automatically 

1.Given 

2.When 

3.Then 


Above three steps triggere same function for different user ID which is driven from DB. how to do it. 

Note:

  I have done for singe user update in BDD function 

Solution

Hi Jegan,

This is how we do it on a customer project:

  1. Create a spreadsheet with all inputs to the action you want to test, and column(s) for the expected values
  2. Bootstrap the spreadsheet, to let OutSystems generate and entity and populate it,
  3. In your preparation add an aggregate to get bootstrapped entity data
  4. On your screen place a List Record widget and bind the aggregate to it.
  5. In the list record place your BDD Scenario
  6. Bind the columns from the aggregate that represent the input values for the action you want to test
  7. Call the action you want to test
  8. On the assert compare the actual value with expected value as defined in the aggregate

Regards,

Daniel


Solution

Daniël Kuhlmann wrote:

Hi Jegan,

This is how we do it on a customer project:

  1. Create a spreadsheet with all inputs to the action you want to test, and column(s) for the expected values
  2. Bootstrap the spreadsheet, to let OutSystems generate and entity and populate it,
  3. In your preparation add an aggregate to get bootstrapped entity data
  4. On your screen place a List Record widget and bind the aggregate to it.
  5. In the list record place your BDD Scenario
  6. Bind the columns from the aggregate that represent the input values for the action you want to test
  7. Call the action you want to test
  8. On the assert compare the actual value with expected value as defined in the aggregate

Regards,

Daniel


Thank you so much Daniel.. i can able to perform my automation testing 


Good for you, happy I could help.