Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Laxmikant Somni
@laxmikantm
Hi Tarun, Sorry for a rather novice question. I would like to know- can I write Cucumber BDD style tests & execute them using STF?
Thanks
Tarun Kumar
@tarun3kumar
Why would you use cucumber when stf report is as descriptive as cucumber ?
Laxmikant Somni
@laxmikantm
Hi Tarun, Due to project requirement, I need a BDD (preferably Cucumber-JVM) based framework. Kindly advise, how I could add Cucumber Runner & features files & Step Defs mechanism into the framework.
Theoretically, one could easily place @Given, @When etc. annotation into normal java tests & refactor.
Please advise, if its possible.
Many thanks
Tarun Kumar
@tarun3kumar
of course you can use existing STF APIs to build test using cucumber but then you would use cucumber runner to execute your tests and would miss on STF test report and many other features
Laxmikant Somni
@laxmikantm
Kindly advise how do I place the Cucumber Runner into STF & where shall I start adding step-defs annotations? Kindly provide some guidance. Thanks
Tarun Kumar
@tarun3kumar
nop you will just be using STF API like usual webdriver APIs. There would not be any relation between Cucumber Runner and STF. You could yest refer following sample STF project to learn more on STF - https://github.com/tarun3kumar/seleniumtests
but then you would use STF APIs with cucumber.