This commit is contained in:
@@ -62,6 +62,30 @@ namespace raven_integration
|
|||||||
d.fld = "widgetcustom2";
|
d.fld = "widgetcustom2";
|
||||||
dListView.Add(d);
|
dListView.Add(d);
|
||||||
|
|
||||||
|
d = new JObject();
|
||||||
|
d.fld = "widgetcustom1";
|
||||||
|
dListView.Add(d);
|
||||||
|
|
||||||
|
d = new JObject();
|
||||||
|
d.fld = "widgetcustom3";
|
||||||
|
dListView.Add(d);
|
||||||
|
|
||||||
|
d = new JObject();
|
||||||
|
d.fld = "widgetcustom4";
|
||||||
|
dListView.Add(d);
|
||||||
|
|
||||||
|
d = new JObject();
|
||||||
|
d.fld = "widgetcustom5";
|
||||||
|
dListView.Add(d);
|
||||||
|
|
||||||
|
/*
|
||||||
|
//RANDOM CUSTOM FIELD DATA
|
||||||
|
var c1 = DateUtil.UniversalISO8661Format(f.Date.Between(DateTime.Now.AddYears(-1), DateTime.Now.AddYears(1)));
|
||||||
|
var c2 = f.Lorem.Sentence();
|
||||||
|
var c3 = f.Random.Int(1, 99999999);
|
||||||
|
var c4 = f.Random.Bool().ToString().ToLowerInvariant();
|
||||||
|
var c5 = f.Random.Decimal();
|
||||||
|
*/
|
||||||
|
|
||||||
//FETCH DATALIST
|
//FETCH DATALIST
|
||||||
ApiResponse a = await Util.PostAsync($"DataList", await Util.GetTokenAsync("manager", "l3tm3in"), Util.BuildDataListRequestEx(dListView));
|
ApiResponse a = await Util.PostAsync($"DataList", await Util.GetTokenAsync("manager", "l3tm3in"), Util.BuildDataListRequestEx(dListView));
|
||||||
@@ -71,6 +95,10 @@ namespace raven_integration
|
|||||||
|
|
||||||
//assert aAll contains at least three records
|
//assert aAll contains at least three records
|
||||||
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(0);
|
((JArray)a.ObjectResponse["data"]).Count.Should().BeGreaterThan(0);
|
||||||
|
|
||||||
|
//ensure first row contains all columns requested in listview
|
||||||
|
((JArray)a.ObjectResponse["data"][0]).Count.Should().Be(10);//df column is also added by server always so it's one more than requested
|
||||||
|
|
||||||
//sb a total record count greater than 3
|
//sb a total record count greater than 3
|
||||||
((JValue)a.ObjectResponse["totalRecordCount"]).Value<long>().Should().BeGreaterThan(3);
|
((JValue)a.ObjectResponse["totalRecordCount"]).Value<long>().Should().BeGreaterThan(3);
|
||||||
//sb a column header collection greater than 3
|
//sb a column header collection greater than 3
|
||||||
|
|||||||
Reference in New Issue
Block a user