Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Dec 26, 2024
1 parent 5d53089 commit fb90a57
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions runner/main/modules/docker-jmeter/libraries/recorderfunctions.bsf
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,22 @@ testStarted(){
FileWriter fstream = new FileWriter(filenamepath, true);
BufferedWriter out = new BufferedWriter(fstream);
out.write("<?php\n");

out.write("$host = '"+vars.get("host")+"';\n");
out.write("$sitepath = '"+vars.get("sitepath")+"';\n");
out.write("$group = '"+EscapeQuotes(props.get("group"))+"';\n");
out.write("$rundesc = '"+EscapeQuotes(props.get("desc"))+"';\n");
out.write("$users = '"+vars.get("users")+"';\n");
out.write("$loopcount = '"+vars.get("loops")+"';\n");
out.write("$rampup = '"+vars.get("rampup")+"';\n");
out.write("$throughput = '"+vars.get("throughput")+"';\n");
out.write("$size = '"+vars.get("size")+"';\n");
out.write("$baseversion = '"+vars.get("moodleversion")+"';\n");
out.write("$siteversion = '"+EscapeQuotes(props.get("siteversion"))+"';\n");
out.write("$sitebranch = '"+EscapeQuotes(props.get("sitebranch"))+"';\n");
out.write("$sitecommit = '"+EscapeQuotes(props.get("sitecommit"))+"';\n");

// Send the run timestamp to set it as run filename.
props.put("filepath", "runs/" + vars.get("runtimestamp") + ".php");
out.close();
}

0 comments on commit fb90a57

Please sign in to comment.