Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/magento/module-catalog/Test/Mftf/Test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/magento/module-catalog/Test/Mftf/Test/AdminCreateDuplicateCategoryTest.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
 /**
  * Copyright © Magento, Inc. All rights reserved.
  * See COPYING.txt for license details.
  */
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
    <test name="AdminCreateDuplicateCategoryTest">
        <annotations>
            <stories value="Create category"/>
            <title value="Create Duplicate Category With Already Existed UrlKey"/>
            <description value="Login as admin and create duplicate category"/>
            <testCaseId value="MC-14702"/>
            <severity value="CRITICAL"/>
            <group value="mtf_migrated"/>
            <group value="pr_exclude"/>
        </annotations>

        <before>
            <actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminPanel"/>
            <createData entity="SimpleSubCategory" stepKey="category"/>
        </before>
        <after>
            <deleteData createDataKey="category" stepKey="deleteCategory"/>
            <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
        </after>

        <!-- Open Category Page and select Add category -->
        <actionGroup ref="GoToCreateCategoryPageActionGroup" stepKey="goToCategoryPage"/>

        <!-- Fill the Category form with same name and urlKey as initially created category(SimpleSubCategory) -->
        <actionGroup ref="FillCategoryNameAndUrlKeyAndSaveActionGroup" stepKey="fillCategoryForm">
             <argument name="categoryName" value="$$category.name$$"/>
             <argument name="categoryUrlKey" value="$$category.custom_attributes[url_key]$$"/>
        </actionGroup>

        <!-- Assert error message -->
        <actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeErrorMessage">
            <argument name="messageType" value="error"/>
            <argument name="message" value="The value specified in the URL Key field would generate a URL that already exists."/>
        </actionGroup>
    </test>
</tests>

Spamworldpro Mini