IEasyTestGrid.GetRow(Int32, String[]) Method
Returns a collection of strings that represent row values.
Namespace: DevExpress.EasyTest.Framework
Assembly: DevExpress.EasyTest.v24.2.dll
NuGet Package: DevExpress.EasyTest
Declaration
Parameters
Name | Type | Description |
---|---|---|
rowIndex | Int32 | A row index. |
columnNames | String[] | Names of columns whose values are returned. |
Returns
Type | Description |
---|---|
String[] | A collection of strings that represent row values. |
Remarks
Example:
using System;
using System.Linq;
using DevExpress.EasyTest.Framework;
using Xunit;
[assembly: CollectionBehavior(DisableTestParallelization = true)]
namespace MainDemo.E2E.Tests {
public class MainDemoTests : IDisposable {
const string BlazorAppName = "MainDemoBlazor";
const string WinAppName = "MainDemoWin";
const string MainDemoDBName = "MainDemo";
EasyTestFixtureContext FixtureContext { get; } = new EasyTestFixtureContext();
public MainDemoTests() {
FixtureContext.RegisterApplications(
new BlazorApplicationOptions(BlazorAppName,
@$"{Environment.CurrentDirectory}\..\..\..\..\MainDemo.Blazor.Server"),
new WinApplicationOptions(WinAppName,
@$"{Environment.CurrentDirectory}\..\..\..\..\MainDemo.Win\bin\EasyTest\MainDemo.Win.exe")
);
FixtureContext.RegisterDatabases(
new DatabaseOptions(MainDemoDBName, "MainDemoDB", server: "(localdb)\\mssqllocaldb"));
}
public void Dispose() {
FixtureContext.CloseRunningApplications();
}
[Theory]
[InlineData(BlazorAppName)]
[InlineData(WinAppName)]
public void EditGridData(string applicationName) {
FixtureContext.DropDB(MainDemoDBName);
var appContext = FixtureContext.CreateApplicationContext(applicationName);
appContext.RunApplication();
appContext.GetForm().FillForm(("User Name", "Sam"));
appContext.GetAction("Log In").Execute();
appContext.Navigate("Tasks");
var firstRow = appContext.GetGrid().GetRow(0, "Subject", "Status", "Priority");
Assert.Equal(new string[] { "Fix breakfast", "Completed", "Low" }, firstRow);
}
}
}
See Also