The simplest way to start a use case
1 Building XML first
The XML code is as follows
1 <?xml version= "1.0" encoding= "UTF-8"?> 2 <suite name= "Suite" verbose= "1" parallel= " False "thread-count=" 1 ">3 <test name=" test1 "> //Random command 4 <classes> 5 < class name= "Com.net.www.day_jingdong"/> //The class name that needs to be started is modified to its own. registration. Class name 6 </classes>7 </test>8 </suite>
Right-click Run as in XML to start it.
2 testng Boot Sequence control
1<?xml version= "1.0" encoding= "UTF-8"?>2<suite name= "Suite" verbose= "1" parallel= "false" thread-count= "1" >3<test name= "Test1" >4<classes>5<className= "Com.net.www.day_jingdong" >6<methods>7<include name= "Test3"/>8<include name= "Test2"/>9</methods>Ten</class> One</classes> A</test> -</suite>
Selenium-java-xml Startup use case class-Simple 1