-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreporte.html
More file actions
103 lines (86 loc) · 6.86 KB
/
reporte.html
File metadata and controls
103 lines (86 loc) · 6.86 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
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS D:\Xaxis\Personal> cd Login
PS D:\Xaxis\Personal\Login> cd features
PS D:\Xaxis\Personal\Login\features> behave isLoginPage.feature
Feature: Verify SauceDemo Login Webpage # isLoginPage.feature:2
Scenario: Valid SauceDemo Webpage # isLoginPage.feature:3
Given launch Firefox Browser # steps/isLoginSteps.py:14
When open a SauceDemo Login Page # steps/isLoginSteps.py:21
Then verify that is the saucedemo login page # steps/isLoginSteps.py:25
And close # steps/isLoginSteps.py:37
Scenario: Invalid SauceDemo WebPage # isLoginPage.feature:8
Given launch Firefox Browser again # steps/isLoginSteps.py:42
When open a diferent saucedemo webpage # steps/isLoginSteps.py:49
Then verify that is the saucedemo login page again # steps/isLoginSteps.py:53
And close the browser # steps/isLoginSteps.py:65
1 feature passed, 0 failed, 0 skipped
2 scenarios passed, 0 failed, 0 skipped
8 steps passed, 0 failed, 0 skipped, 0 undefined
Took 0m41.615s
PS D:\Xaxis\Personal\Login\features> behave doLogin.feature
Feature: SauceDemo Login # doLogin.feature:2
Scenario: Valid Login to SauceDemo Webpage # doLogin.feature:3
Given Launch Firefox Browser I # steps/doLoginSteps.py:14
When Open a SauceDemo Login Page I # steps/doLoginSteps.py:21
And Enter username "standard_user" and password "secret_sauce" # steps/doLoginSteps.py:25
And Click en Login Button. # steps/doLoginSteps.py:30
Then User must successfully login to the dashboard page. # steps/doLoginSteps.py:34
And close I # steps/doLoginSteps.py:47
Scenario Outline: Valid Login to SauceDemo Webpage with multiples credentials -- @1.1 # doLogin.feature:21
Given Launch Firefox Browser # steps/isLoginSteps.py:14
When Open a SauceDemo Login Page # steps/isLoginSteps.py:21
And Enter username "standard_user" and password "secret_sauce" # steps/doLoginSteps.py:25
And Click en Login Button. # steps/doLoginSteps.py:30
Then User must successfully login to the dashboard page. # steps/doLoginSteps.py:34
And close I # steps/doLoginSteps.py:47
Scenario Outline: Valid Login to SauceDemo Webpage with multiples credentials -- @1.2 # doLogin.feature:22
Given Launch Firefox Browser # steps/isLoginSteps.py:14
When Open a SauceDemo Login Page # steps/isLoginSteps.py:21
And Enter username "locked_out_user" and password "secret_sauce" # steps/doLoginSteps.py:25
And Click en Login Button. # steps/doLoginSteps.py:30
Then User must successfully login to the dashboard page. # steps/doLoginSteps.py:34
And close I # steps/doLoginSteps.py:47
Scenario Outline: Valid Login to SauceDemo Webpage with multiples credentials -- @1.3 # doLogin.feature:23
Given Launch Firefox Browser # steps/isLoginSteps.py:14
When Open a SauceDemo Login Page # steps/isLoginSteps.py:21
And Enter username "problem_user" and password "secret_sauce" # steps/doLoginSteps.py:25
And Click en Login Button. # steps/doLoginSteps.py:30
Then User must successfully login to the dashboard page. # steps/doLoginSteps.py:34
And close I # steps/doLoginSteps.py:47
Scenario Outline: Valid Login to SauceDemo Webpage with multiples credentials -- @1.4 # doLogin.feature:24
Given Launch Firefox Browser # steps/isLoginSteps.py:14
When Open a SauceDemo Login Page # steps/isLoginSteps.py:21
And Enter username "performance_glitch_user" and password "secret_sauce" # steps/doLoginSteps.py:25
And Click en Login Button. # steps/doLoginSteps.py:30
Then User must successfully login to the dashboard page. # steps/doLoginSteps.py:34
And close I # steps/doLoginSteps.py:47
Scenario: Invalid Credentials # doLogin.feature:26
Given Launch Firefox Browser I # steps/doLoginSteps.py:14
When Open a SauceDemo Login Page I # steps/doLoginSteps.py:21
And Enter username "standard_user" and password "incorrect" # steps/doLoginSteps.py:25
And Click en Login Button. # steps/doLoginSteps.py:30
Then verify error. # steps/doLoginSteps.py:52
Traceback (most recent call last):
File "C:\Users\Ryoma\AppData\Roaming\Python\Python310\site-packages\behave\model.py", line 1329, in run
match.run(runner.context)
File "C:\Users\Ryoma\AppData\Roaming\Python\Python310\site-packages\behave\matchers.py", line 98, in run
self.func(context, *args, **kwargs)
File "steps\doLoginSteps.py", line 56, in verifyLogin
assert number != -1
AssertionError
Captured logging:
INFO:WDM:
INFO:WDM:====== WebDriver manager ======
INFO:WDM:Current firefox version is 100.0
INFO:WDM:Get LATEST geckodriver version for 100.0 firefox
INFO:WDM:Driver [C:\Users\Ryoma\.wdm\drivers\geckodriver\win64\v0.31.0\geckodriver.exe] found in cache
And close I # None
Failing scenarios:
doLogin.feature:26 Invalid Credentials
0 features passed, 1 failed, 0 skipped
5 scenarios passed, 1 failed, 0 skipped
34 steps passed, 1 failed, 1 skipped, 0 undefined
Took 3m29.594s
PS D:\Xaxis\Personal\Login\features>