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
Hi Ishita, TestNG Parameters are the arguments that we pass to the test methods.. Parameters allow to run the same test over and over again using different values.
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.
Hi Harsha, you should be able to use this. Pls check here stackoverflow.com/questions/35893294/dataprovider-with-before-testng examples.javacodegeeks.com/enterprise-java/testng/testng-beforemethod-example/
Hi Kiran, yes you can execute classes as well. You can provide the details in testng.xml file accordingly. Check other videos on this playlist automationstepbystep.com/online-courses/
Hi Neha, it must be some particular class. See if this helps - stackoverflow.com/questions/25543910/error-org-testng-testngexception-cannot-find-class-in-classpath-empclass
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 ?
@@RaghavPal raghav ji can u give suggestion to record my actions in desktop like apps or softweres. just now i hava full clarity about parameters how to use, passing more then one parameter and java,xml as well... IN JAVA @Test @Parameters({"sub1","sub2"}) public void test1(String name1,String name2) { System.out.println("first Name is :"+name1+" second name"+name2); } in XML
Hey Raghav, your videos are much better then many paid courses...
Thanks for the kind words Vijay
You are the best teacher in Automation I felt...awesome lecturing as well very useful information..thank you raghav for this video...🙂
So nice of you Bindu
Thanks
Most welcome
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
Hi Ishita, TestNG Parameters are the arguments that we pass to the test methods.. Parameters allow to run the same test over and over again using different values.
Hello Sir,
Can you please explain how to automate webtables which does not have table tr td tag.
Thanks in advance
I will plan a session Simran
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.
Hi Harsha, you should be able to use this. Pls check here
stackoverflow.com/questions/35893294/dataprovider-with-before-testng
examples.javacodegeeks.com/enterprise-java/testng/testng-beforemethod-example/
Hello raghav will executing parameters annotation it execute only testing.XML file other than we can execute test class also
Hi Kiran, yes you can execute classes as well. You can provide the details in testng.xml file accordingly. Check other videos on this playlist automationstepbystep.com/online-courses/
:)
Hi Raghav, I am getting this error:org.testng.TestNGException: Cannot find class in classpath.How can I solve it?
Hi Neha, it must be some particular class. See if this helps - stackoverflow.com/questions/25543910/error-org-testng-testngexception-cannot-find-class-in-classpath-empclass
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 ?
Hi Krishna, will need to see your error and your code and setup
@@RaghavPal how can I share am code
You can copy the code showing error here and also the logs showing the caused by section
@@RaghavPal raghav ji can u give suggestion to record my actions in desktop like apps or softweres.
just now i hava full clarity about parameters how to use, passing more then one parameter and java,xml as well...
IN JAVA
@Test
@Parameters({"sub1","sub2"})
public void test1(String name1,String name2)
{
System.out.println("first Name is :"+name1+" second name"+name2);
}
in XML
Hi for desktop apps you will need to try AutoIT for winnium. Selenium will not work on desktop
how to pass more than one parameter ? Pls tell
Hi Priyanka, can check this stackoverflow.com/questions/45160355/multiple-values-for-parameters-in-testng-xml-without-using-dataprovider
I have error org test.tesng
will need more details Raja
Send it your whatsapp number i send the photos I don't know how to tell