Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User/v raghulraja/mda controls testing #363

Open
wants to merge 2 commits into
base: integration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions samples/mda/NumberInput_testPlan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
testSuite:
testSuiteName: MDA Custom Number Input Tests
testSuiteDescription: Verify model driven number input properties
persona: User1
appLogicalName: NotNeeded

testCases:
- testCaseName: Test DefaultValue Property
testCaseDescription: Verify that the default value can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.Value, 50);
Assert(NumberInput1.Value, 50);

- testCaseName: Test MinValue Property
testCaseDescription: Verify that the minimum value can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.Min, 0);
Assert(NumberInput1.Min, 0);

- testCaseName: Test MaxValue Property
testCaseDescription: Verify that the maximum value can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.Max, 100);
Assert(NumberInput1.Max, 100);

- testCaseName: Test Step Property
testCaseDescription: Verify that the step value can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.Step, 1);
Assert(NumberInput1.Step, 1);

- testCaseName: Test DecimalPrecision Property
testCaseDescription: Verify that the decimal precision can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.DecimalPrecision, "Auto");
Assert(NumberInput1.DecimalPrecision, "Auto");

- testCaseName: Test AccessibleLabel Property
testCaseDescription: Verify that the accessible label can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.AccessibleLabel, "No value");
Assert(NumberInput1.AccessibleLabel, "No value");

- testCaseName: Test Visible Property
testCaseDescription: Verify that the visibility can be toggled correctly.
testSteps: |
SetProperty(NumberInput1.Visible, true);
Assert(NumberInput1.Visible, true);
SetProperty(NumberInput1.Visible, false);
Assert(NumberInput1.Visible, false);

- testCaseName: Test Size Property
testCaseDescription: Verify that the size can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.Size, "576 by 237");
Assert(NumberInput1.Size, "576 by 237");

- testCaseName: Test Position Property
testCaseDescription: Verify that the position can be set and retrieved correctly.
testSteps: |
SetProperty(NumberInput1.Position, "Not shown in image");
Assert(NumberInput1.Position, "Not shown in image");

testSettings:
headless: false
locale: "en-US"
recordVideo: true
extensionModules:
enable: true
browserConfigurations:
- browser: Chromium
channel: msedge

environmentVariables:
users:
- personaName: User1
emailKey: [email protected]
passwordKey: NotNeeded
Binary file not shown.
Binary file added samples/mdacontrols/MDAControls_1_0_0_3.zip
Binary file not shown.
226 changes: 226 additions & 0 deletions samples/mdacontrols/TextControl_testPlan.fx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
testSuite:
testSuiteName: MDA Custom Page tests
testSuiteDescription: Verify model driven application
persona: User1
appLogicalName: NotNeeded

testCases:
- 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");

- 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);

- 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");

- testCaseName: Test Align Property
testCaseDescription: Verify that the alignment can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Align, "Center");
Assert(TextControl1.Align, "Center");

- 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");

- testCaseName: Test Font Property
testCaseDescription: Verify that the font can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Font, "Arial");
Assert(TextControl1.Font, "Arial");

- 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);

- 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);

- 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);

- 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);

- 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);

- 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);

- 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);

- 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);

- 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);

- testCaseName: Test ContentLanguage Property
testCaseDescription: Verify that the content language can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.ContentLanguage, "en-US");
Assert(TextControl1.ContentLanguage, "en-US");

- testCaseName: Test Height Property
testCaseDescription: Verify that the height can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Height, 100);
Assert(TextControl1.Height, 100);

- testCaseName: Test TabIndex Property
testCaseDescription: Verify that the tab index can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.TabIndex, 1);
Assert(TextControl1.TabIndex, 1);

- testCaseName: Test Tooltip Property
testCaseDescription: Verify that the tooltip can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Tooltip, "Sample Tooltip");
Assert(TextControl1.Tooltip, "Sample Tooltip");

- testCaseName: Test PCFTeamsTheme Property
testCaseDescription: Verify that the PCF Teams Theme can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.PCFTeamsTheme, "Dark");
Assert(TextControl1.PCFTeamsTheme, "Dark");

- testCaseName: Test X Position Property
testCaseDescription: Verify that the X position can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.X, 50);
Assert(TextControl1.X, 50);

- testCaseName: Test Y Position Property
testCaseDescription: Verify that the Y position can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Y, 50);
Assert(TextControl1.Y, 50);

- testCaseName: Test Width Property
testCaseDescription: Verify that the width can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Width, 300);
Assert(TextControl1.Width, 300);

- testCaseName: Test Visible Property
testCaseDescription: Verify that the visibility can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Visible, true);
Assert(TextControl1.Visible, true);

- testCaseName: Test DisplayMode Property
testCaseDescription: Verify that the display mode can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.DisplayMode, "Edit");
Assert(TextControl1.DisplayMode, "Edit");

- testCaseName: Test ZIndex Property
testCaseDescription: Verify that the Z-Index can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.ZIndex, 2);
Assert(TextControl1.ZIndex, 2);

- testCaseName: Test FontColor Property
testCaseDescription: Verify that the font color can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.FontColor, "#FF0000");
Assert(TextControl1.FontColor, "#FF0000");

- testCaseName: Test FontItalic Property
testCaseDescription: Verify that the italic style can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.FontItalic, true);
Assert(TextControl1.FontItalic, true);

- testCaseName: Test FontUnderline Property
testCaseDescription: Verify that the underline style can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.FontUnderline, true);
Assert(TextControl1.FontUnderline, true);

- testCaseName: Test Wrap Property
testCaseDescription: Verify that the wrap text property can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.Wrap, true);
Assert(TextControl1.Wrap, true);

- 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");

- 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");

- 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");

- testCaseName: Test FontStrikethrough Property
testCaseDescription: Verify that the strikethrough style can be set and retrieved correctly.
testSteps: |
SetProperty(TextControl1.FontStrikethrough, false);
Assert(TextControl1.FontStrikethrough, false)

testSettings:
headless: false
locale: "en-US"
recordVideo: true
extensionModules:
enable: true
browserConfigurations:
- browser: Chromium
channel: msedge

environmentVariables:
users:
- personaName: User1
emailKey: [email protected]
passwordKey: NotNeeded
Loading