How to execute cucumber feature file in Parallel using TestNG | Selenium Java | TestNG

preview_player
Показать описание
Please make sure that you are adding the file at root level of the project.

#?xml version="1.0" encoding="UTF-8"?#
#suite name="My TestSuite" parallel="classes"#
#test name="BookVerification"#
#classes#
#/classes#
#/test#
#/suite#

Right click on the testng xml file and then run it as testng suite..
Then you can see that the scenarios will be running in parallel.

**********Please comment in case of any query*************

Also please watch other videos as well.

n

Комментарии
Автор

Very nice video, easy to understand and implement. Great explanation sir.

gauravarora
Автор

Finally someone made this video thanks.. May i know why u r using @BeforeClass under the runner file??

sweetthirty
Автор

Very well and detailed explanation. Thank You

manjunathr
Автор

Hi when I am trying to run 2 classes and both have login function it is opening the url in two browser but typing the credentials only in one browser

charukashyap
Автор

With this process extend and pdf report doesn't generate for one time but multiple times for the clases which we mentioned in suite inside classes

victorious_
Автор

Hi sir,
I need one help from your end.
I have created an appium android automation framework using cucumber.
Now currently I am using junit to execute "runnerTest". In that file I have to execute multiple feature file in different orders. Example: login, AddUser, Edit user, AddProduct, Logout.

When i am trying to execute this order of files in features tags it executes in alphabetical order.

Please help me to solve the issue.

NOTE: I can also use testNG but i need a solution how to execute multiple feature file in different orders.

satishrathod-rsdl
Автор

how to control the thread count in bdd+cucumber+testng

somesh
Автор

when i run as testNG suite it shows
Total Test run : 0, Passes : 0, Failures : 0, Skips : 0

my test scenario didn't run what can i do?

harishkumaar