Selenium Framework for Beginners 24 | TestNG How to use Parameters | in Selenium

preview_player
Показать описание
Today we will learn
1 How to parameterize tests
2 How to run tests with parameters
3 How to make parameters Optional

helpful tips

@Parameters annotation can be placed on any method that already has following annotations

@Test
@Before/After
@Factory

@Parameters annotation can also be placed class constructor

If two parameters have the same name, it's the one defined in test that has precedence.
This is convenient if you need to specify a parameter applicable to all your tests and override its value only for certain tests.

PLAYLISTS

SELENIUM JAVA FRAMEWORK BEGINNERS

KATALON STUDIO

SELENIUM BEGINNERS

SELENIUM TIPS

SELENIUM PYTHON

SELENIUM BUILDER

JAVA

JAVA TIPS & TRICKS

JENKINS

JENKINS TIPS & TRICKS

JMETER BEGINNER

JMETER INTERMEDIATE

JMETER ADVANCED

JMETER TIPS & TRICKS

SOAPUI

POSTMAN

GIT & GITHUB

DOCKER

ROBOT FRAMEWORK

WEB SERVICES (API)

REDIS BEGINNER TUTORIALS

MAVEN

MISC

TOOLS & TIPS

QnA FRIDAY

SUNDAY SPECIAL

ALL PLAYLISTS

Like on FACEBOOK :

Follow on TWITTER:

Subscribe on YOUTUBE :

Like, Subscribe & Share
You can support my mission for education by sharing this knowledge and helping as many people as you can

________ ONLINE COURSES TO LEARN ________

Never Stop Learning
Raghav
Рекомендации по теме
Комментарии
Автор

Hey Raghav, your videos are much better then many paid courses...

VijayKumar-qdej
Автор

You are the best teacher in Automation I felt...awesome lecturing as well very useful information..thank you raghav for this video...🙂

bindunagaraj
Автор

Hey Raghav,

I really appreciate your efforts to make such a nice videos and thanks for your time. I’m not clear yet on what’s the purpose of using parameters. Aren’t they same as arguments we pass to any regular functions?

Thank you

ishitashah
Автор

Hello Sir,
Can you please explain how to automate webtables which does not have table tr td tag.
Thanks in advance

simranpathan
Автор

Hello Raghav, i have a use case wherein i have multiple parameters to pass to method with @beforeMethod annotation. How can i do that without the use of @parameter annotation. I thought of doing it with @DataProvider, however testng doesnt support dataProvider with @BeforeMethod annotation.

harshachandnani
Автор

Hello raghav will executing parameters annotation it execute only testing.XML file other than we can execute test class also

KiranKumar-nezy
Автор

Hi Raghav, I am getting this Cannot find class in classpath.How can I solve it?

nehashukla
Автор

hello Raghav ji i have one doubt, in this script we will pass only one parameter at time ?
i am trying to pass more then one parameters it throws an errors...
can you try to help me ?

Yaddalapudi
Автор

how to pass more than one parameter ? Pls tell

priyankakatiyar