There are two test suites, And in one test suite if a test has so many methods how would run only Method1, Method2, Method3 and exclude rest and in an

I am learning testng selenium please help me with the solution

Train Asked on April 12, 2017 in Selenium WebDriver.
Add Comment
  • 2 Answer(s)

    Hi,

    In the testng.xml file specify only the classes you want to run

    Supporter Answered on April 13, 2017.
    Add Comment

    IN testNG.xml add ‘include’ before those methods which you want to run at run-time or add exclude before those which are to be barred.

    Or you can simply comment that method in your programm..(d simplest 1)

    Mst. imp thing–>> do not use exclude and include in the same script simultaneously.

    Train Answered on April 16, 2017.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.