Invocation Count | Run a Test multiple times using TestNG | TestNG Tutorial Part #17

preview_player
Показать описание
I have covered the following:
1. What is invocation count in TestNG
2. How to execute/run a test multiple times using TestNG?
3. How to run a test in parallel using TestNG ?

Links for TestNG videos:

#TestNG #TestNG Tutorial #Selenium #Test Automation
Рекомендации по теме
Комментарии
Автор

Thank you Chandan Gupta, It is what i am searching

hathu
Автор

Well explained thank you I got this question in interview but I missed it

sangireddyeswarreddy
Автор

Hello, Sir! This approach works on @BeforeClass annotation?

adrianmacovei
Автор

Hi Chandan... Nice video... One doubt though.... Can we use invocation count in BeforeTest or Before Suite annotation ? Like below.... Kindly clarify
@BeforeTest(invocationCount = 100)
public void checkCalculation() throws Exception {
}

KishoreKumar-jebq
Автор

Hi Chandan, If I want to execute testng suite that has 1 test class for 200 times what is the easiest way ? I guess pasting test class 200 times inside suite is not best way. Any suggestion, please?

saiquality
Автор

what if i set invocation count to some negative value?? will it execute

sweetthirty
Автор

Sit I have a doubt..is there any possibility to get the number of times a testcase run in test ng?plz do rply

sasnams