Hi Sahshi Kant,
Totara uses behat for automated acceptance testing, and behat facilitates BDD testing.
You can read about our behat environment in our developer documentation.
https://help.totaralearning.com/display/DEV/Behat
Please note that some of the very old versions of Totara do not have this behat integration.
Kind regards
Sam Hemelryk