我想就在TestNG中执行XML时遇到的问题寻求帮助。
这是我的XML:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Local cwsSprint1-Desktop Test" verbose="0" parallel="false">
<listeners>
<listener class-name="com.quantum.listeners.QuantumReportiumListener" />
</listeners>
<parameter name="driver.name" value="chromeDriver" />
<parameter name="webdriver.chrome.driver" value="driver/chromedriver.exe" />
<parameter name="chrome.additional.capabilities" value="{'chromeOptions':{'useAutomationExtension':false}}"/>
<!-- <parameter name="chrome.additional.capabilities" value="{'chromeOptions':{'mobileEmulation':{'deviceName':'Galaxy S III'}}}" />
<parameter name="chrome.additional.capabilities" value="{'chromeOptions':{'mobileEmulation':{'deviceName':'iPhone 6/7/8'}}}" />
-->
<!-- Locally testing web application on desktop -->
<test name="cwsSprint1-Desktop" enabled="true">
<groups>
<run>
<!-- <include name="@LoginMenu"/> -->
<include name="@ViewPrimaryNavigationMenuDesktop"/>
<!-- <include name="@PolicyCardsDesktop"/> -->
</run>
</groups>
<classes>
<class name="com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory" />
</classes>
</test>
</suite>
这是错误:
An internal error occurred during: "Launching cws-regional_src.main.resources.config.cwsXMLFilesFunctional.Sprint 1.cwsSprint1 - Desktop.xml".
org.testng.eclipse.maven.MavenTestNGLaunchConfigurationProvider.getClasspath(Lorg/eclipse/debug/core/ILaunchConfiguration;)Ljava/util/List;