我想直接在邮件正文中发送控制台输出而不是附件。 我已经用Java Selenium和testNG编写了一个脚本,可以从JIRA应用程序中提取一些信息,我的输出需要通过邮件发送。
这是我需要直接发送的控制台输出:-
[TestNG] Running:
C:\Users\rn3062\AppData\Local\Temp\testng-eclipse--80546773\testng-customsuite.xml
Starting ChromeDriver 2.46.628402 (536cd7adbad73a3783fdc2cab92ab2ba7ec361e1) on port 2419
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
Apr 01, 2019 10:54:09 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
*********************************GEA QA WIP Stories***********************************************
GEA-214 Part Usage Information - Main Screen and Headers for Callout Queue QA WIP
PASSED: QAWIP
===============================================
Default test
Tests run: 1, Failures: 0, Skips: 0
===============================================
===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 0
===============================================
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@156643d4: 131 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@7d6f77cc: 8 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@6f75e721: 14 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 18 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@41a4555e: 17 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@1175e2db: 39 ms