power_settings_new

multiple testng classes testing application in single browser

by
asked
0 like 0 dislike
30 views
0 1
Can some one explain me how multiple testng classes testing application in single browser?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by
selected by
0 like 0 dislike
 
Best answer
0
You may create suite xml file and execute your testes using suite xml.

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="TestAll">

  <test name="order">
    <classes>
        <class name="com.kagrana.testng.examples.suite.TestConfig" />
        <class name="com.kagrana.testng.examples.suite.TestOrder">
            <methods>
                <include name="testMakeOrder" />
                <include name="testUpdateOrder" />
                <!--
                    <exclude name="testMakeOrder" />
                 -->
            </methods>
        </class>
    </classes>
  </test>
 
</suite>

Hope it helps

Related questions

add
...