public void VerifyCreateSheetAPI() { try { // Create sheet with two columns var newSheet = SmartSheetObjectModelHelper.CreateSheetObjectWithDefaultValue(4); SmartSheetWebAPIServiceHelper serviceHelper = new SmartSheetWebAPIServiceHelper(newSheet); var response = serviceHelper.CreateSheet(); // Verify API response: Success Assert.IsNotNull(response, "Failed to add sheet via API"); VerifyResponse(response); } catch (Exception ex) { Assert.Fail("Failed to createSheet via Web API"); } }
public void VerifySmartSheetDeleteColumnOperation() { try { // Create test data from API, var newSheet = SmartSheetObjectModelHelper.CreateSheetObjectWithDefaultValue(2); SmartSheetWebAPIServiceHelper serviceHelper = new SmartSheetWebAPIServiceHelper(newSheet); Assert.IsNotNull(serviceHelper.CreateSheet(), "Failed to create sheet"); // Launch and login to app Assert.IsTrue(loginPageOpsObj.LaunchAndLoginToApp(), "Failed to perform login operation"); Assert.IsTrue(DeleteSpecificColumnFromSheet(newSheet), string.Format("Failed to perform column delete operation for given sheet: {0}", newSheet.name)); } catch (Exception ex) { Assert.Fail(ex.Message); } }