/// <summary> /// Gets the number of data rows from the View Portal InProgress Tests Results Grid. This does /// not include header row and pagination row. /// </summary> /// <returns>Total number of data rows on the grid</returns> public int GetInProgressTotalRowCount() { int allRowsCount = ViewPortalInProgressTestResultsGrid.GetRowList().Count; int dataRowCount = 0; SNGridRow row; for (int i = 0; i < allRowsCount; i++) { row = ViewPortalInProgressTestResultsGrid.GetRowFromList(i); if (row.Type == GridRowType.Data) { dataRowCount++; } } return(dataRowCount); }
/// <summary> /// Clicks on the Test Name Link in the Row concerned from the View Portal InProgress Tests Results Grid. /// </summary> /// <param name="rowIndex">Index of the Row concerned</param> public void SelectInProgressTestName(int rowIndex) { var viewPortalInProgressTestResultsRow = (ViewPortalInProgressTestResultsRow)ViewPortalInProgressTestResultsGrid.GetRowFromList(rowIndex); viewPortalInProgressTestResultsRow.SelectTestName(); }
/// <summary> /// Gets the Test Name for the row concerned from the View Portal InProgress Tests Results Grid. /// </summary> /// <param name="rowIndex">Index of the Row concerned</param> /// <returns>Name of the Test for the Row Concerned</returns> public string GetInProgressTestName(int rowIndex) { var viewPortalInProgressTestResultsRow = (ViewPortalInProgressTestResultsRow)ViewPortalInProgressTestResultsGrid.GetRowFromList(rowIndex); return(viewPortalInProgressTestResultsRow.GetTestName()); }