template.state.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cascade Show documentation
Show all versions of cascade Show documentation
Cascade is a blackbox testing framework
The newest version!
var params = queryParameters();
var breadcrumb = new BreadCrumb('state');
var directory = new Directory(directoryData);
var journey = _.find(directoryData.items, function (journey) {
return journey.journeyId === params.journeyId;
});
if (!journey){
window.location = "index.html"
}
$('#journey-id').html('- ' + journey.journeyId);
var scenario = journey.scenarios[params.index]
var contentTemplate = _.template($("#content-template").text());
$("#content").append(contentTemplate({
index: params['index'],
name: scenario.name,
narrative: scenario.narrative,
scope: scenario.scope,
hasState: scenario.hasState,
hasTransition: scenario.hasTransition
}));