Ask a Question

Execute multiple steps as a string like behave.execute_steps(steps_text)

naveens33_
Occasional Contributor

Execute multiple steps as a string like behave.execute_steps(steps_text)

https://behave.readthedocs.io/en/stable/api.html?highlight=execute%20steps#behave.runner.Context.exe...

 

I want to execute certain steps from the script in run time like below,

 

@step('I call another step')
def step_impl(context):
    context.execute_steps(u'''when I set the Number to "5" exactly''')

Is there any equivalent method or way to achieve this in TestComplete BDD

2 REPLIES 2
Marsha_R
Community Hero

See if this helps

https://support.smartbear.com/testcomplete/docs/bdd/binding.html


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
naveens33_
Occasional Contributor

@Marsha_R 

 

This https://support.smartbear.com/testcomplete/docs/bdd/binding.html page only talks about bdd binding. I need solution for call a step inside another step definition function like behave.execute_steps("")

cancel
Showing results for 
Search instead for 
Did you mean: