ConSol / sakuli

Sakuli is an end-2-end testing and monitoring tool for web sites and common UIs with multiple monitoring integrations
http://www.sakuli.org
118 stars 29 forks source link

forward also case- and step results #304

Closed simonmeggle closed 6 years ago

simonmeggle commented 6 years ago

Send the results optionally also on a case/step basis. Change proposals:

class TestCase old usage:

var testCase = new TestCase(20,30[, path]);

new usage:

var testCase = new TestCase(["custom-caseId", 20,30, "optional-image-path"]);
TestCase.addImagePaths(path);

method endOfStep old usage:

TestCase.endOfStep("foo", 10);

new usage:

TestCase.endOfStep("foo", 10,[ 20, true]);

method saveResult() old usage:

testCase.saveResult();

new usage:

TestCase.saveResult(true)

:warning: General note: Rhino script currently DON'T support named parameter like ES2015 Script does. Something like testCase.endOfStep({stepName: "Calculation", optForward: true}); is not possible :cry:

toschneck commented 6 years ago

Change internal forwarder implementation: