Skip to content
Snippets Groups Projects
Commit 82d70096 authored by Henning Josef Moritz Werner Schmeink's avatar Henning Josef Moritz Werner Schmeink
Browse files

added new test Button to test the DSL-Parser

parent 1288a236
No related branches found
No related tags found
No related merge requests found
......@@ -19,10 +19,16 @@
</div>
<div class="row">
<div class="col-md-12">
<div class="col-md-6">
<button mdbBtn type="submit" (click)="compareProjects()" class="testgen-btn-rounded testgen-primary" rounded="true"
i18n="compare bpmn">Compare BPMN-Diagrams</button>
</div>
<div class="col-md-6">
<button mdbBtn type="submit" (click)="parseFiles()" class="testgen-btn-rounded testgen-primary" rounded="true"
i18n="compare bpmn">@Henning parseFiles Testing-Button</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
......@@ -45,6 +45,18 @@ export class UpdateProjectComponent implements OnInit {
}
/*
Function parseFiles
@Henning
Testfunktion um die Generierten Testfiles zu vergleichen. Event dient nur als Trigger fürs Backend
*/
async parseFiles(projectId: number): Promise<string> {
var projectId = this.actualProject;
console.log(projectId);
const url = `${environment.apiBaseUrl}project/${projectId}/parse`;
return this.http.get(url, {responseType: 'text'}).toPromise();
}
async compareProjects() {
var currentDiagram, newDiagram;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment