fastapi_django_main_live / routers /ai /src /LineCommunicationTestCreator.ts
kenken999's picture
test
275b9f3
raw
history blame
762 Bytes
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 };