Spaces:
Running
on
Zero
Running
on
Zero
File size: 762 Bytes
275b9f3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import { TestcaseGenerator } from './TestcaseGenerator';
class LineCommunicationTestCreator {
private testcaseGenerator: TestcaseGenerator;
constructor() {
this.testcaseGenerator = new TestcaseGenerator();
}
createTestcases(): void {
const testcases = this.testcaseGenerator.generateTestcases();
// Create a new spreadsheet or update an existing one
const spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
const sheet = spreadsheet.getActiveSheet();
sheet.clearContents();
sheet.appendRow(['Test Case ID', 'Description', 'Expected Result']);
testcases.forEach((testcase) => {
sheet.appendRow([testcase.id, testcase.description, testcase.expectedResult]);
});
}
}
export { LineCommunicationTestCreator }; |