hrcorval / behavex

BDD test wrapper for parallel test executions and more!
https://github.com/hrcorval/behavex
MIT License
85 stars 20 forks source link

how to run scenario outline and scenario in parallel #74

Closed praveenkannan1987 closed 1 year ago

praveenkannan1987 commented 1 year ago

Questions 1) Can you tell me how run to scenario outline in parallel using behavex 2) Can you also tell me how to run scenario outline and scenario in parallel for example scenario outline contains 3 user id and password. and one scenario

parallel process =4 i want run parallel 4 browser at time

hrcorval commented 1 year ago

Hi @praveenkannan1987, running scenario outlines in parallel is not supported by BehaveX yet, as we are trying not to impact the Behave logic in any way. As the scenario outline logic is managed by the Behave library, we are not being able yet to split the execution of that scenarios in multiple processes. At the moment, Behavex executes scenarios and features in parallel, but scenario outlines will run in serial mode inside a parallel process. Regards.

praveenkannan1987 commented 1 year ago

Thanks. will there be enhancement for scenario outline in the future ?

hrcorval commented 1 year ago

I hope so! As the solution would be to parse the scenario outline on the wrapper side, so We can get the individual scenarios slitted across parallel processes.

anibalinn commented 1 year ago

Fix released in version 3.0.0: https://pypi.org/project/behavex/3.0.0/ branch release_3.0.0 Thanks!

korrapatisandhya commented 11 months ago

Hi anibalinn, i am using selenium, python ,behave 1.2.6 and behavex 3.0.0 libraries in my project. My project is about to execute same steps for multiple input dynamically through command line parameters in that case i choose the scenario outline in behavex to use but i am unable execute the examples of scenario outline parallelly please let me know is behavex support parallel execution of scenario outline if so kindly provide me an example.

hrcorval commented 3 weeks ago

Hi @korrapatisandhya , running scenario outlines in parallel is something we are exhaustively doing at the moment. Please, update to the latest BehaveX version and ive it a try. This is working in both, feature and scenario parallel executions. Ee apologize if you had issues in v3.0.0. I hope it helps.

Thanks!!