cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert manual test cases (Classic) into Automation (BDD format)

Highlighted
Community Manager

How to convert manual test cases (Classic) into Automation (BDD format)

Hi Guys,

You often ask us about converting manual test cases into Automation. Please see the reply of CucumberStudio Dev lead @severine:

 

When you use Classic Agile “Action/Result”, you often use a imperative style. As you are converting your tests using Gherkin syntax, you should refactor your tests using declarative style. You can find more arguments here: http://itsadeliverything.com/declarative-vs-imperative-gherkin-scenarios-for-cucumber.

Hiptest enables the capability to refactor your tests with the “promote” feature i.e.
by converting steps into an action word (https://hiptest.com/docs/refactor-scenarios/#promote).

The idea is to select steps that will give a line in Gherkin style and to create an action word.

2020-06-03_130139.png

 

Once conversion is done, selected steps are replaced by the call to the new action word everywhere you had choose.

You just need to choose the right keyword Given/When/Then (if you want, it is not mandatory for automation)

2020-06-03_130220.png

For example:

By using this method, you should be able to refactor your scenarios step by step.

 

By the way, I suggest you to configure step editor preferences of your project as “Automation Ready” (in project settings tab)

 

I hope this helps you.

Regards

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Tags (1)
New Here?
Join us and watch the welcome video:
Announcements
Labels