提交 a7762302 authored 作者: mry's avatar mry

fix(修改文件位置):修改了生成文件目录

上级 5d396360
...@@ -31,15 +31,7 @@ ...@@ -31,15 +31,7 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version> <version>2.19.1</version>
<configuration> <configuration>
<suiteXmlFiles> <skipTests>true</skipTests>
<suiteXmlFile>src\main\resources\test.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<suiteXmlFiles> <suiteXmlFiles>
<suiteXmlFile>src\main\resources\test.xml</suiteXmlFile> <suiteXmlFile>src\main\resources\test.xml</suiteXmlFile>
</suiteXmlFiles> </suiteXmlFiles>
......
...@@ -100,16 +100,8 @@ ...@@ -100,16 +100,8 @@
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version> <version>2.19.1</version>
<configuration> <configuration>
<suiteXmlFiles> <!-- 不指定单元测试 -->
<suiteXmlFile>src\main\resources\test.xml</suiteXmlFile> <skipTests>true</skipTests>
</suiteXmlFiles>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<suiteXmlFiles> <suiteXmlFiles>
<suiteXmlFile>src\main\resources\test.xml</suiteXmlFile> <suiteXmlFile>src\main\resources\test.xml</suiteXmlFile>
</suiteXmlFiles> </suiteXmlFiles>
......
package com.example.seleniumtest; package com.example.seleniumtest;
import com.example.seleniumtest.conferenceRoomTest.ConferenceActive; import org.springframework.boot.ApplicationArguments;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration; import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.ApplicationContext; import org.testng.TestNG;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication(scanBasePackages = {"com.example.seleniumtest"}) import java.util.ArrayList;
//@Configuration import java.util.List;
//@ImportResource(locations = {"classpath:"})
public class SeleniumTestApplication {
@Autowired @SpringBootApplication(scanBasePackages = {"com.example.seleniumtest"},exclude = MongoAutoConfiguration.class)
ConferenceActive conferenceActive; public class SeleniumTestApplication{
// public static boolean started = false;
// private static ApplicationContext applicationContext;
//
// public static ApplicationContext get(){
// return applicationContext;
// }
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(SeleniumTestApplication.class, args); List<String> suites = new ArrayList<String>();
// started = true; suites.add("src/main/resources/testng.xml");
TestNG testNG = new TestNG();
testNG.setTestSuites(suites);
testNG.run();
// SpringApplication.run(SeleniumTestApplication.class, args);
} }
} }
package com.example.seleniumtest.conferenceRoomTest; package com.example.seleniumtest.conferenceRoomTest;
import com.example.seleniumtest.SeleniumTestApplication;
import com.example.seleniumtest.selenium.enums.Browser; import com.example.seleniumtest.selenium.enums.Browser;
import com.example.seleniumtest.selenium.util.WebDriverUtil; import com.example.seleniumtest.selenium.util.WebDriverUtil;
import lombok.Data; import lombok.Data;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
import org.openqa.selenium.*; import org.openqa.selenium.*;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.testng.Assert; import org.testng.Assert;
import org.testng.Reporter; import org.testng.Reporter;
import org.testng.annotations.AfterClass; import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import java.io.File; import java.io.File;
...@@ -30,18 +26,6 @@ public class ConferenceActive { ...@@ -30,18 +26,6 @@ public class ConferenceActive {
private WebDriver webDriver = WebDriverUtil.getWebDriver(Browser.FIREFOX, false); private WebDriver webDriver = WebDriverUtil.getWebDriver(Browser.FIREFOX, false);
// public static ApplicationContext applicationContext;
// @BeforeClass
// public void start(){
// if(!SeleniumTestApplication.started){
// applicationContext = SpringApplication.run(SeleniumTestApplication.class);
// SeleniumTestApplication.started = true;
// }else{
// applicationContext = SeleniumTestApplication.get();
// }
// }
//失败截图 //失败截图
public void file() { public void file() {
File screenshotAs = ((TakesScreenshot) webDriver).getScreenshotAs(OutputType.FILE); File screenshotAs = ((TakesScreenshot) webDriver).getScreenshotAs(OutputType.FILE);
......
...@@ -10,23 +10,19 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -10,23 +10,19 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class) //@RunWith(SpringRunner.class)
@SpringBootTest(classes = {SeleniumTestApplication.class}) @SpringBootTest(classes = {SeleniumTestApplication.class})
public class SeleniumTestApplicationTests { public class SeleniumTestApplicationTests {
@Autowired // @Autowired
ConferenceActive conferenceActive; // ConferenceActive conferenceActive;
//
@Test // @Test
public void test1() { // public void test1() {
WebDriver driver = WebDriverUtil.getWebDriver(Browser.FIREFOX, false); // WebDriver driver = WebDriverUtil.getWebDriver(Browser.FIREFOX, false);
conferenceActive.setWebDriver(driver); // conferenceActive.setWebDriver(driver);
conferenceActive.toManager(); // conferenceActive.toManager();
// driver.close(); // driver.close();
} // }
} }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>TestNG Report</title><style type="text/css">table {margin-bottom:10px;border-collapse:collapse;empty-cells:show}th,td {border:1px solid #009;padding:.25em .5em}th {vertical-align:bottom}td {vertical-align:top}table a {font-weight:bold}.stripe td {background-color: #E6EBF9}.num {text-align:right}.passedodd td {background-color: #3F3}.passedeven td {background-color: #0A0}.skippedodd td {background-color: #DDD}.skippedeven td {background-color: #CCC}.failedodd td,.attn {background-color: #F33}.failedeven td,.stripe .attn {background-color: #D00}.stacktrace {white-space:pre;font-family:monospace}.totop {font-size:85%;text-align:center;border-bottom:2px solid #000}</style></head><body><table><tr><th>Test</th><th># Passed</th><th># Skipped</th><th># Failed</th><th>Time (ms)</th><th>Included Groups</th><th>Excluded Groups</th></tr><tr><th colspan="7">testng</th></tr><tr><td><a href="#t0">test</a></td><td class="num">7</td><td class="num">0</td><td class="num">0</td><td class="num">34,925</td><td></td><td></td></tr></table><table><thead><tr><th>Class</th><th>Method</th><th>Start</th><th>Time (ms)</th></tr></thead><tbody><tr><th colspan="4">testng</th></tr></tbody><tbody id="t0"><tr><th colspan="4">test &#8212; passed</th></tr><tr class="passedeven"><td rowspan="7">com.example.seleniumtest.conferenceRoomTest.ConferenceActive</td><td><a href="#m0">deleteConferenceRoom</a></td><td rowspan="1">1638525315263</td><td rowspan="1">1446</td></tr><tr class="passedeven"><td><a href="#m1">findConferenceRoom</a></td><td rowspan="1">1638525308590</td><td rowspan="1">5470</td></tr><tr class="passedeven"><td><a href="#m2">findConferenceRoomNumber</a></td><td rowspan="1">1638525314060</td><td rowspan="1">1203</td></tr><tr class="passedeven"><td><a href="#m3">insertConferenceRoom</a></td><td rowspan="1">1638525302760</td><td rowspan="1">2802</td></tr><tr class="passedeven"><td><a href="#m4">insertConferenceRoomFailAll</a></td><td rowspan="1">1638525282492</td><td rowspan="1">17860</td></tr><tr class="passedeven"><td><a href="#m5">insertConferenceRoomOne</a></td><td rowspan="1">1638525300353</td><td rowspan="1">2407</td></tr><tr class="passedeven"><td><a href="#m6">updateConferenceRoom</a></td><td rowspan="1">1638525305562</td><td rowspan="1">3027</td></tr></tbody></table><h2>test</h2><h3 id="m0">com.example.seleniumtest.conferenceRoomTest.ConferenceActive#deleteConferenceRoom</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m1">com.example.seleniumtest.conferenceRoomTest.ConferenceActive#findConferenceRoom</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m2">com.example.seleniumtest.conferenceRoomTest.ConferenceActive#findConferenceRoomNumber</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m3">com.example.seleniumtest.conferenceRoomTest.ConferenceActive#insertConferenceRoom</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m4">com.example.seleniumtest.conferenceRoomTest.ConferenceActive#insertConferenceRoomFailAll</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m5">com.example.seleniumtest.conferenceRoomTest.ConferenceActive#insertConferenceRoomOne</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p><h3 id="m6">com.example.seleniumtest.conferenceRoomTest.ConferenceActive#updateConferenceRoom</h3><table class="result"></table><p class="totop"><a href="#summary">back to summary</a></p></body></html>
\ No newline at end of file
差异被折叠。
差异被折叠。
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitReportReporter -->
<testsuite name="com.example.seleniumtest.conferenceRoomTest.ConferenceActive" tests="7" time="34.215" ignored="0" failures="0" timestamp="03 十二月 2021 09:55:17 GMT" skipped="0" hostname="DESKTOP-R9I5LK7" errors="0">
<testcase name="deleteConferenceRoom" time="1.446" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="updateConferenceRoom" time="3.027" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="insertConferenceRoomFailAll" time="17.860" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="findConferenceRoom" time="5.470" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="insertConferenceRoomOne" time="2.407" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="insertConferenceRoom" time="2.802" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="findConferenceRoomNumber" time="1.203" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
</testsuite> <!-- com.example.seleniumtest.conferenceRoomTest.ConferenceActive -->
<html>
<head><title>Test results</title><link href="./testng.css" rel="stylesheet" type="text/css" />
<link href="./my-testng.css" rel="stylesheet" type="text/css" />
</head><body>
<h2><p align='center'>Test results</p></h2>
<table border='1' width='100%' class='main-page'><tr><th>Suite</th><th>Passed</th><th>Failed</th><th>Skipped</th><th>testng.xml</th></tr>
<tr align='center' class='invocation-passed'><td><em>Total</em></td><td><em>7</em></td><td><em>0</em></td><td><em>0</em></td><td>&nbsp;</td></tr>
<tr align='center' class='invocation-passed'><td><a href='testng/index.html'>testng</a></td>
<td>7</td><td>0</td><td>0</td><td><a href='testng/testng.xml.html'>Link</a></td></tr></table></body></html>
<table border='1'>
<tr>
<th>Class name</th>
<th>Method name</th>
<th>Groups</th>
</tr><tr>
<td>com.example.seleniumtest.conferenceRoomTest.ConferenceActive</td>
<td>&nbsp;</td><td>&nbsp;</td></tr>
<tr>
<td align='center' colspan='3'>@Test</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>updateConferenceRoom</td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>insertConferenceRoom</td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>deleteConferenceRoom</td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>findConferenceRoomNumber</td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>insertConferenceRoomOne</td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>findConferenceRoom</td>
<td>&nbsp;</td></tr>
<tr>
<td>&nbsp;</td>
<td>insertConferenceRoomFailAll</td>
<td>&nbsp;</td></tr>
<tr>
<td align='center' colspan='3'>@BeforeClass</td>
</tr>
<tr>
<td align='center' colspan='3'>@BeforeMethod</td>
</tr>
<tr>
<td align='center' colspan='3'>@AfterMethod</td>
</tr>
<tr>
<td align='center' colspan='3'>@AfterClass</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>quit</td>
<td>&nbsp;</td></tr>
</table>
<h2>Groups used for this test run</h2>
\ No newline at end of file
<html><head><title>Results for testng</title></head>
<frameset cols="26%,74%">
<frame src="toc.html" name="navFrame">
<frame src="main.html" name="mainFrame">
</frameset>
</html>
<html><head><title>Results for testng</title></head>
<body>Select a result on the left-hand pane.</body></html>
<h2>Methods run, sorted chronologically</h2><h3>&gt;&gt; means before, &lt;&lt; means after</h3><p/><br/><em>testng</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/>
<table border="1">
<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>configuration</th><th>Class<br>configuration</th><th>Groups<br>configuration</th><th>Method<br>configuration</th><th>Test<br>method</th><th>Thread</th><th>Instances</th></tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:15</td> <td>0</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.deleteConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">deleteConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:08</td> <td>-6673</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.findConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">findConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:14</td> <td>-1203</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.findConferenceRoomNumber()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">findConferenceRoomNumber()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:02</td> <td>-12503</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.insertConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">insertConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:54:42</td> <td>-32770</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.insertConferenceRoomFailAll()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">insertConferenceRoomFailAll()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:00</td> <td>-14910</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.insertConferenceRoomOne()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">insertConferenceRoomOne()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:16</td> <td>1446</td> <td>&nbsp;</td><td>&nbsp;</td><td title="&lt;&lt;ConferenceActive.quit()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">&lt;&lt;quit()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> <td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:05</td> <td>-9701</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.updateConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">updateConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
</table>
<h2>Methods that were not run</h2><table>
</table>
\ No newline at end of file
<h2>Methods run, sorted chronologically</h2><h3>&gt;&gt; means before, &lt;&lt; means after</h3><p/><br/><em>testng</em><p/><small><i>(Hover the method name to see the test class name)</i></small><p/>
<table border="1">
<tr><th>Time</th><th>Delta (ms)</th><th>Suite<br>configuration</th><th>Test<br>configuration</th><th>Class<br>configuration</th><th>Groups<br>configuration</th><th>Method<br>configuration</th><th>Test<br>method</th><th>Thread</th><th>Instances</th></tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:54:42</td> <td>0</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.insertConferenceRoomFailAll()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">insertConferenceRoomFailAll()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:00</td> <td>17860</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.insertConferenceRoomOne()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">insertConferenceRoomOne()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:02</td> <td>20267</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.insertConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">insertConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:05</td> <td>23069</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.updateConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">updateConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:08</td> <td>26097</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.findConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">findConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:14</td> <td>31567</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.findConferenceRoomNumber()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">findConferenceRoomNumber()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:15</td> <td>32770</td> <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td title="ConferenceActive.deleteConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">deleteConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>main@1473771722</td> <td></td> </tr>
<tr bgcolor="a097cc"> <td>21/12/03 17:55:16</td> <td>34216</td> <td>&nbsp;</td><td>&nbsp;</td><td title="&lt;&lt;ConferenceActive.quit()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]">&lt;&lt;quit()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS </td>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td> <td>main@1473771722</td> <td></td> </tr>
</table>
<h2>Reporter output</h2><table></table>
\ No newline at end of file
[SuiteResult context=test]
\ No newline at end of file
<html><head><title>testng.xml for testng</title></head><body><tt>&lt;?xml&nbsp;version="1.0"&nbsp;encoding="UTF-8"?&gt;<br/>&lt;!DOCTYPE&nbsp;suite&nbsp;SYSTEM&nbsp;"http://testng.org/testng-1.0.dtd"&gt;<br/>&lt;suite&nbsp;name="testng"&gt;<br/>&nbsp;&nbsp;&lt;listeners&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;listener&nbsp;class-name="com.example.seleniumtest.extentsreport.ExtentTestNGIReporterListener"/&gt;<br/>&nbsp;&nbsp;&lt;/listeners&gt;<br/>&nbsp;&nbsp;&lt;test&nbsp;name="test"&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;classes&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;class&nbsp;name="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;methods&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;include&nbsp;name="insertConferenceRoomFailAll"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;include&nbsp;name="insertConferenceRoomOne"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;include&nbsp;name="insertConferenceRoom"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;include&nbsp;name="updateConferenceRoom"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;include&nbsp;name="findConferenceRoom"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;include&nbsp;name="findConferenceRoomNumber"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;include&nbsp;name="deleteConferenceRoom"/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/methods&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/class&gt;&nbsp;&lt;!--&nbsp;com.example.seleniumtest.conferenceRoomTest.ConferenceActive&nbsp;--&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/classes&gt;<br/>&nbsp;&nbsp;&lt;/test&gt;&nbsp;&lt;!--&nbsp;test&nbsp;--&gt;<br/>&lt;/suite&gt;&nbsp;&lt;!--&nbsp;testng&nbsp;--&gt;<br/></tt></body></html>
\ No newline at end of file
<html>
<head>
<title>Results for testng</title>
<link href="../testng.css" rel="stylesheet" type="text/css" />
<link href="../my-testng.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h3><p align="center">Results for<br/><em>testng</em></p></h3>
<table border='1' width='100%'>
<tr valign='top'>
<td>1 test</td>
<td><a target='mainFrame' href='classes.html'>1 class</a></td>
<td>7 methods:<br/>
&nbsp;&nbsp;<a target='mainFrame' href='methods.html'>chronological</a><br/>
&nbsp;&nbsp;<a target='mainFrame' href='methods-alphabetical.html'>alphabetical</a><br/>
&nbsp;&nbsp;<a target='mainFrame' href='methods-not-run.html'>not run (0)</a></td>
</tr>
<tr>
<td><a target='mainFrame' href='groups.html'>0 group</a></td>
<td><a target='mainFrame' href='reporter-output.html'>reporter output</a></td>
<td><a target='mainFrame' href='testng.xml.html'>testng.xml</a></td>
</tr></table>
<table width='100%' class='test-passed'>
<tr><td>
<table style='width: 100%'><tr><td valign='top'>test (7/0/0)</td><td valign='top' align='right'>
<a href='test.html' target='mainFrame'>Results</a>
</td></tr></table>
</td></tr><p/>
</table>
</body></html>
\ No newline at end of file
body {
margin: 0px 0px 5px 5px;
}
ul {
margin: 0px;
}
li {
list-style-type: none;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.navigator-selected {
background: #ffa500;
}
.wrapper {
position: absolute;
top: 60px;
bottom: 0;
left: 400px;
right: 0;
overflow: auto;
}
.navigator-root {
position: absolute;
top: 60px;
bottom: 0;
left: 0;
width: 400px;
overflow-y: auto;
}
.suite {
margin: 0px 10px 10px 0px;
background-color: #fff8dc;
}
.suite-name {
padding-left: 10px;
font-size: 25px;
font-family: Times;
}
.main-panel-header {
padding: 5px;
background-color: #9FB4D9; //afeeee;
font-family: monospace;
font-size: 18px;
}
.main-panel-content {
padding: 5px;
margin-bottom: 10px;
background-color: #DEE8FC; //d0ffff;
}
.rounded-window {
border-radius: 10px;
border-style: solid;
border-width: 1px;
}
.rounded-window-top {
border-top-right-radius: 10px 10px;
border-top-left-radius: 10px 10px;
border-style: solid;
border-width: 1px;
overflow: auto;
}
.light-rounded-window-top {
border-top-right-radius: 10px 10px;
border-top-left-radius: 10px 10px;
}
.rounded-window-bottom {
border-style: solid;
border-width: 0px 1px 1px 1px;
border-bottom-right-radius: 10px 10px;
border-bottom-left-radius: 10px 10px;
overflow: auto;
}
.method-name {
font-size: 12px;
font-family: monospace;
}
.method-content {
border-style: solid;
border-width: 0px 0px 1px 0px;
margin-bottom: 10;
padding-bottom: 5px;
width: 80%;
}
.parameters {
font-size: 14px;
font-family: monospace;
}
.stack-trace {
white-space: pre;
font-family: monospace;
font-size: 12px;
font-weight: bold;
margin-top: 0px;
margin-left: 20px;
}
.testng-xml {
font-family: monospace;
}
.method-list-content {
margin-left: 10px;
}
.navigator-suite-content {
margin-left: 10px;
font: 12px 'Lucida Grande';
}
.suite-section-title {
margin-top: 10px;
width: 80%;
border-style: solid;
border-width: 1px 0px 0px 0px;
font-family: Times;
font-size: 18px;
font-weight: bold;
}
.suite-section-content {
list-style-image: url(bullet_point.png);
}
.top-banner-root {
position: absolute;
top: 0;
height: 45px;
left: 0;
right: 0;
padding: 5px;
margin: 0px 0px 5px 0px;
background-color: #0066ff;
font-family: Times;
color: #fff;
text-align: center;
}
.top-banner-title-font {
font-size: 25px;
}
.test-name {
font-family: 'Lucida Grande';
font-size: 16px;
}
.suite-icon {
padding: 5px;
float: right;
height: 20;
}
.test-group {
font: 20px 'Lucida Grande';
margin: 5px 5px 10px 5px;
border-width: 0px 0px 1px 0px;
border-style: solid;
padding: 5px;
}
.test-group-name {
font-weight: bold;
}
.method-in-group {
font-size: 16px;
margin-left: 80px;
}
table.google-visualization-table-table {
width: 100%;
}
.reporter-method-name {
font-size: 14px;
font-family: monospace;
}
.reporter-method-output-div {
padding: 5px;
margin: 0px 0px 5px 20px;
font-size: 12px;
font-family: monospace;
border-width: 0px 0px 0px 1px;
border-style: solid;
}
.ignored-class-div {
font-size: 14px;
font-family: monospace;
}
.ignored-methods-div {
padding: 5px;
margin: 0px 0px 5px 20px;
font-size: 12px;
font-family: monospace;
border-width: 0px 0px 0px 1px;
border-style: solid;
}
.border-failed {
border-top-left-radius: 10px 10px;
border-bottom-left-radius: 10px 10px;
border-style: solid;
border-width: 0px 0px 0px 10px;
border-color: #f00;
}
.border-skipped {
border-top-left-radius: 10px 10px;
border-bottom-left-radius: 10px 10px;
border-style: solid;
border-width: 0px 0px 0px 10px;
border-color: #edc600;
}
.border-passed {
border-top-left-radius: 10px 10px;
border-bottom-left-radius: 10px 10px;
border-style: solid;
border-width: 0px 0px 0px 10px;
border-color: #19f52d;
}
.times-div {
text-align: center;
padding: 5px;
}
.suite-total-time {
font: 16px 'Lucida Grande';
}
.configuration-suite {
margin-left: 20px;
}
.configuration-test {
margin-left: 40px;
}
.configuration-class {
margin-left: 60px;
}
.configuration-method {
margin-left: 80px;
}
.test-method {
margin-left: 100px;
}
.chronological-class {
background-color: #0ccff;
border-style: solid;
border-width: 0px 0px 1px 1px;
}
.method-start {
float: right;
}
.chronological-class-name {
padding: 0px 0px 0px 5px;
color: #008;
}
.after, .before, .test-method {
font-family: monospace;
font-size: 14px;
}
.navigator-suite-header {
font-size: 22px;
margin: 0px 10px 5px 0px;
background-color: #deb887;
text-align: center;
}
.collapse-all-icon {
padding: 5px;
float: right;
}
$(document).ready(function() {
$('a.navigator-link').click(function() {
// Extract the panel for this link
var panel = getPanelName($(this));
// Mark this link as currently selected
$('.navigator-link').parent().removeClass('navigator-selected');
$(this).parent().addClass('navigator-selected');
showPanel(panel);
});
installMethodHandlers('failed');
installMethodHandlers('skipped');
installMethodHandlers('passed', true); // hide passed methods by default
$('a.method').click(function() {
showMethod($(this));
return false;
});
// Hide all the panels and display the first one (do this last
// to make sure the click() will invoke the listeners)
$('.panel').hide();
$('.navigator-link').first().click();
// Collapse/expand the suites
$('a.collapse-all-link').click(function() {
var contents = $('.navigator-suite-content');
if (contents.css('display') == 'none') {
contents.show();
} else {
contents.hide();
}
});
});
// The handlers that take care of showing/hiding the methods
function installMethodHandlers(name, hide) {
function getContent(t) {
return $('.method-list-content.' + name + "." + t.attr('panel-name'));
}
function getHideLink(t, name) {
var s = 'a.hide-methods.' + name + "." + t.attr('panel-name');
return $(s);
}
function getShowLink(t, name) {
return $('a.show-methods.' + name + "." + t.attr('panel-name'));
}
function getMethodPanelClassSel(element, name) {
var panelName = getPanelName(element);
var sel = '.' + panelName + "-class-" + name;
return $(sel);
}
$('a.hide-methods.' + name).click(function() {
var w = getContent($(this));
w.hide();
getHideLink($(this), name).hide();
getShowLink($(this), name).show();
getMethodPanelClassSel($(this), name).hide();
});
$('a.show-methods.' + name).click(function() {
var w = getContent($(this));
w.show();
getHideLink($(this), name).show();
getShowLink($(this), name).hide();
showPanel(getPanelName($(this)));
getMethodPanelClassSel($(this), name).show();
});
if (hide) {
$('a.hide-methods.' + name).click();
} else {
$('a.show-methods.' + name).click();
}
}
function getHashForMethod(element) {
return element.attr('hash-for-method');
}
function getPanelName(element) {
return element.attr('panel-name');
}
function showPanel(panelName) {
$('.panel').hide();
var panel = $('.panel[panel-name="' + panelName + '"]');
panel.show();
}
function showMethod(element) {
var hashTag = getHashForMethod(element);
var panelName = getPanelName(element);
showPanel(panelName);
var current = document.location.href;
var base = current.substring(0, current.indexOf('#'))
document.location.href = base + '#' + hashTag;
var newPosition = $(document).scrollTop() - 65;
$(document).scrollTop(newPosition);
}
function drawTable() {
for (var i = 0; i < suiteTableInitFunctions.length; i++) {
window[suiteTableInitFunctions[i]]();
}
for (var k in window.suiteTableData) {
var v = window.suiteTableData[k];
var div = v.tableDiv;
var data = v.tableData
var table = new google.visualization.Table(document.getElementById(div));
table.draw(data, {
showRowNumber : false
});
}
}
<?xml version="1.0" encoding="UTF-8"?>
<testng-results skipped="0" failed="0" ignored="0" total="7" passed="7">
<reporter-output>
</reporter-output>
<suite name="testng" duration-ms="34925" started-at="2021-12-03T09:54:42Z" finished-at="2021-12-03T09:55:17Z">
<groups>
</groups>
<test name="test" duration-ms="34925" started-at="2021-12-03T09:54:42Z" finished-at="2021-12-03T09:55:17Z">
<class name="com.example.seleniumtest.conferenceRoomTest.ConferenceActive">
<test-method status="PASS" signature="insertConferenceRoomFailAll()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="insertConferenceRoomFailAll" duration-ms="17860" started-at="2021-12-03T17:54:42Z" description="都为空的新增" finished-at="2021-12-03T17:55:00Z">
<reporter-output>
</reporter-output>
</test-method> <!-- insertConferenceRoomFailAll -->
<test-method status="PASS" signature="insertConferenceRoomOne()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="insertConferenceRoomOne" duration-ms="2407" started-at="2021-12-03T17:55:00Z" description="不选规模的新增" finished-at="2021-12-03T17:55:02Z">
<reporter-output>
</reporter-output>
</test-method> <!-- insertConferenceRoomOne -->
<test-method status="PASS" signature="insertConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="insertConferenceRoom" duration-ms="2802" started-at="2021-12-03T17:55:02Z" description="新增会议室成功" finished-at="2021-12-03T17:55:05Z">
<reporter-output>
</reporter-output>
</test-method> <!-- insertConferenceRoom -->
<test-method status="PASS" signature="updateConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="updateConferenceRoom" duration-ms="3027" started-at="2021-12-03T17:55:05Z" description="修改会议室成功" finished-at="2021-12-03T17:55:08Z">
<reporter-output>
</reporter-output>
</test-method> <!-- updateConferenceRoom -->
<test-method status="PASS" signature="findConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="findConferenceRoom" duration-ms="5470" started-at="2021-12-03T17:55:08Z" description="会议室查询" finished-at="2021-12-03T17:55:14Z">
<reporter-output>
</reporter-output>
</test-method> <!-- findConferenceRoom -->
<test-method status="PASS" signature="findConferenceRoomNumber()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="findConferenceRoomNumber" duration-ms="1203" started-at="2021-12-03T17:55:14Z" description="查询错误人数" finished-at="2021-12-03T17:55:15Z">
<reporter-output>
</reporter-output>
</test-method> <!-- findConferenceRoomNumber -->
<test-method status="PASS" signature="deleteConferenceRoom()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="deleteConferenceRoom" duration-ms="1446" started-at="2021-12-03T17:55:15Z" description="会议室删除" finished-at="2021-12-03T17:55:16Z">
<reporter-output>
</reporter-output>
</test-method> <!-- deleteConferenceRoom -->
<test-method status="PASS" signature="quit()[pri:0, instance:ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))]" name="quit" is-config="true" duration-ms="695" started-at="2021-12-03T17:55:16Z" finished-at="2021-12-03T17:55:17Z">
<reporter-output>
</reporter-output>
</test-method> <!-- quit -->
</class> <!-- com.example.seleniumtest.conferenceRoomTest.ConferenceActive -->
</test> <!-- test -->
</suite> <!-- testng -->
</testng-results>
.invocation-failed, .test-failed { background-color: #DD0000; }
.invocation-percent, .test-percent { background-color: #006600; }
.invocation-passed, .test-passed { background-color: #00AA00; }
.invocation-skipped, .test-skipped { background-color: #CCCC00; }
.main-page {
font-size: x-large;
}
<html>
<head>
<title>TestNG: test</title>
<link href="../testng.css" rel="stylesheet" type="text/css" />
<link href="../my-testng.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.log { display: none;}
.stack-trace { display: none;}
</style>
<script type="text/javascript">
<!--
function flip(e) {
current = e.style.display;
if (current == 'block') {
e.style.display = 'none';
return 0;
}
else {
e.style.display = 'block';
return 1;
}
}
function toggleBox(szDivId, elem, msg1, msg2)
{
var res = -1; if (document.getElementById) {
res = flip(document.getElementById(szDivId));
}
else if (document.all) {
// this is the way old msie versions work
res = flip(document.all[szDivId]);
}
if(elem) {
if(res == 0) elem.innerHTML = msg1; else elem.innerHTML = msg2;
}
}
function toggleAllBoxes() {
if (document.getElementsByTagName) {
d = document.getElementsByTagName('div');
for (i = 0; i < d.length; i++) {
if (d[i].className == 'log') {
flip(d[i]);
}
}
}
}
// -->
</script>
</head>
<body>
<h2 align='center'>test</h2><table border='1' align="center">
<tr>
<td>Tests passed/Failed/Skipped:</td><td>7/0/0</td>
</tr><tr>
<td>Started on:</td><td>Fri Dec 03 17:54:42 CST 2021</td>
</tr>
<tr><td>Total time:</td><td>34 seconds (34925 ms)</td>
</tr><tr>
<td>Included groups:</td><td></td>
</tr><tr>
<td>Excluded groups:</td><td></td>
</tr>
</table><p/>
<small><i>(Hover the method name to see the test class name)</i></small><p/>
<table width='100%' border='1' class='invocation-passed'>
<tr><td colspan='4' align='center'><b>PASSED TESTS</b></td></tr>
<tr><td><b>Test method</b></td>
<td width="30%"><b>Exception</b></td>
<td width="10%"><b>Time (seconds)</b></td>
<td><b>Instance</b></td>
</tr>
<tr>
<td title='com.example.seleniumtest.conferenceRoomTest.ConferenceActive.deleteConferenceRoom()'><b>deleteConferenceRoom</b><br>Test class: com.example.seleniumtest.conferenceRoomTest.ConferenceActive<br>Test method: 会议室删除</td>
<td></td>
<td>1</td>
<td>ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (null))</td></tr>
<tr>
<td title='com.example.seleniumtest.conferenceRoomTest.ConferenceActive.findConferenceRoom()'><b>findConferenceRoom</b><br>Test class: com.example.seleniumtest.conferenceRoomTest.ConferenceActive<br>Test method: 会议室查询</td>
<td></td>
<td>5</td>
<td>ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (null))</td></tr>
<tr>
<td title='com.example.seleniumtest.conferenceRoomTest.ConferenceActive.findConferenceRoomNumber()'><b>findConferenceRoomNumber</b><br>Test class: com.example.seleniumtest.conferenceRoomTest.ConferenceActive<br>Test method: 查询错误人数</td>
<td></td>
<td>1</td>
<td>ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (null))</td></tr>
<tr>
<td title='com.example.seleniumtest.conferenceRoomTest.ConferenceActive.insertConferenceRoom()'><b>insertConferenceRoom</b><br>Test class: com.example.seleniumtest.conferenceRoomTest.ConferenceActive<br>Test method: 新增会议室成功</td>
<td></td>
<td>2</td>
<td>ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (null))</td></tr>
<tr>
<td title='com.example.seleniumtest.conferenceRoomTest.ConferenceActive.insertConferenceRoomFailAll()'><b>insertConferenceRoomFailAll</b><br>Test class: com.example.seleniumtest.conferenceRoomTest.ConferenceActive<br>Test method: 都为空的新增</td>
<td></td>
<td>17</td>
<td>ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (null))</td></tr>
<tr>
<td title='com.example.seleniumtest.conferenceRoomTest.ConferenceActive.insertConferenceRoomOne()'><b>insertConferenceRoomOne</b><br>Test class: com.example.seleniumtest.conferenceRoomTest.ConferenceActive<br>Test method: 不选规模的新增</td>
<td></td>
<td>2</td>
<td>ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (null))</td></tr>
<tr>
<td title='com.example.seleniumtest.conferenceRoomTest.ConferenceActive.updateConferenceRoom()'><b>updateConferenceRoom</b><br>Test class: com.example.seleniumtest.conferenceRoomTest.ConferenceActive<br>Test method: 修改会议室成功</td>
<td></td>
<td>3</td>
<td>ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (null))</td></tr>
</table><p>
</body>
</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by org.testng.reporters.JUnitXMLReporter -->
<testsuite hostname="DESKTOP-R9I5LK7" ignored="0" name="test" tests="7" failures="0" timestamp="03 十二月 2021 09:55:17 GMT" time="34.925" errors="0">
<testcase name="insertConferenceRoomFailAll on ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))" time="17.86" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="insertConferenceRoomOne on ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))" time="2.407" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="insertConferenceRoom on ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))" time="2.802" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="updateConferenceRoom on ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))" time="3.027" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="findConferenceRoom on ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))" time="5.47" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="findConferenceRoomNumber on ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))" time="1.203" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
<testcase name="deleteConferenceRoom on ConferenceActive(baseUrl=null, webDriver=FirefoxDriver: firefox on WINDOWS (1c60bdd6-9aea-460f-853b-16756fe22cfd))" time="1.446" classname="com.example.seleniumtest.conferenceRoomTest.ConferenceActive"/>
</testsuite> <!-- test -->
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论