
I am consistently getting Blank Reports in Allure, when I run the reports following output is there.
Started by user test
Building in workspace C:\Users\MunchEm\workspace\AuditSource
[AuditSource] $ cmd.exe /C "mvn -f C:\Users\MunchEm\workspace\AuditSource\pom.xml clean test && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for AuditSource:AuditSource:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 79, column 11
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 92, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ----------------------< AuditSource:AuditSource >-----------------------
[INFO] Building AuditSource 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ AuditSource ---
[INFO] Deleting C:\Users\MunchEm\workspace\AuditSource\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ AuditSource ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\MunchEm\workspace\AuditSource\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ AuditSource ---
[WARNING] The POM for org.apache.xbean:xbean-reflect:jar:3.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\MunchEm\workspace\AuditSource\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ AuditSource ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\MunchEm\workspace\AuditSource\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ AuditSource ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\MunchEm\workspace\AuditSource\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ AuditSource ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
launching Google Chrome browser
Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 15700
Only local connections are allowed.
Apr 11, 2018 11:53:26 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
Apr 11, 2018 11:53:28 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Launching Audit Source AUT
Maximizing Browser Window
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 78.718 s <<< FAILURE! - in TestSuite
[ERROR] MyRequestsTest(AuditSource.AuditSource.RequestsTest) Time elapsed: 51.344 s <<< FAILURE!
org.openqa.selenium.NoSuchElementException:
no such element: Unable to locate element: {"method":"id","selector":"username"}
(Session info: chrome=65.0.3325.181)
(Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 49.93 seconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'MunchEm24', ip: '192.168.0.142', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_161'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91), userDataDir=C:\Windows\TEMP\scoped_dir6160_218}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=65.0.3325.181, platform=WIN8_1, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=false, acceptInsecureCerts=false, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]
Session ID: 7e4988f1b968607fdb01fae3832bf95f
*** Element info: {Using=id, value=username}
at AuditSource.AuditSource.RequestsTest.MyRequestsTest(RequestsTest.java:134)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] RequestsTest.MyRequestsTest:134 » NoSuchElement no such element: Unable to loc...
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:30 min
[INFO] Finished at: 2018-04-11T11:54:43+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project AuditSource: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\MunchEm\workspace\AuditSource\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
Skipping installation of https://bintray.com/qameta/generic/download_file?file_path=io%2Fqameta%2Fallure%2Fallure%2F2.6.0%2Fallure-2.6.0.zip to C:\Program Files (x86)\Jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\Allure: java.net.SocketTimeoutException: connect timed out
[AuditSource] $ "C:\Program Files (x86)\Jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\Allure\allure-2.6.0\bin\allure.bat" generate -c -o C:\Users\MunchEm\workspace\AuditSource\target\allure-report\data
allure-results does not exists
Report successfully generated to C:\Users\MunchEm\workspace\AuditSource\target\allure-report\data
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level C:\Program Files (x86)\Jenkins\workspace\mavendemo\allure-report to C:\Program Files (x86)\Jenkins\jobs\mavendemo\htmlreports\HTML_Report
Finished: FAILURE
I am consistently getting Blank Reports in Allure, when I run the reports following output is there.
Started by user test
Building in workspace C:\Users\MunchEm\workspace\AuditSource
[AuditSource] $ cmd.exe /C "mvn -f C:\Users\MunchEm\workspace\AuditSource\pom.xml clean test && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for AuditSource:AuditSource:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 79, column 11
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 92, column 11
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ----------------------< AuditSource:AuditSource >-----------------------
[INFO] Building AuditSource 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ AuditSource ---
[INFO] Deleting C:\Users\MunchEm\workspace\AuditSource\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ AuditSource ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\MunchEm\workspace\AuditSource\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ AuditSource ---
[WARNING] The POM for org.apache.xbean:xbean-reflect:jar:3.4 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\MunchEm\workspace\AuditSource\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ AuditSource ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\MunchEm\workspace\AuditSource\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ AuditSource ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\MunchEm\workspace\AuditSource\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.20:test (default-test) @ AuditSource ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
launching Google Chrome browser
Starting ChromeDriver 2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91) on port 15700
Only local connections are allowed.
Apr 11, 2018 11:53:26 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
Apr 11, 2018 11:53:28 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Launching Audit Source AUT
Maximizing Browser Window
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 78.718 s <<< FAILURE! - in TestSuite
[ERROR] MyRequestsTest(AuditSource.AuditSource.RequestsTest) Time elapsed: 51.344 s <<< FAILURE!
org.openqa.selenium.NoSuchElementException:
no such element: Unable to locate element: {"method":"id","selector":"username"}
(Session info: chrome=65.0.3325.181)
(Driver info: chromedriver=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 49.93 seconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:49:13 -0700'
System info: host: 'MunchEm24', ip: '192.168.0.142', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_161'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.36.540470 (e522d04694c7ebea4ba8821272dbef4f9b818c91), userDataDir=C:\Windows\TEMP\scoped_dir6160_218}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=65.0.3325.181, platform=WIN8_1, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=false, acceptInsecureCerts=false, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]
Session ID: 7e4988f1b968607fdb01fae3832bf95f
*** Element info: {Using=id, value=username}
at AuditSource.AuditSource.RequestsTest.MyRequestsTest(RequestsTest.java:134)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] RequestsTest.MyRequestsTest:134 » NoSuchElement no such element: Unable to loc...
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:30 min
[INFO] Finished at: 2018-04-11T11:54:43+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project AuditSource: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\MunchEm\workspace\AuditSource\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Invoke top-level Maven targets' marked build as failure
Skipping installation of https://bintray.com/qameta/generic/download_file?file_path=io%2Fqameta%2Fallure%2Fallure%2F2.6.0%2Fallure-2.6.0.zip to C:\Program Files (x86)\Jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\Allure: java.net.SocketTimeoutException: connect timed out
[AuditSource] $ "C:\Program Files (x86)\Jenkins\tools\ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation\Allure\allure-2.6.0\bin\allure.bat" generate -c -o C:\Users\MunchEm\workspace\AuditSource\target\allure-report\data
allure-results does not exists
Report successfully generated to C:\Users\MunchEm\workspace\AuditSource\target\allure-report\data
Allure report was successfully generated.
Creating artifact for the build.
Artifact was added to the build.
[htmlpublisher] Archiving HTML reports...
[htmlpublisher] Archiving at PROJECT level C:\Program Files (x86)\Jenkins\workspace\mavendemo\allure-report to C:\Program Files (x86)\Jenkins\jobs\mavendemo\htmlreports\HTML_Report
Finished: FAILURE