一、项目路径下建一个testng.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Suite2" parallel="tests">
<test name="Function_chrome">
<parameter name="browser" value="chrome" />
<classes>
<class name="com.wiley.demo.ParaOpt" />
</classes>
</test>
<test name="Function_firefox">
<parameter name="browser" value="firefox" />
<classes>
<class name="com.wiley.demo.ParaOpt" />
</classes>
</test>
<test name="Function_ie">
<parameter name="browser" value="ie" />
<classes>
<class name="com.wiley.demo.ParaOpt" />
</classes>
</tes