Maven build fails in Windows
When running mvn clean package in the crawljax directory on Windows, the build stops running during testing of the crawljax core. No errors are thrown, the command line just stops printing information in the middle of testing.
Hi @gzgreg Can you provide the command line logs when this happens (to find out the problematic test case)?
Here's all the testing logs up to where the build stops:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.crawljax.condition.browserwaiter.WaitConditionTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.118 sec - in com.crawljax.condition.browserwaiter.WaitConditionTest
Running com.crawljax.core.CandidateElementExtractorTest
Jul 06, 2014 3:37:51 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: c:\Program Files\PhantomJS\phantomjs-1.9.7-windows\phantomjs.exe
Jul 06, 2014 3:37:51 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 45998
Jul 06, 2014 3:37:51 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=45998, --webdriver-logfile=C:\Users\Gregory\Desktop\crawljax\core\phantomjsdriver.log]
Jul 06, 2014 3:37:51 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2014-07-06T22:38:05.712Z] Session [324f4cc0-055e-11e4-a5e9-3beba8761109
] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true
,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"localToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSec
[INFO - 2014-07-06T22:38:05.712Z] Session [324f4cc0-055e-11e4-a5e9-3beba8761109
[INFO - 2014-07-06T22:38:05.712Z] Session [324f4cc0-055e-11e4-a5e9-3beba8761109
] - Session.negotiatedCapabilities - "browserName":"phantomjs","version":"1.9.7","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"windows-8-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"prox
[INFO - 2014-07-06T22:38:05.713Z] SessionManagerReqHand - _postNewSessionComman
Jul 06, 2014 3:38:06 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: c:\Program Files\PhantomJS\phantomjs-1.9.7-windows\phantomjs.exe
Jul 06, 2014 3:38:06 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 21161
Jul 06, 2014 3:38:06 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=21161, --webdriver-logfile=C:\Users\Gregory\Desktop\crawljax\core\phantomjsdriver.log]
Jul 06, 2014 3:38:06 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2014-07-06T22:38:07.288Z] Session [333fee50-055e-11e4-a466-a511f0ea4b99
] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true
,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"loc
alToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW6
4) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSec
[INFO - 2014-07-06T22:38:07.288Z] Session [333fee50-055e-11e4-a466-a511f0ea4b99
[INFO - 2014-07-06T22:38:07.288Z] Session [333fee50-055e-11e4-a466-a511f0ea4b99
] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7
","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"windows-8-32bit
","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databas
eEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"
browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":f
alse,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"prox
[INFO - 2014-07-06T22:38:07.288Z] SessionManagerReqHand - _postNewSessionComman
Jul 06, 2014 3:38:07 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <in
it>
INFO: executable: c:\Program Files\PhantomJS\phantomjs-1.9.7-windows\phantomjs.e
xe
Jul 06, 2014 3:38:07 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <in
it>
INFO: port: 37255
Jul 06, 2014 3:38:07 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <in
it>
INFO: arguments: [--webdriver=37255, --webdriver-logfile=C:\Users\Gregory\Deskto
p\crawljax\core\phantomjsdriver.log]
Jul 06, 2014 3:38:07 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <in
it>
INFO: environment: {}
[INFO - 2014-07-06T22:38:08.416Z] Session [33ebe5c0-055e-11e4-a697-23869340e717
] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true
,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"loc
alToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW6
4) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSec
[INFO - 2014-07-06T22:38:08.416Z] Session [33ebe5c0-055e-11e4-a697-23869340e717
[INFO - 2014-07-06T22:38:08.416Z] Session [33ebe5c0-055e-11e4-a697-23869340e717
] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7
","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"windows-8-32bit
","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databas
eEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"
browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"prox
[INFO - 2014-07-06T22:38:08.416Z] SessionManagerReqHand - _postNewSessionComman
Jul 06, 2014 3:38:08 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: c:\Program Files\PhantomJS\phantomjs-1.9.7-windows\phantomjs.exe
Jul 06, 2014 3:38:08 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 17473
Jul 06, 2014 3:38:08 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=17473, --webdriver-logfile=C:\Users\Gregory\Desktop\crawljax\core\phantomjsdriver.log]
Jul 06, 2014 3:38:08 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2014-07-06T22:38:09.463Z] Session [348ba830-055e-11e4-ad4d-cdfd2ff00c5f] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true
,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"loc
alToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW6
4) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSec
[INFO - 2014-07-06T22:38:09.463Z] Session [348ba830-055e-11e4-ad4d-cdfd2ff00c5f
[INFO - 2014-07-06T22:38:09.463Z] Session [348ba830-055e-11e4-ad4d-cdfd2ff00c5f] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"windows-8-32bit","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databaseEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":false,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"prox
[INFO - 2014-07-06T22:38:09.463Z] SessionManagerReqHand - _postNewSessionComman
Jul 06, 2014 3:38:09 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: executable: c:\Program Files\PhantomJS\phantomjs-1.9.7-windows\phantomjs.exe
Jul 06, 2014 3:38:09 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: port: 7281
Jul 06, 2014 3:38:09 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: arguments: [--webdriver=7281, --webdriver-logfile=C:\Users\Gregory\Desktop
\crawljax\core\phantomjsdriver.log]
Jul 06, 2014 3:38:09 PM org.openqa.selenium.phantomjs.PhantomJSDriverService <init>
INFO: environment: {}
[INFO - 2014-07-06T22:38:10.782Z] Session [3554eba0-055e-11e4-b7eb-3d4318e4a582] - page.settings - {"XSSAuditingEnabled":false,"javascriptCanCloseWindows":true
,"javascriptCanOpenWindows":true,"javascriptEnabled":true,"loadImages":true,"loc
alToRemoteUrlAccessEnabled":false,"userAgent":"Mozilla/5.0 (Windows NT 6.2; WOW6
4) AppleWebKit/534.34 (KHTML, like Gecko) PhantomJS/1.9.7 Safari/534.34","webSec
[INFO - 2014-07-06T22:38:10.782Z] Session [3554eba0-055e-11e4-b7eb-3d4318e4a582
[INFO - 2014-07-06T22:38:10.782Z] Session [3554eba0-055e-11e4-b7eb-3d4318e4a582] - Session.negotiatedCapabilities - {"browserName":"phantomjs","version":"1.9.7
","driverName":"ghostdriver","driverVersion":"1.1.0","platform":"windows-8-32bit
","javascriptEnabled":true,"takesScreenshot":true,"handlesAlerts":false,"databas
eEnabled":false,"locationContextEnabled":false,"applicationCacheEnabled":false,"
browserConnectionEnabled":false,"cssSelectorsEnabled":true,"webStorageEnabled":f
alse,"rotatable":false,"acceptSslCerts":false,"nativeEvents":true,"proxy":{"prox
[INFO - 2014-07-06T22:38:10.782Z] SessionManagerReqHand - _postNewSessionComman
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.366 sec - in com.crawljax.core.CandidateElementExtractorTest
15:38:15.205 [main] WARN com.crawljax.core.plugin.Plugins - No plugins loaded. There will be no output
Running com.crawljax.core.CrawlControllerTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.135 sec - in com.crawljax.core.CrawlControllerTest
15:38:15.285 [main] WARN com.crawljax.core.plugin.Plugins - No plugins loaded. There will be no output
Running com.crawljax.core.CrawlerTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec - in com.crawljax.core.CrawlerTest
Running com.crawljax.core.plugin.PluginsTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in com.crawljax.core.plugin.PluginsTest
Running com.crawljax.core.state.StateMachineTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.067 sec - in com.crawljax.core.state.StateMachineTest
I get the follow error while building it for the first time on Windows 8.
[INFO] ------------------------------------------------------------------------
[INFO] Building Crawljax core 3.7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/pl/project13/maven/git-commit-id-plugin/2.1.10/git-commit-id-plugin-2.1.10.pom
Downloaded: https://repo.maven.apache.org/maven2/pl/project13/maven/git-commit-id-plugin/2.1.10/git-commit-id-plugin-2.1.10.pom (10 KB at 88.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/pl/project13/maven/git-commit-id-plugin/2.1.10/git-commit-id-plugin-2.1.10.jar
Downloaded: https://repo.maven.apache.org/maven2/pl/project13/maven/git-commit-id-plugin/2.1.10/git-commit-id-plugin-2.1.10.jar (62 KB at 204.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.pom (5 KB at 52.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.17/surefire-2.17.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire/2.17/surefire-2.17.pom (17 KB at 135.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.jar (34 KB at 195.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-firefox-driver/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-firefox-driver/maven-metadata.xml
[WARNING] Checksum validation failed, expected a2d0e86afbc68591d4976b283aa40df55b02c9ac but is 311b06652a94d144d88646e540cd1ed28207d59d for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-firefox-dri
ver/maven-metadata.xml
[WARNING] Could not validate integrity of download from https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-firefox-driver/maven-metadata.xml: Checksum validation failed, expected a2d0e86afbc68591d4976b2
83aa40df55b02c9ac but is 311b06652a94d144d88646e540cd1ed28207d59d
[WARNING] Checksum validation failed, expected a2d0e86afbc68591d4976b283aa40df55b02c9ac but is 311b06652a94d144d88646e540cd1ed28207d59d for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-firefox-dri
ver/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-firefox-driver/maven-metadata.xml (3 KB at 12.1 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-firefox-driver/maven-metadata.xml (383 B at 0.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-chrome-driver/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-chrome-driver/maven-metadata.xml
[WARNING] Checksum validation failed, expected 8234794ae92780ed2411c63f1be56c66da1fae17 but is a8521a2f7f424b68e745c209a5e640c59ca96287 for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-chrome-driv
er/maven-metadata.xml
[WARNING] Could not validate integrity of download from https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-chrome-driver/maven-metadata.xml: Checksum validation failed, expected 8234794ae92780ed2411c63f
1be56c66da1fae17 but is a8521a2f7f424b68e745c209a5e640c59ca96287
[WARNING] Checksum validation failed, expected 8234794ae92780ed2411c63f1be56c66da1fae17 but is a8521a2f7f424b68e745c209a5e640c59ca96287 for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-chrome-driv
er/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-chrome-driver/maven-metadata.xml (3 KB at 12.1 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-chrome-driver/maven-metadata.xml (382 B at 1.6 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-ie-driver/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-ie-driver/maven-metadata.xml
[WARNING] Checksum validation failed, expected 7ac15f80036f213882776fbd815b648de0a2b3b9 but is 20eaa3d59cde5f9cc7ab32febe8efe9aca61d9ca for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-ie-driver/m
aven-metadata.xml
[WARNING] Could not validate integrity of download from https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-ie-driver/maven-metadata.xml: Checksum validation failed, expected 7ac15f80036f213882776fbd815b
648de0a2b3b9 but is 20eaa3d59cde5f9cc7ab32febe8efe9aca61d9ca
[WARNING] Checksum validation failed, expected 7ac15f80036f213882776fbd815b648de0a2b3b9 but is 20eaa3d59cde5f9cc7ab32febe8efe9aca61d9ca for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-ie-driver/m
aven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-ie-driver/maven-metadata.xml (3 KB at 12.1 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-ie-driver/maven-metadata.xml (378 B at 1.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-support/maven-metadata.xml
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-support/maven-metadata.xml
[WARNING] Checksum validation failed, expected 3198912907787b3d9d2569ea433c56397ef115fc but is 25480332034f0d67130f45255b9efe0c87d42fb3 for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-support/mav
en-metadata.xml
[WARNING] Could not validate integrity of download from https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-support/maven-metadata.xml: Checksum validation failed, expected 3198912907787b3d9d2569ea433c56
397ef115fc but is 25480332034f0d67130f45255b9efe0c87d42fb3
[WARNING] Checksum validation failed, expected 3198912907787b3d9d2569ea433c56397ef115fc but is 25480332034f0d67130f45255b9efe0c87d42fb3 for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-support/mav
en-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-support/maven-metadata.xml (3 KB at 12.1 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-support/maven-metadata.xml (376 B at 1.6 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-remote-driver/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-remote-driver/maven-metadata.xml
[WARNING] Checksum validation failed, expected 2210e7db46aa624d36a688d9719e942cf49446c1 but is cb1ee1d5d81e8be678abb2f1bf4204e2428e96d8 for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-remote-driv
er/maven-metadata.xml
[WARNING] Could not validate integrity of download from https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-remote-driver/maven-metadata.xml: Checksum validation failed, expected 2210e7db46aa624d36a688d9
719e942cf49446c1 but is cb1ee1d5d81e8be678abb2f1bf4204e2428e96d8
[WARNING] Checksum validation failed, expected 2210e7db46aa624d36a688d9719e942cf49446c1 but is cb1ee1d5d81e8be678abb2f1bf4204e2428e96d8 for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-remote-driv
er/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-remote-driver/maven-metadata.xml (3 KB at 10.4 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-remote-driver/maven-metadata.xml (382 B at 1.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-server/9.3.0.M1/jetty-server-9.3.0.M1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-server/9.3.0.M1/jetty-server-9.3.0.M1.pom (4 KB at 11.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.3.0.M1/jetty-project-9.3.0.M1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-project/9.3.0.M1/jetty-project-9.3.0.M1.pom (35 KB at 221.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/23/jetty-parent-23.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-parent/23/jetty-parent-23.pom (22 KB at 171.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.pom
Downloaded: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.pom (14 KB at 105.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-http/9.3.0.M1/jetty-http-9.3.0.M1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-http/9.3.0.M1/jetty-http-9.3.0.M1.pom (2 KB at 16.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-util/9.3.0.M1/jetty-util-9.3.0.M1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-util/9.3.0.M1/jetty-util-9.3.0.M1.pom (3 KB at 26.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-io/9.3.0.M1/jetty-io-9.3.0.M1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-io/9.3.0.M1/jetty-io-9.3.0.M1.pom (2 KB at 14.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-security/9.3.0.M1/jetty-security-9.3.0.M1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-security/9.3.0.M1/jetty-security-9.3.0.M1.pom (2 KB at 15.0 KB/sec)
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-java/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/maven-metadata.xml
[WARNING] Checksum validation failed, expected 95af8eb421ad95f00e4fdaee8ae09756bf1704a0 but is 7487f733b4b186a73dedac1781702de1ceb34a8f for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/maven-
metadata.xml
[WARNING] Could not validate integrity of download from https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/maven-metadata.xml: Checksum validation failed, expected 95af8eb421ad95f00e4fdaee8ae09756b
f1704a0 but is 7487f733b4b186a73dedac1781702de1ceb34a8f
[WARNING] Checksum validation failed, expected 95af8eb421ad95f00e4fdaee8ae09756bf1704a0 but is 7487f733b4b186a73dedac1781702de1ceb34a8f for https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/maven-
metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/maven-metadata.xml (3 KB at 9.9 KB/sec)
Downloaded: https://oss.sonatype.org/content/repositories/snapshots/org/seleniumhq/selenium/selenium-java/maven-metadata.xml (373 B at 1.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/2.45.0/selenium-java-2.45.0.pom
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/2.45.0/selenium-java-2.45.0.pom (5 KB at 43.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-safari-driver/2.45.0/selenium-safari-driver-2.45.0.pom
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-safari-driver/2.45.0/selenium-safari-driver-2.45.0.pom (4 KB at 32.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-leg-rc/2.45.0/selenium-leg-rc-2.45.0.pom
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-leg-rc/2.45.0/selenium-leg-rc-2.45.0.pom (5 KB at 49.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-server/9.3.0.M1/jetty-server-9.3.0.M1.jar
Downloading: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-util/9.3.0.M1/jetty-util-9.3.0.M1.jar
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-http/9.3.0.M1/jetty-http-9.3.0.M1.jar
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-io/9.3.0.M1/jetty-io-9.3.0.M1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-io/9.3.0.M1/jetty-io-9.3.0.M1.jar (106 KB at 260.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-security/9.3.0.M1/jetty-security-9.3.0.M1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-http/9.3.0.M1/jetty-http-9.3.0.M1.jar (109 KB at 240.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/2.45.0/selenium-java-2.45.0.jar
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-java/2.45.0/selenium-java-2.45.0.jar (3 KB at 3.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-safari-driver/2.45.0/selenium-safari-driver-2.45.0.jar
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-security/9.3.0.M1/jetty-security-9.3.0.M1.jar (92 KB at 142.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-leg-rc/2.45.0/selenium-leg-rc-2.45.0.jar
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-leg-rc/2.45.0/selenium-leg-rc-2.45.0.jar (398 KB at 344.2 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-util/9.3.0.M1/jetty-util-9.3.0.M1.jar (347 KB at 292.3 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar (94 KB at 77.9 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-server/9.3.0.M1/jetty-server-9.3.0.M1.jar (423 KB at 352.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/seleniumhq/selenium/selenium-safari-driver/2.45.0/selenium-safari-driver-2.45.0.jar (298 KB at 244.3 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ crawljax-core ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ crawljax-core ---
[INFO]
[INFO] --- git-commit-id-plugin:2.1.10:revision (default) @ crawljax-core ---
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.2.3/jackson-databind-2.2.3.pom
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.2.3/jackson-databind-2.2.3.pom (6 KB at 56.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/11/oss-parent-11.pom
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/11/oss-parent-11.pom (23 KB at 160.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.2.3/jackson-annotations-2.2.3.pom
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.2.3/jackson-annotations-2.2.3.pom (2 KB at 13.2 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/10/oss-parent-10.pom
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/oss-parent/10/oss-parent-10.pom (23 KB at 181.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.2.3/jackson-core-2.2.3.pom
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.2.3/jackson-core-2.2.3.pom (6 KB at 62.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/inject/guice/2.0/guice-2.0.pom
Downloaded: https://repo.maven.apache.org/maven2/com/google/inject/guice/2.0/guice-2.0.pom (771 B at 8.1 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/inject/guice-parent/2.0/guice-parent-2.0.pom
Downloaded: https://repo.maven.apache.org/maven2/com/google/inject/guice-parent/2.0/guice-parent-2.0.pom (3 KB at 26.8 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4.pom
Downloaded: https://repo.maven.apache.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4.pom (13 KB at 135.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.pom
Downloaded: https://repo.maven.apache.org/maven2/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.pom (7 KB at 70.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.pom
Downloaded: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.pom (15 KB at 160.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/intellij/annotations/9.0.4/annotations-9.0.4.pom
Downloaded: https://repo.maven.apache.org/maven2/com/intellij/annotations/9.0.4/annotations-9.0.4.pom (2 KB at 12.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jgit/org.eclipse.jgit/2.0.0.201206130900-r/org.eclipse.jgit-2.0.0.201206130900-r.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jgit/org.eclipse.jgit/2.0.0.201206130900-r/org.eclipse.jgit-2.0.0.201206130900-r.pom (6 KB at 62.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jgit/org.eclipse.jgit-parent/2.0.0.201206130900-r/org.eclipse.jgit-parent-2.0.0.201206130900-r.pom
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jgit/org.eclipse.jgit-parent/2.0.0.201206130900-r/org.eclipse.jgit-parent-2.0.0.201206130900-r.pom (16 KB at 167.4 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.pom
Downloaded: https://repo.maven.apache.org/maven2/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.pom (4 KB at 35.3 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.2.3/jackson-databind-2.2.3.jar
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.2.3/jackson-annotations-2.2.3.jar
Downloading: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.2.3/jackson-core-2.2.3.jar
Downloading: https://repo.maven.apache.org/maven2/com/google/inject/guice/2.0/guice-2.0.jar
Downloading: https://repo.maven.apache.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-annotations/2.2.3/jackson-annotations-2.2.3.jar (33 KB at 174.9 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar
Downloaded: https://repo.maven.apache.org/maven2/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar (156 KB at 709.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar
Downloaded: https://repo.maven.apache.org/maven2/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar (85 KB at 180.5 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.jar
Downloaded: https://repo.maven.apache.org/maven2/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar (226 KB at 353.0 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/google/guava/guava/15.0/guava-15.0.jar
Downloaded: https://repo.maven.apache.org/maven2/joda-time/joda-time/2.0/joda-time-2.0.jar (556 KB at 474.7 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/intellij/annotations/9.0.4/annotations-9.0.4.jar
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-core/2.2.3/jackson-core-2.2.3.jar (189 KB at 156.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/org/eclipse/jgit/org.eclipse.jgit/2.0.0.201206130900-r/org.eclipse.jgit-2.0.0.201206130900-r.jar
Downloaded: https://repo.maven.apache.org/maven2/com/intellij/annotations/9.0.4/annotations-9.0.4.jar (10 KB at 7.6 KB/sec)
Downloading: https://repo.maven.apache.org/maven2/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar
Downloaded: https://repo.maven.apache.org/maven2/com/google/inject/guice/2.0/guice-2.0.jar (652 KB at 496.2 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/jcraft/jsch/0.1.44-1/jsch-0.1.44-1.jar (209 KB at 132.4 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.2.3/jackson-databind-2.2.3.jar (846 KB at 475.0 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/com/google/guava/guava/15.0/guava-15.0.jar (2122 KB at 697.1 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/eclipse/jgit/org.eclipse.jgit/2.0.0.201206130900-r/org.eclipse.jgit-2.0.0.201206130900-r.jar (1542 KB at 341.7 KB/sec)
java.lang.RuntimeException: Cannot create custom git properties file: C:\Projects\crawljax\core\C:\Projects\crawljax\core\target\classes\git.properties
at pl.project13.maven.git.GitCommitIdMojo.generatePropertiesFile(GitCommitIdMojo.java:508)
at pl.project13.maven.git.GitCommitIdMojo.execute(GitCommitIdMojo.java:323)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:414)
at java.io.File.getCanonicalPath(File.java:618)
at java.io.File.getCanonicalFile(File.java:643)
at com.google.common.io.Files.createParentDirs(Files.java:640)
at pl.project13.maven.git.GitCommitIdMojo.generatePropertiesFile(GitCommitIdMojo.java:495)
... 22 more
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Crawljax parent POM ................................ SUCCESS [ 15.175 s]
[INFO] Crawljax core ...................................... FAILURE [ 15.340 s]
[INFO] Crawljax test utilities ............................ SKIPPED
[INFO] Crawljax plugins parent POM ........................ SKIPPED
[INFO] Crawl Overview Plugin .............................. SKIPPED
[INFO] Crawljax CLI ....................................... SKIPPED
[INFO] Crawljax Examples .................................. SKIPPED
[INFO] Test Plugin ........................................ SKIPPED
[INFO] Crawljax plugins archetype ......................... SKIPPED
[INFO] Crawljax web interface ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.811 s
[INFO] Finished at: 2015-03-01T20:28:29-05:00
[INFO] Final Memory: 23M/489M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.10:revision (default) on project crawljax-core: Could not complete Mojo execution... Cannot create custom git properties file: C:\Projects\crawlja
x\core\C:\Projects\crawljax\core\target\classes\git.properties: The filename, directory name, or volume label syntax is incorrect -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
@parker20121 I have the same problem
[INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Crawljax parent POM ................................ SUCCESS [01:20 min] [INFO] Crawljax core ...................................... FAILURE [ 2.251 s] [INFO] Crawljax test utilities ............................ SKIPPED [INFO] Crawljax plugins parent POM ........................ SKIPPED [INFO] Crawl Overview Plugin .............................. SKIPPED [INFO] Crawljax CLI ....................................... SKIPPED [INFO] Crawljax Examples .................................. SKIPPED [INFO] Test Plugin ........................................ SKIPPED [INFO] Crawljax plugins archetype ......................... SKIPPED [INFO] Crawljax web interface ............................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:23 min [INFO] Finished at: 2015-05-18T10:22:26+08:00 [INFO] Final Memory: 22M/161M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal pl.project13.maven:git-commit-id-plugin:2.1.10:re vision (default) on project crawljax-core: Could not complete Mojo execution... Cannot create custom git properties file: E:\project\java\crawljax\core\E:\proje ct\java\crawljax\core\target\classes\git.properties: Unable to create parent dir ectories of E:\project\java\crawljax\core\E:\project\java\crawljax\core\target\c lasses\git.properties -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit ch. [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 rea d the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE xception [ERROR] [ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
@parker20121 I have the same problem too!
From what we can see on the error messages, it was a problem caused by pl.project13.maven:git-commit-id-plugin:2.1.10:revision (default). For some reason, it was not being able to create a valid path for one of their files:
Example: C:\Projects\crawljax\core\C:\Projects\crawljax\core\target\classes\git.properties
I was able to reproduce the problem on my computer and solve it by updating git-commit-id-plugin from 2.1.10 to its latest version: 2.1.15. This relates to #428
However, now I am having problems with a test case:
Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE! - in com.crawljax.core.configuration.CrawljaxConfigurationBuilderTest
ifCannotCreateOutputFolderReject(com.crawljax.core.configuration.CrawljaxConfigurationBuilderTest) Time elapsed: 0.009 sec <<< FAILURE!
java.lang.AssertionError: Expected exception: java.lang.IllegalStateException
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:32)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:318)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Results :
Failed tests:
CrawljaxConfigurationBuilderTest.ifCannotCreateOutputFolderReject Expected exception: java.lang.IllegalStateException
Tests run: 255, Failures: 1, Errors: 0, Skipped: 9
--- Failed test
@Test(expected = IllegalStateException.class)
public void ifCannotCreateOutputFolderReject() throws Exception {
File file = new File("/this/should/not/be/writable");
testBuilder().setOutputDirectory(file).build();
}
So, the problem with the error I mentioned on my last comment is that "/this/should/not/be/writable" is actually a writable path on Windows 8. I am not sure exactly what the purpose of this test case is (test permission? valid paths?), but we could either find a path that is not valid on both *nix and Windows systems, or make the test case environment dependent (?).
There still one more error that fails when trying to build it:
Tests run: 6, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 13.525 sec <<< FAILURE! - in com.crawljax.plugins.crawloverview.OverviewIntegrationTest
whenOpenedGraphIsShownAndBrandIsPresent(com.crawljax.plugins.crawloverview.OverviewIntegrationTest) Time elapsed: 1.769 sec <<< FAILURE!
java.lang.AssertionError:
Expected: not a string containing "${"
but: was "<!DOCTYPE html>\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\"><head>\n<meta charset=\"UTF-8\" />\n<title>Crawl overview</title>\n<meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\" />\n<meta content=\"CrawlJax\" name=\"author\" />\n<link rel=\"stylesheet\" href=\"./css/bootstrap.min.css\" />\n<link rel=\"stylesheet\" href=\"./css/bootstrap-responsive.min.css\" />\n<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->\n<!--[if lt IE 9]>\n\t<script src=\"http://html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n\t<![endif]-->\n<style>\nhtml,body {\n\theight: 100%;\n}\n\n#wrap {\n\tmin-height: 100%;\n\theight: auto !important;\n\theight: 100%;\n\tmargin: 0 auto -40px;\t\n}\n\n#push, footer {\n\theight: 40px;\n}\n\nfooter {\n\tbackground-color: #f5f5f5;\n}\n\nfooter small {\n\tdisplay: inline;\n\tmargin-top: 10px;\n}\n\n.url-table td {\n\tword-wrap: break-word;\n\tmax-width: 700px;\n}\n\n@media (max-width: 979px) and (min-width: 768px) {\n\t.url-table td {\n\t\tmax-width: 500px;\n\t}\n}\n\n@media ( max-width : 767px) {\n\t#footer {\n\t\tmargin-left: -20px;\n\t\tmargin-right: -20px;\n\t\tpadding-left: 20px;\n\t\tpadding-right: 20px;\n\t}\n\t\n\t.url-table td {\n\t\tmax-width: 450px;\n\t}\n}\n\n\n#wrap>.container {\n\tpadding-top: 60px;\n}\n\n.panel-right {\n\tposition: absolute;\n\tright: 10px;\n\ttop: 70px;\n\tleft: auto;\n\tdisplay: block;\n\tbackground-color: rgb(255, 255, 255);\n\tbackground-color: rgba(255, 255, 255, .9);\n\tmax-width: 300px;\n}\n\n.panel-right dd {\n\ttext-transform: capitalize;\n\tword-wrap: break-word;\n}\n</style>\n</head>\n<body>\n\n\t<div id=\"wrap\">\n\t\t<nav class=\"navbar navbar-fixed-top\">\n\t<div class=\"navbar-inner\">\n\t\t<div class=\"container\">\n\t\t\t\t\t\t\t<a href=\"#\" class=\"brand\">Crawl overview</a>\n\t\t\t\t\t\t<ul class=\"nav\">\n\t\t\t\t\t\t\t\t\t<li class=\"active\"><a href=\"#graph\">State graph</a></li>\n\t\t\t\t\t<li><a href=\"#statistics\">Statistics</a></li>\n\t\t\t\t\t<li><a href=\"#urls\">URL's</a></li>\n\t\t\t\t\t<li><a href=\"#config\">Configuration</a></li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t<div class=\"nav pull-right\">\n\t\t\t\t<a title=\"\" data-placement=\"bottom\" data-toggle=\"tooltip\" id=\"pauseButton\" class=\"btn graphBtn\" href=\"#\" data-original-title=\"Pause the graph movement\"><i class=\"icon-pause\"></i></a>\n\t\t\t\t<a data-original-title=\"What to do\" data-placement=\"bottom\" rel=\"popover\" class=\"btn graphBtn\" href=\"#\"><i class=\"icon-question-sign\"></i></a>\n\t\t\t\t<div id=\"popup-content\" style=\"display: none\">\n\t\t\t\t\t<p>You can double click a state to inspect it further.</p>\n\t\t\t\t\t<p>Clicking an edge gives more details on the state transition.</p>\n\t\t\t\t\t<p>Use your mouse to zoom in and out by scrolling, or drag the states and view around.</p>\n\t\t\t\t</div>\n\t\t\t\t<a title=\"\" data-placement=\"bottom\" data-toggle=\"tooltip\" class=\"btn\" href=\"result.json\" data-original-title=\"Download result as JSON\"><i class=\"icon-download\"></i></a>\n\t\t\t</div>\n\t\t\t<!--/.nav-collapse -->\n\t\t</div>\n\t</div>\n</nav>\t\t<div style=\"width: 100%; padding-top: 40px; height: 606px; display: block;\" id=\"container-graph\" class=\"container page\">\n\t\t\t<div class=\"popover fade panel-right\">\n\t\t\t\t<div class=\"popover-inner\">\n\t\t\t\t\t<h3 class=\"popover-title\">Edge info</h3>\n\t\t\t\t\t<div class=\"popover-content\">\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Element name</dt>\n\t\t\t\t\t\t\t<dd name=\"elemName\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>From</dt>\n\t\t\t\t\t\t\t<dd name=\"from\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>To</dt>\n\t\t\t\t\t\t\t<dd name=\"to\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Identified by</dt>\n\t\t\t\t\t\t\t<dd name=\"id\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Element</dt>\n\t\t\t\t\t\t\t<dd style=\"text-transform: none;\" name=\"element\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Event type</dt>\n\t\t\t\t\t\t\t<dd name=\"eventType\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<button id=\"hideButton\" class=\"btn btn-small\">Hide</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: 606px;\"><g buffered-rendering=\"dynamic\" transform=\"matrix(1, 0, 0,1,713,20)\"><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M23.20099906417323,133.62168206480487L142.69116654231513,156.0748571398855\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M20.389680514426303,14.830868101649315L178.76926095732182,-148.13006323268883\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M178.76926095732182,-148.13006323268883L20.389680514426303,14.830868101649315\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M250.55573187120714,74.865671103041L268.09337707868303,-148.13006323268885\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M-89.26322206745482,-236.23081179113802L161.94263124160844,74.86567110304101\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M161.94263124160844,74.86567110304101L-89.26322206745482,-236.23081179113802\"/><g transform=\"translate(-176.79900093582677,14.830868101649315)\"><text y=\"-4px\">state4</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/state4_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g><g transform=\"translate(175.95794240757493,-348.1300632326888)\"><text y=\"-4px\">state3</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/state3_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g><g transform=\"translate(-270.0117573681615,-436.230811791138)\"><text y=\"-4px\">state1</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/state1_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g><g transform=\"translate(142.69116654231513,74.865671103041)\"><text y=\"-4px\">index</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/index_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g></g><defs><marker id=\"Triangle\" viewBox=\"0 0 10 10\" refX=\"10\" refY=\"5\" markerUnits=\"strokeWidth\" markerWidth=\"10\" markerHeight=\"5\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" stroke=\"grey\"/></marker></defs></svg></div>\n\t\t<div style=\"display: none;\" id=\"container-statistics\" class=\"container page\">\n\t\t\t\n<section id=\"crawlResults\">\n\t<div class=\"page-header\">\n\t\t<h1>Crawl results</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<th>Crawl time</th>\n\t\t\t\t<td>9 seconds</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Exit status</th>\n\t\t\t\t<td>Exausted</td>\n\t\t\t</tr><tr>\n\t\t\t\t<th>Number of states</th>\n\t\t\t\t<td>4</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th><a href=\"urls.html\">URL's visited</a></th>\n\t\t\t\t<td>4</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Number of edges</th>\n\t\t\t\t<td>6</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Number of crawl paths</th>\n\t\t\t\t<td>5</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Failed events</th>\n\t\t\t\t<td>0</td>\n\t\t\t</tr><tr>\n\t\t\t\t<th>Average DOM length</th>\n\t\t\t\t<td>0,44 kB</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>\n\n<section id=\"highs-and-low\">\n\t<div class=\"page-header\">\n\t\t<h1>Highs and lows</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<th>Highest fan-out</th> \n\t\t\t\t\t\t\t\t<td><a href=\"states/state4.html\">state4</a></td>\n\t\t\t\t<td>2</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Lowest fan-out</th> \t\t\t\t<td><a href=\"states/state3.html\">state3</a></td>\n\t\t\t\t<td>1</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Highest fan-in</th> \t\t\t\t<td><a href=\"states/state3.html\">state3</a></td>\n\t\t\t\t<td>2</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Lowest fan-in</th> \t\t\t\t<td><a href=\"states/state4.html\">state4</a></td>\n\t\t\t\t<td>1</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>\n\t\t</div>\n\t\t<div style=\"display: none;\" id=\"container-urls\" class=\"container page\">\n\t\t\t<div class=\"page-header\">\n\t<h1>URL's visited</h1>\n</div>\n<table class=\"table table-bordered table-striped url-table\">\n\t<tbody>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/c.html\">http://localhost:59342/c.html</a></td>\n\t\t\t<td> <a href=\"states/state4.html\">state4</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/b.html\">http://localhost:59342/b.html</a></td>\n\t\t\t<td> <a href=\"states/state3.html\">state3</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/a.html\">http://localhost:59342/a.html</a></td>\n\t\t\t<td> <a href=\"states/state1.html\">state1</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/\">http://localhost:59342/</a></td>\n\t\t\t<td> <a href=\"states/index.html\">index</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t</tbody>\n</table>\n\t\t</div>\n\t\t<div style=\"display: none;\" id=\"container-config\" class=\"container page\">\n\t\t\t<section id=\"crawlConfig\">\n\t<div class=\"page-header\">\n\t\t<h1>Crawl configuration</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Url</td> \n\t\t\t\t\t\t\t\t<td>http://localhost:59342/</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Plugins</td> \n\t\t\t\t\t\t\t\t<td><ul><li>PostCrawlStateGraphChecker</li><li>CrawlOverview</li></ul></td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Output Dir</td> \n\t\t\t\t\t\t\t\t<td>target\test-data\hover-crawl</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Maximum Runtime</td> \n\t\t\t\t\t\t\t\t<td>?</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Maximum Depth</td> \n\t\t\t\t\t\t\t\t<td>?</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Browser Config</td> \n\t\t\t\t\t\t\t\t<td>1 browsers of type PHANTOMJS using builder Default webdriver factory</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Proxy Configuration</td> \n\t\t\t\t\t\t\t\t<td>NOTHING</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Basic Auth Url</td> \n\t\t\t\t\t\t\t\t<td>null</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Maximum States</td> \n\t\t\t\t\t\t\t\t<td>?</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>State Vertex Factory</td> \n\t\t\t\t\t\t\t\t<td>null</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Crawl Rules</td> \n\t\t\t\t\t\t\t\t<td><pre><code>{\n \"crawlEvents\" : [ \"click\" ],\n \"invariants\" : [ ],\n \"oracleComparators\" : [ {\n \"preConditions\" : [ ],\n \"id\" : \"SimpleComparator\",\n \"oracle\" : { }\n } ],\n \"ignoredFrameIdentifiers\" : [ ],\n \"preCrawlConfig\" : {\n \"waitConditions\" : [ ],\n \"crawlConditions\" : [ ],\n \"includedElements\" : [ {\n \"tagName\" : \"A\",\n \"id\" : \"id26603980\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"BUTTON\",\n \"id\" : \"id20288556\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id9638098\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='submit']\",\n \"eventableCondition\" : {\n \"id\" : \"id9638098\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='submit']\",\n \"linkedInputFields\" : [ ]\n }\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id20271998\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='button']\",\n \"eventableCondition\" : {\n \"id\" : \"id20271998\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='button']\",\n \"linkedInputFields\" : [ ]\n }\n } ],\n \"excludedElements\" : [ ],\n \"filterAttributeNames\" : [ \"closure_hashcode_(\\w)*\", \"jquery[0-9]+\" ]\n },\n \"randomInputInForms\" : true,\n \"inputSpecification\" : {\n \"crawlElements\" : [ ],\n \"formFieldNames\" : { },\n \"formFieldValues\" : { }\n },\n \"testInvariantsWhileCrawling\" : true,\n \"clickOnce\" : true,\n \"randomizeCandidateElements\" : false,\n \"crawlHiddenAnchors\" : false,\n \"waitAfterReloadUrl\" : 500,\n \"waitAfterEvent\" : 500,\n \"allCrawlElements\" : [ {\n \"tagName\" : \"A\",\n \"id\" : \"id26603980\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"BUTTON\",\n \"id\" : \"id20288556\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id9638098\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='submit']\",\n \"eventableCondition\" : {\n \"id\" : \"id9638098\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='submit']\",\n \"linkedInputFields\" : [ ]\n }\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id20271998\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='button']\",\n \"eventableCondition\" : {\n \"id\" : \"id20271998\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='button']\",\n \"linkedInputFields\" : [ ]\n }\n } ]\n}</code></pre></td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t</table>\n</section>\n<section id=\"versionInfo\">\n\t<div class=\"page-header\">\n\t\t<h1>Version info</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td>Crawljax version</td>\n\t\t\t\t<td>3.7-SNAPSHOT</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Git revision</td>\n\t\t\t\t<td>${git.commit.id}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td><a href=\"https://www.kernel.org/pub/software/scm/git/docs/git-describe.html\">Git describe</a></td>\n\t\t\t\t<td>${git.commit.id.describe}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Build time</td>\n\t\t\t\t<td><time>${git.build.time}</time></td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>\t\t</div>\n\t\t<div id=\"push\"></div>\n\t</div>\n\t<footer>\n\t\t<div class=\"container\">\n\t\t\t<small class=\"pull-left muted\">Crawl of <a href=\"http://localhost:59342/\">http://localhost:59342/</a> at Wed Jul 08 12:53:21 PDT 2015</small>\n\t\t\t<small class=\"pull-right muted\">Crawled by <a href=\"http://crawljax.com\">Crawljax</a> 3.7-SNAPSHOT</small>\n\t\t</div>\n\t</footer>\n\t\n\t<script src=\"lib/jquery-2.0.3.min.js\"></script>\n\t<script src=\"lib/bootstrap.min.js\"></script>\n\t<script src=\"lib/vivagraph.min.js\"></script>\n\t<script src=\"js/graphbuilder.js\"></script>\n\t<script>\n\t\tvar edges = [ {\n \"from\" : \"index\",\n \"to\" : \"state1\",\n \"text\" : \"Go to A\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[1]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to A, attributes={href=a.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state1\",\n \"to\" : \"index\",\n \"text\" : \"Back to index\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/P[2]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Back to index, attributes={href=index.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"index\",\n \"to\" : \"state3\",\n \"text\" : \"Go to B\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[2]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to B, attributes={href=b.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state3\",\n \"to\" : \"state4\",\n \"text\" : \"Go to C\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to C, attributes={href=c.html, style=margin: 10px;}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state4\",\n \"to\" : \"state3\",\n \"text\" : \"Go to B\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to B, attributes={href=b.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state4\",\n \"to\" : \"index\",\n \"text\" : \"Go to Index\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/A[2]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to Index, attributes={href=index.html}}\",\n \"eventType\" : \"click\"\n} ];\n\t\tvar states = {\n \"state4\" : {\n \"name\" : \"state4\",\n \"url\" : \"http://localhost:59342/c.html\",\n \"candidateElements\" : [ {\n \"top\" : 164,\n \"left\" : 50,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"width\" : 49,\n \"height\" : 19\n }, {\n \"top\" : 164,\n \"left\" : 103,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/A[2]\",\n \"width\" : 73,\n \"height\" : 19\n } ],\n \"fanIn\" : 1,\n \"fanOut\" : 2,\n \"id\" : 4,\n \"failedEvents\" : [ ]\n },\n \"state3\" : {\n \"name\" : \"state3\",\n \"url\" : \"http://localhost:59342/b.html\",\n \"candidateElements\" : [ {\n \"top\" : 185,\n \"left\" : 60,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"width\" : 50,\n \"height\" : 19\n } ],\n \"fanIn\" : 2,\n \"fanOut\" : 1,\n \"id\" : 3,\n \"failedEvents\" : [ ]\n },\n \"state1\" : {\n \"name\" : \"state1\",\n \"url\" : \"http://localhost:59342/a.html\",\n \"candidateElements\" : [ {\n \"top\" : 144,\n \"left\" : 58,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/P[2]/A[1]\",\n \"width\" : 84,\n \"height\" : 19\n } ],\n \"fanIn\" : 1,\n \"fanOut\" : 1,\n \"id\" : 1,\n \"failedEvents\" : [ ]\n },\n \"index\" : {\n \"name\" : \"index\",\n \"url\" : \"http://localhost:59342/\",\n \"candidateElements\" : [ {\n \"top\" : 155,\n \"left\" : 48,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[1]/A[1]\",\n \"width\" : 50,\n \"height\" : 19\n }, {\n \"top\" : 175,\n \"left\" : 48,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[2]/A[1]\",\n \"width\" : 49,\n \"height\" : 19\n }, {\n \"top\" : 195,\n \"left\" : 48,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[3]/A[1]\",\n \"width\" : 185,\n \"height\" : 19\n } ],\n \"fanIn\" : 2,\n \"fanOut\" : 2,\n \"id\" : 0,\n \"failedEvents\" : [ ]\n }\n};\n\t\t$(document).ready(\n\t\t\t\tfunction() {\n\t\t\t\t\t$.each(states, function() {\n\t\t\t\t\t\tgraph.addNode(this.name, {\n\t\t\t\t\t\t\timg : 'screenshots/' + this.name + '_small.jpg',\n\t\t\t\t\t\t\turl : \"states/\" + this.name + \".html\"\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\n\t\t\t\t\tvar edgesSeen = {};\n\t\t\t\t\t$.each(edges, function() {\n\t\t\t\t\t\tvar edgeKey = this.from + \"-to-\" + this.to;\n\t\t\t\t\t\tif (!(edgeKey in edgesSeen)) {\n\t\t\t\t\t\t\tedgesSeen[edgeKey] = true;\n\t\t\t\t\t\t\tgraph.addLink(this.from, this.to, {\n\t\t\t\t\t\t\t\ttext : this.text,\n\t\t\t\t\t\t\t\tid : this.id,\n\t\t\t\t\t\t\t\teventType : this.eventType,\n\t\t\t\t\t\t\t\telement : this.element\n\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\"#hideButton\").click(function() {\n\t\t\t\t\t\t$(\".panel-right\").removeClass(\"in\");\n\t\t\t\t\t\t$('path[stroke=\"red\"]').attr(\"stroke\", \"grey\");\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\"a[rel='popover']\").popover({\n\t\t\t\t\t\tcontent : $(\"#popup-content\").html(),\n\t\t\t\t\t\thtml : true,\n\t\t\t\t\t\ttrigger : \"hover\"\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\"a[data-toggle='tooltip']\").tooltip();\n\n\t\t\t\t\tvar paused = false;\n\t\t\t\t\t$(\"#pauseButton\").click(\n\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\tif (paused) {\n\t\t\t\t\t\t\t\t\trenderer.resume();\n\t\t\t\t\t\t\t\t\tpaused = false;\n\t\t\t\t\t\t\t\t\t$(this).children(\":first\").attr(\"class\",\n\t\t\t\t\t\t\t\t\t\t\t\"icon-pause\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\trenderer.pause();\n\t\t\t\t\t\t\t\t\tpaused = true;\n\t\t\t\t\t\t\t\t\t$(this).children(\":first\").attr(\"class\",\n\t\t\t\t\t\t\t\t\t\t\t\"icon-play\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t$('.navbar li').click(function(e) {\n\t\t\t\t\t\t$('.navbar li').removeClass('active');\n\t\t\t\t\t\tvar $this = $(this);\n\t\t\t\t\t\tif (!$this.hasClass('active')) {\n\t\t\t\t\t\t\t$this.addClass('active');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t\tfunction loadPage(page) {\n\t\t\t\t\t\t$('.page').hide();\n\t\t\t\t\t\t$('#container-' + page).show();\n\n\t\t\t\t\t\tif (page === \"graph\") {\n\t\t\t\t\t\t\t$('.graphBtn').show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$('.graphBtn').hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$(window).on(\n\t\t\t\t\t\t\t'hashchange',\n\t\t\t\t\t\t\tfunction(e) {\n\t\t\t\t\t\t\t\tpageRef = window.location.hash.substring(1);\n\t\t\t\t\t\t\t\tif ($(\"#container-\" + pageRef).length == 0\n\t\t\t\t\t\t\t\t\t\t&& pageRef !== \"graph\") {\n\t\t\t\t\t\t\t\t\twindow.location.hash = \"graph\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tloadPage(pageRef);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t$(window).trigger('hashchange');\n\t\t\t\t});\n\n\t\tfunction showInfo(link) {\n\t\t\t$(\".panel-right\").addClass(\"in\");\n\t\t\t$(\".panel-right [name='elemName']\").text(link.data.text);\n\t\t\t$(\".panel-right [name='from']\").html(asStateLink(link.fromId));\n\t\t\t$(\".panel-right [name='to']\").html(asStateLink(link.toId));\n\t\t\t$(\".panel-right [name='id']\").text(link.data.id);\n\t\t\t$(\".panel-right [name='element']\").text(link.data.element);\n\t\t\t$(\".panel-right [name='eventType']\").text(link.data.eventType);\n\t\t}\n\n\t\tfunction asStateLink(name) {\n\t\t\treturn \"<a href='states/\" + name + \".html' target='_new'>\" + name\n\t\t\t\t\t+ \"</a>\";\n\t\t}\n\n\t\t$('#container-graph svg').css(\"width\", \"100%\");\n\t\tfunction resize() {\n\t\t\t$('#container-graph').css(\"height\", window.innerHeight - 80);\n\t\t\t$('#container-graph svg').css(\"height\", window.innerHeight - 80);\n\t\t}\n\t\t$(window).resize(resize);\n\t\tresize();\n\t</script>\n\n</body></html>"
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at com.crawljax.plugins.crawloverview.OverviewIntegrationTest.sourceHasNoVelocitySymbols(OverviewIntegrationTest.java:84)
at com.crawljax.plugins.crawloverview.OverviewIntegrationTest.whenOpenedGraphIsShownAndBrandIsPresent(OverviewIntegrationTest.java:72)
Results :
Failed tests:
OverviewIntegrationTest.whenOpenedGraphIsShownAndBrandIsPresent:72->sourceHasNoVelocitySymbols:84
Expected: not a string containing "${"
but: was "<!DOCTYPE html>\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\"><head>\n<meta charset=\"UTF-8\" />\n<title>Crawl overview</title>\n<meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\" />\n<meta content=\"CrawlJax\" name=\"author\" />\n<link rel=\"stylesheet\" href=\"./css/bootstrap.min.css\" />\n<link rel=\"stylesheet\" href=\"./css/bootstrap-responsive.min.css\" />\n<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->\n<!--[if lt IE 9]>\n\t<script src=\"http://html5shim.googlecode.com/svn/trunk/html5.js\"></script>\n\t<![endif]-->\n<style>\nhtml,body {\n\theight: 100%;\n}\n\n#wrap {\n\tmin-height: 100%;\n\theight: auto !important;\n\theight: 100%;\n\tmargin: 0 auto -40px;\t\n}\n\n#push, footer {\n\theight: 40px;\n}\n\nfooter {\n\tbackground-color: #f5f5f5;\n}\n\nfooter small {\n\tdisplay: inline;\n\tmargin-top: 10px;\n}\n\n.url-table td {\n\tword-wrap: break-word;\n\tmax-width: 700px;\n}\n\n@media (max-width: 979px) and (min-width: 768px) {\n\t.url-table td {\n\t\tmax-width: 500px;\n\t}\n}\n\n@media ( max-width : 767px) {\n\t#footer {\n\t\tmargin-left: -20px;\n\t\tmargin-right: -20px;\n\t\tpadding-left: 20px;\n\t\tpadding-right: 20px;\n\t}\n\t\n\t.url-table td {\n\t\tmax-width: 450px;\n\t}\n}\n\n\n#wrap>.container {\n\tpadding-top: 60px;\n}\n\n.panel-right {\n\tposition: absolute;\n\tright: 10px;\n\ttop: 70px;\n\tleft: auto;\n\tdisplay: block;\n\tbackground-color: rgb(255, 255, 255);\n\tbackground-color: rgba(255, 255, 255, .9);\n\tmax-width: 300px;\n}\n\n.panel-right dd {\n\ttext-transform: capitalize;\n\tword-wrap: break-word;\n}\n</style>\n</head>\n<body>\n\n\t<div id=\"wrap\">\n\t\t<nav class=\"navbar navbar-fixed-top\">\n\t<div class=\"navbar-inner\">\n\t\t<div class=\"container\">\n\t\t\t\t\t\t\t<a href=\"#\" class=\"brand\">Crawl overview</a>\n\t\t\t\t\t\t<ul class=\"nav\">\n\t\t\t\t\t\t\t\t\t<li class=\"active\"><a href=\"#graph\">State graph</a></li>\n\t\t\t\t\t<li><a href=\"#statistics\">Statistics</a></li>\n\t\t\t\t\t<li><a href=\"#urls\">URL's</a></li>\n\t\t\t\t\t<li><a href=\"#config\">Configuration</a></li>\n\t\t\t\t\t\t\t</ul>\n\t\t\t<div class=\"nav pull-right\">\n\t\t\t\t<a title=\"\" data-placement=\"bottom\" data-toggle=\"tooltip\" id=\"pauseButton\" class=\"btn graphBtn\" href=\"#\" data-original-title=\"Pause the graph movement\"><i class=\"icon-pause\"></i></a>\n\t\t\t\t<a data-original-title=\"What to do\" data-placement=\"bottom\" rel=\"popover\" class=\"btn graphBtn\" href=\"#\"><i class=\"icon-question-sign\"></i></a>\n\t\t\t\t<div id=\"popup-content\" style=\"display: none\">\n\t\t\t\t\t<p>You can double click a state to inspect it further.</p>\n\t\t\t\t\t<p>Clicking an edge gives more details on the state transition.</p>\n\t\t\t\t\t<p>Use your mouse to zoom in and out by scrolling, or drag the states and view around.</p>\n\t\t\t\t</div>\n\t\t\t\t<a title=\"\" data-placement=\"bottom\" data-toggle=\"tooltip\" class=\"btn\" href=\"result.json\" data-original-title=\"Download result as JSON\"><i class=\"icon-download\"></i></a>\n\t\t\t</div>\n\t\t\t<!--/.nav-collapse -->\n\t\t</div>\n\t</div>\n</nav>\t\t<div style=\"width: 100%; padding-top: 40px; height: 606px; display: block;\" id=\"container-graph\" class=\"container page\">\n\t\t\t<div class=\"popover fade panel-right\">\n\t\t\t\t<div class=\"popover-inner\">\n\t\t\t\t\t<h3 class=\"popover-title\">Edge info</h3>\n\t\t\t\t\t<div class=\"popover-content\">\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Element name</dt>\n\t\t\t\t\t\t\t<dd name=\"elemName\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>From</dt>\n\t\t\t\t\t\t\t<dd name=\"from\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>To</dt>\n\t\t\t\t\t\t\t<dd name=\"to\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Identified by</dt>\n\t\t\t\t\t\t\t<dd name=\"id\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Element</dt>\n\t\t\t\t\t\t\t<dd style=\"text-transform: none;\" name=\"element\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<dl>\n\t\t\t\t\t\t\t<dt>Event type</dt>\n\t\t\t\t\t\t\t<dd name=\"eventType\"></dd>\n\t\t\t\t\t\t</dl>\n\t\t\t\t\t\t<button id=\"hideButton\" class=\"btn btn-small\">Hide</button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"width: 100%; height: 606px;\"><g buffered-rendering=\"dynamic\" transform=\"matrix(1, 0, 0,1,713,20)\"><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M23.20099906417323,133.62168206480487L142.69116654231513,156.0748571398855\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M20.389680514426303,14.830868101649315L178.76926095732182,-148.13006323268883\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M178.76926095732182,-148.13006323268883L20.389680514426303,14.830868101649315\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M250.55573187120714,74.865671103041L268.09337707868303,-148.13006323268885\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M-89.26322206745482,-236.23081179113802L161.94263124160844,74.86567110304101\"/><path stroke=\"gray\" stroke-width=\"2\" marker-end=\"url(#Triangle)\" d=\"M161.94263124160844,74.86567110304101L-89.26322206745482,-236.23081179113802\"/><g transform=\"translate(-176.79900093582677,14.830868101649315)\"><text y=\"-4px\">state4</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/state4_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g><g transform=\"translate(175.95794240757493,-348.1300632326888)\"><text y=\"-4px\">state3</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/state3_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g><g transform=\"translate(-270.0117573681615,-436.230811791138)\"><text y=\"-4px\">state1</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/state1_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g><g transform=\"translate(142.69116654231513,74.865671103041)\"><text y=\"-4px\">index</text><image width=\"200\" height=\"200\" xlink:href=\"screenshots/index_small.jpg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\"/><rect style=\"fill:none;stroke-width:1;stroke:black;\" width=\"201\" height=\"201\"/></g></g><defs><marker id=\"Triangle\" viewBox=\"0 0 10 10\" refX=\"10\" refY=\"5\" markerUnits=\"strokeWidth\" markerWidth=\"10\" markerHeight=\"5\" orient=\"auto\"><path d=\"M 0 0 L 10 5 L 0 10 z\" stroke=\"grey\"/></marker></defs></svg></div>\n\t\t<div style=\"display: none;\" id=\"container-statistics\" class=\"container page\">\n\t\t\t\n<section id=\"crawlResults\">\n\t<div class=\"page-header\">\n\t\t<h1>Crawl results</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<th>Crawl time</th>\n\t\t\t\t<td>9 seconds</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Exit status</th>\n\t\t\t\t<td>Exausted</td>\n\t\t\t</tr><tr>\n\t\t\t\t<th>Number of states</th>\n\t\t\t\t<td>4</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th><a href=\"urls.html\">URL's visited</a></th>\n\t\t\t\t<td>4</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Number of edges</th>\n\t\t\t\t<td>6</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Number of crawl paths</th>\n\t\t\t\t<td>5</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Failed events</th>\n\t\t\t\t<td>0</td>\n\t\t\t</tr><tr>\n\t\t\t\t<th>Average DOM length</th>\n\t\t\t\t<td>0,44 kB</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>\n\n<section id=\"highs-and-low\">\n\t<div class=\"page-header\">\n\t\t<h1>Highs and lows</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<th>Highest fan-out</th> \n\t\t\t\t\t\t\t\t<td><a href=\"states/state4.html\">state4</a></td>\n\t\t\t\t<td>2</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Lowest fan-out</th> \t\t\t\t<td><a href=\"states/state3.html\">state3</a></td>\n\t\t\t\t<td>1</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Highest fan-in</th> \t\t\t\t<td><a href=\"states/state3.html\">state3</a></td>\n\t\t\t\t<td>2</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<th>Lowest fan-in</th> \t\t\t\t<td><a href=\"states/state4.html\">state4</a></td>\n\t\t\t\t<td>1</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>\n\t\t</div>\n\t\t<div style=\"display: none;\" id=\"container-urls\" class=\"container page\">\n\t\t\t<div class=\"page-header\">\n\t<h1>URL's visited</h1>\n</div>\n<table class=\"table table-bordered table-striped url-table\">\n\t<tbody>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/c.html\">http://localhost:59342/c.html</a></td>\n\t\t\t<td> <a href=\"states/state4.html\">state4</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/b.html\">http://localhost:59342/b.html</a></td>\n\t\t\t<td> <a href=\"states/state3.html\">state3</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/a.html\">http://localhost:59342/a.html</a></td>\n\t\t\t<td> <a href=\"states/state1.html\">state1</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t<td><a href=\"http://localhost:59342/\">http://localhost:59342/</a></td>\n\t\t\t<td> <a href=\"states/index.html\">index</a>, \t\t\t</td>\n\t\t</tr>\n\t\t\t</tbody>\n</table>\n\t\t</div>\n\t\t<div style=\"display: none;\" id=\"container-config\" class=\"container page\">\n\t\t\t<section id=\"crawlConfig\">\n\t<div class=\"page-header\">\n\t\t<h1>Crawl configuration</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Url</td> \n\t\t\t\t\t\t\t\t<td>http://localhost:59342/</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Plugins</td> \n\t\t\t\t\t\t\t\t<td><ul><li>PostCrawlStateGraphChecker</li><li>CrawlOverview</li></ul></td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Output Dir</td> \n\t\t\t\t\t\t\t\t<td>target\test-data\hover-crawl</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Maximum Runtime</td> \n\t\t\t\t\t\t\t\t<td>?</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Maximum Depth</td> \n\t\t\t\t\t\t\t\t<td>?</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Browser Config</td> \n\t\t\t\t\t\t\t\t<td>1 browsers of type PHANTOMJS using builder Default webdriver factory</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Proxy Configuration</td> \n\t\t\t\t\t\t\t\t<td>NOTHING</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Basic Auth Url</td> \n\t\t\t\t\t\t\t\t<td>null</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Maximum States</td> \n\t\t\t\t\t\t\t\t<td>?</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>State Vertex Factory</td> \n\t\t\t\t\t\t\t\t<td>null</td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr>\n\t\t\t\t<td>Crawl Rules</td> \n\t\t\t\t\t\t\t\t<td><pre><code>{\n \"crawlEvents\" : [ \"click\" ],\n \"invariants\" : [ ],\n \"oracleComparators\" : [ {\n \"preConditions\" : [ ],\n \"id\" : \"SimpleComparator\",\n \"oracle\" : { }\n } ],\n \"ignoredFrameIdentifiers\" : [ ],\n \"preCrawlConfig\" : {\n \"waitConditions\" : [ ],\n \"crawlConditions\" : [ ],\n \"includedElements\" : [ {\n \"tagName\" : \"A\",\n \"id\" : \"id26603980\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"BUTTON\",\n \"id\" : \"id20288556\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id9638098\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='submit']\",\n \"eventableCondition\" : {\n \"id\" : \"id9638098\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='submit']\",\n \"linkedInputFields\" : [ ]\n }\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id20271998\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='button']\",\n \"eventableCondition\" : {\n \"id\" : \"id20271998\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='button']\",\n \"linkedInputFields\" : [ ]\n }\n } ],\n \"excludedElements\" : [ ],\n \"filterAttributeNames\" : [ \"closure_hashcode_(\\w)*\", \"jquery[0-9]+\" ]\n },\n \"randomInputInForms\" : true,\n \"inputSpecification\" : {\n \"crawlElements\" : [ ],\n \"formFieldNames\" : { },\n \"formFieldValues\" : { }\n },\n \"testInvariantsWhileCrawling\" : true,\n \"clickOnce\" : true,\n \"randomizeCandidateElements\" : false,\n \"crawlHiddenAnchors\" : false,\n \"waitAfterReloadUrl\" : 500,\n \"waitAfterEvent\" : 500,\n \"allCrawlElements\" : [ {\n \"tagName\" : \"A\",\n \"id\" : \"id26603980\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"BUTTON\",\n \"id\" : \"id20288556\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : null,\n \"eventableCondition\" : null\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id9638098\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='submit']\",\n \"eventableCondition\" : {\n \"id\" : \"id9638098\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='submit']\",\n \"linkedInputFields\" : [ ]\n }\n }, {\n \"tagName\" : \"INPUT\",\n \"id\" : \"id20271998\",\n \"eventType\" : \"click\",\n \"withXpathExpression\" : \"//INPUT[@type='button']\",\n \"eventableCondition\" : {\n \"id\" : \"id20271998\",\n \"conditions\" : [ ],\n \"inXPath\" : \"//INPUT[@type='button']\",\n \"linkedInputFields\" : [ ]\n }\n } ]\n}</code></pre></td> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t</tbody>\n\t</table>\n</section>\n<section id=\"versionInfo\">\n\t<div class=\"page-header\">\n\t\t<h1>Version info</h1>\n\t</div>\n\t<table class=\"table table-bordered table-striped\">\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td>Crawljax version</td>\n\t\t\t\t<td>3.7-SNAPSHOT</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Git revision</td>\n\t\t\t\t<td>${git.commit.id}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td><a href=\"https://www.kernel.org/pub/software/scm/git/docs/git-describe.html\">Git describe</a></td>\n\t\t\t\t<td>${git.commit.id.describe}</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td>Build time</td>\n\t\t\t\t<td><time>${git.build.time}</time></td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</section>\t\t</div>\n\t\t<div id=\"push\"></div>\n\t</div>\n\t<footer>\n\t\t<div class=\"container\">\n\t\t\t<small class=\"pull-left muted\">Crawl of <a href=\"http://localhost:59342/\">http://localhost:59342/</a> at Wed Jul 08 12:53:21 PDT 2015</small>\n\t\t\t<small class=\"pull-right muted\">Crawled by <a href=\"http://crawljax.com\">Crawljax</a> 3.7-SNAPSHOT</small>\n\t\t</div>\n\t</footer>\n\t\n\t<script src=\"lib/jquery-2.0.3.min.js\"></script>\n\t<script src=\"lib/bootstrap.min.js\"></script>\n\t<script src=\"lib/vivagraph.min.js\"></script>\n\t<script src=\"js/graphbuilder.js\"></script>\n\t<script>\n\t\tvar edges = [ {\n \"from\" : \"index\",\n \"to\" : \"state1\",\n \"text\" : \"Go to A\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[1]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to A, attributes={href=a.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state1\",\n \"to\" : \"index\",\n \"text\" : \"Back to index\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/P[2]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Back to index, attributes={href=index.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"index\",\n \"to\" : \"state3\",\n \"text\" : \"Go to B\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[2]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to B, attributes={href=b.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state3\",\n \"to\" : \"state4\",\n \"text\" : \"Go to C\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to C, attributes={href=c.html, style=margin: 10px;}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state4\",\n \"to\" : \"state3\",\n \"text\" : \"Go to B\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to B, attributes={href=b.html}}\",\n \"eventType\" : \"click\"\n}, {\n \"from\" : \"state4\",\n \"to\" : \"index\",\n \"text\" : \"Go to Index\",\n \"id\" : \"xpath /HTML[1]/BODY[1]/DIV[1]/A[2]\",\n \"element\" : \"Element{node=[A: null], tag=A, text=Go to Index, attributes={href=index.html}}\",\n \"eventType\" : \"click\"\n} ];\n\t\tvar states = {\n \"state4\" : {\n \"name\" : \"state4\",\n \"url\" : \"http://localhost:59342/c.html\",\n \"candidateElements\" : [ {\n \"top\" : 164,\n \"left\" : 50,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"width\" : 49,\n \"height\" : 19\n }, {\n \"top\" : 164,\n \"left\" : 103,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/A[2]\",\n \"width\" : 73,\n \"height\" : 19\n } ],\n \"fanIn\" : 1,\n \"fanOut\" : 2,\n \"id\" : 4,\n \"failedEvents\" : [ ]\n },\n \"state3\" : {\n \"name\" : \"state3\",\n \"url\" : \"http://localhost:59342/b.html\",\n \"candidateElements\" : [ {\n \"top\" : 185,\n \"left\" : 60,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/A[1]\",\n \"width\" : 50,\n \"height\" : 19\n } ],\n \"fanIn\" : 2,\n \"fanOut\" : 1,\n \"id\" : 3,\n \"failedEvents\" : [ ]\n },\n \"state1\" : {\n \"name\" : \"state1\",\n \"url\" : \"http://localhost:59342/a.html\",\n \"candidateElements\" : [ {\n \"top\" : 144,\n \"left\" : 58,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/P[2]/A[1]\",\n \"width\" : 84,\n \"height\" : 19\n } ],\n \"fanIn\" : 1,\n \"fanOut\" : 1,\n \"id\" : 1,\n \"failedEvents\" : [ ]\n },\n \"index\" : {\n \"name\" : \"index\",\n \"url\" : \"http://localhost:59342/\",\n \"candidateElements\" : [ {\n \"top\" : 155,\n \"left\" : 48,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[1]/A[1]\",\n \"width\" : 50,\n \"height\" : 19\n }, {\n \"top\" : 175,\n \"left\" : 48,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[2]/A[1]\",\n \"width\" : 49,\n \"height\" : 19\n }, {\n \"top\" : 195,\n \"left\" : 48,\n \"xpath\" : \"/HTML[1]/BODY[1]/DIV[1]/UL[1]/LI[3]/A[1]\",\n \"width\" : 185,\n \"height\" : 19\n } ],\n \"fanIn\" : 2,\n \"fanOut\" : 2,\n \"id\" : 0,\n \"failedEvents\" : [ ]\n }\n};\n\t\t$(document).ready(\n\t\t\t\tfunction() {\n\t\t\t\t\t$.each(states, function() {\n\t\t\t\t\t\tgraph.addNode(this.name, {\n\t\t\t\t\t\t\timg : 'screenshots/' + this.name + '_small.jpg',\n\t\t\t\t\t\t\turl : \"states/\" + this.name + \".html\"\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\n\t\t\t\t\tvar edgesSeen = {};\n\t\t\t\t\t$.each(edges, function() {\n\t\t\t\t\t\tvar edgeKey = this.from + \"-to-\" + this.to;\n\t\t\t\t\t\tif (!(edgeKey in edgesSeen)) {\n\t\t\t\t\t\t\tedgesSeen[edgeKey] = true;\n\t\t\t\t\t\t\tgraph.addLink(this.from, this.to, {\n\t\t\t\t\t\t\t\ttext : this.text,\n\t\t\t\t\t\t\t\tid : this.id,\n\t\t\t\t\t\t\t\teventType : this.eventType,\n\t\t\t\t\t\t\t\telement : this.element\n\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\"#hideButton\").click(function() {\n\t\t\t\t\t\t$(\".panel-right\").removeClass(\"in\");\n\t\t\t\t\t\t$('path[stroke=\"red\"]').attr(\"stroke\", \"grey\");\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\"a[rel='popover']\").popover({\n\t\t\t\t\t\tcontent : $(\"#popup-content\").html(),\n\t\t\t\t\t\thtml : true,\n\t\t\t\t\t\ttrigger : \"hover\"\n\t\t\t\t\t});\n\n\t\t\t\t\t$(\"a[data-toggle='tooltip']\").tooltip();\n\n\t\t\t\t\tvar paused = false;\n\t\t\t\t\t$(\"#pauseButton\").click(\n\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\tif (paused) {\n\t\t\t\t\t\t\t\t\trenderer.resume();\n\t\t\t\t\t\t\t\t\tpaused = false;\n\t\t\t\t\t\t\t\t\t$(this).children(\":first\").attr(\"class\",\n\t\t\t\t\t\t\t\t\t\t\t\"icon-pause\");\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\trenderer.pause();\n\t\t\t\t\t\t\t\t\tpaused = true;\n\t\t\t\t\t\t\t\t\t$(this).children(\":first\").attr(\"class\",\n\t\t\t\t\t\t\t\t\t\t\t\"icon-play\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t$('.navbar li').click(function(e) {\n\t\t\t\t\t\t$('.navbar li').removeClass('active');\n\t\t\t\t\t\tvar $this = $(this);\n\t\t\t\t\t\tif (!$this.hasClass('active')) {\n\t\t\t\t\t\t\t$this.addClass('active');\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\n\t\t\t\t\tfunction loadPage(page) {\n\t\t\t\t\t\t$('.page').hide();\n\t\t\t\t\t\t$('#container-' + page).show();\n\n\t\t\t\t\t\tif (page === \"graph\") {\n\t\t\t\t\t\t\t$('.graphBtn').show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$('.graphBtn').hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$(window).on(\n\t\t\t\t\t\t\t'hashchange',\n\t\t\t\t\t\t\tfunction(e) {\n\t\t\t\t\t\t\t\tpageRef = window.location.hash.substring(1);\n\t\t\t\t\t\t\t\tif ($(\"#container-\" + pageRef).length == 0\n\t\t\t\t\t\t\t\t\t\t&& pageRef !== \"graph\") {\n\t\t\t\t\t\t\t\t\twindow.location.hash = \"graph\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tloadPage(pageRef);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t$(window).trigger('hashchange');\n\t\t\t\t});\n\n\t\tfunction showInfo(link) {\n\t\t\t$(\".panel-right\").addClass(\"in\");\n\t\t\t$(\".panel-right [name='elemName']\").text(link.data.text);\n\t\t\t$(\".panel-right [name='from']\").html(asStateLink(link.fromId));\n\t\t\t$(\".panel-right [name='to']\").html(asStateLink(link.toId));\n\t\t\t$(\".panel-right [name='id']\").text(link.data.id);\n\t\t\t$(\".panel-right [name='element']\").text(link.data.element);\n\t\t\t$(\".panel-right [name='eventType']\").text(link.data.eventType);\n\t\t}\n\n\t\tfunction asStateLink(name) {\n\t\t\treturn \"<a href='states/\" + name + \".html' target='_new'>\" + name\n\t\t\t\t\t+ \"</a>\";\n\t\t}\n\n\t\t$('#container-graph svg').css(\"width\", \"100%\");\n\t\tfunction resize() {\n\t\t\t$('#container-graph').css(\"height\", window.innerHeight - 80);\n\t\t\t$('#container-graph svg').css(\"height\", window.innerHeight - 80);\n\t\t}\n\t\t$(window).resize(resize);\n\t\tresize();\n\t</script>\n\n</body></html>"
Tests run: 24, Failures: 1, Errors: 0, Skipped: 3
--- Failed test
/**
* If velocity couldn't resolve a variable, it leaves behind a `$`.
*/
private void sourceHasNoVelocitySymbols() {
assertThat(driver.getPageSource(), not(containsString("${")));
}
No clue what that would mean. I am running the tests with default parameters (Firefox is being used).
After skipping those 2 test cases, I was able to build crawljax successfully on Windows 8, but I ended up with a bunch of phantomjs zombie processes. Output is full of:
java.lang.RuntimeException: Process refused to die after 10 seconds, and couldn't taskkill it: java.lang.InterruptedException: sleep interrupted
Build info: version: '2.46.0', revision: '61506a4624b13675f24581e453592342b7485d71', time: '2015-06-04 10:22:50'
System info: host: 'Brito-Win-Acer', ip: '128.189.225.208', os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.7.0_79'
Driver info: driver.version: RemoteWebDriver
I have the same problem too!
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Crawl Overview Plugin 3.7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.crawljax:crawljax-core:jar:3.7-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.crawljax:crawljax-test-utils:jar:3.7-SNAPSHOT is missing, no dependency information available
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar (425 KB at 55.4 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.10/commons-codec-1.10.jar (278 KB at 57.8 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar (1336 KB at 93.4 KB/sec)
[INFO] Downloading: https://repo.maven.apache.org/maven2/net/sourceforge/nekohtml/nekohtml/1.9.22/nekohtml-1.9.22.jar
[INFO] Downloaded: https://repo.maven.apache.org/maven2/net/sourceforge/nekohtml/nekohtml/1.9.22/nekohtml-1.9.22.jar (123 KB at 116.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.143 s
[INFO] Finished at: 2016-02-15T15:58:59+08:00
[INFO] Final Memory: 16M/212M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project crawloverview-plugin: Could not resolve dependencies for project com.crawljax.plugins:crawloverview-plugin:jar:3.7-SNAPSHOT: The following artifacts could not be resolved: com.crawljax:crawljax-core:jar:3.7-SNAPSHOT, com.crawljax:crawljax-test-utils:jar:3.7-SNAPSHOT: Failure to find com.crawljax:crawljax-core:jar:3.7-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced -> [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/DependencyResolutionException