-
Notifications
You must be signed in to change notification settings - Fork 32
/
testPlanWithCommaForDecimal.fx.yaml
51 lines (47 loc) · 2.59 KB
/
testPlanWithCommaForDecimal.fx.yaml
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
testSuite:
testSuiteName: Calculator
testSuiteDescription: Verifies that the calculator app works. The calculator is a component.
persona: User1
# appId: fd32a609-eaca-4d91-b5b4-31651d265133
appLogicalName: new_calculator2_11d82
# This sample has been written to demonstrate tests written in regions that use commas ',' instead of
# periods '.' for a decimal separator. E.g., "10,22" instead of "10.22". However since all of our tests
# run in an en-US locale, string representations of the numbers still use the en-US variant i.e., the
# number 10,22 is represented in a Label field in the Power App as "10.22". See README for more details.
testCases:
- testCaseName: Default Check
testSteps: |
= Screenshot("calculator_loaded.png");;
Assert(Calculator_1.Number1Label.Text = "4.42"; "Validate default value for number 1 label");;
Assert(Calculator_1.Number2Label.Text = "2.5"; "Validate default value for number 2 label");;
- testCaseName: Check Addition
testSteps: |
= Select(Calculator_1.Add);;
Assert(Calculator_1.ResultLabel.Text = "6.92"; "Validate result label has the results of addition");;
Assert(Calculator_1.CalculatorResult = 6,92; "Validate component output calculator result has the results of addition");;
- testCaseName: Check subtraction
testSteps: |
= Select(Calculator_1.Subtract);;
Assert(Calculator_1.ResultLabel.Text = "1.92"; "Validate result label has the results of subtraction");;
Assert(Calculator_1.CalculatorResult = 1,92; "Validate component output calculator result has the results of subtraction");;
- testCaseName: Check multiplication
testSteps: |
= Select(Calculator_1.Multiply);;
Assert(Calculator_1.ResultLabel.Text = "11.05"; "Validate result label has the results of multiplication");;
Assert(Calculator_1.CalculatorResult = 11,05; "Validate component output calculator result has the results of multiplication");;
- testCaseName: Check division
testSteps: |
= Select(Calculator_1.Divide);;
Assert(Calculator_1.ResultLabel.Text = "1.768"; "Validate result label has the results of division");;
Assert(Calculator_1.CalculatorResult = 1,768; "Validate component output calculator result has the results of division");;
Screenshot("calculator_end.png");;
testSettings:
locale: "de-DE"
recordVideo: true
browserConfigurations:
- browser: Chromium
environmentVariables:
users:
- personaName: User1
emailKey: user1Email
passwordKey: user1Password