mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-30 10:47:08 -06:00
31 lines
596 B
JavaScript
Executable File
31 lines
596 B
JavaScript
Executable File
if (!arguments.length) {
|
|
print('Usage: selenium-results.js <results html>');
|
|
quit();
|
|
}
|
|
|
|
load('lib/env.rhino.1.2.js');
|
|
load('../jquery.js');
|
|
|
|
window.location = arguments[0];
|
|
|
|
var labels = {
|
|
result: 'Result',
|
|
numTestTotal: 'Total',
|
|
numTestPasses: 'Passed',
|
|
numCommandFailures: 'Failed'
|
|
};
|
|
|
|
$('table:first tr:lt(10)').each(function() {
|
|
var tr = $(this);
|
|
|
|
var td = tr.children().first();
|
|
|
|
var name = td.text().replace(/:$/, '');
|
|
var label = labels[name];
|
|
if (!label) return;
|
|
|
|
td = td.next();
|
|
var value = td.text();
|
|
print(label+': '+value);
|
|
});
|