File tree Expand file tree Collapse file tree 3 files changed +57
-2
lines changed
app/code/Magento/Backend/Test/Mftf/Test Expand file tree Collapse file tree 3 files changed +57
-2
lines changed Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminLoginFailedTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <stories value =" Login on the Admin Login page" />
15
+ <title value =" Admin should not be able to log into the backend with invalid credentials" />
16
+ <description value =" Admin should not be able to log into the backend with invalid credentials" />
17
+ <severity value =" CRITICAL" />
18
+ <testCaseId value =" MAGETWO-71572" />
19
+ <group value =" example" />
20
+ <group value =" login" />
21
+ </annotations >
22
+
23
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" >
24
+ <argument name =" password" value =" INVALID!{{_ENV.MAGENTO_ADMIN_PASSWORD}}" />
25
+ </actionGroup >
26
+ <actionGroup ref =" AssertMessageOnAdminLoginActionGroup" stepKey =" assertErrorMessage" />
27
+ </test >
28
+ </tests >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <!--
3
+ /**
4
+ * Copyright © Magento, Inc. All rights reserved.
5
+ * See COPYING.txt for license details.
6
+ */
7
+ -->
8
+
9
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminLoginSuccessfulTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <stories value =" Login on the Admin Login page" />
15
+ <title value =" Admin should be able to log into the Magento Admin backend successfully" />
16
+ <description value =" Admin should be able to log into the Magento Admin backend successfully" />
17
+ <severity value =" CRITICAL" />
18
+ <testCaseId value =" MAGETWO-71572" />
19
+ <group value =" example" />
20
+ <group value =" login" />
21
+ </annotations >
22
+
23
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
24
+ <actionGroup ref =" AssertAdminSuccessLoginActionGroup" stepKey =" assertLoggedIn" />
25
+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdmin" />
26
+ </test >
27
+ </tests >
Original file line number Diff line number Diff line change 8
8
9
9
<tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
- <test name =" AdminLoginTest" >
11
+ <test name =" AdminLoginTest" deprecated = " Replaced with AdminLoginSuccessfulTest " >
12
12
<annotations >
13
13
<features value =" Backend" />
14
14
<stories value =" Login on the Admin Login page" />
20
20
<group value =" login" />
21
21
</annotations >
22
22
23
- <actionGroup ref =" LoginAsAdmin " stepKey =" loginAsAdmin" />
23
+ <actionGroup ref =" AdminLoginActionGroup " stepKey =" loginAsAdmin" />
24
24
<seeInCurrentUrl url =" {{AdminLoginPage.url}}" stepKey =" seeAdminLoginUrl" />
25
25
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdmin" />
26
26
</test >
You can’t perform that action at this time.
0 commit comments