|
import { TestcaseGenerator } from './TestcaseGenerator'; |
|
|
|
class LineCommunicationTestCreator { |
|
private testcaseGenerator: TestcaseGenerator; |
|
|
|
constructor() { |
|
this.testcaseGenerator = new TestcaseGenerator(); |
|
} |
|
|
|
createTestcases(): void { |
|
const testcases = this.testcaseGenerator.generateTestcases(); |
|
|
|
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 }; |