IEasyTestGridEditing.FillRow(Int32, EasyTestParameter[]) Method
Fills the specified row with the new values.
Namespace: DevExpress.EasyTest.Framework
Assembly: DevExpress.EasyTest.v24.2.dll
NuGet Package: DevExpress.EasyTest
Declaration
Parameters
Name | Type | Description |
---|---|---|
rowIndex | Int32 | An edited row’s zero-based index. |
parameters | EasyTestParameter[] | An array of objects that represent field names with the corresponding 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 WinAppName = "MainDemoWin";
const string MainDemoDBName = "MainDemo";
EasyTestFixtureContext FixtureContext { get; } = new EasyTestFixtureContext();
public MainDemoTests() {
FixtureContext.RegisterApplications(
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(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");
appContext.GetGrid().FillRow(0, ("Subject", "Test"), ("Status", "In progress"));
}
}
}
See Also