I agree with core developers, that there is no need for that to be implemented
inside JsTestDriver. Everybody has slightly different needs and this
would make configuration complicated.
It is easy to solve in JavaScript:
* request HTML page with XMLHttpRequest
* extract body
* inject into the body of the document under test
req = new XMLHttpRequest();
req.open('GET', url, false); /* synchronous */
req.send(null);
/* body element with children */
body_content = req.responseText.match(/<body[\s\S]*<\/body>/);
body = document.documentElement.getElementsByTagName('body')[0];
/* body tag itself is ignored, only its children will be inserted */
body.innerHTML = body_content;
}
I've documented the full solution at
http://www.mobile-web-consulting.de/post/4720306582/jstestdriver-html-injection-from-separate-file
1More
javascript - Event listeners & js-test-driver? - Stack Overflow - 0 views
Test This Blog - Eric Jacobson's Software Testing Blog: Automating Data Warehouse Tests - 0 views
1More
Javascript Unit Tests on Team Foundation Service with Chutzpah - Microsoft Application ... - 0 views
unit testing - Python unittests in Jenkins? - Stack Overflow - 0 views
Workforce Management, Talent Management, Time & Attendance, HR & Payroll Solutions - Kr... - 0 views
Publishing Python unit test results in Jenkins | Steve Trefethen - 0 views
1More
Implementing Row-Level Security with User Filters at the Active Directory Group Level |... - 0 views
1More
JavaScript API - 0 views
JavaScript + Jenkins = Winning! - 0 views
11More
This is Stuff: JavaScript Testing with JSTestDriver - 0 views
« First
‹ Previous
41 - 60 of 245
Next ›
Last »
Showing 20▼ items per page