-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathTextControl_testPlan.fx.yaml
More file actions
253 lines (213 loc) · 11.3 KB
/
TextControl_testPlan.fx.yaml
File metadata and controls
253 lines (213 loc) · 11.3 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
testSuite:
testSuiteName: Text Control Tests
testSuiteDescription: Verify text control properties
persona: User1
appLogicalName: NotNeeded
testCases:
# Design Testing
- testCaseName: Test Text Property
testCaseDescription: Verify that the text can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Text, "Sample Text");
Assert(TextControl1.Text = "Sample Text", "Checking the sample text");
- testCaseName: Test Size Property
testCaseDescription: Verify that the size of the text can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Size, 22);
Assert(TextControl1.Size = 22, "Checking the text size");
- testCaseName: Test Weight Property
testCaseDescription: Verify that the weight of the text can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Weight, "Bold");
Assert(TextControl1.Weight = "Bold", "Checking the text weight");
- testCaseName: Test Align Property
testCaseDescription: Verify that the alignment can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Align, "Center");
Assert(TextControl1.Align = "Center", "Checking the text alignment");
- testCaseName: Test VerticalAlign Property
testCaseDescription: Verify that the vertical alignment can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.VerticalAlign, "Middle");
Assert(TextControl1.VerticalAlign = "Middle", "Checking the vertical alignment");
- testCaseName: Test Font Property
testCaseDescription: Verify that the font can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Font, "Arial");
Assert(TextControl1.Font = "Arial", "Checking the font type");
- testCaseName: Test BorderThickness Property
testCaseDescription: Verify that the border thickness can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.BorderThickness, 2);
Assert(TextControl1.BorderThickness = 2, "Checking the border thickness");
- testCaseName: Test BorderRadiusTopLeft Property
testCaseDescription: Verify that the top-left border radius can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.BorderRadiusTopLeft, 5);
Assert(TextControl1.BorderRadiusTopLeft = 5, "Checking the top-left border radius");
- testCaseName: Test BorderRadiusTopRight Property
testCaseDescription: Verify that the top-right border radius can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.BorderRadiusTopRight, 5);
Assert(TextControl1.BorderRadiusTopRight = 5, "Checking the top-right border radius");
- testCaseName: Test BorderRadiusBottomRight Property
testCaseDescription: Verify that the bottom-right border radius can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.BorderRadiusBottomRight, 5);
Assert(TextControl1.BorderRadiusBottomRight = 5, "Checking the bottom-right border radius");
- testCaseName: Test BorderRadiusBottomLeft Property
testCaseDescription: Verify that the bottom-left border radius can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.BorderRadiusBottomLeft, 5);
Assert(TextControl1.BorderRadiusBottomLeft = 5, "Checking the bottom-left border radius");
- testCaseName: Test PaddingTop Property
testCaseDescription: Verify that the top padding can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.PaddingTop, 10);
Assert(TextControl1.PaddingTop = 10, "Checking the top padding");
- testCaseName: Test PaddingRight Property
testCaseDescription: Verify that the right padding can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.PaddingRight, 10);
Assert(TextControl1.PaddingRight = 10, "Checking the right padding");
- testCaseName: Test PaddingBottom Property
testCaseDescription: Verify that the bottom padding can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.PaddingBottom, 10);
Assert(TextControl1.PaddingBottom = 10, "Checking the bottom padding");
- testCaseName: Test PaddingLeft Property
testCaseDescription: Verify that the left padding can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.PaddingLeft, 10);
Assert(TextControl1.PaddingLeft = 10, "Checking the left padding");
- testCaseName: Test Fill Property
testCaseDescription: Verify that the fill color can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Fill, "#FFFFFF");
Assert(TextControl1.Fill = "#FFFFFF", "Checking the fill color");
- testCaseName: Test BorderStyle Property
testCaseDescription: Verify that the border style can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.BorderStyle, "Solid");
Assert(TextControl1.BorderStyle = "Solid", "Checking the border style");
- testCaseName: Test BorderColor Property
testCaseDescription: Verify that the border color can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.BorderColor, "#000000");
Assert(TextControl1.BorderColor = "#000000", "Checking the border color");
# Functional Testing
- testCaseName: Test ContentLanguage Property
testCaseDescription: Verify that the content language can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl2.ContentLanguage, "en-US");
Assert(TextControl2.ContentLanguage = "en-US", "Checking the content language");
- testCaseName: Test Height Property
testCaseDescription: Verify that the height can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl2.Height, 100);
Assert(TextControl2.Height = 100, "Checking the height");
- testCaseName: Test TabIndex Property
testCaseDescription: Verify that the tab index can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl2.TabIndex, 1);
Assert(TextControl2.TabIndex = 1, "Checking the tab index");
- testCaseName: Test Tooltip Property
testCaseDescription: Verify that the tooltip can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl3.Tooltip, "Sample Tooltip");
Assert(TextControl3.Tooltip = "Sample Tooltip", "Checking the tooltip");
- testCaseName: Test PCFTeamsTheme Property
testCaseDescription: Verify that the PCF Teams Theme can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl3.PCFTeamsTheme, "Dark");
Assert(TextControl3.PCFTeamsTheme = "Dark", "Checking the PCF Teams Theme");
- testCaseName: Test X Position Property
testCaseDescription: Verify that the X position can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl3.X, 50);
Assert(TextControl3.X = 50, "Checking the X position");
- testCaseName: Test Y Position Property
testCaseDescription: Verify that the Y position can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl3.Y, 50);
Assert(TextControl3.Y = 50, "Checking the Y position");
- testCaseName: Test Width Property
testCaseDescription: Verify that the width can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl4.Width, 300);
Assert(TextControl4.Width = 300, "Checking the width");
- testCaseName: Test Visible Property
testCaseDescription: Verify that the visibility can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl5.Visible, true);
Assert(TextControl5.Visible = true, "Checking visibility");
- testCaseName: Test DisplayMode Property
testCaseDescription: Verify that the display mode can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl5.DisplayMode, "Edit");
Assert(TextControl5.DisplayMode = "Edit", "Checking the display mode");
- testCaseName: Test ZIndex Property
testCaseDescription: Verify that the Z-Index can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl5.ZIndex, 2);
Assert(TextControl5.ZIndex = 2, "Checking the Z-Index");
- testCaseName: Test AutoHeight Property
testCaseDescription: Verify that the auto height can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl5.AutoHeight, true);
Assert(TextControl5.AutoHeight = true, "Checking auto height");
- testCaseName: Test FontColor Property
testCaseDescription: Verify that the font color can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl6.FontColor, "#FF0000");
Assert(TextControl6.FontColor = "#FF0000", "Checking the font color");
- testCaseName: Test FontItalic Property
testCaseDescription: Verify that the italic style can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl6.FontItalic, true);
Assert(TextControl6.FontItalic = true, "Checking italic style");
- testCaseName: Test FontStrikethrough Property
testCaseDescription: Verify that the strikethrough style can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl6.FontStrikethrough, false);
Assert(TextControl6.FontStrikethrough = false, "Checking strikethrough style");
- testCaseName: Test FontUnderline Property
testCaseDescription: Verify that the underline style can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl6.FontUnderline, true);
Assert(TextControl6.FontUnderline = true, "Checking underline style");
- testCaseName: Test Wrap Property
testCaseDescription: Verify that the wrap text property can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl6.Wrap, true);
Assert(TextControl6.Wrap = true, "Checking wrap text property");
# Negative Testing
- testCaseName: Test Invalid FontColor Property
testCaseDescription: Verify system behavior when setting an invalid font color.
testSteps: |
SetProperty(TextControl7.FontColor, "invalid_color");
Assert(TextControl7.FontColor != "invalid_color", "Ensuring invalid font color is not accepted");
- testCaseName: Test Invalid Tooltip Property
testCaseDescription: Verify system behavior when setting an invalid tooltip.
testSteps: |
SetProperty(TextControl9.Tooltip, 12345);
Assert(TextControl9.Tooltip != 12345, "Ensuring non-string values are not accepted for tooltip");
- testCaseName: Test Invalid Text Property
testCaseDescription: Verify system behavior when setting an invalid text value.
testSteps: |
SetProperty(TextControl10.Text, 12345);
Assert(TextControl10.Text = "", "Text property should be empty if an invalid value is provided");
testSettings:
headless: false
locale: "en-US"
recordVideo: true
extensionModules:
enable: true
browserConfigurations:
- browser: Chromium
channel: msedge
environmentVariables:
users:
- personaName: User1
emailKey: user1Email
passwordKey: NotNeeded