Spaces:
Running
on
Zero
Running
on
Zero
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 }; |