File size: 584 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
24
25
/**
 * Creates a new LINE communication test case.
 */
function createTestCase(testConfig) {
  var testCase = new LineTestCase(testConfig);
  testCase.create();
}

/**
 * Gets the test case configuration from the user.
 */
function getTestConfig() {
  var ui = SpreadsheetApp.getUi();
  var testConfigForm = ui.showSidebar(getTestConfigForm());
  var testConfig = testConfigForm.getValues();
  return testConfig;
}

/**
 * Gets the test case configuration form.
 */
function getTestConfigForm() {
  var form = HtmlService.createHtmlOutputFromFile('test-config-form');
  return form;
}