Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueline-57b committed Jul 16, 2024
1 parent 96726d6 commit 77e9e5c
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions l1-test-report.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,23 @@
var day = currentDate.getDate().toString().padStart(2, '0');
var dateFolder = year + month + day;

var titleElement = document.createElement('h1');
titleElement.textContent = 'L1 Devnet Test Report ' + dateFolder;

document.body.insertBefore(titleElement, document.body.firstChild);
document.write("dateFolder: " + dateFolder);

window.onload = function() {
document.getElementById("rpcTest").src = dateFolder + "/pass_07-16-2024_115159_sdk-test-report.html";
document.getElementById("stakeTest").src = dateFolder + "/pass_07-16-2024_115159_sdk-test-report.html";
document.getElementById("rewardsTest").src = dateFolder + "/pass_07-16-2024_115159_sdk-test-report.html";
document.getElementById("stressTest").src = dateFolder + "/stress_test.log";
document.getElementById("stressTest1").src = dateFolder + "/output_EOA.json";
document.getElementById("stressTest2").src = dateFolder + "/stress_test.log"; // Updated to .txt
fetch(dateFolder + "/stress_test.txt") // Updated to .txt
.then(response => response.text())
.then(data => {
document.getElementById("stressTest").textContent = data;
})
.catch(error => {
console.error('Error fetching the log file:', error);
document.getElementById("stressTest").textContent = "Error loading log file.";
});
};
</script>

Expand All @@ -42,8 +49,14 @@ <h1>Stake Test</h1>
<h1>Rewards Test</h1>
<iframe id="rewardsTest" width="100%" height="600px"></iframe>

<h1>Stress1 Test</h1>
<iframe id="stressTest1" width="100%" height="600px"></iframe>

<h1>Stress2 Test</h1>
<iframe id="stressTest2" width="100%" height="600px"></iframe>

<h1>Stress Test</h1>
<iframe id="stressTest" width="100%" height="600px"></iframe>
<pre id="stressTest">Loading...</pre>

<!-- Add more report sections as needed -->
</body>
Expand Down

0 comments on commit 77e9e5c

Please sign in to comment.