16
Views
1
Comments
How do I debug a BDD test?
Application Type
Traditional Web, Service
Service Studio Version
11.55.0 (Build 63850)

Some context: I have a test that needs to take some existing data from the database, edit a local copy, then pass that local copy to the function under test and validate the function's output. Then, during the teardown step, I'll be setting my test data back to it's original form so it's ready for the next execution. 

I'm trying to debug my test to validate that the right transformations are happening to my local data and track it through the execution of my test step-by-step so I can make sure I'm not making any errors. 

The problem is, normal debugging doesn't work with BDD tests: I can add breakpoints to the setup/given/when/then/teardown functions, but execution never stops when I load the page. I've tried abstracting some of my code into server actions in the BDD project, but that doesn't work either.

How can I debug BDD test execution?

UserImage.jpg
Ricardo Campos

Hi, Sam. It looks weird. Have you tried adding breakpoints to the traditional screens and to the back end actions, and none worked?

Can you tell us more about the BDD template you are using, some screenshots?

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