X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fphantom%2Fevaluate.js;h=e4f7934f0853cfcfcf1242955a4df89ff9db3590;hb=dbf249f204487107f43e90783dcc243ecd94eae7;hp=be26202491d09ca8aa5331a527f2fb18e310ad23;hpb=d41fee94aa9622b55710c32bdf996168ac5a5625;p=mkws-moved-to-github.git diff --git a/test/phantom/evaluate.js b/test/phantom/evaluate.js index be26202..e4f7934 100644 --- a/test/phantom/evaluate.js +++ b/test/phantom/evaluate.js @@ -1,7 +1,7 @@ /* Fetch a mkws/jasmine based page into node.js, evaluate the page and check if test status This should make it possible to run the test on the command line in jenkins. e.g.: - + phantomjs evaluate.js https://mkws-dev.indexdata.com/jasmine-local-popup.html */ @@ -31,13 +31,16 @@ page.open(url, function (status) { // return document.querySelector(s).innerText; return { mkws: window.mkws, - string: "foo" + duration: window.$(".duration").text(), + passing: window.$(".passingAlert").text() }; }, 'title'); console.log("."); if (result.mkws.jasmine_done) { console.log("MKWS tests are successfully done. Hooray!"); + console.log("duration: " + result.duration); + console.log("passing: " + result.passing); phantom.exit(0); } r = result;