-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathblankverticalgallery_testPlan.fx.yaml
More file actions
111 lines (98 loc) · 6.42 KB
/
blankverticalgallery_testPlan.fx.yaml
File metadata and controls
111 lines (98 loc) · 6.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# yaml-embedded-languages: powerfx
testSuite:
testSuiteName: MDA Custom Page tests - Gallery Controls
testSuiteDescription: Verify test cases for MDA Gallery Controls
persona: User1
appLogicalName: NotNeeded
testCases:
- testCaseName: Test Gallery Control - Validate Selection by Row Number
testCaseDescription: Ensure that selecting an item in the Gallery control by specifying the row number updates the selected record accurately.
testSteps: |
Select(Gallery1, 3);
Assert(Index(Gallery1.AllItems, 3).TextInputCanvas2.Value = "Action Figure", "Verify the selected record's Title value is 'Action Figure'");
Assert(Index(Gallery1.AllItems, 3).TextInputCanvas4.Value = "24.99", "Verify the selected record's Price value is '24.99'");
- testCaseName: Test Gallery Control - Validate Selection via Icon
testCaseDescription: Ensure that selecting an item in the Gallery control using an icon updates the selected record accurately.
testSteps: |
Select(Gallery1, 5, Icon1);
Assert(Index(Gallery1.AllItems, 5).TextInputCanvas2.Value = "Laptop", "Verify the selected record's Title value is 'Laptop'");
Assert(Index(Gallery1.AllItems, 5).TextInputCanvas4.Value = "999.99", "Verify the selected record's Price value is '999.99'");
Select(Gallery1, 5, Icon2);
- testCaseName: Test Gallery Control - Select the row and edit the fieds value
testCaseDescription: Ensure that selecting an item in the Gallery control using an icon updates the selected record accurately.
testSteps: |
Select(Gallery1, 5, Icon1);
SetProperty(Index(Gallery1.AllItems, 5).TextInputCanvas2.Value, "Laptop1");
SetProperty(Index(Gallery1.AllItems, 5).TextInputCanvas4.Value, "1000.00");
SetProperty(Index(Gallery1.AllItems, 5).ComboboxCanvas1.DefaultSelectedItems, Table({Id:472770002,Value:"Home"}));
Assert(Index(Gallery1.AllItems, 5).TextInputCanvas2.Value = "Laptop1", "Verify the selected record's Title value is 'Laptop1'");
Assert(Index(Gallery1.AllItems, 5).TextInputCanvas4.Value = "1000.00", "Verify the selected record's Price value is '1000.00'");
Select(Gallery1, 5, Icon2);
- testCaseName: Test Gallery Control - Validate Selection and Assertions
testCaseDescription: Ensure that selecting an item in the Gallery control using an icon updates the selected record accurately and validates its values.
testSteps: |
Select(Gallery1, 5, Icon1);
Assert((Gallery1.Selected).TextInputCanvas2.Value = "Laptop1", "Verify the selected record's Title value is 'Laptop1'");
Assert((Gallery1.Selected).TextInputCanvas4.Value = "1000.00", "Verify the selected record's Price value is '1000.00'");
Select(Gallery1, 5, Icon2);
- testCaseName: Populate gallery with data
testCaseDescription: Populate gallery with data and validate with count
testSteps: |
=
Assert(CountRows(Gallery1.Items) = 10, "Checking the Items count of the Gallery control");
Assert(CountRows(Gallery1.AllItems) = 10, "Verify the AllItemsCount property returns the correct number of items");
- testCaseName: Test Gallery Control - Search and Validate Result Count
testCaseDescription: Verify that searching the Gallery control using input from the text box updates the displayed items correctly.
testSteps: |
SetProperty(txtSearchInput.Value, "Jeans");
Select(icnSearch);
Wait(Gallery1,"AllItemsCount", 1);
Assert(Gallery1.AllItemsCount = 1, "Checking if the Gallery displays the correct number of items after search");
SetProperty(txtSearchInput.Value, "");
SetProperty(txtSearchInput.Value, "e");
Select(icnSearch);
Wait(Gallery1,"AllItemsCount", 7);
Assert(Gallery1.AllItemsCount = 7, "Checking if the Gallery displays the correct number of items after search");
- testCaseName: Test Gallery Control - Validate ShowNavigation Property
testCaseDescription: Verify that the ShowNavigation property of the Gallery control is set and validated correctly.
testSteps: |
SetProperty(txtSearchInput.Value, "");
SetProperty(Gallery1.ShowNavigation, false);
Assert(Gallery1.ShowNavigation = false, "Verify the ShowNavigation property is set to false");
SetProperty(Gallery1.ShowNavigation, true);
Assert(Gallery1.ShowNavigation = true, "Verify the ShowNavigation property is set to true");
- testCaseName: Test Gallery Control - Validate Selectable Property
testCaseDescription: Verify that the Selectable property of the Gallery control is set and validated correctly.
testSteps: |
SetProperty(Gallery1.Selectable, true);
Assert(Gallery1.Selectable = true, "Verify the Selectable property is set to true");
SetProperty(Gallery1.Selectable, false);
Assert(Gallery1.Selectable = false, "Verify the Selectable property is set to false");
- testCaseName: Test Gallery Control - Validate Default Property
testCaseDescription: Verify that the Default property of the Gallery control is set and validated correctly.
testSteps: |
SetProperty(Gallery1.Default, Last(Gallery1.Items));
Assert((Gallery1.Selected).TextInputCanvas2.Value = "Cookbook", "Verify the Default property is set to the first item");
- testCaseName: Test Gallery Control - Filter and Validate Single Item
testCaseDescription: Ensure that filtering the Gallery control by a specific title updates the displayed items correctly and validates the item count.
testSteps: |
SetProperty(Gallery1.Items, Filter(Gallery1.Items, 'cr7d6_title'="Coffee Maker"));
Select(Gallery1, 1);
Assert(TextInputCanvas2.Value = "Coffee Maker", "Checking the Items count of the Gallery control");
# Both examples provided below are effective.
# SetProperty(Gallery1.Items, Search(Gallery1.Items, "Action Figure", 'cr7d6_title'));
# SetProperty(Gallery1.Items, Filter(Gallery1.Items, Title6.Text="SmartPhone"));
testSettings:
headless: false
locale: "en-US"
recordVideo: true
extensionModules:
enable: true
browserConfigurations:
- browser: Chromium
channel: msedge
environmentVariables:
users:
- personaName: User1
emailKey: user1Email
passwordKey: NotNeeded